/*
 * New API / QuantumNous — M6K Axis Interface
 * Version: 2026.08.13-r4
 * Scope: original presentation, layout and responsive styling only.
 * Contract: no route, event, permission, field, data request or feature is changed.
 * Rollback: restore the injected r3 stylesheet URL in the Nginx site config.
 */

/* ========================================================================== 
   01. Axis design tokens — light
   ========================================================================== */

:root {
  --radius: 0.5rem !important;
  --background: #f2f0e9 !important;
  --foreground: #141719 !important;
  --card: #fffef9 !important;
  --card-foreground: #141719 !important;
  --popover: #fffef9 !important;
  --popover-foreground: #141719 !important;
  --primary: #2146ff !important;
  --primary-foreground: #ffffff !important;
  --secondary: #e5e2d8 !important;
  --secondary-foreground: #1e2326 !important;
  --muted: #e8e5dc !important;
  --muted-foreground: #5d6365 !important;
  --accent: #dff38a !important;
  --accent-foreground: #151a0c !important;
  --destructive: #d93f27 !important;
  --border: #b8b8b1 !important;
  --input: #8c918f !important;
  --ring: #2146ff !important;
  --sidebar: #e9e6dc !important;
  --sidebar-foreground: #232729 !important;
  --sidebar-primary: #2146ff !important;
  --sidebar-primary-foreground: #ffffff !important;
  --sidebar-accent: #dff38a !important;
  --sidebar-accent-foreground: #151a0c !important;
  --sidebar-border: #b1b1aa !important;
  --sidebar-ring: #2146ff !important;
  --table-header: #dedbd1 !important;
  --overview-accent-1: #2146ff !important;
  --overview-accent-2: #008e8a !important;
  --overview-accent-3: #e25536 !important;

  --axis-canvas: #f2f0e9;
  --axis-canvas-2: #e8e5dc;
  --axis-paper: #fffef9;
  --axis-paper-2: #f8f6ef;
  --axis-ink: #141719;
  --axis-ink-2: #33383a;
  --axis-muted: #62686a;
  --axis-line: #b8b8b1;
  --axis-line-strong: #5f6564;
  --axis-blue: #2146ff;
  --axis-blue-2: #1634cc;
  --axis-lime: #c8ef48;
  --axis-lime-soft: #e7f6aa;
  --axis-coral: #ff6748;
  --axis-cyan: #00a6aa;
  --axis-yellow: #f1bd31;
  --axis-code: #111416;
  --axis-code-ink: #eef4ec;
  --axis-header: rgba(255, 254, 249, 0.97);
  --axis-overlay: rgba(20, 23, 25, 0.54);
  --axis-shadow-xs: 0 1px 0 rgba(20, 23, 25, 0.08);
  --axis-shadow-sm: 3px 3px 0 rgba(20, 23, 25, 0.12);
  --axis-shadow-md: 6px 6px 0 rgba(20, 23, 25, 0.14);
  --axis-shadow-blue: 6px 6px 0 #2146ff;
  --axis-radius-xs: 0.25rem;
  --axis-radius-sm: 0.45rem;
  --axis-radius-md: 0.7rem;
  --axis-radius-lg: 1rem;
  --axis-header-height: 3.75rem;
  --axis-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ========================================================================== 
   02. Axis design tokens — dark
   ========================================================================== */

html.dark {
  --background: #0d1011 !important;
  --foreground: #f2f3ed !important;
  --card: #171b1d !important;
  --card-foreground: #f2f3ed !important;
  --popover: #1b2022 !important;
  --popover-foreground: #f2f3ed !important;
  --primary: #86a0ff !important;
  --primary-foreground: #09102f !important;
  --secondary: #262c2e !important;
  --secondary-foreground: #f2f3ed !important;
  --muted: #202628 !important;
  --muted-foreground: #aab0ae !important;
  --accent: #3a4619 !important;
  --accent-foreground: #e8ff9e !important;
  --destructive: #ff765e !important;
  --border: #464e50 !important;
  --input: #697174 !important;
  --ring: #9cafef !important;
  --sidebar: #121617 !important;
  --sidebar-foreground: #d8dcda !important;
  --sidebar-primary: #86a0ff !important;
  --sidebar-primary-foreground: #09102f !important;
  --sidebar-accent: #303b17 !important;
  --sidebar-accent-foreground: #e8ff9e !important;
  --sidebar-border: #3d4547 !important;
  --sidebar-ring: #9cafef !important;
  --table-header: #22282a !important;
  --overview-accent-1: #9cafef !important;
  --overview-accent-2: #55d6cf !important;
  --overview-accent-3: #ff8d72 !important;

  --axis-canvas: #0d1011;
  --axis-canvas-2: #121617;
  --axis-paper: #171b1d;
  --axis-paper-2: #1c2123;
  --axis-ink: #f2f3ed;
  --axis-ink-2: #d1d5d2;
  --axis-muted: #aab0ae;
  --axis-line: #464e50;
  --axis-line-strong: #92999a;
  --axis-blue: #86a0ff;
  --axis-blue-2: #a8b9ff;
  --axis-lime: #c8ef48;
  --axis-lime-soft: #384416;
  --axis-coral: #ff8065;
  --axis-cyan: #55d6cf;
  --axis-yellow: #ffd467;
  --axis-code: #080a0b;
  --axis-code-ink: #eef4ec;
  --axis-header: rgba(13, 16, 17, 0.97);
  --axis-overlay: rgba(0, 0, 0, 0.68);
  --axis-shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.42);
  --axis-shadow-sm: 3px 3px 0 rgba(0, 0, 0, 0.52);
  --axis-shadow-md: 6px 6px 0 rgba(0, 0, 0, 0.58);
  --axis-shadow-blue: 6px 6px 0 #4257b8;
}

/* ========================================================================== 
   03. Canvas, typography, focus and browser baseline
   ========================================================================== */

html {
  min-width: 320px;
  color-scheme: light;
  background: var(--axis-canvas);
  scroll-behavior: smooth;
}

