:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-alt: #0f172a;
  --text: #142033;
  --muted: #59708a;
  --line: #d8e2ee;
  --primary: #0b6bcb;
  --primary-strong: #0a4f96;
  --danger: #c43d4b;
  --success: #1f8f58;
  --warning: #d17b17;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 107, 203, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  font-family: var(--font-geist-sans), sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-loading-shell,
.global-route-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(238, 243, 248, 0.88);
  backdrop-filter: blur(3px);
}

.app-loading-card,
.global-route-loading__card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #d8e2ee;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(20, 32, 51, 0.12);
}

.app-loading-card h2 {
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

.app-loading-card p,
.global-route-loading__card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.app-loading-spinner,
.global-route-loading__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(11, 107, 203, 0.18);
  border-top-color: var(--primary);
  animation: app-spin 0.85s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}
