/*
 * SWAG brand system — 2026 refresh
 *
 * Direction: restrained technical navy, cyan/violet used as a signature rather
 * than as a surface fill. The system follows the Impeccable design guidance:
 * fewer nested cards, tinted neutrals, purposeful motion, stronger typography,
 * and deliberate spacing instead of generic neon/glass SaaS styling.
 */

:root {
  color-scheme: dark;
  --swag-ink: #06101c;
  --swag-ink-2: #081522;
  --swag-surface: #0b1827;
  --swag-surface-raised: #0e1d2e;
  --swag-surface-soft: #102033;
  --swag-border: #1a2c41;
  --swag-border-strong: #28415d;
  --swag-text: #eef7ff;
  --swag-muted: #9aacbe;
  --swag-faint: #71859a;
  --swag-cyan: #21d7f3;
  --swag-blue: #3b9cff;
  --swag-violet: #8a66ff;
  --swag-focus: rgba(64, 189, 255, .34);
  --swag-nav-safe: 96px;
  --swag-notif-top: 98px;

  --bg-primary: var(--swag-surface);
  --bg-secondary: var(--swag-surface);
  --bg-tertiary: var(--swag-ink);
  --bg-floating: var(--swag-surface-raised);
  --bg-input: #091522;
  --bg-modifier-hover: rgba(120, 174, 219, .08);
  --bg-modifier-selected: rgba(120, 174, 219, .13);
  --text-normal: var(--swag-text);
  --text-muted: var(--swag-muted);
  --text-faint: var(--swag-faint);
  --header-primary: #f7fbff;
  --text-link: #65dff4;
  --brand: var(--swag-cyan);
  --brand-hover: #58e4f8;
  --brand-subtle: rgba(33, 215, 243, .10);
  --border: var(--swag-border-strong);
  --border-subtle: var(--swag-border);
  --surface: var(--swag-surface);
  --surface-2: var(--swag-surface-raised);
  --input: var(--bg-input);
  --accent: var(--swag-cyan);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --font-body: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.22, .72, .2, 1);
  --ease-spring: var(--ease);
  --motion-fast: 120ms;
  --motion-normal: 170ms;
  --motion-slow: 220ms;
  --glass-bg: rgba(8, 21, 34, .96);
  --glass-bg-strong: rgba(8, 21, 34, .985);
  --glass-border: var(--swag-border);
  --shadow-sm: 0 8px 22px rgba(0, 5, 12, .16);
  --shadow-md: 0 16px 40px rgba(0, 5, 12, .22);
  --shadow-lg: 0 22px 58px rgba(0, 5, 12, .28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --swag-ink: #eef5fb;
  --swag-ink-2: #e7f0f8;
  --swag-surface: #f8fbfd;
  --swag-surface-raised: #ffffff;
  --swag-surface-soft: #f0f6fa;
  --swag-border: #cfdee9;
  --swag-border-strong: #b9cedd;
  --swag-text: #102033;
  --swag-muted: #526b80;
  --swag-faint: #748a9c;
  --bg-input: #ffffff;
  --header-primary: #0a1b2b;
  --brand: #087fa4;
  --brand-hover: #056f91;
  --brand-subtle: rgba(8, 127, 164, .10);
  --text-link: #087fa4;
  --glass-bg: rgba(248, 251, 253, .97);
  --glass-bg-strong: rgba(255,255,255,.99);
  --shadow-sm: 0 8px 22px rgba(34, 63, 84, .08);
  --shadow-md: 0 16px 38px rgba(34, 63, 84, .12);
}

html {
  background: var(--swag-ink);
  scroll-padding-top: calc(var(--swag-nav-safe) + env(safe-area-inset-top));
}

body {
  background: var(--swag-ink);
  color: var(--swag-text);
  letter-spacing: -.008em;
}

/* Static technical field: no floating particles or perpetual glow animation. */
#swag-ambient {
  background:
    linear-gradient(rgba(74, 118, 153, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 118, 153, .035) 1px, transparent 1px),
    radial-gradient(62rem 34rem at -14% 8%, rgba(33, 215, 243, .055), transparent 62%),
    radial-gradient(54rem 30rem at 112% 86%, rgba(138, 102, 255, .045), transparent 64%),
    var(--swag-ink);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}