html.dark {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--axis-ink);
  background-color: var(--axis-canvas) !important;
  background-image: radial-gradient(circle at 1px 1px, rgba(72, 79, 79, 0.2) 1px, transparent 0) !important;
  background-size: 22px 22px !important;
  font-family: Inter, "Public Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.dark body {
  background-image: radial-gradient(circle at 1px 1px, rgba(186, 198, 196, 0.12) 1px, transparent 0) !important;
}

body::before {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 5px;
  background: linear-gradient(180deg, var(--axis-blue) 0 34%, var(--axis-lime) 34% 67%, var(--axis-coral) 67% 100%);
  content: "";
  pointer-events: none;
}

::selection {
  color: #101416;
  background: var(--axis-lime);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--axis-line-strong) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--axis-line-strong);
  background-clip: padding-box;
}

a,
button,
input,
select,
textarea,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

:focus-visible {
  outline: 2px solid var(--axis-blue) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--axis-ink);
  font-weight: 760;
  letter-spacing: -0.035em;
}

code,
pre,
kbd,
samp,
.font-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  letter-spacing: -0.02em;
}

hr {
  border-color: var(--axis-line) !important;
}

/* Normalize the previous glass-heavy geometry without touching DOM behavior. */
[class*="rounded-3xl"] { border-radius: var(--axis-radius-lg) !important; }
[class*="rounded-2xl"] { border-radius: var(--axis-radius-md) !important; }
[class*="rounded-xl"] { border-radius: var(--axis-radius-sm) !important; }
[class*="backdrop-blur"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ========================================================================== 
   04. Authenticated application header
   ========================================================================== */

header.sticky {
  --app-header-height: var(--axis-header-height) !important;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--axis-header-height) !important;
  border-bottom: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-header) !important;
  box-shadow: none !important;
}

header.sticky::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--axis-blue) 0 42%, var(--axis-lime) 42% 72%, var(--axis-coral) 72% 100%);
  content: "";
}

header.sticky > div {
  height: 100%;
  gap: 0.45rem !important;
  padding: 3px 0.75rem 0 !important;
}

header.sticky a,
header.sticky button {
  color: var(--axis-ink-2);
}

header.sticky nav a {
  position: relative;
  min-height: 2rem;
  border-radius: var(--axis-radius-xs) !important;
  padding-inline: 0.65rem !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
}

header.sticky nav a:hover {
  color: var(--axis-ink) !important;
  background: var(--axis-lime-soft) !important;
}

header.sticky [data-slot="sidebar-trigger"],
header.sticky [data-slot="button"][class*="size-"] {
  border: 1px solid transparent !important;
  border-radius: var(--axis-radius-xs) !important;
}

header.sticky [data-slot="sidebar-trigger"]:hover,
header.sticky [data-slot="button"][class*="size-"]:hover {
  border-color: var(--axis-line-strong) !important;
  background: var(--axis-paper) !important;
}

header.sticky [data-slot="avatar"] {
  border: 1px solid var(--axis-line-strong);
  border-radius: 50% !important;
}

/* ========================================================================== 
   05. Sidebar and application shell
   ========================================================================== */

[data-slot="sidebar-wrapper"] {
  --sidebar-width: 15.25rem !important;
  --sidebar-width-icon: 3.75rem !important;
  background: var(--axis-canvas) !important;
}

[data-slot="sidebar-gap"] {
  background: var(--axis-canvas) !important;
}

[data-slot="sidebar-container"] {
  top: var(--app-header-height, var(--axis-header-height)) !important;
  height: calc(100vh - var(--app-header-height, var(--axis-header-height))) !important;
  height: calc(100svh - var(--app-header-height, var(--axis-header-height))) !important;
  padding: 0 !important;
}

[data-slot="sidebar-inner"] {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  border-inline-end: 1px solid var(--axis-line-strong) !important;
  border-radius: 0 !important;
  background: var(--sidebar) !important;
  box-shadow: none !important;
}

[data-slot="sidebar-inner"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 4px;
  background: linear-gradient(180deg, var(--axis-blue), var(--axis-blue) 38%, var(--axis-lime) 38%, var(--axis-lime) 68%, var(--axis-coral) 68%);
  content: "";
  pointer-events: none;
}

[dir="rtl"] [data-slot="sidebar-inner"]::before {
  inset: 0 0 0 auto;
}

[dir="rtl"] [data-slot="sidebar-container"] {
  right: 0 !important;
  left: auto !important;
}

[data-slot="sidebar-content"] {
  padding: 0.7rem 0.55rem 1rem 0.75rem !important;
  scrollbar-gutter: stable;
}

[data-slot="sidebar-group"] {
  padding: 0.35rem 0 !important;
}

[data-slot="sidebar-group"] + [data-slot="sidebar-group"] {
  margin-top: 0.4rem;
  padding-top: 0.85rem !important;
  border-top: 1px solid var(--axis-line) !important;
}

[data-slot="sidebar-group-label"] {
  height: auto !important;
  margin: 0 0 0.3rem;
  padding: 0 0.65rem !important;
  color: var(--axis-muted) !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}

[data-slot="sidebar-menu"] {
  gap: 0.16rem !important;
}

[data-slot="sidebar-menu-item"] {
  position: relative;
}

[data-slot="sidebar-menu-button"],
[data-slot="sidebar-menu-item"] > [data-slot="collapsible-trigger"] {
  min-height: 2.35rem;
  border: 1px solid transparent !important;
  border-radius: var(--axis-radius-xs) !important;
  color: var(--axis-muted) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

[data-slot="sidebar-menu-button"]:hover,
[data-slot="sidebar-menu-item"] > [data-slot="collapsible-trigger"]:hover {
  border-color: var(--axis-line) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
}

[data-slot="sidebar-menu-button"][data-active="true"],
[data-slot="sidebar-menu-button"][aria-current="page"] {
  border-color: var(--axis-ink) !important;
  color: #ffffff !important;
  background: var(--axis-blue) !important;
  box-shadow: 3px 3px 0 var(--axis-lime) !important;
  transform: translate(-1px, -1px);
}

html.dark [data-slot="sidebar-menu-button"][data-active="true"],
html.dark [data-slot="sidebar-menu-button"][aria-current="page"] {
  color: #0a102c !important;
}

[data-slot="sidebar-menu-button"] svg,
[data-slot="sidebar-menu-item"] > [data-slot="collapsible-trigger"] svg {
  width: 1rem !important;
  height: 1rem !important;
  stroke-width: 1.7;
}

[data-slot="sidebar-rail"]::after {
  width: 1px !important;
  background: var(--axis-line-strong) !important;
}

[data-slot="sidebar-inset"] {
  min-width: 0;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--axis-canvas) !important;
  box-shadow: none !important;
}

