/* Celyntor Network · Interface 2.0 · Refonte premium */
/* Override layer : chargé en dernier, surcharge network.css */
@font-face {
  font-family: Inter;
  src: url("/brand/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  --n-bg: #ffffff;
  --n-canvas: #f4f6fb;
  --n-surface: #edf0f7;
  --n-hover: #e5e9f4;
  --n-ink: #0c1322;
  --n-muted: #5a6478;
  --n-line: #dde1ec;
  --n-accent: #3255d9;
  --n-accent-soft: #eaeefd;
  --n-primary: #3255d9;
  --n-primary-hover: #2645c4;
  --n-success: #1a6645;
  --n-success-soft: #e7f7ef;
  --n-warning: #8a5c10;
  --n-warning-soft: #fef4e3;
  --n-error: #b8322c;
  --n-error-soft: #fef0ee;
  --n-error-line: #f4cbc7;
  --n-notice: #f0f4fe;
  --n-notice-line: #d4dffc;
  --n-notice-ink: #2e4c8c;
  --n-strong: #111d35;
  --n-strong-muted: #c6d0de;
  --n-skeleton: #e6eaf4;
  --n-radius: 14px;
  --n-shadow: 0 1px 3px #0c13220a, 0 8px 28px #0c13220a;
  --n-shadow-md: 0 4px 16px #0c13221a, 0 1px 3px #0c13220e;
  --c-sidebar: #fafbfe;
  --c-grid: #e8ecf5;
  --c-chart-today: #3a5edf;
  --c-chart-yesterday: #2a9882;
}

:root[data-theme="dark"] {
  --n-bg: #13161e;
  --n-canvas: #0b0d13;
  --n-surface: #1c2030;
  --n-hover: #242c3e;
  --n-ink: #e8ecf5;
  --n-muted: #8693ae;
  --n-line: #252d40;
  --n-accent: #7eaeff;
  --n-accent-soft: #19253e;
  --n-primary: #3d5ee0;
  --n-primary-hover: #4b6eee;
  --n-success: #5dceaa;
  --n-success-soft: #112b22;
  --n-warning: #f0c96a;
  --n-warning-soft: #2e2413;
  --n-error: #ff9c96;
  --n-error-soft: #361e22;
  --n-error-line: #5e3035;
  --n-notice: #182038;
  --n-notice-line: #2f4268;
  --n-notice-ink: #b8cfff;
  --n-strong: #1c2638;
  --n-strong-muted: #bfcbd8;
  --n-skeleton: #20293a;
  --n-shadow: 0 2px 12px #00000020, 0 6px 24px #00000018;
  --n-shadow-md: 0 8px 32px #00000030;
  --c-sidebar: #0e111a;
  --c-grid: #252e42;
  --c-chart-today: #7eaeff;
  --c-chart-yesterday: #5dcfb7;
}

/* ── Base ── */
body {
  background: var(--n-canvas);
  font: 14px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--n-accent-soft); color: var(--n-ink); }
h1, h2, h3, h4 { font-weight: 670; letter-spacing: -0.04em; text-wrap: balance; }

/* ── Shell ── */
.n-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}

/* ── Sidebar ── */
.n-sidebar {
  background: var(--c-sidebar);
  border-right: 1px solid var(--n-line);
  padding: 28px 16px 22px;
  gap: 26px;
}
.n-logo {
  gap: 11px;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.55px;
  padding: 0 8px;
  text-decoration: none !important;
  color: var(--n-ink);
}
.n-logo img { width: 32px; height: 32px; }
.n-logo small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--n-muted);
  margin-top: 1px;
}
.n-nav { gap: 3px; }
.n-nav-label {
  color: var(--n-muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 20px 12px 6px;
}
.n-nav-label:first-child { padding-top: 0; }
.n-nav a {
  padding: 10px 12px;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 9px;
  min-height: 40px;
  color: var(--n-muted);
  transition: background 0.13s, color 0.13s;
}
.n-nav a:hover { background: var(--n-hover); color: var(--n-ink); text-decoration: none; }
.n-nav a[aria-current] {
  background: var(--n-accent-soft);
  color: var(--n-accent);
  font-weight: 620;
  box-shadow: none;
  position: relative;
}
.n-nav a[aria-current]::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.n-nav .n-icon { width: 16px; height: 16px; }
.n-sidebar-foot {
  font-size: 11px;
  line-height: 1.85;
  margin-top: auto;
  border-top: 1px solid var(--n-line);
  padding-top: 18px;
  overflow-wrap: anywhere;
}
.n-sidebar-foot strong { color: var(--n-ink); font-size: 12px; font-weight: 640; }

/* ── Header ── */
.n-header {
  height: 68px;
  background: var(--n-canvas);
  border-bottom: 1px solid var(--n-line);
  padding: 0 32px;
}
.n-header-actions { gap: 10px; }
.n-header .n-button { font-size: 11.5px; }
.n-breadcrumb { font-size: 12px; color: var(--n-muted); }
.n-breadcrumb strong { color: var(--n-ink); font-weight: 600; }
.n-theme-toggle {
  border-radius: 50%;
  width: 36px; min-width: 36px;
  height: 36px; min-height: 36px;
  background: var(--n-bg);
  border-color: var(--n-line);
}

/* ── Container ── */
.n-container { max-width: 1440px; padding: 34px 36px 28px; }
.n-page-head {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.n-page-head h1 {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.048em;
  margin: 0 0 8px;
  font-weight: 680;
}
.n-overline {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-accent);
  font-weight: 660;
  margin: 0 0 9px;
}
.n-description { font-size: 13px; line-height: 1.7; max-width: 660px; color: var(--n-muted); }
.n-page-head #refresh {
  flex: none;
  align-self: flex-start;
  background: var(--n-bg);
}