#swag-ambient::before {
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 22%, rgba(0, 5, 12, .11));
}
#swag-dot-field { display: none !important; }

/* The logo gradient is the brand signature. Avoid repeating the gradient on
   every card/button — it stays special and recognisable. */
.brand-mark,
.site-loader-logo {
  object-fit: cover;
  border-radius: 9px;
  background: #071321;
}

/* Navigation: solid, precise, and in-flow. */
.nav-shell,
body.scrolled .nav-shell {
  position: sticky !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  z-index: 3000 !important;
  width: min(1216px, calc(100% - 28px));
  margin: 10px auto 0;
  padding: 0 18px;
  border: 1px solid var(--swag-border);
  border-radius: 14px;
  background: var(--glass-bg-strong);
  box-shadow: 0 8px 26px rgba(0,5,12,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-shell::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--swag-cyan), rgba(59,156,255,.5) 38%, var(--swag-violet) 72%, transparent 96%);
  opacity: .65;
  pointer-events: none;
}
.nav, body.scrolled .nav-shell .nav {
  min-height: 62px;
  padding: 9px 0;
}
.nav .brand { gap: 10px; font-size: .83rem; letter-spacing: .13em; font-weight: 760; }
.nav .brand-mark { width: 36px; height: 36px; }
.swag-brand-copy { display: grid; gap: 1px; line-height: 1; }
.swag-brand-copy strong { color: var(--header-primary); font-size: .82rem; letter-spacing: .16em; }
.swag-brand-copy small { color: var(--swag-faint); font-size: .56rem; letter-spacing: .12em; font-weight: 700; }
.nav .links { gap: 4px; }
.nav .links > a:not(.btn) { padding: 8px 10px; border-radius: 8px; font-size: .8rem; font-weight: 620; }
.user-chip, .theme-toggle { border-radius: 8px; }
.account-menu-panel {
  border-radius: 12px;
  background: var(--swag-surface-raised);
  border-color: var(--swag-border-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Notifications must never live behind the sticky navigation. */
.notif-stack {
  top: var(--swag-notif-top) !important;
  z-index: 6000 !important;
  width: min(440px, calc(100vw - 28px));
}
.notif {
  width: 100%;
  max-width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--swag-border-strong);
  border-radius: 10px;
  background: var(--swag-surface-raised);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  transition: transform var(--motion-normal) var(--ease), opacity var(--motion-normal) var(--ease);
}
.notif.show { transform: translateY(0); }
.notif.closing { transform: translateY(-8px); transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease); }
.notif.success { border-color: rgba(85, 214, 146, .52); }
.notif.error { border-color: rgba(255, 105, 111, .56); }
.notif.info { border-color: rgba(33, 215, 243, .42); }
.toast { z-index: 6000; }
.alert, [id="notice"], [id$="-notice"], [id*="notice-"] { scroll-margin-top: calc(var(--swag-nav-safe) + 18px); }