[data-slot="sidebar-inset"] > main,
[data-slot="sidebar-inset"] main {
  min-width: 0;
  background: transparent !important;
}

[data-slot="sidebar-inset"] main > div[class*="overflow-auto"] {
  scrollbar-gutter: stable;
}

main [id="content"],
main#content {
  scroll-margin-top: calc(var(--axis-header-height) + 0.75rem);
}

/* Page title row becomes an editorial masthead. */
[data-slot="sidebar-inset"] main > div:first-child[class*="shrink-0"] {
  position: relative;
  padding-top: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--axis-line);
  background: var(--axis-canvas) !important;
}

[data-slot="sidebar-inset"] main > div:first-child[class*="shrink-0"]::before {
  position: absolute;
  inset: auto 1rem -1px 1rem;
  width: 4.5rem;
  height: 3px;
  background: var(--axis-blue);
  content: "";
}

[data-slot="sidebar-inset"] main > div:first-child h1,
[data-slot="sidebar-inset"] main > div:first-child h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem) !important;
  letter-spacing: -0.04em !important;
}

/* ========================================================================== 
   06. Cards and overview composition
   ========================================================================== */

[data-slot="card"],
[class*="bg-card"][class*="rounded-2xl"][class*="border"],
[class*="overflow-hidden"][class*="rounded-2xl"][class*="border"][class*="shadow-xs"] {
  position: relative;
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-md) !important;
  background: var(--axis-paper) !important;
  box-shadow: var(--axis-shadow-sm) !important;
}

[data-slot="card"]::before,
[class*="bg-card"][class*="rounded-2xl"][class*="border"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 3px;
  border-radius: var(--axis-radius-md) 0 0 var(--axis-radius-md);
  background: var(--axis-blue);
  content: "";
  pointer-events: none;
}

[dir="rtl"] [data-slot="card"]::before,
[dir="rtl"] [class*="bg-card"][class*="rounded-2xl"][class*="border"]::before {
  inset: 0 0 0 auto;
  border-radius: 0 var(--axis-radius-md) var(--axis-radius-md) 0;
}

[data-slot="card-header"] {
  padding: 1rem 1rem 0.75rem !important;
  border-bottom: 1px solid var(--axis-line) !important;
}

[data-slot="card-content"] {
  padding: 1rem !important;
}

[data-slot="card-footer"] {
  padding: 0.75rem 1rem 1rem !important;
  border-top: 1px solid var(--axis-line) !important;
}

[class*="bg-background/75"][class*="rounded-2xl"][class*="border"],
[class*="bg-background/60"][class*="rounded-xl"][class*="border"],
[class*="bg-muted/40"][class*="rounded-xl"] {
  border: 1px solid var(--axis-line) !important;
  border-radius: var(--axis-radius-sm) !important;
  background: var(--axis-paper-2) !important;
  box-shadow: none !important;
}

[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] {
  border-color: var(--axis-line-strong) !important;
  background: var(--axis-code) !important;
  color: var(--axis-code-ink) !important;
}

[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] h1,
[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] h2,
[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] h3,
[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] h4 {
  color: var(--axis-code-ink) !important;
}

[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] [class*="bg-muted/40"],
[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] [class*="bg-foreground/[0.035]"] {
  border-color: #3c4547 !important;
  color: #dce3e0 !important;
  background: #1b2022 !important;
}

[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] .text-muted-foreground,
[class*="bg-background/75"][class*="rounded-2xl"][class*="border"] [class*="text-foreground/"] {
  color: #aeb9b6 !important;
}

/* The onboarding hero receives a bold signal edge, with no DOM reordering. */
[data-slot="sidebar-inset"] main [class*="bg-card"][class*="h-full"][class*="overflow-hidden"] {
  border-width: 1px 1px 1px 4px !important;
  border-left-color: var(--axis-blue) !important;
}

[data-slot="sidebar-inset"] main [class*="bg-card"][class*="h-full"][class*="rounded-2xl"] > [class*="relative"] {
  background-image: linear-gradient(135deg, transparent 0 72%, rgba(33, 70, 255, 0.07) 72% 73%, transparent 73% 100%) !important;
  background-size: 18px 18px !important;
}

html.dark [data-slot="sidebar-inset"] main [class*="bg-card"][class*="h-full"][class*="rounded-2xl"] > [class*="relative"] {
  background-image: linear-gradient(135deg, transparent 0 72%, rgba(134, 160, 255, 0.08) 72% 73%, transparent 73% 100%) !important;
}

[data-slot="sidebar-inset"] main [class*="grid-cols-3"] > [class*="bg-background/60"]:nth-child(1) {
  border-top: 3px solid var(--axis-blue) !important;
}

[data-slot="sidebar-inset"] main [class*="grid-cols-3"] > [class*="bg-background/60"]:nth-child(2) {
  border-top: 3px solid var(--axis-cyan) !important;
}

[data-slot="sidebar-inset"] main [class*="grid-cols-3"] > [class*="bg-background/60"]:nth-child(3) {
  border-top: 3px solid var(--axis-coral) !important;
}

/* ========================================================================== 
   07. Buttons, links and icon controls
   ========================================================================== */

[data-slot="button"] {
  border-radius: var(--axis-radius-sm) !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em;
  box-shadow: none;
}

[data-slot="button"]:not([class*="size-"]):not([class*="h-7"]):not([class*="h-8"]) {
  min-height: 2.45rem;
}

[data-slot="button"][class*="bg-primary"],
button[class*="bg-primary"],
a[class*="bg-primary"] {
  border: 1px solid var(--axis-blue-2) !important;
  color: var(--primary-foreground) !important;
  background: var(--axis-blue) !important;
  box-shadow: 3px 3px 0 var(--axis-lime) !important;
}

