*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{color:inherit; text-decoration:none}
button{font:inherit}
[hidden]{display:none !important}

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.content{
  flex: 1 1 auto;
  padding: calc(var(--space-4) + var(--safe-top)) var(--space-4) calc(var(--space-4) + var(--tabbar-h) + var(--safe-bottom));
}

.page{
  max-width: 460px;
  margin: 0 auto;
}

.sectionTitleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 10px 0 12px;
}

.sectionTitle{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.linkText{
  font-size: 13px;
  color: var(--info);
}

.muted{color: var(--muted)}

.srOnly{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.statePill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.skeleton{
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(15,23,42,.06), rgba(15,23,42,.03), rgba(15,23,42,.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

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

/* Toast */
.toastHost{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  pointer-events:none;
  z-index: 120;
}
.toast{
  max-width: min(460px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
  font-size: 13px;
  font-weight: 900;
  color: rgba(15,23,42,.70);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.toast--in{
  transform: translateY(0);
  opacity: 1;
}
