body {
  font-family: 'Noto Sans SC', 'Lexend', sans-serif;
  min-height: 100%;
  min-height: 100dvh;
  background-color: #f6f6f8;
  -webkit-tap-highlight-color: transparent;
}
.dark body {
  background-color: #111621;
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ios-switch:checked ~ .ios-switch-bg {
  background-color: #2463eb;
}
.ios-switch:checked ~ .ios-switch-circle {
  transform: translateX(1.25rem);
}
.pie-chart {
  background: conic-gradient(#4f46e5 0% 100%, #e2e8f0 100% 100%);
  border-radius: 50%;
}
.math-text {
  font-family: "Times New Roman", serif;
  font-style: italic;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.slide-in-bottom {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes _sp {
  to { transform: rotate(360deg); }
}
#app-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f8;
  gap: 16px;
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
}
#app-splash-logo {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(36,99,235,0.12);
}
#app-splash-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}
#splash-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2463eb;
  border-radius: 50%;
  animation: _sp .7s linear infinite;
  margin-top: 8px;
}
#splash-text {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}
#splash-text.splash-error {
  color: #ef4444;
}
#splash-reload-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #2463eb;
  color: #fff;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  #app-splash { background: #111621 !important; }
  #app-splash-title { color: #e2e8f0 !important; }
  #splash-text { color: #64748b !important; }
}
