html:root,
html:root.dark {
  color-scheme: light;
  --background: 225 40% 98% !important;
  --foreground: 222 61% 17% !important;
  --card: 0 0% 100% !important;
  --card-foreground: 222 61% 17% !important;
  --popover: 0 0% 100% !important;
  --popover-foreground: 222 61% 17% !important;
  --primary: 246 75% 56% !important;
  --primary-foreground: 0 0% 100% !important;
  --secondary: 235 67% 96% !important;
  --secondary-foreground: 236 63% 35% !important;
  --muted: 225 31% 95% !important;
  --muted-foreground: 221 18% 45% !important;
  --accent: 239 64% 95% !important;
  --accent-foreground: 240 61% 38% !important;
  --destructive: 0 72% 51% !important;
  --destructive-foreground: 0 0% 100% !important;
  --border: 225 25% 89% !important;
  --input: 225 25% 86% !important;
  --ring: 246 75% 56% !important;
  --radius: 0.9rem !important;
}

html,
body,
#app,
#global {
  width: 100%;
  min-height: 100%;
  background: #f7f8fc !important;
}

body {
  margin: 0;
  overflow-x: hidden;
}

#global {
  min-height: 100vh;
  color: #14213d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(91, 74, 227, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 32%, rgba(99, 102, 241, 0.07), transparent 32rem),
    #f7f8fc !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-color: rgba(202, 210, 229, 0.72) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 1px 0 rgba(19, 33, 68, 0.03), 0 14px 40px rgba(35, 46, 84, 0.06);
  backdrop-filter: blur(18px) saturate(150%);
}

header .container,
footer .container,
.dashboard-container > .container {
  width: 100%;
  max-width: 1180px !important;
  margin-inline: auto;
  padding-inline: 28px;
}

header .container {
  min-height: 94px;
  padding-block: 18px;
}

header a > div:first-child {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
}

header img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain;
  object-position: left center;
}

header h1 {
  color: #12204a;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

header p {
  margin-top: 2px;
  color: #697593;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

header nav {
  gap: 8px;
}

header nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: #3c4765;
  font-size: 0.875rem;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

header nav a:hover {
  border-color: #dfe3f1;
  color: #4f46d8;
  background: #f6f5ff;
  transform: translateY(-1px);
}

main {
  position: relative;
  isolation: isolate;
  width: 100%;
  flex: 1;
}

main::before {
  position: absolute;
  z-index: -1;
  top: 42px;
  left: 50%;
  width: min(1120px, 90vw);
  height: 320px;
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(91, 74, 227, 0.08), rgba(99, 102, 241, 0.02));
  filter: blur(70px);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.dashboard-container {
  width: 100%;
  max-width: none !important;
  min-height: calc(100vh - 150px);
  padding-bottom: 56px;
  background: transparent !important;
}

.dashboard-container > .container {
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: 16px;
}

main h1 {
  color: #101d42;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

main h1 + p {
  max-width: 680px;
  margin-top: 12px;
  color: #66718d;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
}

main h2 {
  color: #17213e !important;
  font-weight: 740;
  letter-spacing: -0.025em;
}

main h3 {
  color: #818aa1 !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.09em !important;
}

.dashboard-container input,
.dashboard-container button[aria-label="None"],
.dashboard-container button[aria-label="Group"] {
  border-color: #dfe3ee !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 1px 2px rgba(18, 32, 74, 0.03);
}

.dashboard-container input {
  height: 46px;
  border-radius: 13px;
  color: #17213e;
}

.dashboard-container input:focus {
  border-color: #7c72e8 !important;
  box-shadow: 0 0 0 4px rgba(91, 74, 227, 0.10);
}

.dashboard-container .border.rounded-lg:not(.endpoint-group) {
  border-color: rgba(207, 214, 231, 0.86) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 38px rgba(33, 45, 87, 0.055);
  backdrop-filter: blur(12px);
}

.endpoint-group {
  overflow: hidden;
  border: 1px solid rgba(207, 214, 231, 0.92) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(29, 41, 82, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.endpoint-group:hover {
  border-color: rgba(126, 112, 231, 0.42) !important;
  box-shadow: 0 18px 42px rgba(29, 41, 82, 0.105);
  transform: translateY(-2px);
}

.endpoint-group-header {
  min-height: 78px;
  padding: 20px 22px !important;
  border-color: #edf0f6 !important;
  color: #17213e !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 255, 0.98)) !important;
}

.endpoint-group-header:hover {
  background: linear-gradient(135deg, #ffffff, #f4f3ff) !important;
}

.endpoint-group-header h2 {
  color: #17213e !important;
  font-size: 1.04rem;
  font-weight: 720;
}

.endpoint {
  border-color: #edf0f6 !important;
  color: #17213e;
  background: #ffffff !important;
}

.endpoint:hover {
  background: #fafaff !important;
}

.text-green-500,
.text-green-600,
.text-emerald-500,
.text-emerald-600 {
  color: #13a66a !important;
}

.bg-green-500,
.bg-green-600,
.bg-emerald-500,
.bg-emerald-600 {
  background-color: #13a66a !important;
}

.announcement-container {
  overflow: hidden;
  border: 1px solid rgba(207, 214, 231, 0.92) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 28px rgba(29, 41, 82, 0.06);
}

.announcement-header {
  color: #17213e !important;
  background: #fafaff !important;
}

time {
  color: #5b4ae3 !important;
  font-weight: 750;
}

main p.text-sm.leading-relaxed {
  color: #26334f !important;
}

button[aria-label="Refresh interval: 5m"] {
  border: 1px solid rgba(207, 214, 231, 0.92);
  color: #59647f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(29, 41, 82, 0.08);
}

button[aria-label="Switch to light mode"],
button[aria-label="Switch to dark mode"] {
  display: none;
}

footer {
  border-color: rgba(207, 214, 231, 0.75) !important;
  color: #8a93a8;
  background: rgba(255, 255, 255, 0.74);
}

footer a {
  color: #666f84;
}

footer a:hover {
  color: #5b4ae3;
}

@media (max-width: 860px) {
  header {
    position: relative;
  }

  header .container,
  footer .container,
  .dashboard-container > .container {
    padding-inline: 20px;
  }

  header .container {
    min-height: 80px;
  }

  header nav {
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0f6;
    overflow-x: auto;
  }

  header nav a {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .dashboard-container > .container {
    padding-top: 38px;
  }

  .endpoint-group-header {
    min-height: 70px;
    padding: 17px 18px !important;
  }
}

@media (max-width: 540px) {
  header h1 {
    font-size: 1.05rem;
  }

  header p {
    font-size: 0.66rem;
  }

  main h1 {
    font-size: 2.15rem;
  }

  main h1 + p {
    font-size: 0.96rem;
  }

  .dashboard-container {
    padding-bottom: 40px;
  }

  .dashboard-container > .container {
    padding-inline: 16px;
  }

  .endpoint-group {
    border-radius: 16px !important;
  }

  .endpoint-group-header h2 {
    font-size: 0.96rem;
  }
}
