:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg-stage: #080a0f;
  --wechat-bg: #ededed;
  --wechat-green: #95ec69;
  --ios-bg: #f2f2f7;
  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --ios-green: #34c759;
  --ios-amber: #d97706;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-stage);
  font-family: var(--font-sans);
  font-size: 14px;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

button,
input {
  font-family: inherit;
}

.device-stage {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.08), transparent 45%),
    #080a0f;
}

.phone-shell {
  position: relative;
  width: min(390px, 100%);
  height: min(844px, calc(100dvh - 24px));
  aspect-ratio: 390 / 844;
  max-height: 100%;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #323846 0%, #1a1f29 52%, #11151d 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  display: flex;
}

.phone-bezel-hardware {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hw-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3d4454;
}

.hw-btn-vol-up { left: -3px; top: 136px; height: 42px; }
.hw-btn-vol-down { left: -3px; top: 188px; height: 42px; }
.hw-btn-power { right: -3px; top: 162px; height: 64px; }

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #0b0e14;
  display: flex;
  flex-direction: column;
}

.phone-screen.is-light-chrome {
  background: #f2f2f7;
}

@media (max-width: 480px) {
  .device-stage {
    padding: 0;
    background: #0b0e14;
  }
  .phone-shell {
    width: 100vw;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    background: #0b0e14;
    box-shadow: none;
  }
  .phone-bezel-hardware {
    display: none;
  }
  .phone-screen {
    border-radius: 0;
  }
}

.phone-screen.is-rippling {
  animation: timeRipple 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes timeRipple {
  0% { filter: none; transform: scale(1); }
  20% { filter: hue-rotate(35deg) contrast(1.35) saturate(1.4); transform: scale(1.015) skewX(-1.5deg); }
  45% { filter: invert(0.12) blur(1.2px); transform: scale(0.99) skewX(1.2deg); }
  75% { filter: contrast(1.15); transform: scale(1.005); }
  100% { filter: none; transform: scale(1); }
}

.icon-svg {
  width: 15px;
  height: 15px;
  display: block;
}

img.is-missing {
  opacity: 0 !important;
  pointer-events: none;
}

/* ============================================================================
   Status Bar (clears WeChat capsule safe-zone at top-right on <=480px)
   ============================================================================ */
.status-bar {
  position: relative;
  z-index: 40;
  height: 36px;
  width: 100%;
  flex-shrink: 0;
  padding: 6px 12px 2px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 480px) {
  .status-bar {
    padding-right: 104px;
  }
}

.phone-screen[data-phase="lockscreen"] .status-bar,
.phone-screen[data-phase="home"] .status-bar {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}

.status-bar.theme-dark-bg {
  color: #ffffff;
}

.status-bar.theme-light-bg {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.status-left-cluster,
.status-right-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-time {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-icon .icon-svg {
  width: 13px;
  height: 11px;
}

.status-mute-btn {
  border: none;
  background: rgba(148, 163, 184, 0.22);
  color: inherit;
  border-radius: 999px;
  width: 22px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.status-mute-btn .icon-svg {
  width: 12px;
  height: 12px;
}

.status-remnant-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  color: inherit;
  border-radius: 999px;
  height: 21px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.status-remnant-btn .icon-svg {
  width: 11px;
  height: 11px;
}

.remnant-badge {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
}

.status-battery {
  display: inline-flex;
  align-items: center;
}

.bat-shell {
  width: 18px;
  height: 9.5px;
  border: 1.3px solid currentColor;
  border-radius: 2.5px;
  padding: 1px;
  display: inline-flex;
}

.bat-fill {
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.screen-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   Cover Screen
   ============================================================================ */
.screen-cover {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px 24px 34px;
  color: #f8fafc;
  overflow: hidden;
}

.cover-bg-layer,
.wp-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cover-bg-fallback,
.wp-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(180deg, #0b101b 0%, #151c2c 52%, #090c12 100%);
}

.cover-hero-img,
.wp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-vignette,
.wp-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 15, 0.72) 0%,
    rgba(6, 9, 15, 0.25) 40%,
    rgba(6, 9, 15, 0.48) 72%,
    rgba(6, 9, 15, 0.88) 100%
  );
}

.wp-home-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.34);
  backdrop-filter: blur(2px);
}