/* ── Cards ── */
.n-card, .h-panel {
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  background: var(--n-bg);
  box-shadow: var(--n-shadow);
}
.n-card { padding: 24px; }
.n-card-head { margin-bottom: 22px; }
.n-grid { gap: 20px; }
.n-stack, .h-stack { gap: 20px; }
.n-metrics { gap: 14px; margin-bottom: 22px; }

/* ── Metric / KPI cards ── */
.n-metric { padding: 22px; }
.n-metric::before { display: none; }
.n-value, .n-owner-value, .n-comparison-value {
  font-weight: 680;
  letter-spacing: -0.048em;
  font-variant-numeric: tabular-nums;
}
.n-metric .n-value { font-size: clamp(24px, 2.2vw, 34px); margin: 14px 0 8px; }
.n-owner-value { font-size: clamp(26px, 2.5vw, 38px); margin: 16px 0 11px; }
.n-label { color: var(--n-muted); font-size: 11.5px; font-weight: 500; }

/* ── Buttons ── */
.n-button {
  min-height: 40px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 15px;
  border-radius: 9px;
  font-weight: 600;
  border: 1px solid var(--n-line);
  background: var(--n-bg);
  color: var(--n-ink);
  box-shadow: 0 1px 2px #0c132208;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.n-button:hover { background: var(--n-surface); text-decoration: none; }
.n-button:active { transform: translateY(1px); }
.n-button.primary {
  background: var(--n-primary);
  border-color: var(--n-primary);
  color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--n-primary) 35%, transparent);
}
.n-button.primary:hover { background: var(--n-primary-hover); border-color: var(--n-primary-hover); }
.n-button.subtle { border-color: transparent; background: transparent; box-shadow: none; color: var(--n-muted); }
.n-button.danger { color: var(--n-error); }