[data-slot="button"][class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover,
a[class*="bg-primary"]:hover {
  filter: saturate(1.08);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--axis-lime) !important;
}

[data-slot="button"][class*="bg-primary"]:active,
button[class*="bg-primary"]:active,
a[class*="bg-primary"]:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--axis-lime) !important;
}

[data-slot="button"][class*="border"]:not([class*="bg-primary"]):not([class*="bg-destructive"]),
button[class*="border"]:not([class*="bg-primary"]):not([class*="bg-destructive"]),
a[class*="border"]:not([class*="bg-primary"]):not([class*="bg-destructive"]) {
  border-color: var(--axis-line-strong) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
}

[data-slot="button"][class*="border"]:not([class*="bg-primary"]):hover,
button[class*="border"]:not([class*="bg-primary"]):hover,
a[class*="border"]:not([class*="bg-primary"]):hover {
  border-color: var(--axis-ink) !important;
  background: var(--axis-lime-soft) !important;
}

[data-slot="button"][class*="bg-destructive"],
button[class*="bg-destructive"] {
  border: 1px solid #9d2818 !important;
  color: #ffffff !important;
  background: var(--axis-coral) !important;
  box-shadow: 3px 3px 0 #9d2818 !important;
}

[data-slot="button"][class*="ghost"],
[data-slot="button"][class*="bg-transparent"] {
  box-shadow: none !important;
}

[data-slot="button"]:disabled,
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.46 !important;
  filter: grayscale(0.35);
  box-shadow: none !important;
  transform: none !important;
}

a:not([class*="no-underline"]):hover {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ========================================================================== 
   08. Fields, selectors and form feedback
   ========================================================================== */

[data-slot="input"],
[data-slot="textarea"],
[data-slot="select-trigger"],
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
textarea,
select {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-sm) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
  box-shadow: inset 0 1px 0 rgba(20, 23, 25, 0.04) !important;
}

[data-slot="input"]:hover,
[data-slot="textarea"]:hover,
[data-slot="select-trigger"]:hover,
input:not([type="checkbox"]):not([type="radio"]):hover,
textarea:hover,
select:hover {
  border-color: var(--axis-ink) !important;
}

[data-slot="input"]:focus,
[data-slot="textarea"]:focus,
[data-slot="select-trigger"][data-state="open"],
input:focus,
textarea:focus,
select:focus {
  border-color: var(--axis-blue) !important;
  box-shadow: 0 0 0 3px rgba(33, 70, 255, 0.16) !important;
}

html.dark [data-slot="input"]:focus,
html.dark [data-slot="textarea"]:focus,
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  box-shadow: 0 0 0 3px rgba(134, 160, 255, 0.2) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--axis-muted) !important;
  opacity: 0.72;
}

[data-slot="checkbox"],
[data-slot="radio-group-item"],
[role="checkbox"],
[role="radio"] {
  border-color: var(--axis-line-strong) !important;
}

[data-slot="checkbox"][data-state="checked"],
[data-slot="radio-group-item"][data-state="checked"],
[role="checkbox"][aria-checked="true"],
[role="radio"][aria-checked="true"] {
  border-color: var(--axis-blue) !important;
  color: #ffffff !important;
  background: var(--axis-blue) !important;
}

[data-slot="switch"] {
  border: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-canvas-2) !important;
}

[data-slot="switch"][data-state="checked"] {
  border-color: var(--axis-blue) !important;
  background: var(--axis-blue) !important;
}

[aria-invalid="true"],
[data-invalid="true"] {
  border-color: var(--axis-coral) !important;
}

/* ========================================================================== 
   09. Tabs, badges, status and progress
   ========================================================================== */

[data-slot="tabs-list"] {
  min-height: 2.5rem;
  gap: 0.2rem !important;
  border: 1px solid var(--axis-line) !important;
  border-radius: var(--axis-radius-sm) !important;
  padding: 0.2rem !important;
  background: var(--axis-canvas-2) !important;
}

[data-slot="tabs-trigger"] {
  border: 1px solid transparent !important;
  border-radius: var(--axis-radius-xs) !important;
  color: var(--axis-muted) !important;
  font-weight: 650 !important;
}

[data-slot="tabs-trigger"][data-state="active"] {
  border-color: var(--axis-line-strong) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
  box-shadow: 2px 2px 0 var(--axis-blue) !important;
}

[data-slot="badge"],
[class*="rounded-full"][class*="text-xs"] {
  border: 1px solid currentColor;
  border-radius: 999px !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

[data-slot="progress"] {
  border: 1px solid var(--axis-line) !important;
  border-radius: 0 !important;
  background: var(--axis-canvas-2) !important;
}

[data-slot="progress-indicator"] {
  border-radius: 0 !important;
  background: linear-gradient(90deg, var(--axis-blue), var(--axis-cyan)) !important;
}

/* ========================================================================== 
   10. Tables and dense data regions
   ========================================================================== */

[data-slot="table-container"],
[class*="overflow-auto"][class*="border"][class*="rounded"] {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-sm) !important;
  background: var(--axis-paper) !important;
  box-shadow: var(--axis-shadow-sm);
  scrollbar-gutter: stable;
}

[data-slot="table"] {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: var(--axis-paper) !important;
}

[data-slot="table-header"] {
  background: var(--table-header) !important;
}

[data-slot="table-header"] [data-slot="table-row"] {
  border-bottom: 1px solid var(--axis-line-strong) !important;
}

