:root {
  color-scheme: dark;

  --avb-bg: #0b1220;
  --avb-bg-soft: #111c2e;
  --avb-surface: #17243a;
  --avb-surface-hover: #1d304d;
  --avb-border: #30425e;
  --avb-text: #f2f6fc;
  --avb-muted: #a8b9d0;
  --avb-accent: #69a9ff;
  --avb-accent-hover: #91c1ff;
  --avb-success: #53d69b;
  --avb-danger: #ff8092;
  --avb-radius: 15px;
  --avb-shadow: 0 14px 35px rgba(0,0,0,.17);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--avb-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--avb-bg) !important;
  color: var(--avb-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  line-height: 1.55;
}

a {
  color: var(--avb-accent);
}

a:hover {
  color: var(--avb-accent-hover);
}

h1, h2, h3 {
  letter-spacing: -.025em;
  line-height: 1.25;
}

.atrium-global-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px clamp(16px, 3vw, 36px);
  background: #101c30;
  border-bottom: 1px solid var(--avb-border);
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
}

.atrium-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.035em;
}

.atrium-global-brand:hover {
  color: #fff;
}

.atrium-global-brand em {
  color: var(--avb-accent);
  font-style: normal;
}

.avb-brand-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4087eb, #78b8ff);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.atrium-global-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.atrium-global-links a,
.atrium-global-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #dce7f7;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.atrium-global-links a:hover,
.atrium-global-links button:hover {
  background: rgba(105,169,255,.12);
  border-color: rgba(105,169,255,.3);
  color: #fff;
}

.atrium-global-links a[aria-current="page"] {
  background: rgba(105,169,255,.17);
  border-color: rgba(105,169,255,.38);
  color: #fff;
}

.atrium-global-links .atrium-logout {
  background: #263c5d;
  border-color: rgba(255,255,255,.1);
}

.atrium-current-user {
  color: var(--avb-muted);
  font-size: 12px !important;
}

[data-avb-permission][hidden],
#avb-admin-card[hidden] {
  display: none !important;
}

.card, .panel, .widget, .tile {
  border-radius: var(--avb-radius);
  box-shadow: var(--avb-shadow);
}

button, .btn, .button,
input[type="submit"] {
  border-radius: 10px !important;
  font-family: inherit;
}

input, select, textarea {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--avb-accent);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .atrium-global-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .atrium-global-links {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .atrium-global-nav {
    padding: 13px;
  }

  .atrium-global-brand {
    font-size: 17px;
  }

  .atrium-global-links {
    gap: 5px;
  }

  .atrium-global-links a,
  .atrium-global-links button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