/* ── Inputs ── */
.n-input, .h-field input, .h-field select, .h-field textarea {
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid var(--n-line);
  background: var(--n-bg);
  font-size: 13.5px;
  color: var(--n-ink);
  padding: 10px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.n-input:focus, .h-field input:focus, .h-field select:focus {
  border-color: var(--n-accent);
  box-shadow: 0 0 0 3px var(--n-accent-soft);
  outline: 0;
}
.n-field label, .h-field { font-size: 12px; font-weight: 560; }

/* ── Badges ── */
.n-badge, .h-status {
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.6;
  padding: 3px 8px;
  font-weight: 580;
}
.n-badge.active  { color: var(--n-accent);  background: var(--n-accent-soft); }
.n-badge.success { color: var(--n-success); background: var(--n-success-soft); }
.n-badge.warning { color: var(--n-warning); background: var(--n-warning-soft); }
.n-badge.error   { color: var(--n-error);   background: var(--n-error-soft); }

/* ── Notices & dialogs ── */
.n-notice, .h-note {
  background: var(--n-notice);
  color: var(--n-notice-ink);
  border: 1px solid var(--n-notice-line);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.75;
  padding: 15px 18px;
}
.n-notice p { margin: 0; }
.n-empty, .h-empty {
  background: var(--n-canvas);
  border: 1px dashed var(--n-line);
  border-radius: 11px;
  color: var(--n-muted);
  padding: 28px 20px;
}
.n-dialog, .h-decision {
  background: var(--n-bg);
  color: var(--n-ink);
  border: 1px solid var(--n-line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px #0003;
}
.n-dialog::backdrop, .h-decision::backdrop {
  background: #0c131e80;
  backdrop-filter: blur(6px);
}

/* ── Tables ── */
.n-table-wrap, .h-table-scroll {
  border-radius: 11px;
  border: 1px solid var(--n-line);
  scrollbar-width: thin;
}
.n-table th, .h-table th {
  background: var(--n-canvas);
  color: var(--n-muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 18px;
}
.n-table td, .h-table td {
  padding: 16px 18px;
  font-size: 12.5px;
  border-color: var(--n-line);
  font-variant-numeric: tabular-nums;
}
.n-table tbody tr:hover, .h-table tbody tr:hover { background: var(--n-canvas); }

/* ── Toast ── */
.n-toast {
  border-radius: 11px;
  background: var(--n-bg);
  color: var(--n-ink);
  border: 1px solid var(--n-line);
  box-shadow: var(--n-shadow-md);
}

/* ── Footer ── */
.n-footer {
  margin-top: 32px;
  font-size: 10.5px;
  padding-top: 20px;
  color: var(--n-muted);
  border-top: 1px solid var(--n-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Admin strip ── */
.n-admin-strip {
  background: var(--c-sidebar);
  color: var(--n-muted);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 32px;
  border-bottom: 1px solid var(--n-line);
}

/* ── Auth page ── */
.n-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 100dvh;
  padding: 0;
  background: var(--n-canvas);
}
.n-auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  border-right: 1px solid #2e3f4a;
  border-radius: 0;
  padding: 44px 52px;
  gap: 0;
  background: linear-gradient(145deg, #111e2e 0%, #0d1826 40%, #0a1320 100%);
  color: #f0f4f8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.n-auth-story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 700px 500px at 80% 110%, #1e4a8a18, transparent),
    radial-gradient(ellipse 500px 400px at -10% 0%, #1a3f6c12, transparent);
}
.n-auth-story::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -260px;
  bottom: -180px;
  border: 1px solid #ffffff0c;
  box-shadow:
    0 0 0 50px #ffffff06,
    0 0 0 110px #ffffff04,
    0 0 0 200px #ffffff02;
  pointer-events: none;
}
.n-auth-story .n-logo { padding: 0; color: #f0f4f8; }
.n-auth-story .n-logo small { color: #8ea8be; }
.n-auth-story .n-theme-toggle {
  background: #ffffff0a;
  border-color: #ffffff20;
  color: #d0dce8;
}
.n-auth-story .n-overline { color: #7eb8d6; letter-spacing: 0.18em; font-size: 9.5px; }
.n-auth-story h1 {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 22px 0 20px;
  color: #f3f7fc;
}
.n-auth-story > div > p:not(.n-overline) {
  color: #b8c8d8;
  font-size: 14px;
  line-height: 1.9;
  max-width: 360px;
}
.n-auth-points { margin: 36px 0 0; gap: 16px; }
.n-auth-points p { font-size: 12px; color: #cad5e0; gap: 13px; display: flex; align-items: center; }
.n-point {
  border: 1px solid #ffffff1e;
  background: #ffffff08;
  color: #a8c4d8;
  min-width: 30px;
  text-align: center;
  border-radius: 7px;
  font-size: 9px;
  padding: 6px;
  flex: none;
}
.n-auth-story > .n-hint { font-size: 11px; color: #7a94aa; max-width: 320px; }
.n-auth-form { padding: 0; display: flex; align-items: center; justify-content: center; background: var(--n-canvas); }
.n-auth-box { max-width: 400px; width: 100%; padding: 52px 48px; }
.n-auth-title {
  font-size: 28px;
  letter-spacing: -0.045em;
  font-weight: 670;
  margin: 0 0 12px;
  color: var(--n-ink);
}
.n-auth-box .n-description { font-size: 13px; max-width: 360px; }
.n-auth-box form { margin-top: 28px; gap: 18px; display: grid; }
.n-auth-box .n-input {
  height: 50px;
  min-height: 50px;
  background: var(--n-bg);
  font-size: 14.5px;
  border-radius: 10px;
  border-color: var(--n-line);
}
.n-auth-box .n-button.primary { min-height: 50px; font-size: 13.5px; border-radius: 10px; }
.n-auth-box .n-overline { font-size: 9px; }
.n-auth-box .n-check { font-size: 11.5px; }
.n-auth-box .n-button.subtle { font-size: 12px; }
.n-auth-foot { font-size: 10.5px; color: var(--n-muted); margin-top: 8px; }
.n-motion { }

/* ── Charts ── */
.n-owner-main-grid { gap: 20px; }
.n-owner-svg { height: 270px; }
.n-owner-plot { min-height: 270px; }
.n-owner-grid, .n-chart-grid { stroke: var(--c-grid); stroke-dasharray: 3 6; }
.n-owner-line { stroke: var(--c-chart-today); stroke-width: 2.4; }
.n-owner-dot { stroke: var(--c-chart-today); }
.n-owner-bar { fill: var(--c-chart-today); opacity: 0.88; }
.n-owner-bar-teal { fill: var(--c-chart-yesterday); }
.n-owner-tooltip {
  border-radius: 10px;
  padding: 13px;
  box-shadow: var(--n-shadow-md);
  z-index: 5;
}
.n-owner-periods, .n-owner-chart-tabs, .n-tabs {
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  padding: 4px;
  gap: 3px;
  border-radius: 10px;
}
.n-owner-period, .n-owner-chart-tab {
  font-size: 11px;
  padding: 7px 13px;
  border-radius: 7px;
  min-height: 32px;
}
.n-owner-period[aria-pressed="true"], .n-owner-chart-tab[aria-pressed="true"] {
  background: var(--n-bg);
  color: var(--n-ink);
  box-shadow: 0 1px 4px #0c13220e;
}
.n-owner-panel { padding: 24px; border-radius: 14px; }
.n-owner-panel h2 { font-size: 16px; letter-spacing: -0.03em; }
.n-owner-kpis { gap: 14px; margin: 0 0 22px; }
.n-owner-kpi { padding: 24px; border-radius: 14px; }
.n-owner-kpi-primary {
  background: var(--n-accent-soft);
  border-color: var(--n-notice-line);
}
.n-owner-kpi-primary .n-owner-value { color: var(--n-ink); }

/* ── Publisher home ── */
.n-publisher-home { display: grid; gap: 22px; }
.n-publisher-home > .n-owner-kpis { margin: 0; }
.n-publisher-home > .n-op-sync { margin: 0; }
.n-publisher-money-grid { gap: 20px; }
.n-op-payment-amount > strong { font-weight: 680; font-size: 30px; letter-spacing: -0.044em; }
.n-op-crypto {
  border-radius: 10px;
  padding: 18px;
  gap: 7px;
}
.n-op-crypto[aria-pressed="true"] {
  box-shadow: 0 0 0 1px var(--n-accent);
  background: var(--n-accent-soft);
}
.n-op-conversion, .n-wallet-summary, .n-list-item {
  border-radius: 12px;
  padding: 20px;
  background: var(--n-bg);
}
.n-weekday {
  background: var(--n-bg);
  border-radius: 9px;
  font-size: 12px;
  min-height: 44px;
}
.n-op-smartlink { padding: 24px; gap: 20px; }
.n-op-smartlink .n-code { padding: 15px; }
.n-owner-link { border-radius: 12px; padding: 20px; background: var(--n-bg); }
.n-owner-link-address {
  background: var(--n-canvas);
  padding: 11px;
  border: 1px solid var(--n-line);
  border-radius: 8px;
}
.n-owner-footnote, .n-op-sync { font-size: 11px; line-height: 1.75; color: var(--n-muted); }

/* ── Comparison ── */
.n-comparison-head h2 { font-size: 23px; font-weight: 680; letter-spacing: -0.04em; }
.n-comparison-eyebrow { color: var(--n-accent); font-size: 9px; letter-spacing: 0.13em; }
.n-comparison-summary { border-radius: 13px; }
.n-comparison-summary > div { padding: 22px; }
.n-comparison-status { background: var(--n-canvas); }
.n-comparison-value { font-size: 27px; }
.n-comparison-grid { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n-comparison-card { padding: 23px; border-radius: 14px; }
.n-comparison-card h3 { font-size: 15px; }
.n-comparison-legend { font-size: 11px; gap: 18px; margin-top: 20px; }
.n-comparison-legend span::before { background: var(--c-chart-today); }
.n-comparison-legend .n-comparison-yesterday::before { background: var(--c-chart-yesterday); }
.n-comparison-inspector { background: var(--n-canvas); padding: 16px; border-radius: 10px; }
.n-comparison-inspector-head h4 { font-size: 14px; }
.n-comparison-detail-row { padding: 12px 0; }

/* ── Hero & marketing ── */
.c-hero, .h-hero {
  background: linear-gradient(120deg, #1a2a2c, #151f20);
  border: 1px solid #324040;
  border-radius: 18px;
  padding: 40px;
  gap: 36px;
  box-shadow: none;
}
.c-hero h2, .h-hero h1, .h-hero h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.14;
}
.c-hero p, .h-hero p { color: #b8ccc8; font-size: 13px; line-height: 1.85; }
.c-hero .c-eyebrow, .h-kicker { color: #9ac9bc; font-size: 9px; letter-spacing: 0.15em; }
.c-underline {
  color: #d8ede4;
  text-decoration-thickness: 2px;
  text-decoration-color: #6db49c;
  text-underline-offset: 7px;
}
.c-hero .n-button.primary, .h-hero .n-button {
  background: #ecf5f0;
  color: #213028;
  border-color: #ecf5f0;
  box-shadow: none;
}
.c-hero .n-button.primary:hover, .h-hero .n-button:hover {
  background: #fff;
  color: #213028;
}
.c-hero .c-benefit {
  background: transparent;
  border-color: #ffffff20;
  color: #bccece;
}
.c-hero .c-benefit::before { color: #a4cfbc; }
.c-cinema-art {
  transform: none;
  border-radius: 12px;
  border-color: #ffffff22;
  background: #0e1a1c;
  box-shadow: 0 20px 50px #00000030;
}
.c-art-top { background: #182426; color: #b0c4c4; border-color: #ffffff14; }
.c-art-rail { padding: 13px; }
.c-art-credit { color: #98b0b0; }
.h-marketing { max-width: 1200px; padding: 28px; }
.h-marketing nav { margin: 0 0 32px; }
.h-marketing .h-hero { padding: 46px; }
.h-path span {
  border-color: #ffffff1e;
  background: #ffffff04;
  border-radius: 9px;
  color: #ccdbd8;
}
.h-path b { color: #a8c8bc; }
.h-sim { background: var(--n-bg); }
.h-sim output { font-size: 34px; color: var(--n-ink); }

/* ── Card structural helpers ── */
.n-toolbar { gap: 13px; align-items: flex-end; }
.n-table-tools { gap: 13px; margin: 18px 0; }
.n-code, .h-proof {
  background: var(--n-canvas);
  border: 1px solid var(--n-line);
  border-radius: 9px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

/* ── Tabs ── */
.c-journey {
  border-radius: 11px;
  gap: 4px;
  padding: 5px;
  background: var(--n-surface);
  box-shadow: none;
}
.c-journey-tab { border-radius: 8px; padding: 13px 12px; gap: 10px; }
.c-journey-tab[aria-selected="true"] {
  color: var(--n-ink);
  background: var(--n-bg);
  box-shadow: 0 1px 5px #0c13220e;
}
.c-journey-tab strong { font-size: 12px; font-weight: 620; }
.c-journey-tab span { color: var(--n-muted); }

/* ── Creator / welcome ── */
.c-card, .h-panel { padding: 26px; border-radius: 14px; }
.c-card h3 { font-size: 22px; font-weight: 650; }
.c-card p, .h-panel p { font-size: 13px; }
.c-prompt-card { border-top: 1px solid var(--n-line); }
.c-prompt-card .c-eyebrow { color: var(--n-accent); }
.c-question-grid { gap: 20px; margin-top: 22px; }
.c-question-grid input, .c-question-grid select { background: var(--n-canvas); }
.c-prompt-status { padding: 13px 16px; background: var(--n-canvas); border-radius: 9px; }
.c-reader-choice .c-card {
  background: var(--n-bg);
  gap: 14px;
  padding: 22px;
  border-radius: 12px;
}
.c-reader-choice .c-card[data-selected="true"] {
  background: var(--n-accent-soft);
  box-shadow: 0 0 0 1px var(--n-accent);
  border-color: var(--n-accent);
}
.c-reader-choice .c-card h3 { font-size: 20px; }
.c-reader-benefits li { font-size: 12px; line-height: 1.75; }
.c-reader-info { background: var(--n-canvas); padding: 18px; border-radius: 10px; }
.c-reader-info code { background: var(--n-bg); border: 1px solid var(--n-line); padding: 9px 12px; }
.c-instruction-n { border-radius: 8px; background: var(--n-surface); color: var(--n-ink); }
.c-instructions { gap: 20px; }
.c-tip {
  background: var(--n-canvas);
  border-color: var(--n-line);
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  padding: 15px 18px;
}
.c-benefit { border-radius: 6px; font-size: 10px; background: var(--n-canvas); padding: 5px 9px; }
.c-money-story { border-radius: 12px; background: var(--n-canvas); padding: 24px; }
.c-money-story h3 { font-size: 25px; }
.c-aff-steps .c-card, .c-host-grid .c-card { background: var(--n-canvas); border-radius: 12px; }
.c-aff-metrics strong { font-size: 30px; font-weight: 650; }
.c-aff-share { border-radius: 10px; background: var(--n-canvas); }
.c-aff-share input { color: var(--n-ink); }
.c-affiliate-hero { background: linear-gradient(120deg, #1e2e2c, #152320); }
.c-affiliate-art {
  background: #ffffff04;
  border: 1px solid #a4cebf28;
  border-radius: 16px;
  box-shadow: none;
}
.c-affiliate-art::before { display: none; }
.c-rate { color: #c8e8d0; text-shadow: none; font-weight: 620; }
.c-affiliate-art .c-eyebrow { color: #9cc5b2; }

/* ── Dark mode: data-space panel glass ── */
:root[data-theme="dark"] body[data-space] {
  --n-bg: #13161e;
  --n-canvas: #0a0c12;
  --n-surface: #1a1e2c;
  --n-hover: #222840;
  --n-line: #252d40;
  --c-sidebar: #0d1018;
  --c-grid: #252e44;
  background: #0a0c12;
}
:root[data-theme="dark"] body[data-space] .n-shell {
  background:
    radial-gradient(ellipse 900px 500px at 55% -100px, #263a7a14, transparent 75%),
    #0a0c12;
}
:root[data-theme="dark"] body[data-space] .n-header {
  background: linear-gradient(105deg, #0d1120cc, #090c14ec);
  border-color: #1e2740;
}
:root[data-theme="dark"] body[data-space] .n-sidebar {
  background: linear-gradient(180deg, #0f1420, #0b0e16 65%);
  border-color: #1e2740;
}
:root[data-theme="dark"] body[data-space] .n-admin-strip {
  background: #0c0f18;
  border-color: #1e2740;
}
:root[data-theme="dark"] body[data-space] :is(.n-card, .h-panel, .n-owner-link, .n-op-conversion, .n-wallet-summary, .n-list-item) {
  border: 1px solid transparent;
  background:
    linear-gradient(120deg, #181e2e, #13171f 44%, #111318 100%) padding-box,
    linear-gradient(130deg, #4e6690a0, #364059a0 48%, #2e3340 90%) border-box;
  box-shadow: 0 4px 20px #00000018;
}
:root[data-theme="dark"] body[data-space] :is(.n-owner-kpi-primary, .n-strong-card) {
  background:
    linear-gradient(120deg, #1a2440, #171d2e 44%, #131418 100%) padding-box,
    linear-gradient(125deg, #7090caa0, #50629a98 48%, #404450 100%) border-box;
  border: 1px solid transparent;
}
:root[data-theme="dark"] body[data-space] :is(.c-hero, .h-hero) {
  background:
    radial-gradient(ellipse at 12% 0%, #304e7a1e, transparent 65%),
    linear-gradient(110deg, #151b2a, #0e1018);
  border-color: #3e4f6c;
}
:root[data-theme="dark"] body[data-space] .c-reader-choice .c-card[data-selected="true"] {
  background:
    linear-gradient(120deg, #1e2e52, #16203a 55%, #131820) padding-box,
    linear-gradient(125deg, #90b4ff, #5870a8 55%, #40485a) border-box;
  box-shadow: 0 0 0 1px #6890ff2a;
}
:root[data-theme="dark"] body[data-space] .n-comparison-summary {
  background: linear-gradient(120deg, #181e2e, #111318);
  border-color: #3c4860;
}
:root[data-theme="dark"] body[data-space] .n-comparison-status { background: #0e1220; }
:root[data-theme="dark"] body[data-space] :is(.n-table-wrap, .h-table-scroll) { border-color: #363e52; }
:root[data-theme="dark"] body[data-space] :is(.n-table th, .h-table th) { background: #131822; }
:root[data-theme="dark"] body[data-space] .n-comparison-inspector { background: #0c1018; border-color: #303e58; }

/* ── Dark mode: midnight (no data-space) ── */
:root[data-theme="dark"] {
  --n-bg: #151821;
  --n-canvas: #0e1018;
  --n-surface: #1d2130;
  --n-hover: #262c3e;
  --n-ink: #eaeefc;
  --n-muted: #8693ae;
  --n-line: #2a3048;
  --n-accent: #8ab4ff;
  --n-accent-soft: #182244;
  --n-primary: #3d5ee0;
  --n-primary-hover: #4a6dee;
  --n-success: #6cd8a8;
  --n-success-soft: #102820;
  --n-warning: #f0c96a;
  --n-warning-soft: #2c2210;
  --n-error: #ff9a9a;
  --n-error-soft: #321820;
  --n-error-line: #5e2e34;
  --n-notice: #182038;
  --n-notice-line: #2e4068;
  --n-notice-ink: #b8cfff;
  --n-strong: #1c2438;
  --n-strong-muted: #bfcbd8;
  --n-skeleton: #1e2838;
  --n-shadow: 0 4px 20px #00000024;
  --c-sidebar: #0f121a;
  --c-grid: #242e44;
  --c-chart-today: #8ab4ff;
  --c-chart-yesterday: #6cd4ba;
}
:root[data-theme="dark"] .n-auth-story,
:root[data-theme="dark"] .c-hero,
:root[data-theme="dark"] .h-hero,
:root[data-theme="dark"] .c-affiliate-hero {
  background: linear-gradient(135deg, #181d2a, #0e1118);
  border-color: #303848;
}
:root[data-theme="dark"] .n-auth-story::after {
  border-color: #ffffff10;
  box-shadow: 0 0 0 50px #ffffff07, 0 0 0 110px #ffffff04, 0 0 0 200px #ffffff02;
}
:root[data-theme="dark"] .n-auth-story .n-overline,
:root[data-theme="dark"] .c-hero .c-eyebrow,
:root[data-theme="dark"] .h-kicker { color: #8ab4ff; }
:root[data-theme="dark"] .n-auth-story .n-logo small,
:root[data-theme="dark"] .n-auth-story > .n-hint,
:root[data-theme="dark"] .n-auth-story > div > p:not(.n-overline),
:root[data-theme="dark"] .n-auth-points p,
:root[data-theme="dark"] .c-hero p,
:root[data-theme="dark"] .h-hero p { color: #a8b8d0; }
:root[data-theme="dark"] .n-point { color: #b0caffff; border-color: #384058; background: #ffffff06; }
:root[data-theme="dark"] .c-underline { color: #fff; text-decoration-color: #6494ef; }
:root[data-theme="dark"] .c-hero .n-button.primary,
:root[data-theme="dark"] .h-hero .n-button { background: #3d5ee0; border-color: #3d5ee0; color: #fff; }
:root[data-theme="dark"] .c-hero .n-button.primary:hover,
:root[data-theme="dark"] .h-hero .n-button:hover { background: #4a6dee; border-color: #4a6dee; color: #fff; }
:root[data-theme="dark"] .c-hero .c-benefit,
:root[data-theme="dark"] .h-path span { color: #c8d4e8; border-color: #384058; background: #ffffff04; }
:root[data-theme="dark"] .c-hero .c-benefit::before,
:root[data-theme="dark"] .h-path b { color: #90b4ff; }
:root[data-theme="dark"] .c-affiliate-art { background: #181c28; border-color: #364054; }
:root[data-theme="dark"] .c-affiliate-art .c-eyebrow { color: #b4caff; }
:root[data-theme="dark"] .c-rate { color: #fff; }
:root[data-theme="dark"] .c-affiliate-art p { color: #e0e8f4; }
:root[data-theme="dark"] .c-affiliate-art small { color: #a8b8d0; }
:root[data-theme="dark"] .c-cinema-art { background: #0e1118; border-color: #363e52; }
:root[data-theme="dark"] .c-art-top { background: #1a1e2c; color: #b0bcd0; }
:root[data-theme="dark"] .c-art-credit { color: #8896b0; }
:root[data-theme="dark"] .n-nav a[aria-current] { background: #1e2d50; color: #b8d0ff; box-shadow: none; }
:root[data-theme="dark"] .n-owner-period[aria-pressed="true"],
:root[data-theme="dark"] .n-owner-chart-tab[aria-pressed="true"],
:root[data-theme="dark"] .c-journey-tab[aria-selected="true"] {
  background: #243058;
  color: #d8e4ff;
  box-shadow: inset 0 0 0 1px #5870ae;
}
:root[data-theme="dark"] .n-owner-kpi-primary { background: linear-gradient(125deg, #1a2438, #141820); border-color: #3e5478; }
:root[data-theme="dark"] .n-op-crypto[aria-pressed="true"],
:root[data-theme="dark"] .n-weekday:has(input:checked) { background: #1e2d50; border-color: #7898ef; color: #d8e4ff; }
:root[data-theme="dark"] .n-button:not(.primary):not(.subtle) { background: #1e2130; border-color: #42485e; color: #e0e8f8; }
:root[data-theme="dark"] .n-button:not(.primary):hover { background: #282e42; border-color: #58607a; color: #fff; }
:root[data-theme="dark"] .n-input,
:root[data-theme="dark"] .h-field input,
:root[data-theme="dark"] .h-field select { background: #111420; border-color: #3a4258; color: #eaeef8; }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #8693ae; }

/* ── Responsive ── */
@media (min-width: 1440px) {
  .n-container { padding-top: 40px; }
  .n-sidebar { padding-top: 32px; }
  .n-owner-main-grid { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); }
}
@media (max-width: 1150px) {
  .n-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .n-container { padding: 28px 22px; }
  .n-header { padding: 0 22px; }
  .n-sidebar { padding: 26px 12px 18px; }
  .n-logo { font-size: 17px; }
  .n-nav a { font-size: 11.5px; }
  .n-owner-main-grid { grid-template-columns: 1fr; }
  .n-comparison-grid { grid-template-columns: 1fr; }
  .c-hero, .h-hero { padding: 28px; gap: 22px; }
}
@media (max-width: 760px) {
  .n-shell { display: block; }
  .n-sidebar { width: 265px; padding: 25px 16px; gap: 22px; }
  .n-nav a { font-size: 13px; min-height: 44px; }
  .n-sidebar-foot { font-size: 11px; }
  .n-header { height: 64px; padding: 0 16px; gap: 10px; }
  .n-header-actions { gap: 6px; }
  .n-header .n-button { padding: 8px 10px; font-size: 10.5px; }
  .n-breadcrumb { font-size: 10.5px; max-width: 140px; }
  .n-breadcrumb strong { display: block; }
  .n-container { padding: 24px 16px 20px; }
  .n-page-head { align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .n-page-head #refresh { align-self: flex-start; min-height: 36px; padding: 7px 12px; font-size: 11px; }
  .n-page-head h1 { font-size: 26px; }
  .n-admin-strip { padding: 7px 16px; font-size: 8px; }
  .n-card, .h-panel, .c-card, .n-owner-panel, .n-owner-kpi { padding: 20px; border-radius: 12px; }
  .n-grid, .n-publisher-money-grid { gap: 14px; }
  .n-publisher-home, .h-stack, .c-stage { gap: 16px; }
  .n-owner-kpis { gap: 12px; }
  .n-owner-value { font-size: 26px; margin: 13px 0 9px; }
  .n-metric .n-value { font-size: 24px; }
  .n-comparison-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-comparison-summary > div { padding: 17px; }
  .n-comparison-summary > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--n-line); }
  .n-comparison-value { font-size: 22px; }
  .n-comparison-card { padding: 17px; }
  .n-dialog, .h-decision { padding: 22px; }
  .n-footer { font-size: 10px; gap: 6px; margin-top: 26px; flex-direction: column; align-items: flex-start; }
  .n-auth-layout { display: block; }
  .n-auth-story {
    min-height: 0;
    border: none;
    border-bottom: 1px solid var(--n-line);
    border-radius: 0;
    padding: 22px 24px;
    background: var(--c-sidebar);
    color: var(--n-ink);
  }
  .n-auth-story::before, .n-auth-story::after { display: none; }
  .n-auth-story .n-logo { color: var(--n-ink); }
  .n-auth-story .n-logo small { color: var(--n-muted); }
  .n-auth-story .n-theme-toggle { color: var(--n-ink); border-color: var(--n-line); background: var(--n-bg); }
  .n-auth-story h1 { font-size: 30px; color: var(--n-ink); margin: 14px 0 12px; }
  .n-auth-story > div > p:not(.n-overline) { color: var(--n-muted); font-size: 13px; }
  .n-auth-story .n-overline { color: var(--n-accent); }
  .n-auth-points p { color: var(--n-muted); }
  .n-point { color: var(--n-accent); border-color: var(--n-line); background: var(--n-accent-soft); }
  .n-auth-story > .n-hint { color: var(--n-muted); }
  .n-auth-form { padding: 0; justify-content: flex-start; background: var(--n-canvas); }
  .n-auth-box { padding: 36px 24px 44px; }
  .n-auth-title { font-size: 26px; }
  .n-auth-box .n-input, .n-input, .h-field input, .h-field select { font-size: 16px; }
  .c-hero, .h-hero, .h-marketing .h-hero { padding: 26px 22px; border-radius: 14px; }
  .c-hero h2, .h-hero h1, .h-hero h2 { font-size: 31px; }
  .c-hero p, .h-hero p { font-size: 12px; }
  .h-marketing { padding: 18px; }
  .h-marketing nav { margin-bottom: 24px; flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .n-header { padding: 0 12px; }
  .n-container { padding: 22px 12px; }
  .n-header-actions .n-button { font-size: 9px; padding: 7px; }
  .n-breadcrumb { max-width: 100px; }
  .n-owner-value { font-size: 22px; }
  .n-auth-box { padding: 28px 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .n-nav a, .n-button { transition: none; }
}