[data-slot="table-head"] {
  height: 2.75rem !important;
  color: var(--axis-ink-2) !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

[data-slot="table-body"] [data-slot="table-row"] {
  border-bottom: 1px solid var(--axis-line) !important;
  background: var(--axis-paper) !important;
}

[data-slot="table-body"] [data-slot="table-row"]:nth-child(even) {
  background: var(--axis-paper-2) !important;
}

[data-slot="table-body"] [data-slot="table-row"]:hover {
  background: var(--axis-lime-soft) !important;
}

[data-slot="table-cell"] {
  padding-block: 0.75rem !important;
  border-inline-end: 1px solid rgba(128, 133, 132, 0.2);
  color: var(--axis-ink-2);
}

[data-slot="table-cell"]:last-child {
  border-inline-end: 0;
}

[data-slot="table-body"] [data-slot="table-row"] [class*="sticky"] {
  background: inherit !important;
  box-shadow: -1px 0 0 var(--axis-line) !important;
}

[data-slot="table"] a {
  color: var(--axis-blue) !important;
  font-weight: 650;
}

/* ========================================================================== 
   11. Menus, dialogs, sheets, popovers and notifications
   ========================================================================== */

[data-slot="dropdown-menu-content"],
[data-slot="select-content"],
[data-slot="popover-content"],
[data-slot="command"],
[data-slot="context-menu-content"],
[role="menu"],
[role="listbox"] {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-md) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
  box-shadow: var(--axis-shadow-md) !important;
}

[data-slot="dropdown-menu-item"],
[data-slot="select-item"],
[data-slot="command-item"],
[role="menuitem"],
[role="option"] {
  min-height: 2.15rem;
  border-radius: var(--axis-radius-xs) !important;
}

[data-slot="dropdown-menu-item"]:hover,
[data-slot="dropdown-menu-item"][data-highlighted],
[data-slot="select-item"][data-highlighted],
[data-slot="command-item"][data-selected="true"],
[role="menuitem"]:hover,
[role="option"][aria-selected="true"] {
  color: var(--axis-ink) !important;
  background: var(--axis-lime-soft) !important;
}

[data-slot="dialog-overlay"],
[data-slot="sheet-overlay"],
[data-slot="alert-dialog-overlay"] {
  background: var(--axis-overlay) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-slot="dialog-content"],
[data-slot="alert-dialog-content"],
[data-slot="sheet-content"] {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-md) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
  box-shadow: var(--axis-shadow-blue) !important;
}

[data-slot="dialog-header"]:not(.sr-only),
[data-slot="alert-dialog-header"] {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--axis-line);
}

[data-slot="dialog-footer"],
[data-slot="alert-dialog-footer"] {
  padding-top: 0.85rem;
  border-top: 1px solid var(--axis-line);
}

[data-slot="tooltip-content"] {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-xs) !important;
  color: var(--axis-code-ink) !important;
  background: var(--axis-code) !important;
  box-shadow: 2px 2px 0 var(--axis-blue) !important;
}

[data-sonner-toast] {
  border: 1px solid var(--axis-line-strong) !important;
  border-left: 4px solid var(--axis-blue) !important;
  border-radius: var(--axis-radius-sm) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-paper) !important;
  box-shadow: var(--axis-shadow-md) !important;
}

[data-sonner-toast][data-type="error"] {
  border-left-color: var(--axis-coral) !important;
}

[data-sonner-toast][data-type="success"] {
  border-left-color: var(--axis-cyan) !important;
}

/* ========================================================================== 
   12. Charts, empty states, skeletons and separators
   ========================================================================== */

[data-slot="chart-container"] {
  border-radius: var(--axis-radius-sm) !important;
  background-image: linear-gradient(var(--axis-line) 1px, transparent 1px), linear-gradient(90deg, var(--axis-line) 1px, transparent 1px);
  background-size: 36px 36px;
}

[data-slot="separator"] {
  background: var(--axis-line) !important;
}

[data-slot="skeleton"],
.animate-pulse {
  border-radius: var(--axis-radius-xs) !important;
  background: linear-gradient(90deg, var(--axis-canvas-2), var(--axis-paper), var(--axis-canvas-2)) !important;
  background-size: 220% 100% !important;
}

[data-slot="empty"] {
  border: 1px dashed var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-md) !important;
  background: var(--axis-paper-2) !important;
}

[data-slot="empty-header"] {
  color: var(--axis-ink);
}

/* ========================================================================== 
   13. Public header — flat command rail
   ========================================================================== */

header.pointer-events-none.fixed {
  z-index: 50;
  top: 0;
}

header.pointer-events-none.fixed > div {
  width: 100% !important;
  max-width: none !important;
  padding: 3px clamp(0.75rem, 3vw, 2rem) 0 !important;
  border-bottom: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-header) !important;
  box-shadow: none !important;
}

header.pointer-events-none.fixed > div::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--axis-blue) 0 42%, var(--axis-lime) 42% 72%, var(--axis-coral) 72% 100%);
  content: "";
}

