* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
body {
  background: radial-gradient(circle at 20% 20%, #e0f2fe 0%, #f1f5f9 45%, #ede9fe 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Mobile Frame on Desktop, Fullscreen on Mobile */
.phone-frame {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  background: linear-gradient(180deg, #E8F8FD 0%, #F4F7FC 24%, #F7F8FA 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .phone-frame {
    width: min(390px, calc(100vw - 26px));
    height: min(844px, calc(100vh - 32px));
    height: min(844px, calc(100dvh - 32px));
    border-radius: 39px;
    box-shadow: 0 28px 70px -12px rgba(15, 23, 42, 0.22), 0 0 0 10px #ffffff, 0 0 0 11px rgba(148, 163, 184, 0.25);
  }
}

:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame *,
  .phone-frame *::before,
  .phone-frame *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Pastel surfaces and actions from the prototype */
.bg-cece-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(240,250,255,0.94) 60%, rgba(245,243,255,0.95) 100%);
}
.bg-cece-cyan {
  background: linear-gradient(135deg, #077ea9 0%, #007b96 100%);
}
.bg-cece-lavender {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
}
.bg-cece-peach {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFF7ED 100%);
}
.bg-cece-vip {
  background: linear-gradient(135deg, #FFF6EB 0%, #FFE8D1 100%);
}
/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
  animation: fadeSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Unexpanded debrief preview */
.paywall-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

:root {
  color-scheme: light;
  --cece-paper: #f4f8fd;
  --cece-card: #fff;
  --cece-ink: #17223a;
  --cece-muted: #56647a;
  --cece-accent: #086d9a;
  --cece-blue: #18518a;
  --cece-line: #e4ebf5;
  --cece-width: 430px;
}
body { color: var(--cece-ink); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden], #app .hidden { display: none !important; }
.frame-header {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 17px;
  position: relative;
  color: #22344b;
}
.frame-brand {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-weight: 760;
  font-size: .8125rem;
}
.frame-brand img { flex: none; }
.frame-edition {
  padding: 2px 7px;
  border-radius: 10px;
  background: #daf2fc;
  color: #155a7c;
  font-size: .75rem;
  font-weight: 700;
}
.frame-island {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  border-radius: 999px;
  background: #151d30;
  pointer-events: none;
}
.frame-island span { position: absolute; right: 6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #253450; }
.app-pages {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c4d3e6 transparent;
  overscroll-behavior: contain;
}
.app-pages:focus { outline: none; }
#app[data-active-tab="ai"] .app-pages { overflow: hidden; }
#app[data-active-tab="ai"] :is(.frame-header, .frame-navigation) { display: none; }

#app[data-active-tab="ai"].ask-keyboard-open {
  --ask-composer-safe: 0px;
  position: fixed;
  top: var(--ask-viewport-top);
  inset-inline: 0;
  margin-inline: auto;
  height: var(--ask-viewport-height);
}
.skip-link { position: absolute; left: 10px; top: 10px; transform: translateY(-160%); z-index: 55; background: var(--cece-blue); padding: 9px 12px; color: #fff; border-radius: 10px; }
.skip-link:focus { transform: none; }
.home-bar > button { min-height: 44px; }
.home-bar #checkin-btn { white-space: nowrap; padding-inline: 9px; }
.home-bar #checkin-btn[aria-pressed="true"] { background: #e0f6fb; color: #0d607d; }
.home-bar #search-trigger { min-width: 0; color: var(--cece-muted); }
.home-bar > button:last-child { min-width: 44px; }
.home-status { border-color: #fff; }
.home-status button { color: var(--cece-accent); }
.home-status-metrics > div:last-child { gap: 8px; }
.home-status-metrics > div:first-child { min-width: 0; }
.home-status-metrics [id^="val-"], .home-status-metrics [id^="val-"] + span { color: #536077; }
.home-status-metrics #hero-score { color: var(--cece-ink); }
.home-status-metrics #hero-subtitle { color: var(--cece-muted); }
.home-progress-summary {
  border: 1px solid #dce9fa;
  border-radius: 12px;
  background: #f4f8ff;
  color: #28527a;
  font-size: .8125rem;
  font-weight: 650;
  padding: 7px 10px;
}
.home-quick-tools { row-gap: 9px; }
.home-quick-tools button { min-height: 66px; }
.home-quick-tools button > div { box-shadow: 0 2px 7px rgb(65 91 133 / 14%); }
.home-quick-tools button > span { font-size: .75rem; }
.home-feed-tab {
  position: relative;
  min-height: 44px;
  flex: 0 0 auto;
  color: #56647a;
  padding-inline: 1px;
  font-weight: 570;
  font-size: .8125rem;
}
.home-feed-tab:hover, .home-feed-tab[aria-pressed="true"] { color: #19263e; }
.home-feed-tab[aria-pressed="true"] { font-weight: 780; }
.home-feed-tab[aria-pressed="true"]::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 3px;
  bottom: 4px;
  left: calc(50% - 8px);
  border-radius: 999px;
  background: #1cbae5;
}

.frame-navigation {
  position: relative;
  z-index: 14;
  flex: 0 0 auto;
  min-height: 67px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
  padding: 2px 10px calc(4px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 97%);
  border-top: 1px solid #e8eff8;
}
.nav-btn {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 11px;
  color: #596b83;
  font-size: .75rem;
  font-weight: 610;
}
.nav-btn[aria-current="page"] { color: #164b79; font-weight: 790; }
.nav-btn:hover { background: #eff7ff; }
.frame-ask-wrap { display: grid; justify-items: center; transform: translateY(-9px); }
.frame-ask-button {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #1da3d6, #17b3d2);
  box-shadow: 0 5px 16px rgb(32 168 224 / 33%);
}
.frame-ask-button[aria-current="page"] { background: linear-gradient(145deg, #007ea9, #3176cd); }
.frame-ask-button > span { font-size: 1.15rem; font-weight: 820; }
.frame-home-indicator { display: none; }
#app > [role="dialog"] { z-index: 40; }
#app > [role="dialog"] > div { max-height: 92%; background: #fff; }
#app > [role="dialog"] [aria-label="关闭"] { width: 44px; height: 44px; }
#app > [role="dialog"] #search-input { min-height: 44px; font-size: 1rem; }
#toast { top: 55px; max-width: calc(100% - 24px); white-space: normal; text-align: center; }

@media (min-width: 480px) {
  .frame-island { display: block; }
  .frame-navigation { padding-bottom: 13px; min-height: 78px; }
  .frame-home-indicator {
    display: block;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 102px;
    background: #273248;
    border-radius: 999px;
  }
  #toast { position: absolute; }
}

@media (max-width: 479px) {
  .frame-header {
    flex-basis: calc(46px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
}

@media (max-width: 355px) {
  .home-view { padding-inline: 11px; }
  .home-status { padding-inline: 10px; }
  .home-status-metrics { gap: 6px; }
  .home-status-metrics > div:last-child { gap: 7px; }
  .home-status-metrics #hero-score { font-size: 28px; }
  .home-status-metrics #hero-subtitle { font-size: 11px; }
  .home-quick-tools { column-gap: 4px; }
  .home-quick-tools button > span { font-size: .71875rem; }
}
