:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0e1c2e;
  --line: #243a53;
  --text: #f4f8ff;
  --muted: #9db0c7;
  --accent: #48d6c5;
  --danger: #ff778a;
}
html.light {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --line: #1720331a;
  --text: #172033;
  --muted: #667085;
  --accent: #087de0;
  --danger: #c9364f;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top right, #123452, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
}
html.light body {
  background:
    radial-gradient(circle at 12% 0%, #96d9ff99, transparent 38%),
    radial-gradient(circle at 92% 0%, #dfc9ff88, transparent 40%), var(--bg);
}
html.light .card,
html.light .panel {
  background: #ffffffee;
  box-shadow: 0 24px 80px #1e4b7a1a;
}
html.light .tile,
html.light .field input,
html.light .field select {
  background: #f5f8fc;
}
a {
  color: var(--accent);
}
header {
  padding: 24px clamp(20px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.layout {
  width: min(1040px, calc(100% - 32px));
  margin: 5vh auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
}
.layout > *,
.dashboard,
.panel,
.card,
.grid,
.tile,
.site-footer-main > * {
  min-width: 0;
}
.copy h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  margin: 12px 0 20px;
}
.copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.card {
  background: rgba(14, 28, 46, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 80px #0008;
}
.card h2 {
  margin-top: 0;
}
.field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.field span {
  font-size: 14px;
  font-weight: 700;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #091523;
  color: var(--text);
  font: inherit;
}
.button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #03130f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  width: auto;
  padding: 8px 14px;
  min-height: 38px;
}
.message {
  min-height: 24px;
  color: var(--muted);
  margin: 14px 0;
}
.message.error {
  color: var(--danger);
}
.divider {
  text-align: center;
  color: var(--muted);
  margin: 20px 0;
}
.captcha {
  margin: 16px 0;
}
.hidden {
  display: none;
}
.dashboard {
  width: min(1100px, calc(100% - 32px));
  margin: 5vh auto;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.panel + .panel {
  margin-top: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  background: #091523;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.tile h2 {
  font-size: 32px;
  margin: 10px 0;
}
.tile span {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 1vh;
  }
  .copy h1 {
    font-size: 42px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: flex-start;
  }
}

/* Shared landing-page shell for client and administration routes. */
body {
  padding-top: 64px;
}
.landing-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  padding: 0;
  border-bottom: 1px solid #ffffff0d;
  background: #07111f99;
  backdrop-filter: blur(20px);
}
html.light .landing-shell {
  border-color: #17203312;
  background: #ffffff66;
}
.site-nav-inner {
  width: min(1280px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.site-brand-image {
  display: block;
  width: 204px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--text);
  filter: drop-shadow(0 0 18px #38bdf859);
}
html.light .brand-logo-neurix {
  filter: brightness(0) saturate(100%) opacity(0.82);
}
.site-desktop-nav,
.site-nav-actions,
.site-account-nav {
  display: flex;
  align-items: center;
}
.site-desktop-nav {
  gap: 4px;
}
.site-desktop-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.site-desktop-nav a.active {
  color: var(--text);
}
.site-desktop-nav a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.site-desktop-nav a:hover {
  color: var(--text);
}
.site-nav-actions {
  gap: 8px;
}
.site-theme-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 12px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #ffffff0d;
  color: var(--muted);
  font-size: 12px;
}
html.light .site-theme-select {
  border-color: #1720331a;
  background: #ffffff55;
}
.site-theme-select select {
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.site-theme-icon {
  color: var(--text);
  font-size: 16px;
}
.site-theme-chevron {
  position: absolute;
  right: 9px;
  pointer-events: none;
}
.site-project-link,
.site-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}
.site-project-link {
  background: var(--accent);
  color: #03130f;
  font-weight: 700;
  box-shadow: 0 0 36px -10px var(--accent);
}
.site-login-link {
  border: 1px solid #ffffff1a;
  color: var(--text);
}
html.light .site-login-link {
  border-color: #1720331a;
}
.site-account-nav {
  gap: 8px;
}
.site-account-nav .button {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
}
.site-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #ffffff0d;
}
.site-menu-toggle span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: var(--text);
}
.site-mobile-nav {
  position: fixed;
  inset: 64px 0 0;
  padding: 40px 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  overflow-y: auto;
  background: #07111ff5;
  backdrop-filter: blur(24px);
}
.site-mobile-nav:not([hidden]) {
  display: flex;
}
.site-mobile-nav > a:not(.site-project-link) {
  color: var(--text);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.site-menu-open {
  overflow: hidden;
}
.landing-footer {
  position: relative;
  width: 100%;
  margin: 128px 0 0;
  padding: 0;
  display: block;
  border-top: 1px solid #ffffff0d;
  background: var(--bg);
  color: var(--muted);
}
.landing-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #48d6c566, transparent);
}
.site-footer-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 56px;
}
.site-footer-intro > p {
  max-width: 430px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}
.site-support-link {
  display: inline-flex;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #ffffff0d;
  color: var(--text);
  text-decoration: none;
}
.site-footer-main h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-footer-main nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.site-footer-main nav a {
  color: #f4f8ffcc;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.site-footer-connect p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer-connect small {
  margin-left: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.site-footer-bottom {
  width: 100%;
  padding: 22px max(32px, calc((100% - 1216px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #ffffff0d;
  font-size: 12px;
}
.site-footer-bottom p {
  margin: 0;
}
.site-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
@media (max-width: 1100px) {
  .site-desktop-nav,
  .site-theme-select,
  .site-project-link,
  .site-login-link {
    display: none;
  }
  .site-mobile-nav .site-project-link {
    display: inline-flex;
  }
  .site-mobile-nav .site-theme-select {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
  }
  .site-menu-toggle {
    display: block;
  }
  .site-footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .site-footer-connect {
    grid-column: 2;
  }
}
@media (max-width: 720px) {
  .site-nav-inner {
    padding: 0 20px;
  }
  .site-account-nav {
    display: none;
  }
  .site-footer-main {
    padding: 64px 20px;
    grid-template-columns: 1fr 1fr;
    gap: 44px 28px;
  }
  .site-footer-intro {
    grid-column: 1 / -1;
  }
  .site-footer-connect {
    grid-column: auto;
  }
  .site-footer-bottom {
    padding: 22px 20px;
    flex-direction: column;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #091523;
  color: var(--text);
  font: inherit;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
}
fieldset label {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
fieldset input {
  accent-color: var(--accent);
}
small {
  color: var(--muted);
  font-weight: 400;
}
.data-notice {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff08;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.data-notice h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}
.data-notice ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}
.consent a,
.data-notice a {
  color: var(--accent);
}
.admin-auth {
  background:
    radial-gradient(circle at 78% 12%, #123b57 0, transparent 34%),
    radial-gradient(circle at 16% 80%, #102a52 0, transparent 38%), #070b14;
}
.admin-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #0008, transparent);
}
.admin-auth header,
.admin-auth main {
  position: relative;
}
.admin-auth .brand {
  letter-spacing: 0.02em;
}
.admin-auth .copy > p:first-child {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.admin-auth .card {
  backdrop-filter: blur(18px);
  background: #0e1c2ee8;
}
.admin-auth .button {
  background: linear-gradient(135deg, #48d6c5, #28aee8);
}

@media (max-width: 800px) {
}