.cover-sound-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.56);
  color: #f8fafc;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.cover-top,
.cover-footer {
  position: relative;
  z-index: 2;
}

.cover-kicker {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: rgba(186, 230, 253, 0.9);
  margin-bottom: 8px;
}

.cover-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.cover-premise {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.88);
}

.cover-start-btn {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ============================================================================
   Lockscreen & Home Desktop
   ============================================================================ */
.screen-lockscreen,
.screen-home {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lock-fg,
.home-fg {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 52px 16px 22px;
}

.lock-clock-wrap {
  text-align: center;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.lock-date {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.lock-clock {
  font-size: 62px;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.lock-notifs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-alert-card,
.lock-msg-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  color: #111827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.lock-alert-card {
  background: rgba(255, 241, 242, 0.92);
}

.lock-alert-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.lock-alert-ico .icon-svg {
  width: 16px;
  height: 16px;
}

.lock-alert-app {
  font-weight: 600;
  color: #374151;
}

.lock-alert-time {
  margin-left: auto;
  color: #6b7280;
  font-size: 11px;
}

.lock-alert-title {
  font-size: 14px;
  font-weight: 700;
  color: #be123c;
  margin-bottom: 3px;
}

.lock-alert-body {
  font-size: 13px;
  line-height: 1.4;
  color: #1f2937;
}

.lock-bottom {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.lock-unlock-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Home screen */
.home-sync-widget {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  color: #111827;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.widget-top-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #be123c;
  font-weight: 600;
  margin-bottom: 5px;
}

.widget-main-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.widget-sub {
  font-size: 12.5px;
  color: #4b5563;
}

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 6px;
  padding: 0 2px;
}

.home-spacer {
  flex: 1;
}

.home-dock-bar {
  border-radius: 26px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: start;
}

.home-app-btn {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.home-app-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.app-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.app-tile svg {
  width: 42px;
  height: 42px;
}

.tile-wechat { background: linear-gradient(180deg, #2ee068 0%, #07c160 100%); }
.tile-photos { background: #ffffff; }
.tile-mail { background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%); }
.tile-smartlock { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
.tile-safebox { background: linear-gradient(180deg, #475569 0%, #1e293b 100%); }
.tile-sleep { background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%); }
.tile-health { background: #ffffff; }
.tile-recorder { background: linear-gradient(180deg, #1e2430 0%, #0f131a 100%); }

@media (max-width: 375px), (max-height: 680px) {
  .home-sync-widget {
    padding: 11px 13px;
    margin-bottom: 16px;
  }
  .home-app-icon-wrap,
  .app-tile {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }
  .app-tile svg {
    width: 38px;
    height: 38px;
  }
  .home-dock-bar {
    padding: 10px 8px;
  }
}

.app-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.home-app-label {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* ============================================================================
   App Chrome & Bottom Home Bar
   ============================================================================ */
.app-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #111827;
}

.app-topbar {
  height: 44px;
  flex-shrink: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.app-topbar.theme-wechat {
  background: #ededed;
}

.app-topbar.theme-dark,
.app-topbar.theme-recorder {
  background: #14171f;
  color: #f8fafc;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar-back-btn {
  border: none;
  background: transparent;
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  cursor: pointer;
  min-width: 70px;
}

.theme-wechat .topbar-back-btn { color: #111827; }
.theme-dark .topbar-back-btn,
.theme-recorder .topbar-back-btn { color: #60a5fa; }

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  min-width: 70px;
}

.app-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav-bar {
  height: 22px;
  flex-shrink: 0;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-indicator-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-indicator-bar {
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

/* ============================================================================
   App 1: 微聊
   ============================================================================ */
.app-wechat,
.app-wechat-thread {
  background: #ededed;
}

.wc-list-body {
  background: #ffffff;
}

.wc-chat-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.wc-chat-row.is-pinned {
  background: #f8fafc;
}

.wc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-tile {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
}

.avatar-tile.wc-msg-av {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wc-unread-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.wc-row-main {
  flex: 1;
  min-width: 0;
}

.wc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.wc-row-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.wc-row-time {
  font-size: 11.5px;
  color: #9ca3af;
}

.wc-row-sub {
  font-size: 11.5px;
  color: #6b7280;
  margin-bottom: 2px;
}

.wc-row-preview {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-thread-body {
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-divider {
  text-align: center;
  margin: 4px 0;
}

.wc-divider span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 11.5px;
}

.wc-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wc-msg-row.is-me {
  justify-content: flex-end;
}

.wc-msg-col {
  max-width: 74%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wc-msg-row.is-me .wc-msg-col {
  align-items: flex-end;
}

.wc-msg-time {
  font-size: 11px;
  color: #94a3b8;
}

.wc-text-bubble {
  background: #ffffff;
  color: #111827;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.48;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wc-msg-row.is-me .wc-text-bubble {
  background: #95ec69;
}

.wc-img-bubble {
  border: none;
  padding: 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 176px;
}

.wc-img-bubble .photo-media-box {
  height: 124px;
}

.wc-img-caption {
  padding: 6px 8px;
  font-size: 12px;
  color: #4b5563;
}

.wc-voice-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wc-voice-bubble {
  border: none;
  background: #ffffff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  min-width: 112px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wc-voice-bubble.is-playing {
  background: #dcfce7;
  color: #166534;
}

.wc-voice-bubble.is-playing .voice-arc {
  animation: voiceWave 0.9s infinite ease-in-out;
}

@keyframes voiceWave {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.wc-voice-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wc-transcript-toggle {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.wc-transcript-toggle.is-dark {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.wc-voice-transcript {
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #374151;
}

.wc-composer-box {
  background: #f7f7f7;
  border-top: 1px solid #e5e7eb;
  padding: 7px 10px 9px;
}

.wc-composer-hint {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 5px;
  padding-left: 2px;
}

.wc-action-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-action-chip {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  text-align: left;
  cursor: pointer;
}

.wc-action-chip.is-primary {
  background: #07c160;
  border-color: #07c160;
  color: #ffffff;
}

.wc-action-chip.is-warn {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.wc-action-chip.is-danger {
  background: #fff1f2;
  border-color: #f87171;
  color: #991b1b;
}

.wc-confirm-sheet {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 14px 12px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.wc-confirm-head {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.wc-confirm-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 10px;
}

.wc-confirm-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wc-confirm-cancel,
.wc-confirm-ok {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.wc-confirm-cancel {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.wc-confirm-ok {
  border: none;
  background: #dc2626;
  color: #ffffff;
}

.wc-input-mock {
  background: #f7f7f7;
  border-top: 1px solid #e5e7eb;
  padding: 8px 12px;
}

.wc-input-placeholder {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #9ca3af;
  text-align: center;
}

/* ============================================================================
   App 2: 相册 + 2.8x 光学悬镜
   ============================================================================ */
.app-photos {
  background: #ffffff;
}

.photos-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.photos-tab-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}

.photos-tab-btn .icon-svg {
  width: 12px;
  height: 12px;
}

.photos-tab-btn.is-active {
  background: #111827;
  color: #ffffff;
}

.photos-scroll {
  padding: 10px;
}

.photos-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin: 4px 2px 8px;
}

.photos-section-label.is-muted {
  color: #94a3b8;
  margin-top: 16px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.photo-grid-tile {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.photo-media-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1e293b;
}

.photo-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 12px;
  color: #cbd5e1;
  text-align: center;
  background: linear-gradient(110deg, #161b26 25%, #232b3d 50%, #161b26 75%);
  background-size: 200% 100%;
  animation: photoSkeletonShimmer 1.6s ease-in-out infinite;
}

@keyframes photoSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.photo-real-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.photo-real-img.is-loaded {
  opacity: 1;
}

.photo-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #ffffff;
  font-size: 11.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-tile-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-tile-check .icon-svg {
  width: 12px;
  height: 12px;
}

.photos-locked-box {
  padding: 52px 24px;
  text-align: center;
}

.photos-locked-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photos-locked-ico .icon-svg {
  width: 24px;
  height: 24px;
}

.photos-locked-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.photos-locked-hint {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.photos-unlock-btn {
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.photos-secret-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.secret-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.secret-photo-media {
  width: 100%;
  height: 185px;
  border: none;
  padding: 0;
  display: block;
  cursor: pointer;
}

.secret-photo-meta {
  padding: 10px 12px;
}

.secret-photo-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.secret-photo-title span {
  font-weight: 400;
  font-size: 12px;
  color: #64748b;
}

.secret-photo-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.secret-voice-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.secret-voice-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #be123c;
  font-weight: 500;
}

/* Photo Detail & 2.8x Loupe */
.app-photo-detail {
  background: #000000;
  color: #f8fafc;
}

.photo-detail-scroll {
  padding: 10px 12px 24px;
}

.photo-detail-time {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 10px;
}

.photo-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: visible;
  background: #0f172a;
  touch-action: none;
  cursor: crosshair;
}

.photo-stage .photo-media-box.is-detail {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.photo-stage .photo-media-box,
.photo-stage .photo-real-img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-stage .photo-real-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
}

.photo-hotspot-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 4;
}

.hs-check-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background: rgba(16, 185, 129, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hs-check-dot .icon-svg {
  width: 12px;
  height: 12px;
}

.photo-hotspot-dot.is-active .hs-check-dot {
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.45), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.optical-loupe {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, box-shadow 0.16s ease;
  z-index: 6;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.65),
    0 0 0 2.5px rgba(255, 255, 255, 0.92);
}

.optical-loupe.is-visible {
  opacity: 1;
}

.optical-loupe.is-near {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.65),
    0 0 0 2.5px #38bdf8,
    0 0 18px rgba(56, 189, 248, 0.65);
  animation: loupeNearPulse 1.1s ease-in-out infinite;
}

@keyframes loupeNearPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 2.5px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.45); }
  50% { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 3px #7dd3fc, 0 0 24px rgba(56, 189, 248, 0.85); }
}

.optical-loupe-zoom {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  filter: brightness(1.22) contrast(1.08);
}

.optical-loupe-empty {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.optical-loupe-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.optical-loupe-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(56, 189, 248, 0.75);
  border-radius: 999px;
}

.optical-loupe.is-touch-offset {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.72),
    0 0 0 2.5px rgba(125, 211, 252, 0.96);
}

.loupe-touch-reticle {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.loupe-touch-reticle.is-visible {
  opacity: 1;
}

.loupe-touch-reticle::before,
.loupe-touch-reticle::after {
  content: '';
  position: absolute;
  background: rgba(125, 211, 252, 0.92);
  box-shadow: 0 0 4px rgba(14, 165, 233, 0.75);
}

.loupe-touch-reticle::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.loupe-touch-reticle::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.loupe-touch-line {
  position: absolute;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.72), rgba(125, 211, 252, 0.18));
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.loupe-touch-line.is-visible {
  opacity: 1;
}

.photo-loupe-bar {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.loupe-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.loupe-toggle-btn.is-on {
  background: #0284c7;
  border-color: #38bdf8;
}

.photo-observation-card {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.obs-badge {
  font-size: 12px;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.obs-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #f8fafc;
}

.photo-caption-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  text-align: center;
  padding: 0 8px;
}

/* ============================================================================
   App 3: 生活记录
   ============================================================================ */
.life-scroll {
  padding: 10px 14px 28px;
}

.ios-group-header {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin: 14px 4px 6px;
}

.ios-group-header:first-child {
  margin-top: 2px;
}

.ios-card-group {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.life-row {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.life-row:last-child {
  border-bottom: none;
}

.life-row-main {
  flex: 1;
  min-width: 0;
}

.life-row-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.life-row-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.life-btn-warn,
.life-btn-danger,
.life-btn-primary {
  border: none;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.life-btn-warn { background: #fef3c7; color: #b45309; }
.life-btn-danger { background: #fee2e2; color: #b91c1c; }
.life-btn-primary { background: #007aff; color: #ffffff; }

.life-done-tag {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.worldline-confirm-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.wl-confirm-text {
  font-size: 13px;
  line-height: 1.45;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.wl-confirm-btn {
  width: 100%;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.lock-logs-box {
  padding: 10px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.lock-logs-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}

.lock-log-line {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.lock-log-line span:first-child {
  font-family: var(--font-mono);
  color: #64748b;
  flex-shrink: 0;
}

.archive-box,
.safe-unlocked-box {
  padding: 12px 13px;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.archive-expand-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.archive-line {
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  padding: 5px 0;
  border-top: 1px dashed #e2e8f0;
}

.safe-files-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 6px;
}

.safe-file-line {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
}

.safe-report-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.safe-report-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.safe-report-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.safe-submitted-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12.5px;
  font-weight: 600;
}

.life-night-end-box {
  margin-top: 18px;
}

.life-advance-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   App 4: 健康医疗
   ============================================================================ */
.health-scroll {
  padding: 12px 14px 28px;
}

.health-alert-card {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.health-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.health-alert-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #be123c;
}

.health-alert-time {
  font-size: 12px;
  font-weight: 700;
  color: #9f1239;
}

.health-alert-patient {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.health-alert-meta {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.4;
}

.health-alert-summary {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ffe4e6;
  font-size: 12.5px;
  line-height: 1.45;
  color: #881337;
  font-weight: 500;
}

.health-med-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.health-med-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.health-med-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.health-med-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.health-med-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.health-med-status {
  font-size: 12.5px;
  font-weight: 600;
  color: #0369a1;
}

.health-med-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-btn-ghost,
.health-btn-primary,
.health-btn-dark {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.health-btn-ghost {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.health-btn-primary {
  border: none;
  background: #0284c7;
  color: #ffffff;
}

.health-btn-dark {
  border: none;
  background: #0f172a;
  color: #ffffff;
}

.health-sealed-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12.5px;
  font-weight: 600;
}

.health-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.health-media-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.health-media-card .photo-media-box {
  height: 112px;
}

.health-media-cap {
  padding: 8px 10px;
}

.health-media-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.health-media-sub {
  font-size: 11.5px;
  color: #64748b;
}

.health-daily-note {
  font-size: 12.5px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* ============================================================================
   App 6: 就寝闹钟
   ============================================================================ */
.app-sleep {
  background: #0d111a;
  color: #f8fafc;
}

.sleep-scroll {
  padding: 14px 14px 28px;
}

.sleep-alarm-card {
  background: linear-gradient(155deg, #1e1b4b 0%, #172554 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.sleep-alarm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sleep-alarm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
}

.sleep-alarm-pill {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  padding: 3px 9px;
  border-radius: 999px;
}

.sleep-time-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}

.sleep-time-label {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.sleep-time-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.sleep-time-sep {
  font-size: 18px;
  color: #818cf8;
}

.sleep-alarm-sub {
  font-size: 12px;
  color: #cbd5e1;
}

.sleep-summary-card {
  background: #171c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 18px;
}

.sleep-prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sleep-prep-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
}

.sleep-prep-list li .icon-svg {
  width: 14px;
  height: 14px;
  color: #34d399;
  margin-top: 2px;
  flex-shrink: 0;
}

.sleep-prep-empty {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.sleep-cta-wrap {
  margin-top: 6px;
}

.sleep-advance-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(55, 48, 163, 0.35);
}

/* ============================================================================
   App 5: 语音备忘录
   ============================================================================ */
.app-recorder {
  background: #111318;
  color: #f8fafc;
}

.recorder-scroll {
  padding: 10px 14px 28px;
}

.rec-section-head {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin: 14px 2px 8px;
}

.rec-section-head:first-child {
  margin-top: 2px;
}

.rec-memo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.rec-memo-card {
  background: #1b1f27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.rec-memo-head {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.rec-memo-main {
  flex: 1;
  min-width: 0;
}

.rec-memo-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-memo-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.rec-memo-pill {
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.rec-memo-summary {
  padding: 0 12px 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.rec-syncing-card {
  background: #171a22;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px 13px;
}

.rec-sync-pill {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.rec-sync-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.rec-player-card,
.rec-overlay-card,
.node19-card,
.rec-locked-card {
  background: #1b1f27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 13px;
}

.rec-locked-card {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  padding: 18px 12px;
}

.rec-file-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.rec-filename {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-all;
}

.rec-file-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.rec-live-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.rec-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.rec-waveform-track {
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 4px 0;
}

.rec-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.35);
}

.rec-bar.is-passed {
  background: #bae6fd;
}

.rec-scrubber {
  width: 100%;
  height: 36px;
  margin: 4px 0 6px;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  accent-color: #38bdf8;
  cursor: pointer;
  touch-action: pan-x;
}

.rec-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.rec-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #38bdf8;
  border: 2px solid #f8fafc;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.55);
  margin-top: -7px;
}

.rec-scrubber::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.rec-scrubber::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #38bdf8;
  border: 2px solid #f8fafc;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.55);
}

.rec-transport-bar {
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.rec-step-btn,
.rec-play-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.rec-step-btn {
  font-family: var(--font-mono);
}

.rec-play-btn.is-playing {
  background: rgba(14, 116, 144, 0.45);
  border-color: rgba(56, 189, 248, 0.65);
  color: #7dd3fc;
}

.rec-play-btn .icon-svg {
  width: 14px;
  height: 14px;
}

.rec-seg-box {
  background: #13161d;
  border-radius: 10px;
  padding: 10px;
}

.rec-seg-box.is-alert {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.rec-seg-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.rec-seg-box.is-alert .rec-seg-label {
  color: #fca5a5;
}

.rec-seg-line {
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.rec-overlay-sub {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.overlay-table {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.overlay-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr 0.8fr;
  gap: 6px;
  padding: 7px 8px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay-row.is-head {
  border-top: none;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-weight: 600;
}

.overlay-row .is-emph {
  color: #fda4af;
  font-weight: 700;
}

.overlay-marks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-mark-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #13161d;
  color: #f8fafc;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.overlay-mark-btn.is-marked {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.28);
}

.overlay-mark-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.overlay-mark-btn.is-marked .overlay-mark-check {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.overlay-mark-btn strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.overlay-mark-btn small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.node19-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.node19-title {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
}

.node19-voice-btn {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.node19-slices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.node19-slice-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.slice-id {
  font-family: var(--font-mono);
  color: #94a3b8;
  flex-shrink: 0;
}

.slice-cause {
  color: #e2e8f0;
}

.node19-transcript {
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.5;
  color: #fecdd3;
}

/* ============================================================================
   Overlays: Banner, Toast, PIN Keypad, Timeline Modal, Cutscene, Endings
   ============================================================================ */
.push-banner {
  position: absolute;
  top: 42px;
  left: 10px;
  right: 10px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  color: #111827;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.push-banner-ico .icon-svg {
  width: 24px;
  height: 24px;
}

.push-banner-main {
  flex: 1;
  min-width: 0;
}

.push-banner-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 2px;
}

.push-sender { font-weight: 700; }
.push-tag { color: #64748b; font-size: 11px; }

.push-banner-body {
  font-size: 13px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sys-toast {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PIN Overlay */
.pin-overlay {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-bg-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.84);
  backdrop-filter: blur(20px);
}

.pin-panel {
  position: relative;
  z-index: 2;
  width: 88%;
  max-width: 300px;
  text-align: center;
  color: #ffffff;
}

.pin-lock-icon .icon-svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
}

.pin-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.pin-hint { font-size: 12.5px; color: #cbd5e1; margin-bottom: 16px; }

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.pin-dot.is-filled {
  background: #ffffff;
  border-color: #ffffff;
}

.pin-dot.is-error {
  border-color: #f87171;
}

.pin-panel.is-shaking .pin-dots {
  animation: pinShake 0.32s ease;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.pin-error {
  font-size: 12px;
  color: #cbd5e1;
  min-height: 18px;
  margin-bottom: 16px;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  justify-items: center;
}

.pin-key {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-key-num { font-size: 24px; font-weight: 400; line-height: 1.1; }
.pin-key-sub { font-size: 9px; letter-spacing: 1px; opacity: 0.72; }
.pin-key-text { background: transparent; font-size: 14px; }

/* 时间残影 Modal */
.remnant-backdrop {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
}

.remnant-sheet {
  width: 100%;
  height: 84%;
  background: #131722;
  color: #f8fafc;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.remnant-sheet-head {
  padding: 14px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remnant-sheet-title { font-size: 16px; font-weight: 700; }
.remnant-sheet-sub { font-size: 12px; color: #94a3b8; }

.remnant-close-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.remnant-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
}

.remnant-tab-btn {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.remnant-tab-btn.is-active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.remnant-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 24px;
}

.remnant-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remnant-end-card {
  border-radius: 12px;
  padding: 11px 12px;
  background: #1b2130;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.remnant-end-card.is-unlocked {
  border-color: rgba(56, 189, 248, 0.35);
}

.remnant-end-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.remnant-end-code { font-weight: 700; color: #7dd3fc; }
.remnant-end-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.remnant-end-desc { font-size: 12.5px; line-height: 1.45; color: #cbd5e1; }

.remnant-jump-btn {
  margin-top: 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.25);
  color: #bae6fd;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.remnant-node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remnant-node-row {
  border-radius: 12px;
  padding: 11px 12px;
  background: #1b2130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remnant-node-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.cur-dot { font-size: 11px; color: #34d399; margin-left: 6px; }
.remnant-node-desc { font-size: 12px; color: #94a3b8; }

.remnant-node-btn {
  border: none;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.remnant-reset-wrap {
  margin-top: 10px;
}

.remnant-reset-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

/* Cutscene Overlay */
.cutscene-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cutscene-overlay.is-active {
  display: flex;
}

.cutscene-overlay.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cutscene-stage {
  position: relative;
  width: min(390px, 100vw);
  height: min(844px, 100dvh);
  background: #000000;
  overflow: hidden;
}

.cutscene-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cutscene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.cutscene-canvas.is-visible {
  opacity: 1;
}

.cutscene-video-decoder {
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 28px;
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
  object-fit: cover;
}

.cutscene-poster-img.is-loaded {
  opacity: 1;
}

.cutscene-poster-img.is-ken-burns {
  animation: kenBurns 3.6s ease-out forwards;
}

.cutscene-poster-img.is-cinema-shake {
  animation: kenBurnsShake 2.6s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

@keyframes kenBurnsShake {
  0% { transform: scale(1) translate(0, 0); }
  32% { transform: scale(1.02) translate(0, 0); }
  36% { transform: scale(1.03) translate(-3px, 2px); }
  40% { transform: scale(1.035) translate(3px, -2px); }
  44% { transform: scale(1.04) translate(-2px, 1px); }
  65% { transform: scale(1.055) translate(0, 0); }
  69% { transform: scale(1.06) translate(3px, 2px); }
  73% { transform: scale(1.065) translate(-2px, -1px); }
  100% { transform: scale(1.08) translate(0, 0); }
}

.cutscene-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  animation: liveDotPulse 1.2s ease-in-out infinite;
}

.cutscene-skip-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.56);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .cutscene-skip-btn {
    right: 104px;
  }
}

.cutscene-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  z-index: 3;
  pointer-events: none;
}

.cutscene-caption-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  z-index: 4;
}

.cutscene-caption-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cutscene-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 5;
}

.cutscene-progress-fill {
  height: 100%;
  width: 0;
  background: #ffffff;
}

.cutscene-loading-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  display: none;
  align-items: center;
  gap: 7px;
}

.cutscene-loading-pill.is-visible {
  display: inline-flex;
}

/* Ending Screen */
.screen-ending {
  position: relative;
  flex: 1;
  background: #090b10;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.screen-ending.is-dawn {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.ending-poster-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.ending-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.06);
}

.ending-poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, #090b10 100%);
}

.ending-body {
  flex: 1;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
}

.ending-kicker-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ending-code-pill,
.ending-tag-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ending-clock-banner {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 6px;
}

.screen-ending.is-dawn .ending-clock-banner {
  color: #6ee7b7;
}

.ending-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
}

.ending-bank-alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.ending-lines-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ending-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
}

.ending-voice-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.ending-voice-btn {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ending-voice-transcript {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #f1f5f9;
}

.ending-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ending-btn-primary,
.ending-btn-secondary,
.ending-btn-ghost {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ending-btn-primary {
  border: none;
  background: #2563eb;
  color: #ffffff;
}

.ending-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.ending-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #cbd5e1;
}

/* ============================================================================
   v5 Upgrades: Typing Indicator, Live Pressure Pulse, SmartLock Alert, Incoming Call
   ============================================================================ */
.wc-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #64748b;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wc-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wc-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #94a3b8;
  animation: typingBounce 1.1s infinite ease-in-out;
}

.wc-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.wc-typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.widget-live-pulse {
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.1);
  color: #be123c;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sleep-live-banner {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(190, 18, 60, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f43f5e;
  flex-shrink: 0;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.lock-log-line.is-alert {
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 600;
}

.lock-log-line.is-alert span:first-child {
  color: #be123c;
}

/* Native iOS Dark Incoming Call Overlay */
.call-overlay {
  position: absolute;
  inset: 0;
  z-index: 98;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  background:
    radial-gradient(circle at 50% 24%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b14 60%, #04060b 100%);
}

.call-bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(26px);
  pointer-events: none;
}

.call-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 22px 34px;
}

.call-top-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.call-kicker {
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.92);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.call-avatar-stage {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-avatar-tile {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.call-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  pointer-events: none;
}

.call-overlay.is-ringing .call-pulse-1 {
  animation: callRingWave 2.1s ease-out infinite;
}

.call-overlay.is-ringing .call-pulse-2 {
  animation: callRingWave 2.1s ease-out 0.9s infinite;
}

.call-overlay.is-connected .call-pulse-ring {
  opacity: 0.25;
}

@keyframes callRingWave {
  0% { transform: scale(0.95); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; }
}

.call-caller-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.call-caller-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.call-ring-hint {
  font-size: 12.5px;
  color: rgba(203, 213, 225, 0.78);
}

.call-timer-pill {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}

.call-bottom-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 18px 14px;
}

.call-action-col {
  border: none;
  background: transparent;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.call-circle-btn {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.call-circle-btn.is-decline {
  background: #ff3b30;
}

.call-circle-btn.is-accept {
  background: #34c759;
  animation: callAcceptPulse 1.6s ease-in-out infinite;
}

@keyframes callAcceptPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.call-phone-ico {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.call-phone-ico.is-hangup {
  transform: rotate(135deg);
}

.call-action-label {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

.call-dialogue-card {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0;
}

.call-dialogue-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.call-dialogue-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #f1f5f9;
}

.call-reply-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-reply-btn {
  width: 100%;
  border-radius: 14px;
  padding: 11px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.call-reply-btn.is-calm {
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.45);
  color: #ecfdf5;
}

.call-reply-btn.is-panic {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.45);
  color: #fef2f2;
}

.call-reply-tag {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.9;
}

.call-reply-line {
  font-size: 13px;
  line-height: 1.4;
}