/* Core type hierarchy. */
h1, h2, h3, h4 { letter-spacing: -.026em; }
h1 { font-weight: 760; }
h2, h3 { font-weight: 700; }
p { text-wrap: pretty; }
label {
  color: var(--swag-muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

/* Inputs: quiet surfaces, visible focus, consistent height. */
input, textarea, select, .cdd-trigger {
  border-color: var(--swag-border) !important;
  background: var(--bg-input) !important;
  color: var(--swag-text) !important;
  border-radius: 8px !important;
}
input:focus, textarea:focus, select:focus, .cdd-trigger:focus-visible {
  border-color: rgba(33, 215, 243, .72) !important;
  box-shadow: 0 0 0 3px var(--swag-focus) !important;
  outline: none !important;
}

/* Buttons: solid state colors instead of glossy gradients. */
.btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--swag-border);
  box-shadow: none;
  font-weight: 680;
  letter-spacing: -.006em;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: none; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-primary {
  background: var(--swag-cyan);
  border-color: var(--swag-cyan);
  color: #04121b;
  box-shadow: none;
}
.btn-primary:hover:not(:disabled) { background: #55e4f7; border-color: #55e4f7; }
.btn-ghost { background: transparent; border-color: var(--swag-border-strong); color: var(--swag-text); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-modifier-hover); border-color: #34516f; }
.btn-danger { background: #ad3543; border-color: #c04755; color: #fff; }

/* Reduce card-in-card feel. Surfaces are flat; structure comes from spacing and
   dividers rather than gradients, blur, and large glows. */
.card,
.empty-state,
.workflow-item,
.question-card,
.command-item,
.mini-row,
.server-card,
.module-card,
.owner-server-control-card,
.owner-join-card {
  background: var(--swag-surface) !important;
  border-color: var(--swag-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.card { border-radius: 12px; }
.card h2, .card h3 { letter-spacing: -.024em; }
.subcard { background: rgba(255,255,255,.016) !important; border-color: var(--swag-border) !important; }

/* Server workspace header behaves like a page header, not another card. */
.dash-header {
  position: relative;
  margin: 24px 0 18px;
  padding: 26px 0 22px;
  border: 0;
  border-bottom: 1px solid var(--swag-border);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.dash-header::after {
  content: "";
  left: 0;
  right: auto;
  top: auto;
  bottom: -1px;
  width: 124px;
  height: 2px;
  background: linear-gradient(90deg, var(--swag-cyan), var(--swag-violet));
  opacity: 1;
}
.dash-header-kicker,
.server-library-kicker,
.dashboard-module-kicker,
.developer-kicker,
.developer-card-eyebrow,
.team-card-kicker {
  color: #6fdcef !important;
  font-size: .64rem !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
}
.dash-header h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.dash-header .icon-md, .dash-header .icon-md-fallback {
  border-radius: 10px;
  border: 1px solid var(--swag-border-strong);
  box-shadow: none;
}
.badge { border-radius: 6px; }

/* Tabs stay compact and don't become a card containing more cards. */
.tabs {
  padding: 0;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid var(--swag-border);
  border-radius: 0;
  background: transparent;
}
.tab-btn {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}
.tab-btn:hover { background: transparent; color: var(--swag-text); }
.tab-btn.active {
  color: var(--swag-text);
  border-color: var(--swag-cyan);
  background: transparent;
  box-shadow: none;
}

/* Server selector: editorial rows with breathing room. */
.server-library-head { margin-top: 28px; }
.server-browser-toolbar {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--swag-border) !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.server-grid { gap: 8px !important; }
.server-card {
  min-height: 82px;
  border-radius: 10px !important;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease) !important;
}
.server-card:hover {
  transform: none !important;
  border-color: #34516f !important;
  background: var(--swag-surface-raised) !important;
}
.server-card-arrow { color: var(--swag-cyan) !important; }

/* Module grid: restrained catalogue rather than a wall of glowing app tiles. */
.module-grid { gap: 8px !important; }
.module-card {
  position: relative;
  border-radius: 10px !important;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease) !important;
}
.module-card:hover {
  transform: none !important;
  border-color: #34516f !important;
  background: var(--swag-surface-raised) !important;
}
.module-card .module-icon {
  width: 11px;
  height: 11px;
  margin: 1px 0 14px;
  border: 0;
  border-radius: 3px;
  background: var(--swag-cyan);
}
.module-card .module-icon::before { display: none; }
.module-card:nth-child(3n+2) .module-icon { background: var(--swag-blue); }
.module-card:nth-child(3n+3) .module-icon { background: var(--swag-violet); }
.module-card .module-desc { min-height: 40px; }
.module-card .module-open-btn,
.module-card .module-edit-btn { background: transparent; border-color: var(--swag-border); }
.module-card .module-open-btn span,
.module-card .module-edit-btn span { color: var(--swag-cyan); }

/* Landing page follows the logo: dark technical canvas, large signature mark,
   restrained cyan/violet details rather than luminous product-card gradients. */
.swag-landing { padding-bottom: 72px; }
.swag-hero {
  min-height: 640px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(32px, 6vw, 82px);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--swag-border);
}
.swag-hero .kicker { color: var(--swag-cyan); font-size: .7rem; letter-spacing: .16em; }
.swag-hero h1 { max-width: 700px; font-size: clamp(3rem, 6.2vw, 5.6rem); letter-spacing: -.065em; }
.swag-hero .lead { max-width: 610px; color: var(--swag-muted); }
.swag-hero-notes { color: var(--swag-faint); }
.swag-hero-notes span::before { width: 5px; height: 1px; border-radius: 0; background: var(--swag-cyan); }
.swag-hero-mark { position: relative; min-height: 420px; }
.swag-hero-mark::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid var(--swag-border);
  border-radius: 50%;
  opacity: .42;
}
.swag-hero-mark::after {
  content: "SWAG / SECURITY CONTROL";
  position: absolute;
  right: 4%;
  bottom: 9%;
  color: var(--swag-faint);
  font: 700 .58rem/1 var(--font-mono);
  letter-spacing: .14em;
}
.swag-hero-mark img {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: normal;
}
.swag-section { padding-top: 66px; }
.swag-section-head { border-bottom: 1px solid var(--swag-border); padding-bottom: 20px; }
.swag-section .eyebrow { color: var(--swag-cyan); }
.swag-module-grid {
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid var(--swag-border);
  border-radius: 0;
  background: transparent;
}
.swag-module-card { min-height: 184px; background: transparent; border-color: var(--swag-border); }
.swag-module-card h3::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--swag-cyan);
}
.swag-module-card:nth-child(2) h3::before { background: var(--swag-blue); }
.swag-module-card:nth-child(3) h3::before { background: var(--swag-violet); }
.swag-module-card:nth-child(4) h3::before { background: #5fb9ff; }
.swag-workflow { border-color: var(--swag-border); }
.swag-workflow > div { border-color: var(--swag-border); }
.swag-workflow span { color: var(--swag-cyan); }
.swag-cta {
  border-radius: 12px;
  border-color: var(--swag-border);
  background: var(--swag-surface);
}

/* Hero/management surfaces created by older modules lose the generic purple
   glass wash. Keep layout, replace only the material language. */
.developer-hero,
.server-pro-hero,
.team-safety-card,
.team-command-card {
  background: var(--swag-surface) !important;
  border-color: var(--swag-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.developer-hero,
.server-pro-hero { border-radius: 14px !important; }

/* Tables and code are technical, not decorative. */
table { border-color: var(--swag-border) !important; }
th { background: #0a1725 !important; color: var(--swag-muted) !important; }
td, th { border-color: var(--swag-border) !important; }
code, pre { background: #07131f !important; border-color: var(--swag-border) !important; }

/* Accessible focus system. */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--swag-cyan);
  outline-offset: 3px;
}

/* Mobile: sticky nav remains compact and notifications still clear it. */
@media (max-width: 760px) {
  :root { --swag-nav-safe: 114px; }
  .nav-shell { width: calc(100% - 18px); padding: 0 10px; }
  .nav { min-height: 58px; flex-wrap: wrap; gap: 6px; }
  .nav .links { gap: 2px; }
  .nav .links > a:not(.btn) { padding: 7px 8px; }
  .swag-brand-copy small { display: none; }
  .notif-stack { top: var(--swag-notif-top) !important; }
  .swag-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .swag-hero-mark { order: -1; min-height: 0; }
  .swag-hero-mark::before, .swag-hero-mark::after { display: none; }
  .swag-hero-mark img { width: min(72vw, 360px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover:not(:disabled) { transform: none; }
}

/* --------------------------------------------------------------------------
   SWAG 3.16.7 motion layer
   Calm motion: constant technical grid drift, local pointer response, and
   short page/panel transitions. No floating particles, bounce, or glow spam.
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: auto;
  overscroll-behavior-y: auto;
  --swag-native-scroll-offset: 0px;
}


/* Native-scroll polish: the browser owns the real scroll position. We only
   offset top-level content by a few pixels after each native scroll frame and
   release it immediately. Individual `translate` preserves existing transform
   animations on cards/panels. */
.swag-native-scroll-surface {
  translate: 0 var(--swag-native-scroll-offset);
  will-change: translate;
}

/* The exact supplied S uses a new filename so browser/CDN caches cannot keep
   serving the previous mark after an upgrade. */
.brand-mark,
.site-loader-logo,
.swag-hero-mark img {
  object-fit: contain !important;
  object-position: center !important;
}
.brand-mark,
.site-loader-logo {
  background: #071321 !important;
}

/* Page enter/exit motion. The boot class is attached in <head> before CSS is
   requested, preventing a one-frame flash before the transition begins. */
html.swag-booting body {
  opacity: 0;
  transform: translate3d(0, 7px, 0) scale(.9985);
}
html.swag-ready body {
  opacity: 1;
  transform: none;
  transition:
    opacity 240ms cubic-bezier(.2, .72, .22, 1),
    transform 300ms cubic-bezier(.2, .72, .22, 1);
}
body.page-leaving {
  opacity: 0 !important;
  transform: translate3d(0, -5px, 0) scale(.999) !important;
  transition:
    opacity 130ms cubic-bezier(.4, 0, .8, .2),
    transform 150ms cubic-bezier(.4, 0, .8, .2) !important;
}

/* Panels appear as a continuation of the page rather than a hard replace. */
.tab-panel.active:not([hidden]),
.module-panel:not([hidden]),
[data-swag-panel-enter="true"] {
  animation: swagPanelEnter 210ms cubic-bezier(.2, .72, .22, 1) both;
}
@keyframes swagPanelEnter {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: none; }
}

/* Infinite square field. One cell travels exactly one cell down/right, so the
   loop is seamless. A second copy of the grid is masked around the pointer to
   make nearby squares wake up without turning the whole background neon. */
#swag-ambient {
  --swag-grid-size: 36px;
  --swag-pointer-x: 50vw;
  --swag-pointer-y: 35vh;
  --swag-pointer-opacity: 0;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background:
    radial-gradient(68rem 38rem at -12% 3%, rgba(33, 215, 243, .055), transparent 62%),
    radial-gradient(58rem 34rem at 111% 91%, rgba(138, 102, 255, .05), transparent 64%),
    var(--swag-ink) !important;
}
#swag-ambient::before,
#swag-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(88, 148, 192, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 148, 192, .052) 1px, transparent 1px);
  background-size: var(--swag-grid-size) var(--swag-grid-size);
  background-position: 0 0, 0 0;
  animation: swagGridDrift 7.2s linear infinite;
  will-change: background-position;
}
#swag-ambient::before {
  opacity: .72;
}
#swag-ambient::after {
  background-image:
    linear-gradient(rgba(33, 215, 243, .32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 102, 255, .28) 1px, transparent 1px);
  opacity: var(--swag-pointer-opacity);
  -webkit-mask-image: radial-gradient(circle 190px at var(--swag-pointer-x) var(--swag-pointer-y), #000 0, rgba(0,0,0,.82) 34%, transparent 76%);
  mask-image: radial-gradient(circle 190px at var(--swag-pointer-x) var(--swag-pointer-y), #000 0, rgba(0,0,0,.82) 34%, transparent 76%);
  transition: opacity 180ms ease;
}
@keyframes swagGridDrift {
  to {
    background-position:
      var(--swag-grid-size) var(--swag-grid-size),
      var(--swag-grid-size) var(--swag-grid-size);
  }
}

/* Hover feedback is a quiet edge-light, not a generic neon lift. */
.module-card,
.server-card,
.card,
.workflow-item,
.command-item {
  position: relative;
}
.module-card:hover,
.server-card:hover,
.card:hover,
.workflow-item:hover,
.command-item:hover {
  border-color: rgba(76, 148, 196, .58) !important;
}
.module-card:hover::after,
.server-card:hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(33, 215, 243, .16);
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 22px rgba(33, 215, 243, .025);
}

/* Keep scrollbars aligned with the technical palette. */
html { scrollbar-color: #2b516b #07131f; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #07131f; }
::-webkit-scrollbar-thumb {
  background: #2b516b;
  border: 3px solid #07131f;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #39708f; }

:root[data-theme="light"] #swag-ambient {
  background:
    radial-gradient(68rem 38rem at -12% 3%, rgba(8, 127, 164, .07), transparent 62%),
    radial-gradient(58rem 34rem at 111% 91%, rgba(110, 90, 210, .05), transparent 64%),
    var(--swag-ink) !important;
}
:root[data-theme="light"] #swag-ambient::before {
  background-image:
    linear-gradient(rgba(56, 102, 133, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 102, 133, .075) 1px, transparent 1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; --swag-native-scroll-offset: 0px; }
  .swag-native-scroll-surface { translate: none !important; will-change: auto; }
  html.swag-booting body,
  html.swag-ready body,
  body.page-leaving { opacity: 1 !important; transform: none !important; transition: none !important; }
  #swag-ambient::before,
  #swag-ambient::after { animation: none !important; background-position: 0 0 !important; }
  .tab-panel.active:not([hidden]),
  .module-panel:not([hidden]),
  [data-swag-panel-enter="true"] { animation: none !important; }
}

/* Developers — role-grouped directory --------------------------------------
   Keep the public roster readable: one person per row, grouped by role. */
.developer-role-directory {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}
.developer-role-group {
  overflow: hidden;
  border: 1px solid var(--border, rgba(91, 126, 151, .28));
  border-radius: 18px;
  background: rgba(6, 17, 29, .68);
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
}
.developer-role-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(91, 126, 151, .18);
  background: linear-gradient(90deg, rgba(33, 215, 243, .055), transparent 42%, rgba(138, 102, 255, .035));
}
.developer-role-group-kicker {
  display: block;
  margin-bottom: 4px;
  color: #6d91a8;
  font-size: .61rem;
  font-weight: 760;
  letter-spacing: .15em;
}
.developer-role-group-head h2 {
  margin: 0;
  color: var(--header-primary, #f4f8fb);
  font-size: 1.02rem;
  font-weight: 690;
  letter-spacing: -.018em;
}
.developer-role-group-count {
  flex: none;
  padding: 5px 9px;
  border: 1px solid rgba(71, 139, 182, .27);
  border-radius: 999px;
  color: #89a8bb;
  background: rgba(17, 38, 54, .52);
  font-size: .66rem;
  font-weight: 670;
}
.developer-role-members { display: grid; }
.developer-profile-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(175px, .72fr) minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(91, 126, 151, .13);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.developer-profile-row:last-child { border-bottom: 0; }
.developer-profile-row:hover { background: rgba(33, 215, 243, .028); }
.developer-profile-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.developer-avatar-row {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.developer-profile-identity-row { min-width: 0; }
.developer-profile-identity-row h3 {
  overflow: hidden;
  margin: 0;
  color: var(--header-primary, #f4f8fb);
  font-size: .91rem;
  font-weight: 690;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.developer-profile-identity-row p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #7896a9;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.developer-profile-status {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.developer-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.developer-profile-link {
  flex: none;
  color: #63cfe8;
  font-size: .7rem;
  font-weight: 680;
  white-space: nowrap;
}
.developer-profile-link:hover { color: #a9eaf7; }
.developer-profile-editor-row {
  flex: 1 1 auto;
  max-width: 320px;
}
.developer-profile-editor-row input {
  width: min(150px, 100%);
  background: rgba(6, 17, 29, .78);
}

@media (max-width: 980px) {
  .developer-profile-row {
    grid-template-columns: minmax(210px, 1fr) auto;
  }
  .developer-profile-status { align-items: flex-end; }
  .developer-profile-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-left: 61px;
  }
}
@media (max-width: 680px) {
  .developer-role-group-head { min-height: 68px; padding: 14px 15px; }
  .developer-profile-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 15px;
  }
  .developer-profile-status { align-items: flex-start; padding-left: 61px; }
  .developer-profile-actions {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 61px;
  }
  .developer-profile-editor-row {
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
    justify-content: flex-start !important;
  }
  .developer-profile-editor-row input { flex: 1 1 150px; width: auto; }
}