header.pointer-events-none.fixed nav {
  position: relative;
  width: 100%;
  max-width: 74rem;
  height: 3.8rem !important;
  margin-inline: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header.pointer-events-none.fixed nav a {
  border: 1px solid transparent;
  border-radius: var(--axis-radius-xs) !important;
  color: var(--axis-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
}

header.pointer-events-none.fixed nav a:hover {
  border-color: var(--axis-line-strong);
  color: var(--axis-ink) !important;
  background: var(--axis-lime-soft) !important;
  text-decoration: none;
}

header.pointer-events-none.fixed nav > div[class*="sm:flex"] {
  background: transparent !important;
}

header.pointer-events-none.fixed nav > div[class*="sm:flex"] > div[class*="w-px"] {
  background: var(--axis-line) !important;
}

header.pointer-events-none.fixed nav button {
  border-radius: var(--axis-radius-xs) !important;
}

/* ========================================================================== 
   14. Public homepage — original Axis composition
   ========================================================================== */

#root > div > header.pointer-events-none.fixed ~ section:first-of-type {
  position: relative;
  min-height: min(780px, 100vh);
  padding: clamp(7.8rem, 12vw, 9rem) clamp(1rem, 3vw, 2rem) clamp(4.5rem, 8vw, 6.5rem) !important;
  border-bottom: 1px solid var(--axis-line-strong);
  background-color: var(--axis-canvas) !important;
  background-image: linear-gradient(90deg, transparent 0 55%, rgba(33, 70, 255, 0.055) 55% 55.1%, transparent 55.1%), radial-gradient(circle at 1px 1px, rgba(74, 81, 80, 0.2) 1px, transparent 0) !important;
  background-size: 100% 100%, 22px 22px !important;
}

html.dark #root > div > header.pointer-events-none.fixed ~ section:first-of-type {
  background-image: linear-gradient(90deg, transparent 0 55%, rgba(134, 160, 255, 0.12) 55% 55.1%, transparent 55.1%), radial-gradient(circle at 1px 1px, rgba(186, 198, 196, 0.12) 1px, transparent 0) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type::before {
  position: absolute;
  top: 6.8rem;
  left: max(1rem, calc((100% - 74rem) / 2));
  width: 5.2rem;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--axis-blue) 0 48%, var(--axis-lime) 48% 76%, var(--axis-coral) 76%);
  content: "";
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type::after {
  position: absolute;
  right: max(1rem, calc((100% - 74rem) / 2));
  bottom: 2rem;
  color: var(--axis-muted);
  content: "API / GATEWAY / 2026";
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div[aria-hidden] {
  display: none !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid {
  width: 100%;
  max-width: 74rem !important;
  align-items: center !important;
  gap: clamp(2.75rem, 6vw, 5.5rem) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child {
  position: relative;
  padding-left: clamp(0rem, 2vw, 1.25rem);
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child::before {
  position: absolute;
  inset: 0 auto 0 -0.25rem;
  width: 1px;
  background: var(--axis-line-strong);
  content: "";
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 {
  max-width: 39rem;
  margin: 0;
  color: var(--axis-ink) !important;
  font-size: clamp(2.2rem, 3.7vw, 3rem) !important;
  line-height: 1.02 !important;
  font-weight: 790 !important;
  letter-spacing: -0.06em !important;
  text-wrap: balance;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 span,
#root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 strong {
  color: var(--axis-blue) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: underline;
  text-decoration-color: var(--axis-lime);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.08em;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 + p {
  max-width: 34rem !important;
  margin-top: 1.5rem !important;
  color: var(--axis-muted) !important;
  font-size: clamp(0.92rem, 1.2vw, 1rem) !important;
  line-height: 1.75 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mb-5"][class*="inline-flex"][class*="rounded-full"] {
  margin-bottom: 1.25rem !important;
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-xs) !important;
  color: var(--axis-ink-2) !important;
  background: var(--axis-paper) !important;
  box-shadow: 3px 3px 0 var(--axis-lime) !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.63rem !important;
  font-weight: 720 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mb-5"][class*="inline-flex"] span[class*="animate-ping"] {
  animation: none !important;
  opacity: 0 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-8"][class*="flex-wrap"] {
  gap: 0.75rem !important;
  margin-top: 1.85rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-8"][class*="flex-wrap"] [data-slot="button"] {
  min-height: 2.75rem;
  border-radius: var(--axis-radius-sm) !important;
  padding-inline: 1.1rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] {
  margin-top: 2.6rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--axis-line);
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child {
  gap: 0.55rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child > * {
  min-height: 2.45rem;
  border: 1px solid var(--axis-line) !important;
  border-radius: var(--axis-radius-xs) !important;
  padding: 0.55rem 0.85rem !important;
  color: var(--axis-ink-2) !important;
  background: var(--axis-paper-2) !important;
  box-shadow: none !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child > *:hover {
  border-color: var(--axis-ink) !important;
  color: var(--axis-ink) !important;
  background: var(--axis-lime-soft) !important;
  transform: translateY(-1px);
}

/* API terminal: a physical, offset developer panel instead of glass. */
#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child > div > div {
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-sm) !important;
  color: var(--axis-code-ink) !important;
  background: var(--axis-code) !important;
  box-shadow: 9px 9px 0 var(--axis-lime) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child > div > div::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--axis-blue) 0 40%, var(--axis-lime) 40% 72%, var(--axis-coral) 72%);
  content: "";
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child button {
  border-radius: 0 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child [class*="border-b"] {
  border-color: #363e41 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child [class*="bg-muted"] {
  background: #0c0f10 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child .text-foreground\/40,
#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child .text-foreground\/30,
#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child .text-foreground\/55,
#root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child .text-foreground\/75 {
  color: #aeb9b6 !important;
}

/* Statistics: one continuous industrial readout. */
#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] {
  position: relative;
  border-block: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-paper) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--axis-blue);
  content: "";
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] > div {
  max-width: 74rem !important;
  padding-block: 1.9rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] {
  gap: 0 !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] > div {
  align-items: flex-start !important;
  padding: 0.4rem clamp(0.7rem, 2vw, 1.5rem);
  border-inline-end: 1px solid var(--axis-line);
  text-align: left !important;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] > div:last-child {
  border-inline-end: 0;
}

#root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="text-2xl"] {
  color: var(--axis-blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  font-weight: 780 !important;
  letter-spacing: -0.07em;
}

/* Feature matrix. */
#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) {
  padding: clamp(4.75rem, 9vw, 7.2rem) clamp(1rem, 3vw, 2rem) !important;
  background: var(--axis-canvas) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) > div {
  max-width: 74rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mb-16"][class*="max-w-lg"] {
  position: relative;
  max-width: 48rem !important;
  margin-bottom: 2.8rem !important;
  padding-left: 1.2rem;
  border-left: 4px solid var(--axis-blue);
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mb-16"] > p:first-child,
#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="mb-16"] > p:first-child {
  color: var(--axis-blue) !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) h2,
#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.055em !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="bg-border/40"][class*="grid"] {
  gap: 1px !important;
  overflow: visible !important;
  border: 1px solid var(--axis-line-strong) !important;
  border-radius: var(--axis-radius-sm) !important;
  background: var(--axis-line-strong) !important;
  box-shadow: var(--axis-shadow-blue) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="bg-border/40"][class*="grid"] > div {
  min-height: 14.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) !important;
  border-radius: 0 !important;
  background: var(--axis-paper) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="bg-border/40"][class*="grid"] > div:hover {
  background: var(--axis-lime-soft) !important;
  transform: translateY(-2px);
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="bg-border/40"][class*="grid"] > div [class*="text-xs"] {
  border-radius: var(--axis-radius-xs) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mt-12"][class*="grid-cols-2"] {
  gap: 0 !important;
  margin-top: 3.5rem !important;
  border-block: 1px solid var(--axis-line);
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mt-12"][class*="grid-cols-2"] > div {
  align-items: flex-start !important;
  padding: 1.5rem !important;
  border-inline-end: 1px solid var(--axis-line);
  text-align: left !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mt-12"][class*="grid-cols-2"] > div:last-child {
  border-inline-end: 0;
}

