:root {
  --nx-primary: #1E90FF;
  --nx-primary-hover: #1878D6;
  --nx-primary-ink: #ffffff;
  --nx-secondary: #8EE53F;
  --nx-secondary-ink: #14300a;
  --nx-accent-ink: #2f7a12;
  --nx-accent-1: #87CEFA;
  --nx-bg: #FAFAFA;
  --nx-surface: #FFFFFF;
  --nx-text: #0A0A0A;
  --nx-muted: #737373;
  --nx-border: #E5E5E5;
  --nx-danger: #DC2626;
  --nx-danger-bg: #FEF2F2;
  --nx-success-bg: #F3FBEA;
  --nx-info-bg: #EFF6FF;
  --nx-radius: 10px;
  --nx-radius-lg: 14px;
  --nx-font: "Manrope", "Segoe UI", sans-serif;
  --nx-sidebar-w: 260px;
  --nx-topbar-h: 60px;
  --nx-logo-height: 40px;
  --nx-shadow: 0 10px 30px rgba(10, 10, 10, 0.06);
  --nx-hero: linear-gradient(180deg, #f3f8ff 0%, #f7fbf3 55%, var(--nx-bg) 100%);
}

html[data-theme="dark"] {
  --nx-primary-hover: #3DA0FF;
  --nx-bg: #0A0A0A;
  --nx-surface: #141414;
  --nx-text: #FAFAFA;
  --nx-muted: #A3A3A3;
  --nx-border: #2A2A2A;
  --nx-danger-bg: #3A1515;
  --nx-success-bg: #17240f;
  --nx-info-bg: #102033;
  --nx-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nx-hero: linear-gradient(180deg, #101820 0%, #121812 55%, var(--nx-bg) 100%);
  --nx-accent-ink: #8EE53F;
  --nx-secondary-ink: #102006;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nx-font);
  background: var(--nx-bg);
  color: var(--nx-text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--nx-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--nx-primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--nx-primary); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--nx-primary); color: white;
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip-link:focus { top: 12px; }

.nx-wrap { width: 100%; margin: 0; padding-inline: clamp(20px, 4vw, 72px); }
.nx-header {
  position: sticky; top: 0; z-index: 30;
  min-height: 68px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 32px);
  padding: 0 clamp(20px, 2.5vw, 48px);
  background: var(--nx-surface);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 1px 0 rgba(10,10,10,.04);
}
.nx-header .nx-logo { color: var(--nx-text); font-size: 21px; }
.nx-header .nx-brand-image { width: 29px; height: 29px; flex-basis: 29px; border-radius: 0; }
.nx-header .nx-brand-image img { height: 29px; }
.nx-logo { display: flex; align-items: center; gap: 8px; color: var(--nx-text); text-decoration: none; font-weight: 800; letter-spacing: -0.03em; }
.nx-logo:hover { color: var(--nx-text); }
.nx-brand-lockup { gap: 7px; white-space: nowrap; }
.nx-brand-image { width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 9px; }
.nx-brand-image img { width: auto; max-width: none; height: 32px; }
.nx-brand-context { padding-left: 7px; border-left: 1px solid var(--nx-border); color: var(--nx-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nx-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--nx-primary); color: white; display: grid; place-items: center; font-weight: 800; }
.nx-header .nx-nav { display: flex; align-items: center; justify-content: center; justify-self: center; gap: clamp(10px, 1.35vw, 26px); }
.nx-nav a, .nx-nav summary {
  color: var(--nx-text); text-decoration: none; font-weight: 650; font-size: 14px;
  padding: 8px 10px; border-radius: 999px; cursor: pointer; list-style: none;
}
.nx-header .nx-nav a { padding: 8px 0; color: var(--nx-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nx-header .nx-nav a:hover, .nx-header .nx-nav a[aria-current="page"] { color: var(--nx-secondary); }
.nx-header .nx-nav a[aria-current="page"] { box-shadow: none; border-radius: 0; }
.nx-nav a[aria-current="page"] { color: var(--nx-primary); box-shadow: inset 0 -2px 0 var(--nx-primary); border-radius: 0; }
.nx-nav details { position: relative; }
.nx-nav details summary::-webkit-details-marker { display: none; }
.nx-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow); padding: 8px; display: grid; gap: 2px;
}
.nx-menu a { display: block; border-radius: 8px; }
.nx-search { margin-left: auto; position: relative; flex: 1; max-width: 280px; }
.nx-search input, .nx-field input, .nx-field textarea, .nx-field select {
  width: 100%; background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-radius: 999px; padding: 10px 14px;
}
.nx-field textarea, .nx-field select, .nx-search-page input { border-radius: var(--nx-radius); }
.nx-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--nx-surface);
  border: 1px solid var(--nx-border); border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); padding: 6px;
}
.nx-suggest a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--nx-text); }
.nx-suggest a:hover { background: var(--nx-info-bg); }
.nx-suggest small { display: block; color: var(--nx-muted); }
.nx-header-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.nx-header .nx-header-actions { gap: 16px; }
.nx-header .nx-header-theme { width: 40px; height: 40px; border-color: var(--nx-border); background: var(--nx-surface); color: var(--nx-text); }
.nx-header-signin { color: var(--nx-text); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nx-header-signin:hover { color: var(--nx-secondary); }
.nx-header-host { min-height: 38px; padding: 9px 15px; border-radius: 9px; background: var(--nx-primary); color: #fff; font-size: 13px; white-space: nowrap; }
.nx-header-host:hover { background: var(--nx-primary-hover); color: #fff; }
html[data-theme="dark"] .nx-header {
  background: #090909;
  border-bottom-color: #252525;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .nx-header .nx-logo,
html[data-theme="dark"] .nx-header .nx-nav a,
html[data-theme="dark"] .nx-header-signin { color: #f8f8f8; }
html[data-theme="dark"] .nx-header .nx-header-theme {
  border-color: #2e2e2e;
  background: #111;
  color: #fff;
}
.nx-icon-btn, .nx-btn {
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; font-weight: 750;
}
.nx-icon-btn { width: 38px; height: 38px; background: transparent; color: var(--nx-text); border: 1px solid var(--nx-border); }
.nx-btn { padding: 10px 16px; }
.nx-btn-primary { background: var(--nx-primary); color: var(--nx-primary-ink); }
.nx-btn-primary:hover { background: var(--nx-primary-hover); color: white; }
.nx-btn-lime { background: var(--nx-secondary); color: var(--nx-secondary-ink); }
.nx-btn-lime:hover { filter: brightness(0.97); color: var(--nx-secondary-ink); }
.nx-btn-ghost { background: transparent; color: var(--nx-text); border: 1px solid var(--nx-border); }
.nx-btn-danger { background: var(--nx-danger); color: white; }
.nx-nav-toggle { display: none; }

.nx-hero { background: var(--nx-hero); padding: 42px 0 28px; }
.nx-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.nx-kicker { letter-spacing: 0.14em; font-size: 12px; font-weight: 800; color: var(--nx-muted); margin: 0 0 8px; }
.nx-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 12px; }
.nx-hero h1 span { color: var(--nx-accent-ink); }
.nx-lead { font-size: 18px; max-width: 46ch; color: var(--nx-muted); margin: 0 0 18px; }
.nx-rule { width: 72px; height: 4px; border-radius: 99px; background: var(--nx-accent-ink); border: 0; }
.nx-collage { position: relative; min-height: 280px; }
.nx-collage img { width: 58%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; border: 6px solid var(--nx-surface); box-shadow: var(--nx-shadow); position: absolute; }
.nx-collage img:first-child { left: 0; top: 18px; }
.nx-collage img:last-child { right: 0; bottom: 0; width: 48%; }
.nx-float {
  position: absolute; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--nx-primary); color: white; box-shadow: var(--nx-shadow); font-size: 22px;
}
.nx-float.lime { background: var(--nx-secondary); color: var(--nx-secondary-ink); }
.nx-float.a { right: 18%; top: 0; }
.nx-float.b { left: 42%; bottom: 18px; }
.nx-float.c { right: 0; bottom: 36px; background: var(--nx-surface); color: var(--nx-primary); border: 1px solid var(--nx-border); }

.nx-section { padding: 28px 0 10px; }
.nx-section h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; margin: 0 0 6px; }
.nx-section h2 span { color: var(--nx-accent-ink); }
.nx-grid-4, .nx-grid-3, .nx-grid-2 { display: grid; gap: 16px; }
.nx-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nx-grid-2 { grid-template-columns: 1.4fr 1fr; gap: 22px; }
.nx-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column;
}
a.nx-card:hover { transform: translateY(-2px); color: inherit; }
.nx-card-body { padding: 16px; display: grid; gap: 8px; }
.nx-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.nx-card p { margin: 0; color: var(--nx-muted); }
.nx-media { aspect-ratio: 16/10; background: var(--nx-info-bg); object-fit: cover; width: 100%; }
.nx-icon-badge {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: white; margin-top: -28px;
  border: 3px solid var(--nx-surface); position: relative;
}
.nx-icon-badge.blog { background: #1E90FF; }
.nx-icon-badge.guide { background: #3F8F12; }
.nx-icon-badge.media { background: #0E7490; }
.nx-icon-badge.discover { background: #16A34A; }
.nx-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nx-chip {
  border: 1px solid var(--nx-border); background: var(--nx-surface); color: var(--nx-text);
  border-radius: 999px; padding: 7px 12px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.nx-chip[aria-current="true"], .nx-chip.is-on { background: var(--nx-secondary); color: var(--nx-secondary-ink); border-color: transparent; }
.nx-meta { color: var(--nx-muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.nx-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; background: var(--nx-info-bg); color: var(--nx-primary); }
.nx-pill.lime { background: var(--nx-success-bg); color: var(--nx-accent-ink); }
.nx-pill.warn { background: var(--nx-danger-bg); color: var(--nx-danger); }
.nx-aside {
  background: linear-gradient(180deg, var(--nx-success-bg), var(--nx-surface));
  border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg); padding: 18px;
}
.nx-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.nx-feature { min-height: 100%; }
.nx-list { display: grid; gap: 12px; }
.nx-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.nx-row img, .nx-row .nx-ph { width: 112px; height: 84px; object-fit: cover; border-radius: 12px; }
.nx-ph { background: linear-gradient(135deg, var(--nx-accent-1), var(--nx-secondary)); }

.nx-page-head { padding: 28px 0 8px; }
.nx-page-head h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.045em; margin: 0 0 8px; }
.nx-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .42fr) auto; gap: 12px; align-items: end; margin: 16px 0; padding: 14px; border: 1px solid var(--nx-border); border-radius: 16px; background: var(--nx-surface); box-shadow: 0 6px 18px rgba(18,40,74,.035); }
.nx-filters .nx-field { margin: 0; }
.nx-filters .nx-btn { min-height: 42px; }
.nx-field { display: grid; gap: 6px; min-width: 160px; flex: 1; }
.nx-field label { font-size: 13px; font-weight: 750; }
.nx-help { color: var(--nx-muted); font-size: 13px; }
.nx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
input.nx-search-page {
  width: 100%; background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-radius: 999px; padding: 12px 16px;
}
.nx-error { color: var(--nx-danger); font-size: 13px; margin: 0; }
.nx-alert { border-radius: var(--nx-radius); padding: 12px 14px; margin: 0 0 14px; }
.nx-alert.success { background: var(--nx-success-bg); }
.nx-alert.error { background: var(--nx-danger-bg); color: var(--nx-danger); }
.nx-alert.info { background: var(--nx-info-bg); }
.nx-empty { padding: 28px; text-align: center; border: 1px dashed var(--nx-border); border-radius: var(--nx-radius-lg); background: var(--nx-surface); }
.nx-pager { display: flex; gap: 8px; justify-content: center; padding: 18px 0 32px; }
.nx-pager a, .nx-pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; border: 1px solid var(--nx-border); color: var(--nx-text); }
.nx-pager .is-current { background: var(--nx-primary); color: white; border-color: transparent; }

.nx-article { width: 100%; margin: 0; }
.nx-article .nx-prose { font-size: 18px; }
.nx-prose h2, .nx-prose h3 { letter-spacing: -0.03em; scroll-margin-top: 80px; }
.nx-prose img { border-radius: 12px; }
.nx-hero-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--nx-radius-lg); background: var(--nx-info-bg); }
.nx-crumbs { display: flex; gap: 6px; flex-wrap: wrap; color: var(--nx-muted); font-size: 14px; }
.nx-crumbs a { color: inherit; }
.nx-toc { border-left: 3px solid var(--nx-secondary); padding: 8px 0 8px 14px; margin: 18px 0; }
.nx-toc ol { margin: 8px 0 0; padding-left: 18px; }
.nx-reader { background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg); overflow: hidden; }
.nx-reader iframe { width: 100%; height: min(78vh, 900px); border: 0; background: white; }
.nx-player { background: #0A0A0A; border-radius: var(--nx-radius-lg); overflow: hidden; }
.nx-player video, .nx-player img { width: 100%; max-height: 70vh; object-fit: contain; background: #0A0A0A; }
.nx-player[data-protected-media] { user-select: none; -webkit-user-select: none; }
.nx-audio { display: grid; gap: 10px; padding: 16px; background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg); }
.nx-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nx-gallery button { padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 12px; overflow: hidden; }
.nx-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.82); display: none; place-items: center; z-index: 50; padding: 24px; }
.nx-lightbox.is-open { display: grid; }
.nx-lightbox img { max-width: min(1000px, 100%); max-height: 80vh; border-radius: 12px; }
.nx-lightbox p { color: white; text-align: center; }

