*{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%}
}