/* Three-step flow becomes a numbered horizontal specification. */
#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) {
  padding: clamp(4.75rem, 9vw, 7.2rem) clamp(1rem, 3vw, 2rem) !important;
  border-top: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-paper-2) !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) > div {
  max-width: 74rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="mb-16"][class*="text-center"] {
  margin-bottom: 3rem !important;
  text-align: left !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] {
  gap: 1rem !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] > div {
  align-items: flex-start !important;
  min-height: 15rem;
  padding: 1.5rem !important;
  border: 1px solid var(--axis-line-strong);
  border-radius: var(--axis-radius-sm);
  background: var(--axis-paper);
  box-shadow: var(--axis-shadow-sm);
  text-align: left !important;
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] > div::after {
  position: absolute;
  inset: auto 1.5rem 1.5rem auto;
  width: 2rem;
  height: 2rem;
  border-right: 2px solid var(--axis-blue);
  border-bottom: 2px solid var(--axis-blue);
  content: "";
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] > div:nth-child(2) {
  box-shadow: 4px 4px 0 var(--axis-lime);
}

#root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] > div:nth-child(3) {
  box-shadow: 4px 4px 0 var(--axis-coral);
}

/* Footer is a quiet technical ledger. */
#root > div > footer {
  border-top: 1px solid var(--axis-line-strong) !important;
  background: var(--axis-code) !important;
  color: #d6ddda !important;
}

#root > div > footer a,
#root > div > footer p,
#root > div > footer span,
#root > div > footer div {
  color: inherit;
}

#root > div > footer a:hover {
  color: var(--axis-lime) !important;
}

/* ========================================================================== 
   15. Authentication pages — split editorial poster and form
   ========================================================================== */

#root > div[class*="relative"][class*="grid"][class*="h-svh"] {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(28rem, 1.1fr) !important;
  overflow: hidden;
  background: var(--axis-canvas) !important;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 43%;
  border-right: 1px solid var(--axis-line-strong);
  background-color: var(--axis-blue);
  background-image: linear-gradient(rgba(255,255,255,0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"]::after {
  position: absolute;
  left: clamp(2rem, 6vw, 6rem);
  bottom: clamp(2.5rem, 8vh, 6rem);
  z-index: -1;
  max-width: 17rem;
  color: #ffffff;
  content: "ONE GATEWAY\A EVERY MODEL\A CLEAR CONTROL";
  white-space: pre;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94;
  font-weight: 820;
  letter-spacing: -0.065em;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] > a:first-child {
  top: 1.5rem !important;
  left: 1.5rem !important;
  color: #ffffff !important;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] > a:first-child img,
#root > div[class*="relative"][class*="grid"][class*="h-svh"] > a:first-child [class*="rounded-full"] {
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: var(--axis-radius-xs) !important;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] > div[class*="container"] {
  grid-column: 2;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(5rem, 8vw, 7rem) clamp(1rem, 7vw, 7.5rem) 2rem !important;
  background: var(--axis-canvas) !important;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] > div[class*="container"] > div {
  position: relative;
  width: min(100%, 29rem) !important;
  margin-inline: auto !important;
  padding: clamp(1.3rem, 3vw, 2rem) !important;
  border: 1px solid var(--axis-line-strong);
  border-radius: var(--axis-radius-md);
  background: var(--axis-paper);
  box-shadow: var(--axis-shadow-blue);
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] > div[class*="container"] > div::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--axis-radius-md) var(--axis-radius-md) 0 0;
  background: linear-gradient(90deg, var(--axis-blue) 0 48%, var(--axis-lime) 48% 76%, var(--axis-coral) 76%);
  content: "";
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] form {
  gap: 0.9rem;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] input {
  min-height: 2.55rem;
}

#root > div[class*="relative"][class*="grid"][class*="h-svh"] [data-slot="button"][class*="w-full"] {
  min-height: 2.75rem;
}

/* ========================================================================== 
   16. Public secondary pages and rich content
   ========================================================================== */

#root > div:has(> header.pointer-events-none.fixed) > main:not([class*="h-screen"]),
#root > div:has(> header.pointer-events-none.fixed) > div:not([class*="fixed"]):not([class*="absolute"]) {
  color: var(--axis-ink);
}

.custom-home-content,
.prose {
  color: var(--axis-ink-2) !important;
}

.custom-home-content h1,
.custom-home-content h2,
.custom-home-content h3,
.prose h1,
.prose h2,
.prose h3 {
  color: var(--axis-ink) !important;
}