.nx-footer { margin-top: 36px; padding: 42px 0 18px; border-top: 1px solid var(--nx-border); background: color-mix(in srgb, var(--nx-surface) 72%, var(--nx-info-bg)); color: var(--nx-muted); }
.nx-footer-grid { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(320px, .9fr); gap: 36px; }
.nx-footer-brand p { max-width: 31rem; margin: 13px 0 0; }
.nx-footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 26px; }
.nx-footer nav { display: grid; align-content: start; gap: 7px; }
.nx-footer a { width: fit-content; color: inherit; text-decoration: none; }
.nx-footer a:hover { color: var(--nx-primary); }
.nx-footer-label { margin: 0 0 3px; color: var(--nx-text); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nx-footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--nx-border); font-size: 12px; }

.auth-shell { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 30px; background: #f4faff; isolation: isolate; }
.auth-shell::before { position: absolute; z-index: -2; inset: 0; background: linear-gradient(132deg, #eaf6ff 0%, #f7fdf1 48%, #f3fbff 100%); content: ""; }
.auth-orb { position: absolute; z-index: -1; width: min(38vw, 480px); aspect-ratio: 1; border-radius: 50%; filter: blur(8px); opacity: .5; }
.auth-orb--blue { top: -21%; right: -8%; background: rgba(30, 144, 255, .36); }
.auth-orb--lime { bottom: -28%; left: -11%; background: rgba(142, 229, 63, .42); }
.auth-frame { display: grid; width: min(100%, 980px); grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); overflow: hidden; border: 1px solid rgba(30, 144, 255, .14); border-radius: 28px; background: var(--nx-surface); box-shadow: 0 30px 80px rgba(18, 40, 74, .18); }
.auth-brand-panel { position: relative; display: flex; min-height: 610px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px; background: linear-gradient(155deg, #126fcd 0%, #1e90ff 54%, #3ba3ff 100%); color: #fff; }
.auth-brand-panel::after { position: absolute; right: -14%; bottom: -25%; width: 72%; aspect-ratio: 1; border: 52px solid rgba(142, 229, 63, .75); border-radius: 50%; content: ""; }
.auth-brand-panel .nx-logo { position: relative; z-index: 1; color: #fff; }
.auth-brand-panel .nx-brand-context { border-color: rgba(255,255,255,.42); color: rgba(255,255,255,.78); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 29rem; margin: auto 0; }
.auth-eyebrow { margin: 0 0 9px; color: var(--nx-primary); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-brand-panel .auth-eyebrow { color: #c9f5a6; }
.auth-brand-copy h1 { max-width: 11ch; margin: 0; font-size: clamp(2.3rem, 4vw, 3.45rem); letter-spacing: -.06em; line-height: 1.03; }
.auth-brand-copy p:last-child { max-width: 28rem; margin: 16px 0 0; color: rgba(255,255,255,.84); font-size: 15px; }
.auth-benefits { position: relative; z-index: 1; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; color: rgba(255,255,255,.94); font-size: 13px; font-weight: 700; }
.auth-benefits li { display: flex; align-items: center; gap: 9px; }
.auth-benefits i { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); color: #c9f5a6; font-size: 16px; }
.auth-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 58px); background: var(--nx-surface); }
.auth-card h1 { margin: 0 0 9px; font-size: clamp(2rem, 3.2vw, 2.5rem); letter-spacing: -.055em; line-height: 1.1; }
.auth-card form { display: grid; gap: 16px; margin-top: 28px; }
.auth-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-card .nx-field { gap: 7px; }
.auth-card .nx-field label { color: var(--nx-text); }
.auth-card .nx-field input { min-height: 48px; padding: 12px 15px; border-color: color-mix(in srgb, var(--nx-border) 78%, var(--nx-primary)); border-radius: 12px; }
.auth-card .nx-field input:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 4px rgba(30, 144, 255, .12); outline: 0; }
.nx-password-control { position: relative; }
.auth-card .nx-password-control input { width: 100%; padding-right: 52px; }
.nx-password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; background: transparent; color: var(--nx-muted); cursor: pointer; }
.nx-password-toggle:hover { background: color-mix(in srgb, var(--nx-primary) 9%, transparent); color: var(--nx-primary); }
.nx-password-toggle:focus-visible { outline: 2px solid var(--nx-primary); outline-offset: 1px; }
.auth-intro { margin: 0; color: var(--nx-muted); font-size: 14px; line-height: 1.65; }
.auth-card .nx-check { margin: 1px 0 3px; color: var(--nx-muted); font-size: 13px; }
.nx-check { display: flex; gap: 8px; align-items: center; }
.nx-check input { width: 16px; height: 16px; accent-color: var(--nx-primary); }
.auth-submit { width: 100%; min-height: 48px; border-radius: 12px; box-shadow: 0 10px 22px rgba(30, 144, 255, .22); }
.auth-submit:hover { transform: translateY(-1px); }
.auth-recovery { margin: 20px 0 0; text-align: center; font-size: 13px; font-weight: 700; }
.auth-security-note { display: flex; align-items: flex-start; gap: 7px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--nx-border); color: var(--nx-muted); font-size: 12px; line-height: 1.5; }
.auth-security-note i { margin-top: 1px; color: var(--nx-accent-ink); font-size: 15px; }
.auth-mobile-brand { display: none; margin-bottom: 34px; }
html[data-theme="dark"] .auth-shell { background: #07111d; }
html[data-theme="dark"] .auth-shell::before { background: linear-gradient(132deg, #0d1e30 0%, #101d13 48%, #0b1722 100%); }
html[data-theme="dark"] .auth-frame { border-color: rgba(142, 229, 63, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .auth-card .nx-field input { border-color: #314151; background: #111c25; }

.nx-admin { min-height: 100vh; display: grid; grid-template-columns: var(--nx-sidebar-w) minmax(0, 1fr); background: #f4f8fc; }
.nx-backdrop { display: none; }
.nx-topbar [data-nav-toggle] { display: none; }
.nx-sidebar { display: flex; position: sticky; top: 0; flex-direction: column; height: 100vh; overflow: auto; padding: 14px 12px 12px; background: linear-gradient(165deg, #102847 0%, #0d2039 54%, #0b1727 100%); border-right: 1px solid rgba(143, 229, 63, .16); color: #e9f3ff; }
.nx-sidebar-main { flex: 1; }
.nx-sidebar .nx-console-brand { margin: 0 4px 22px; padding: 10px 8px; color: #fff; }
.nx-sidebar .nx-console-brand:hover { color: #fff; }
.nx-sidebar .nx-brand-context { border-color: rgba(255,255,255,.25); color: #b8cce3; }
.nx-console-nav { display: grid; gap: 3px; }
.nx-sidebar .nx-console-nav a, .nx-sidebar .nx-console-site { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: #d7e6f5; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.nx-sidebar .nx-console-nav a i, .nx-console-site i { width: 18px; color: #9fc4ed; font-size: 18px; text-align: center; }
.nx-sidebar .nx-console-nav a[aria-current="page"], .nx-sidebar .nx-console-nav a:hover { border-color: rgba(142,229,63,.18); background: linear-gradient(90deg, rgba(30,144,255,.28), rgba(142,229,63,.13)); color: #fff; }
.nx-sidebar .nx-console-nav a:hover { transform: translateX(2px); }
.nx-sidebar .nx-console-nav a[aria-current="page"] i, .nx-sidebar .nx-console-nav a:hover i { color: #a8ee6b; }
.nx-side-label { margin: 19px 12px 7px; color: #88a5c1; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nx-console-site { margin-top: 16px; border-color: rgba(255,255,255,.12) !important; background: rgba(255,255,255,.05); }
.nx-console-site:hover { border-color: rgba(142,229,63,.32) !important; background: rgba(142,229,63,.11) !important; color: #fff !important; }
.nx-main { min-width: 0; background: #f4f8fc; }
.nx-topbar { display: flex; position: sticky; top: 0; z-index: 5; min-height: 70px; align-items: center; padding: 10px clamp(18px, 3vw, 40px); border-bottom: 1px solid rgba(18,40,74,.09); background: color-mix(in srgb, var(--nx-surface) 88%, transparent); backdrop-filter: blur(16px); }
.nx-topbar-heading { display: grid; gap: 0; }
.nx-topbar-heading span { color: var(--nx-muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nx-topbar-heading strong { color: var(--nx-text); font-size: 18px; letter-spacing: -.03em; }
.nx-console-menu { flex: 0 0 auto; }
.nx-topbar .nx-header-actions { margin-left: auto; }
.nx-content { width: 100%; padding: clamp(22px, 3vw, 42px); }
.nx-table-wrap { overflow-x: auto; border: 1px solid var(--nx-border); border-radius: 16px; background: var(--nx-surface); }
.nx-table { width: 100%; border-collapse: collapse; background: var(--nx-surface); }
.nx-table th, .nx-table td { padding: 15px 16px; border-bottom: 1px solid var(--nx-border); text-align: left; vertical-align: middle; }
.nx-table tr:last-child td { border-bottom: 0; }
.nx-table th { background: color-mix(in srgb, var(--nx-info-bg) 52%, var(--nx-surface)); color: var(--nx-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nx-table tbody tr { transition: background .16s ease; }
.nx-table tbody tr:hover { background: color-mix(in srgb, var(--nx-info-bg) 42%, var(--nx-surface)); }
.nx-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-actions form { margin: 0; }
.nx-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 28px; }
.nx-stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; min-height: 142px; padding: 17px; border: 1px solid var(--nx-border); border-radius: 16px; background: var(--nx-surface); box-shadow: 0 8px 22px rgba(18,40,74,.045); color: var(--nx-text); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.nx-stat:hover { border-color: rgba(30,144,255,.4); box-shadow: 0 14px 28px rgba(18,40,74,.1); color: var(--nx-text); transform: translateY(-2px); }
.nx-stat-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: rgba(30,144,255,.12); color: var(--nx-primary); font-size: 21px; }
.nx-stat--guide .nx-stat-icon { background: rgba(142,229,63,.19); color: #4f9a1e; }
.nx-stat--media .nx-stat-icon { background: rgba(137,99,246,.13); color: #7150d9; }
.nx-stat--discover .nx-stat-icon { background: rgba(18,143,176,.13); color: #1681a1; }
.nx-stat-copy { display: grid; gap: 1px; }
.nx-stat strong { display: block; font-size: 31px; line-height: 1.05; letter-spacing: -.055em; }
.nx-stat-detail { grid-column: 1 / -1; align-self: end; padding-top: 12px; border-top: 1px solid var(--nx-border); color: var(--nx-muted); font-size: 12px; }
.nx-form-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; align-items: start; }
.nx-panel { background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg); padding: 16px; display: grid; gap: 12px; }
.nx-dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; overflow: hidden; min-height: 178px; padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(30,144,255,.2); border-radius: 20px; background: radial-gradient(390px 220px at 96% 0%, rgba(142,229,63,.35), transparent 72%), radial-gradient(520px 260px at 0% 100%, rgba(30,144,255,.22), transparent 75%), linear-gradient(135deg, #f9fdff 0%, #f4fbf1 100%); }
.nx-dashboard-hero .nx-kicker { margin-bottom: 7px; color: var(--nx-primary); }
.nx-dashboard-hero h1 { margin: 0; color: #12284a; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.06em; line-height: 1.08; }
.nx-dashboard-hero p:last-child { max-width: 50ch; margin: 9px 0 0; color: #52677f; font-size: 14px; }
.nx-dashboard-create { display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); gap: 9px; width: min(100%, 590px); }
.nx-dashboard-create a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(18,40,74,.1); border-radius: 11px; background: rgba(255,255,255,.72); color: #17314f; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 15px rgba(18,40,74,.04); transition: background .16s ease, transform .16s ease; }
.nx-dashboard-create a:hover { background: #fff; color: var(--nx-primary); transform: translateY(-1px); }
.nx-dashboard-create i { color: var(--nx-primary); font-size: 17px; }
.nx-dashboard-panel { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--nx-border); border-radius: 20px; background: var(--nx-surface); box-shadow: 0 10px 26px rgba(18,40,74,.045); }
.nx-dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.nx-dashboard-panel-head .nx-kicker { margin-bottom: 3px; color: var(--nx-primary); }
.nx-dashboard-panel h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.nx-text-link, .nx-row-action { display: inline-flex; align-items: center; gap: 3px; color: var(--nx-primary); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nx-text-link:hover, .nx-row-action:hover { color: var(--nx-primary-hover); }
.nx-resource-title { color: var(--nx-text); font-weight: 800; text-decoration: none; }
.nx-resource-title:hover { color: var(--nx-primary); }
.nx-content-thumb-head { width: 62px; }
.nx-content-thumb-cell { width: 62px; padding-right: 4px !important; }
.nx-content-thumb { display: grid; width: 42px; height: 56px; place-items: center; overflow: hidden; border: 1px solid var(--nx-border); border-radius: 9px; background: var(--nx-info-bg); }
.nx-content-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-content-thumb-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--nx-primary); font-size: 19px; }
.nx-section-tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: var(--nx-success-bg); color: var(--nx-accent-ink); font-size: 11px; font-weight: 800; }
.nx-dashboard-empty { display: flex; align-items: center; gap: 14px; padding: 28px 4px 8px; color: var(--nx-muted); }
.nx-dashboard-empty > i { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--nx-info-bg); color: var(--nx-primary); font-size: 23px; }
.nx-dashboard-empty strong { color: var(--nx-text); }
.nx-dashboard-empty p { margin: 2px 0 0; font-size: 13px; }
.nx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nx-confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--nx-border); border-radius: 18px; background: var(--nx-surface); color: var(--nx-text); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.nx-confirm-dialog::backdrop { background: rgba(7, 17, 29, .62); backdrop-filter: blur(2px); }
.nx-confirm-dialog form { display: grid; gap: 15px; padding: 24px; }
.nx-confirm-dialog .nx-kicker { margin: 0; color: var(--nx-danger); }
.nx-confirm-dialog h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; }
.nx-confirm-dialog p:not(.nx-kicker) { margin: -6px 0 0; color: var(--nx-muted); font-size: 14px; }
.nx-confirm-dialog-actions { justify-content: flex-end; margin-top: 4px; }
html[data-theme="dark"] .nx-admin, html[data-theme="dark"] .nx-main { background: #0a111a; }
html[data-theme="dark"] .nx-topbar { border-bottom-color: #263548; }
html[data-theme="dark"] .nx-dashboard-hero { border-color: #2a4c62; background: radial-gradient(390px 220px at 96% 0%, rgba(142,229,63,.17), transparent 72%), radial-gradient(520px 260px at 0% 100%, rgba(30,144,255,.16), transparent 75%), linear-gradient(135deg, #12243a 0%, #132519 100%); }
html[data-theme="dark"] .nx-dashboard-hero h1 { color: #f7fbff; }
html[data-theme="dark"] .nx-dashboard-hero p:last-child { color: #b2c5d8; }
html[data-theme="dark"] .nx-dashboard-create a { border-color: #31475d; background: rgba(8,18,30,.68); color: #e9f3ff; }
html[data-theme="dark"] .nx-dashboard-create a:hover { background: #16283a; }

@media (max-width: 980px) {
  .nx-hero-grid, .nx-grid-4, .nx-grid-3, .nx-split, .nx-grid-2, .nx-form-grid, .nx-stat-grid { grid-template-columns: 1fr 1fr; }
  .nx-search { display: none; }
  .nx-header .nx-nav { display: none; }
  .nx-header.is-open .nx-nav {
    display: grid; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--nx-surface); border-bottom: 1px solid var(--nx-border); padding: 10px 20px;
  }
  html[data-theme="dark"] .nx-header.is-open .nx-nav { background: #090909; border-bottom-color: #252525; }
  .nx-header.is-open .nx-nav a { padding: 10px 0; }
  .nx-nav-toggle { display: inline-flex; }
  .nx-header .nx-nav-toggle { border-color: transparent; box-shadow: none; }
  .nx-admin { grid-template-columns: 1fr; }
  .nx-topbar [data-nav-toggle] { display: inline-flex; }
  .nx-sidebar { position: fixed; z-index: 40; transform: translateX(-105%); transition: transform .2s ease; width: min(var(--nx-sidebar-w), 86vw); }
  .nx-admin.is-nav .nx-sidebar { transform: none; }
  .nx-backdrop { display: none; }
  .nx-admin.is-nav .nx-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .nx-dashboard-hero { align-items: flex-start; flex-direction: column; }
  .nx-dashboard-create { grid-template-columns: repeat(4, minmax(118px, 1fr)); width: 100%; }
  .nx-filters { grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr); }
  .nx-filters .nx-btn { width: fit-content; }
  .auth-frame { grid-template-columns: 1fr; max-width: 560px; }
  .auth-brand-panel { display: none; }
  .auth-mobile-brand { display: flex; }
}
@media (max-width: 680px) {
  .nx-hero-grid, .nx-grid-4, .nx-grid-3, .nx-split, .nx-grid-2, .nx-form-grid, .nx-stat-grid, .nx-gallery, .nx-row { grid-template-columns: 1fr; }
  .nx-header-actions .nx-btn-ghost { display: none; }
  .nx-header { gap: 10px; padding: 0 14px; }
  .nx-header .nx-logo { font-size: 19px; }
  .nx-header .nx-header-actions { gap: 8px; }
  .nx-header-signin { display: none; }
  .nx-header-host { min-height: 36px; padding: 8px 10px; font-size: 12px; }
  .nx-topbar { min-height: 64px; padding: 8px 16px; }
  .nx-topbar-heading strong { font-size: 16px; }
  .nx-topbar .nx-header-actions { gap: 7px; }
  .nx-content { padding: 18px 14px 26px; }
  .nx-dashboard-hero { min-height: 0; padding: 22px 18px; border-radius: 16px; }
  .nx-dashboard-create { grid-template-columns: 1fr 1fr; }
  .nx-dashboard-panel { padding: 18px 14px; border-radius: 16px; }
  .nx-dashboard-panel-head { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .nx-table-wrap { margin: 0 -1px; border-radius: 12px; }
  .nx-table th, .nx-table td { padding: 12px; }
  .nx-dashboard-table th:nth-child(4), .nx-dashboard-table td:nth-child(4) { display: none; }
  .nx-dashboard-table th:nth-child(5), .nx-dashboard-table td:nth-child(5) { padding-left: 4px; }
  .nx-content-list th:nth-child(5), .nx-content-list td:nth-child(5) { display: none; }
  .nx-content-list th:nth-child(3), .nx-content-list td:nth-child(3) { display: none; }
  .nx-content-thumb-head, .nx-content-thumb-cell { width: 56px; }
  .nx-content-thumb { width: 38px; height: 50px; }
  .nx-content-thumb-cell { padding-right: 2px !important; }
  .nx-content-list th, .nx-content-list td { padding: 8px 7px; }
  .nx-content-list .nx-content-thumb { width: 34px; height: 42px; border-radius: 7px; }
  .nx-content-list .nx-resource-title { display: -webkit-box; overflow: hidden; max-width: 24ch; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; }
  .nx-content-list .nx-pill { padding: 3px 6px; font-size: 10px; }
  .nx-content-list .nx-actions { gap: 4px; }
  .nx-content-list .nx-actions .nx-btn { min-height: 29px; padding: 5px 7px; font-size: 10px; }
  .nx-filters { grid-template-columns: 1fr; padding: 12px; }
  .nx-filters .nx-btn { width: 100%; }
  .nx-collage { min-height: 220px; }
  .nx-brand-context { display: none; }
  .nx-footer-grid { grid-template-columns: 1fr; }
  .nx-footer-bottom { flex-direction: column; }
  .auth-shell { padding: 16px; }
  .auth-frame { border-radius: 22px; }
  .auth-card { padding: 28px 22px; }
  .auth-name-grid { grid-template-columns: 1fr; }
  .auth-mobile-brand { margin-bottom: 26px; }
}
@media (max-width: 480px) {
  .nx-content-list th:nth-child(4), .nx-content-list td:nth-child(4) { display: none; }
  .nx-content-list .nx-resource-title { max-width: 20ch; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