.custom-home-content a,
.prose a {
  color: var(--axis-blue) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.custom-home-content code,
.prose code {
  border: 1px solid var(--axis-line);
  border-radius: var(--axis-radius-xs);
  color: var(--axis-ink);
  background: var(--axis-paper-2);
}

.custom-home-content pre,
.prose pre {
  border: 1px solid var(--axis-line-strong);
  border-radius: var(--axis-radius-sm);
  color: var(--axis-code-ink);
  background: var(--axis-code);
  box-shadow: var(--axis-shadow-sm);
}

/* ========================================================================== 
   17. Responsive layout — desktop, tablet and mobile
   ========================================================================== */

@media (max-width: 1180px) {
  header.sticky nav a {
    padding-inline: 0.45rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid {
    gap: 2.5rem !important;
  }
}

@media (max-width: 1023px) {
  #root > div > header.pointer-events-none.fixed ~ section:first-of-type {
    min-height: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(74, 81, 80, 0.2) 1px, transparent 0) !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child {
    max-width: 43rem;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child {
    justify-content: flex-start !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child > div {
    max-width: 43rem !important;
    margin-inline: 0 !important;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"] {
    grid-template-columns: minmax(15rem, 0.75fr) minmax(25rem, 1.25fr) !important;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"]::after {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}

@media (max-width: 767px) {
  :root {
    --axis-header-height: 3.5rem;
  }

  body::before {
    width: 3px;
  }

  header.sticky > div {
    padding-inline: 0.5rem !important;
  }

  [data-slot="sidebar-container"] {
    padding: 0.5rem !important;
  }

  [data-slot="sidebar-inner"] {
    border: 1px solid var(--axis-line-strong) !important;
    border-radius: var(--axis-radius-md) !important;
    box-shadow: var(--axis-shadow-blue) !important;
  }

  [data-slot="sidebar-inset"] main > div:first-child[class*="shrink-0"] {
    padding: 0.8rem 0.75rem 0.65rem !important;
  }

  [data-slot="sidebar-inset"] main > div[class*="overflow-auto"] {
    padding-inline: 0.75rem !important;
    padding-bottom: 0.8rem !important;
  }

  [data-slot="card-header"],
  [data-slot="card-content"],
  [data-slot="card-footer"] {
    padding-inline: 0.8rem !important;
  }

  header.pointer-events-none.fixed > div {
    padding-inline: 0.8rem !important;
  }

  header.pointer-events-none.fixed nav {
    height: 3.5rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type {
    padding: 6.9rem 1rem 4.2rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type::before {
    top: 5.7rem;
    left: 1rem;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type::after {
    right: 1rem;
    bottom: 1.3rem;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child {
    padding-left: 0.8rem;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 {
    font-size: clamp(2rem, 10vw, 2.55rem) !important;
    line-height: 1.04 !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 + p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-8"][class*="flex-wrap"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-8"][class*="flex-wrap"] [data-slot="button"] {
    width: 100%;
    min-width: 0;
    padding-inline: 0.7rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child > * {
    justify-content: center;
    min-width: 0;
    padding-inline: 0.55rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child > div > div {
    box-shadow: 5px 5px 0 var(--axis-lime) !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child [class*="h-[400px]"] {
    height: 23rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] > div {
    padding: 0.8rem;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] > div:nth-child(2) {
    border-inline-end: 0;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type + div[class*="border-y"] [class*="grid-cols-2"] > div:nth-child(n+3) {
    border-top: 1px solid var(--axis-line);
  }

  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2),
  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) {
    padding: 4.5rem 1rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="bg-border/40"][class*="grid"] > div {
    min-height: 0;
    padding: 1.35rem !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mt-12"][class*="grid-cols-2"] > div:nth-child(2) {
    border-inline-end: 0;
  }

  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(2) [class*="mt-12"][class*="grid-cols-2"] > div:nth-child(n+3) {
    border-top: 1px solid var(--axis-line);
  }

  #root > div > header.pointer-events-none.fixed ~ section:nth-of-type(3) [class*="md:grid-cols-3"] > div {
    min-height: 12rem;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"] {
    display: block !important;
    overflow-y: auto;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"]::before {
    width: 100%;
    height: 5.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--axis-line-strong);
    background-size: 26px 26px;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"]::after {
    display: none;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"] > a:first-child {
    top: 1.4rem !important;
    left: 1rem !important;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"] > div[class*="container"] {
    min-height: 100vh;
    min-height: 100svh;
    padding: 7.3rem 1rem 2rem !important;
    background: transparent !important;
  }

  #root > div[class*="relative"][class*="grid"][class*="h-svh"] > div[class*="container"] > div {
    padding: 1.2rem !important;
    box-shadow: 4px 4px 0 var(--axis-blue) !important;
  }

  [data-slot="table-container"],
  [class*="overflow-auto"][class*="border"][class*="rounded"] {
    max-width: calc(100vw - 1.5rem);
    overflow-x: auto !important;
  }
}

@media (max-width: 430px) {
  #root > div > header.pointer-events-none.fixed ~ section:first-of-type h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.2rem) !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-8"][class*="flex-wrap"] {
    grid-template-columns: minmax(0, 1fr);
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type [class*="mt-10"][class*="max-w-xl"] > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child > div {
    width: calc(100% - 5px) !important;
  }

  #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:last-child [class*="px-5"] {
    padding-inline: 0.75rem !important;
  }

  [data-slot="sidebar-inset"] main [class*="grid-cols-3"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ========================================================================== 
   18. RTL, reduced motion, forced colors and print
   ========================================================================== */

[dir="rtl"] body::before {
  inset: 0 0 0 auto;
}

[dir="rtl"] #root > div > header.pointer-events-none.fixed ~ section:first-of-type::before {
  right: max(1rem, calc((100% - 74rem) / 2));
  left: auto;
}

[dir="rtl"] #root > div > header.pointer-events-none.fixed ~ section:first-of-type::after {
  right: auto;
  left: max(1rem, calc((100% - 74rem) / 2));
}

[dir="rtl"] #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child {
  padding-right: clamp(0rem, 2vw, 1.25rem);
  padding-left: 0;
  text-align: right !important;
}

[dir="rtl"] #root > div > header.pointer-events-none.fixed ~ section:first-of-type > div.mx-auto.grid > div:first-child::before {
  inset: 0 -0.25rem 0 auto;
}

[dir="rtl"] #root > div[class*="relative"][class*="grid"][class*="h-svh"]::before {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid var(--axis-line-strong);
}

[dir="rtl"] #root > div[class*="relative"][class*="grid"][class*="h-svh"]::after {
  right: clamp(2rem, 6vw, 6rem);
  left: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-slot="button"]:hover,
  [role="button"]:hover,
  a:hover {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
  }

  [data-slot="button"],
  [data-slot="card"],
  [data-slot="input"],
  [data-slot="dialog-content"],
  [data-slot="sidebar-inner"] {
    border: 1px solid CanvasText !important;
  }

  :focus-visible {
    outline: 2px solid Highlight !important;
  }
}

@media print {
  body {
    color: #000 !important;
    background: #fff !important;
  }

  body::before,
  header.pointer-events-none.fixed,
  header.sticky,
  [data-slot="sidebar-container"],
  [data-sonner-toaster] {
    display: none !important;
  }

  [data-slot="sidebar-gap"] {
    display: none !important;
  }

  [data-slot="sidebar-inset"] {
    margin: 0 !important;
  }

  [data-slot="card"],
  [class*="bg-card"][class*="border"] {
    break-inside: avoid;
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}
