/* NX BK10 theme — own implementation inspired by the supplied BK Dash screenshots.
   Shared styles for the real NX application; no third-party application code. */
@font-face {
  font-family: 'NX Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html body {
  --bk-bg: #0b0d0e;
  --bk-panel: #121415;
  --bk-panel-bottom: #17191a;
  --bk-field: #1d1f20;
  --bk-line: #292c2e;
  --bk-ink: #f0f1f2;
  --bk-muted: #96999e;
  --bk-purple: #6257c1;
  --bk-purple-soft: #25223c;
  --bk-green: #24a674;
  --bk-red: #e26565;
  --bk-rail: 64px;
  --bg: var(--bk-bg) !important;
  --card: var(--bk-panel) !important;
  --panel: var(--bk-panel) !important;
  --line: var(--bk-line) !important;
  --text: var(--bk-ink) !important;
  --muted: var(--bk-muted) !important;
  --accent: var(--bk-purple) !important;
  --green: var(--bk-green) !important;
  --nx-v16-blue: var(--bk-purple);
  --nx-v16-blue-soft: var(--bk-purple-soft);
  --nx-v16-green: var(--bk-green);
  --nx-v16-green-deep: #178e62;
  --nx-v16-dark: var(--bk-bg);
  --nx-v16-dark-panel: var(--bk-panel);
  --nx-v16-dark-card: var(--bk-panel);
  --nx-v16-dark-line: var(--bk-line);
  --nx-v16-dark-muted: var(--bk-muted);
  --nx-ink: var(--bk-ink);
  --nx-muted: var(--bk-muted);
  --nx-line: var(--bk-line);
  --nx-soft: var(--bk-field);
  background: var(--bk-bg) !important;
  color: var(--bk-ink) !important;
  font-family: 'NX Inter', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12px;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
html { scrollbar-color: #393b40 #0b0d0e; scrollbar-width: thin; }
html:has(body.nx-light) { scrollbar-color: #c8c6d5 #f5f5f8; }
html body:not(.nx-light) { color-scheme: dark; }
html body.nx-light {
  color-scheme: light;
  --bk-bg: #f5f5f8;
  --bk-panel: #fff;
  --bk-panel-bottom: #fdfdff;
  --bk-field: #f3f3f7;
  --bk-line: #e1e1e9;
  --bk-ink: #22222a;
  --bk-muted: #70717f;
  --bk-purple-soft: #eeebfb;
  --nx-v16-light-line: var(--bk-line);
  --nx-v16-light-soft: var(--bk-field);
}
html body .dashboard-shell,
html body .dashboard-shell .workspace { background: var(--bk-bg) !important; }
html body .dashboard-shell .workspace {
  width: calc(100% - var(--bk-rail));
  margin-left: var(--bk-rail);
  padding: 18px 24px 22px;
}

/* Compact desktop rail expands on pointer hover or keyboard focus. */
html body .dashboard-shell .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--bk-rail);
  height: 100dvh;
  padding: 19px 8px 12px;
  background: #0d0f10 !important;
  border-right: 1px solid #242628 !important;
  box-shadow: none;
  transition: width .18s ease;
  overflow: hidden;
  z-index: 40;
}
html body.nx-light .dashboard-shell .sidebar { background: #fff !important; border-right-color: var(--bk-line) !important; }
html body .dashboard-shell .sidebar-brand { min-height: 48px; padding: 0 4px 15px; }
html body .dashboard-shell .nx-wordmark { white-space: nowrap; display: flex; align-items: center; }
html body .dashboard-shell .nx15-monogram { color: var(--bk-ink) !important; font-size: 23px; letter-spacing: -2px !important; padding-right: 3px; }
html body .dashboard-shell .nx15-pro { display: none; font-size: 9px; color: var(--bk-muted) !important; border-color: var(--bk-line) !important; }
html body .dashboard-shell .side-nav { flex: 1; gap: 3px; padding: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
html body .dashboard-shell .side-nav::-webkit-scrollbar { display: none; }
html body .dashboard-shell .nx15-group { font-size: 0; height: 10px; margin: 7px 10px 3px; border-top: 1px solid #242628; }
html body .dashboard-shell .side-link {
  position: relative;
  gap: 13px;
  flex-shrink: 0;
  padding: 11px 13px;
  min-height: 41px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent;
  color: #868b91 !important;
  white-space: nowrap;
  font-size: 11px;
}
html body .dashboard-shell .side-link > span:nth-child(2) { position: absolute; left: 47px; display: block; opacity: 0; pointer-events: none; }
html body .dashboard-shell .side-link .nav-glyph { width: 17px; height: 17px; color: inherit !important; }
html body .dashboard-shell .side-link .nav-glyph svg { width: 17px; height: 17px; stroke-width: 1.6; }
html body .dashboard-shell .side-link:hover { background: #191b1e !important; color: #fff !important; }
html body.nx-light .dashboard-shell .side-link:hover { background: #f2f0fa !important; color: #353041 !important; }
html body .dashboard-shell .side-link.active {
  background: var(--bk-purple-soft) !important;
  border: 1px solid #6257c14a !important;
  color: #c5bdfb !important;
  padding-left: 13px;
}
html body.nx-light .dashboard-shell .side-link.active { color: #5d4ab3 !important; }
html body .dashboard-shell .side-link.active .nav-glyph { color: inherit !important; }
html body .dashboard-shell .side-bottom { margin-top: 10px; padding: 10px 0 0; min-height: 42px; font-size: 0; color: var(--bk-muted) !important; border-top-color: var(--bk-line) !important; }
html body .dashboard-shell .side-bottom .nx15-brand-caption,
html body .dashboard-shell .side-bottom .online-dot { display: none; }
html body .dashboard-shell .signout { height: 31px; padding: 6px; margin: 0; font-size: 10px; border-radius: 7px; }
html body .dashboard-shell .nx171-planned-nav { height: 34px; min-height: 34px; flex-shrink: 0; margin: 3px 0; padding: 7px 14px; border-color: transparent; background: transparent; }
html body .dashboard-shell .nx171-planned-main,
html body .dashboard-shell .nx171-planned-dot { display: none; }
html body .dashboard-shell .nx171-planned-icon { color: #66627f; font-size: 15px; }
@media (min-width: 761px) {
  html body .dashboard-shell .sidebar:hover,
  html body .dashboard-shell .sidebar:focus-within { width: 244px; box-shadow: 12px 0 35px #0005; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .nx15-pro { display: inline; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .side-link > span:nth-child(2) { opacity: 1; pointer-events: auto; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .nx15-group { font-size: 9px; height: auto; margin: 18px 12px 5px; padding-top: 0; border: 0; color: #71757d; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .side-bottom { font-size: 10px; padding: 10px 6px 0; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .side-bottom .nx15-brand-caption { display: block; margin: 0 0 7px; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .signout { margin-top: 8px; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .nx171-planned-nav { height: auto; gap: 12px; padding: 8px 13px; }
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .nx171-planned-main,
  html body .dashboard-shell .sidebar:is(:hover, :focus-within) .nx171-planned-dot { display: flex; }
}

/* Header and filters retain the existing store/date/currency controls. */
html body .dashboard-shell .workspace-header { align-items: center; gap: 18px; margin-bottom: 14px; min-height: 40px; }
html body .dashboard-shell .header-heading { gap: 9px; flex-wrap: wrap; }
html body .dashboard-shell .workspace-header h1 { color: var(--bk-ink) !important; font-size: 19px; font-weight: 600; letter-spacing: -.6px; margin: 0; }
html body .dashboard-shell .eyebrow { font-size: 8px; letter-spacing: 1.35px; color: var(--bk-muted) !important; margin-bottom: 4px; }
html body .dashboard-shell .workspace-sub { margin-top: 3px; font-size: 10px; color: var(--bk-muted) !important; }
html body .dashboard-shell #who { width: auto; font-size: 9px; color: var(--bk-muted); margin: 3px 0 0; }
html body .dashboard-shell .header-actions { flex-wrap: nowrap; gap: 7px; }
html body .dashboard-shell .header-actions .icon-btn { width: 32px; height: 31px; min-height: 31px; padding: 5px; border-radius: 7px; }
html body .dashboard-shell .avatar { width: 31px; height: 31px; border-radius: 50%; background: var(--bk-purple-soft); color: #c9c2fc; border: 1px solid #544b8c; font-size: 10px; }
html body .dashboard-shell .nx15-search { min-height: 31px; height: 31px; width: 190px; padding: 0 8px; background: var(--bk-panel) !important; border-color: var(--bk-line) !important; border-radius: 7px; }
html body .dashboard-shell .nx15-search input { min-height: 27px !important; background: transparent !important; border: 0 !important; font-size: 10px !important; padding: 4px !important; }
html body .dashboard-shell .nx15-search kbd { font-size: 8px; border-color: var(--bk-line) !important; color: var(--bk-muted) !important; }
html body .dashboard-shell .header-filters { padding: 10px 12px; margin-bottom: 9px; gap: 9px; border-radius: 10px; background: var(--bk-panel) !important; border-color: var(--bk-line) !important; box-shadow: none !important; }
html body .dashboard-shell .header-filters label { font-size: 10px; color: var(--bk-muted) !important; }
html body .dashboard-shell .header-filters .profit-subline select,
html body .dashboard-shell .header-filters .filters select,
html body .dashboard-shell .header-filters .filters input { padding: 6px 9px; min-height: 30px; height: 30px; font-size: 10px; min-width: 110px; max-width: 165px; border-radius: 6px !important; }
html body .dashboard-shell .header-filters button { min-height: 30px; padding: 6px 9px; font-size: 9px; border-radius: 6px; }
html body .dashboard-shell .app-notice { margin-bottom: 12px; padding: 7px 10px; border: 1px solid var(--bk-line) !important; background: var(--bk-panel) !important; color: var(--bk-muted) !important; font-size: 10px; border-radius: 7px; }
html body .dashboard-shell .app-notice.warning { background: #292016 !important; color: #e2bd89 !important; border-color: #604d33 !important; }

/* Shared cards and the green profit / purple metric treatment. */
html body .dashboard-shell :is(.glass-panel, .card, .mini-kpi, .kpi-card:not(.featured), .nx15-feature-card, .nx15-moneybucket, .nx14-kpi:not(.nx14-primary), .nx14-note-card, .funnel-item, .nx14-cpa-results > div:not(.nx14-cpa-highlight)) {
  background: linear-gradient(165deg, var(--bk-panel) 30%, var(--bk-panel-bottom)) !important;
  border-color: var(--bk-line) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 #ffffff03 !important;
  color: var(--bk-ink) !important;
}
html body .dashboard-shell .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
html body .dashboard-shell .kpi-card { position: relative; padding: 16px 13px 12px 49px; min-height: 106px; border-radius: 14px !important; }
html body .dashboard-shell .kpi-title { font-size: 10px !important; font-weight: 500 !important; letter-spacing: 0; gap: 0 !important; color: var(--bk-muted); }
html body .dashboard-shell .kpi-number { font-size: clamp(17px, 1.55vw, 23px); font-weight: 650; line-height: 1.2; min-height: 0; margin: 7px 0 5px; letter-spacing: -.65px; font-variant-numeric: tabular-nums; color: var(--bk-ink) !important; }
html body .dashboard-shell .kpi-foot { color: var(--bk-muted) !important; font-size: 8px; line-height: 1.5; }
html body .dashboard-shell .kpi-card .icon-disc { position: absolute; left: 13px; top: 27px; }
html body .dashboard-shell .icon-disc,
html body .dashboard-shell .kpi-card .icon-disc,
html body .dashboard-shell .kpi-grid .kpi-card:not(.featured) .icon-disc {
  display: inline-grid;
  place-items: center;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 25%, #786bd5, #5147a4) !important;
  border: 1px solid #8275e655;
  color: #eeeaff !important;
  font-size: 13px !important;
  box-shadow: 0 0 0 3px #6557c116, 0 0 15px #6557c114;
}
html body .dashboard-shell .kpi-card.featured {
  background: linear-gradient(115deg, #24a675, #229e6d) !important;
  border: 1px solid #36b383 !important;
  box-shadow: inset 0 1px 0 #ffffff0b !important;
}
html body .dashboard-shell .kpi-card.featured :is(.kpi-number, .kpi-title, .kpi-foot) { color: #f3fff8 !important; }
html body .dashboard-shell .kpi-card.featured .icon-disc { background: #f2fff8 !important; color: #249f70 !important; border: 0; box-shadow: 0 0 0 3px #ffffff18; font-size: 18px !important; }
html body .dashboard-shell .overview-main-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
html body .dashboard-shell .primary-stack,
html body .dashboard-shell .side-stack { gap: 11px; }
html body .dashboard-shell .primary-stack > .micro-grid { order: -1; }
html body .dashboard-shell .glass-panel { padding: 15px; }
html body .dashboard-shell .side-stack .glass-panel { padding: 14px; }
html body .dashboard-shell .section-head { margin-bottom: 12px; gap: 9px; }
html body .dashboard-shell .section-head h2,
html body .dashboard-shell .glass-panel h2,
html body .dashboard-shell .view-pane .card h2 { color: var(--bk-ink) !important; font-size: 12px; font-weight: 550; letter-spacing: -.25px; }
html body .dashboard-shell .section-head p,
html body .dashboard-shell .glass-panel p,
html body .dashboard-shell .card p,
html body .dashboard-shell .caption { color: var(--bk-muted) !important; font-size: 10px; line-height: 1.65; }
html body .dashboard-shell .micro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
html body .dashboard-shell .mini-kpi { padding: 15px 12px; min-height: 83px; }
html body .dashboard-shell .mini-kpi span { color: var(--bk-muted) !important; font-size: 9px; }
html body .dashboard-shell .mini-kpi strong { margin-top: 10px; font-size: 17px; color: var(--bk-ink) !important; letter-spacing: -.5px; font-weight: 600; }
html body .dashboard-shell .mini-kpi::before { content: ''; float: right; width: 7px; height: 7px; border-radius: 50%; background: var(--bk-purple); box-shadow: 0 0 0 4px #6557c116; margin-top: 2px; }
html body .dashboard-shell .chart-panel { min-height: 280px; }
html body .dashboard-shell .chart-space { height: 200px; }
html body .dashboard-shell .chart-space .gridline { stroke: var(--bk-line); opacity: .65; }
html body .dashboard-shell .chart-space .axis-label { fill: var(--bk-muted); font-size: 9px; }
html body .dashboard-shell .chart-space svg rect[fill='#13cba5'] { fill: #28a477; }
html body .dashboard-shell .chart-space svg rect[fill='#7667f6'] { fill: #6559bd; }
html body .dashboard-shell .legend-dot.revenue { background: #28a477 !important; }
html body .dashboard-shell .legend-dot.ads { background: var(--bk-purple) !important; }
html body .dashboard-shell .chart-legend { font-size: 9px; gap: 15px; color: var(--bk-muted); }
html body .dashboard-shell .legend-dot { width: 7px; height: 7px; border-radius: 2px; }
html body .dashboard-shell .empty-graph { color: var(--bk-muted); }
html body .dashboard-shell .side-widget { min-height: 110px; }
html body .dashboard-shell .gauge { max-width: 160px; margin-top: 4px; }
html body .dashboard-shell .gauge svg path:first-child { stroke: var(--bk-line); }
html body .dashboard-shell #goalArc { stroke: #24a674; }
html body .dashboard-shell .gauge-value { color: var(--bk-ink) !important; font-size: 22px; font-weight: 600; }
html body .dashboard-shell .center-muted { font-size: 9px; color: var(--bk-muted); line-height: 1.5; }
html body .dashboard-shell .nxlabeled { padding: 10px 0; font-size: 10px; border-bottom: 1px solid var(--bk-line); }
html body .dashboard-shell .nxlabeled span { color: var(--bk-muted); }
html body .dashboard-shell .nxlabeled strong { color: var(--bk-ink); font-size: 10px; font-weight: 500; text-align: right; }
html body .dashboard-shell .ranking-row { padding: 10px 0; background: transparent !important; border-bottom: 1px solid var(--bk-line); border-radius: 0; font-size: 10px; }
html body .dashboard-shell .ranking-row b { color: var(--bk-green) !important; font-weight: 600; }
html body .dashboard-shell .recent { margin-top: 0; }
html body .dashboard-shell .optional-funnel { margin-top: 12px; padding: 12px 15px; color: var(--bk-muted); font-size: 10px; }

/* The screenshots' softly shaded inputs, purple actions and compact tables. */
html body .dashboard-shell :is(input, select, textarea),
html body .dashboard-shell .view-pane :is(input, select, textarea),
html body .dashboard-shell .filters :is(input, select),
html body.nx-light .dashboard-shell :is(input, select, textarea),
html body.nx-light .dashboard-shell .view-pane :is(input, select, textarea),
html body.nx-light .dashboard-shell .filters :is(input, select),
html body:not(.nx-light) .dashboard-shell :is(input, select, textarea),
html body:not(.nx-light) .dashboard-shell .view-pane :is(input, select, textarea),
html body:not(.nx-light) .dashboard-shell .filters :is(input, select) {
  background: linear-gradient(180deg, var(--bk-field), var(--bk-panel-bottom)) !important;
  border: 1px solid var(--bk-line) !important;
  border-radius: 8px !important;
  color: var(--bk-ink) !important;
  min-height: 37px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 #ffffff03;
}
html body .dashboard-shell :is(input, select, textarea):focus-visible,
html body .dashboard-shell button:focus-visible { outline: 2px solid #9688eb !important; outline-offset: 3px; }
html body .dashboard-shell input::placeholder,
html body .dashboard-shell textarea::placeholder { color: #747780; }
html body .dashboard-shell label,
html body .dashboard-shell .nx17-fields label { color: var(--bk-ink); font-size: 11px; font-weight: 450; }
html body .dashboard-shell :is(.icon-btn, .small-outline, .icon-minibtn, .alt, .row-action, .signout) {
  background: var(--bk-panel-bottom) !important;
  border: 1px solid var(--bk-line) !important;
  color: var(--bk-muted) !important;
  border-radius: 7px;
  box-shadow: none;
  font-weight: 450;
}
html body .dashboard-shell :is(.small-outline, .icon-minibtn, .row-action) { font-size: 10px; padding: 7px 10px; }
html body .dashboard-shell :is(.small-outline, .alt, .row-action, .signout):hover { background: var(--bk-purple-soft) !important; border-color: #6257c17a !important; color: var(--bk-ink) !important; }
html body:not(.nx-light) button:not(.side-link):not(.alt):not(.link):not(.row-action):not(.small-outline):not(.icon-minibtn):not(.icon-btn):not(.signout):not(.theme-toggle),
html body.nx-light button:not(.side-link):not(.alt):not(.link):not(.row-action):not(.small-outline):not(.icon-minibtn):not(.icon-btn):not(.signout):not(.theme-toggle) {
  background: var(--bk-purple) !important;
  border-color: #7c70d1 !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 500;
}
html body .dashboard-shell .pill { padding: 4px 7px; font-size: 8px; color: var(--bk-muted) !important; background: var(--bk-field) !important; border-color: var(--bk-line) !important; }
html body .dashboard-shell .pill.pending { background: #33271c !important; color: #ddbc8d !important; border-color: #645037 !important; }
html body .dashboard-shell .notice { padding: 10px 12px; color: var(--bk-muted); background: var(--bk-purple-soft); border-color: #6257c144; font-size: 10px; line-height: 1.65; }
html body .dashboard-shell .notice.error { color: #f3b3b3 !important; background: #2e1c20 !important; border-color: #6b363e !important; }
html body .dashboard-shell .view-pane :is(th, td) { border-color: var(--bk-line) !important; padding: 11px 10px; font-size: 10px; }
html body .dashboard-shell .view-pane th { font-size: 8px; color: var(--bk-muted) !important; text-transform: uppercase; letter-spacing: .45px; font-weight: 500; }
html body .dashboard-shell .view-pane td { color: var(--bk-ink) !important; }
html body .dashboard-shell .view-pane :is(td, th, p, strong) { overflow-wrap: anywhere; }
html body .dashboard-shell .tablewrap { overflow-x: auto; overscroll-behavior-inline: contain; }
html body .dashboard-shell :is(.nx13-column, .nx13-status-group, .nx13-project-col, .nx13-task, .nx13-stat, .nx13-project-card, .nx13-status-card, .nx17-record) {
  background: var(--bk-panel) !important; border-color: var(--bk-line) !important; color: var(--bk-ink) !important;
}
html body .dashboard-shell :is(.nx14-bar-rail, .nx14-bars) { border-color: var(--bk-line); }
html body .dashboard-shell .nx14-actualbar.rev { background: var(--bk-green); }
html body .dashboard-shell .nx14-actualbar.ads { background: var(--bk-purple); }
html body.nx-light .dashboard-shell .notice.error { color: #a0293c !important; background: #fff0f2 !important; border-color: #e6a9b3 !important; }
html body.nx-light .dashboard-shell .app-notice.warning { background: #fff5e6 !important; color: #7a4910 !important; border-color: #e7c38d !important; }
html body .nx13-dialog { max-width: min(680px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bk-panel); color: var(--bk-ink); border: 1px solid var(--bk-line); border-radius: 16px; padding: 22px; }
html body .nx13-dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
html body .nx13-dialog :is(input, select, textarea) { background: var(--bk-field); color: var(--bk-ink); border: 1px solid var(--bk-line); border-radius: 8px; padding: 10px; min-width: 0; }
html body .nx13-dialog label { color: var(--bk-muted); }
html body :is(input, select, textarea):user-invalid { border-color: var(--bk-red) !important; }
html body button:disabled { cursor: not-allowed; }
html body .dashboard-shell input[type='checkbox'] { width: 16px; min-height: 16px; height: 16px; padding: 0; accent-color: var(--bk-purple); }
html body .dashboard-shell .tablewrap tr:hover td { background: var(--bk-field) !important; }
html body .dashboard-shell .tablewrap { margin-top: 10px; }
html body .dashboard-shell .view-section-heading { margin: 22px 0 18px; }
html body .dashboard-shell .view-section-heading h2 { font-size: 23px; font-weight: 550; color: var(--bk-ink) !important; letter-spacing: -.6px; }
html body .dashboard-shell .view-section-heading p { color: var(--bk-muted) !important; font-size: 11px; margin-top: 6px; }
html body .dashboard-shell .view-pane > :is(.glass-panel, .card) { margin-bottom: 13px; }
html body .dashboard-shell .footer { font-size: 9px; color: #63686d; margin-top: 12px; padding: 14px 0 0; }
html body .dashboard-shell .footer span { color: var(--bk-muted); }

/* Focused forms correspond to fees, product costs, kits and team references. */
html body .dashboard-shell [data-pane='fees'] > .glass-panel,
html body .dashboard-shell [data-pane='team'] > .glass-panel { max-width: 1040px; padding: 25px; }
html body .dashboard-shell #inviteFormV12,
html body .dashboard-shell [data-pane='fees'] .extras-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; max-width: 650px; margin: 15px 0 22px; }
html body .dashboard-shell #inviteFormV12 label:first-child,
html body .dashboard-shell [data-pane='fees'] .extras-form label:first-child { grid-column: 1 / -1; }
html body .dashboard-shell #inviteFormV12 label,
html body .dashboard-shell [data-pane='fees'] .extras-form label { margin: 0; display: flex; flex-direction: column; gap: 8px; }
html body .dashboard-shell #inviteFormV12 :is(input, select),
html body .dashboard-shell [data-pane='fees'] .extras-form :is(input, select) { margin: 0; width: 100%; min-height: 42px; }
html body .dashboard-shell #inviteFormV12 > button,
html body .dashboard-shell [data-pane='fees'] .extras-form > button { grid-column: 1 / -1; justify-self: end; min-width: 130px; padding: 11px 18px; }
html body .dashboard-shell .nx-bk-segments { display: flex; gap: 8px; width: 100%; }
html body .dashboard-shell .nx-bk-segments .small-outline { flex: 1; min-height: 42px; padding: 10px; background: var(--bk-purple-soft) !important; border-color: #6257c13d !important; color: #a7a0c6 !important; font-size: 11px; }
html body .dashboard-shell .nx-bk-segments .small-outline[aria-pressed='true'] { background: var(--bk-purple) !important; border-color: #8477db !important; color: #fff !important; }
.nx-bk-native-control { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
html body .dashboard-shell .nx17-kitline { padding: 14px; border: 1px solid var(--bk-line); border-radius: 10px; background: var(--bk-panel); }
html body .dashboard-shell .nx17-kitline label { font-size: 10px; }
html body .dashboard-shell .nx17-kpi { padding: 19px; background: var(--bk-panel); border-color: var(--bk-line); border-radius: 12px; }
html body .dashboard-shell .nx17-kpi strong { color: var(--bk-ink); font-size: 23px; font-weight: 600; }
html body .dashboard-shell .nx17-kpi small { color: var(--bk-muted); }
html body .dashboard-shell .nx17-price-btn { border-color: #6257c14a !important; border-radius: 10px; color: var(--bk-ink) !important; padding: 17px !important; }
html body .dashboard-shell .nx17-price-btn:hover { border-color: #8e80e4 !important; background: var(--bk-purple-soft) !important; }
html body .dashboard-shell .nx171-roadmap { background: var(--bk-panel); border-color: var(--bk-line); }
html body .dashboard-shell .nx171-roadmap-mark { color: #9a8ce3; }
html body .dashboard-shell .nx171-planned-name { color: var(--bk-muted); }
html body .dashboard-shell .nx171-planned-detail { color: #777482; }

/* Authentication uses the same visual system without changing auth behavior. */
html body:has(#setup:not(.hidden)),
html body:has(#login:not(.hidden)) { background: radial-gradient(ellipse at 50% 0%, #28233e45, transparent 65%), var(--bk-bg) !important; }
html body :is(#setup, #login) > .card { background: var(--bk-panel) !important; border-color: var(--bk-line); border-radius: 19px; box-shadow: 0 20px 90px #0003; padding: 32px; }
html body :is(#setup, #login) h1 { color: var(--bk-ink); font-size: 27px; font-weight: 600; letter-spacing: -.9px; }
html body :is(#setup, #login) :is(p, label) { color: var(--bk-muted); font-size: 12px; }
html body :is(#setup, #login) input { background: var(--bk-field) !important; border-color: var(--bk-line) !important; color: var(--bk-ink) !important; }
html body :is(#setup, #login) .notice { color: var(--bk-muted); background: var(--bk-purple-soft); border-color: #6257c155; }
html body:has(#login:not(.hidden)) > header,
html body:has(#setup:not(.hidden)) > header { background: transparent; border-bottom-color: var(--bk-line); }

@media (min-width: 1600px) {
  html body .dashboard-shell .workspace { padding: 23px 32px; }
  html body .dashboard-shell .overview-main-grid { grid-template-columns: minmax(0, 1fr) 275px; }
  html body .dashboard-shell .kpi-card { min-height: 112px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  html body .dashboard-shell .workspace { padding: 17px 18px; }
  html body .dashboard-shell .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .dashboard-shell .overview-main-grid { grid-template-columns: minmax(0, 1fr) 215px; }
  html body .dashboard-shell .side-stack { display: flex; }
  html body .dashboard-shell .micro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .dashboard-shell .header-heading #who { width: 100%; }
  html body .dashboard-shell .nx15-search { width: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html body .dashboard-shell .sidebar { transition: none; }
}
@media (max-width: 760px) {
  html body .dashboard-shell .workspace { margin-left: 0; width: 100%; padding: 16px 13px; }
  html body .dashboard-shell .sidebar { width: 252px; padding: 18px 11px 12px; transform: translateX(-105%); }
  html body .dashboard-shell .sidebar.open { transform: translateX(0); box-shadow: 16px 0 50px #0008; }
  html body .dashboard-shell .sidebar .side-link > span:nth-child(2) { position: static; display: inline; opacity: 1; pointer-events: auto; }
  html body .dashboard-shell .sidebar .nx15-pro { display: inline; }
  html body .dashboard-shell .sidebar .side-bottom { display: block; font-size: 10px; padding: 12px 7px 0; }
  html body .dashboard-shell .sidebar .side-bottom .nx15-brand-caption { display: block; }
  html body .dashboard-shell .sidebar .signout { margin-top: 10px; }
  html body .dashboard-shell .sidebar .nx15-group { font-size: 9px; height: auto; border: 0; margin: 19px 13px 5px; color: #777b83; }
  html body .dashboard-shell .sidebar .nx171-planned-main,
  html body .dashboard-shell .sidebar .nx171-planned-dot { display: flex; }
  html body .dashboard-shell .sidebar .nx171-planned-nav { height: auto; padding: 9px 13px; gap: 12px; }
  html body .dashboard-shell .workspace-header { align-items: center; margin-bottom: 16px; gap: 8px; flex-wrap: wrap; }
  html body .dashboard-shell .header-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 3px 8px; flex: 1; min-width: 0; }
  html body .dashboard-shell .header-heading > .mobile-toggle { grid-column: 1; grid-row: 1; }
  html body .dashboard-shell .header-heading > div { grid-column: 2; grid-row: 1; min-width: 0; }
  html body .dashboard-shell .workspace-header h1 { font-size: 17px; }
  html body .dashboard-shell .workspace-sub { font-size: 9px; }
  html body .dashboard-shell .eyebrow { font-size: 7px; letter-spacing: 1px; }
  html body .dashboard-shell #who { grid-column: 1 / -1; grid-row: 2; font-size: 8px; width: 100%; padding-left: 38px; }
  html body .dashboard-shell .nx15-search { display: flex; flex: 1; width: auto; min-width: 0; }
  html body .dashboard-shell .nx15-search kbd { display: none; }
  html body .dashboard-shell .header-actions { gap: 5px; width: 100%; justify-content: flex-end; }
  html body .dashboard-shell .header-actions .icon-btn { width: 29px; height: 29px; padding: 4px; }
  html body .dashboard-shell .avatar { display: none; }
  html body .dashboard-shell .header-filters { padding: 10px; gap: 10px; }
  html body .dashboard-shell .header-filters .profit-subline { display: grid; grid-template-columns: 1fr auto; width: 100%; gap: 7px; }
  html body .dashboard-shell .header-filters .profit-subline > label { grid-column: 1 / -1; }
  html body .dashboard-shell .header-filters .profit-subline select { max-width: none; width: 100%; }
  html body .dashboard-shell .header-filters .filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  html body .dashboard-shell .header-filters .filters > div { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; }
  html body .dashboard-shell .header-filters .filters :is(select, input) { width: 100%; min-width: 0; max-width: none; }
  html body .dashboard-shell .header-filters .filters > button { align-self: end; }
  html body .dashboard-shell .kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  html body .dashboard-shell .kpi-card { min-height: 96px; padding: 15px 11px 11px 46px; }
  html body .dashboard-shell .kpi-card.featured { grid-column: 1 / -1; min-height: 100px; padding: 17px 17px 14px 62px; }
  html body .dashboard-shell .kpi-card.featured .icon-disc { left: 19px; top: 31px; width: 29px !important; height: 29px !important; }
  html body .dashboard-shell .kpi-card.featured .kpi-number { font-size: 27px; margin-top: 5px; }
  html body .dashboard-shell .kpi-number { font-size: 19px; }
  html body .dashboard-shell .kpi-title { font-size: 9px !important; }
  html body .dashboard-shell .kpi-foot { font-size: 8px; }
  html body .dashboard-shell .overview-main-grid { grid-template-columns: 1fr; }
  html body .dashboard-shell .micro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .dashboard-shell .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .dashboard-shell .side-stack > .glass-panel { padding: 12px; min-width: 0; }
  html body .dashboard-shell .side-stack .section-head { flex-wrap: wrap; }
  html body .dashboard-shell .side-stack .nxlabeled { flex-wrap: wrap; gap: 4px; }
  html body .dashboard-shell .side-stack .nxlabeled strong { text-align: left; }
  html body .dashboard-shell .side-stack .gauge { max-width: 135px; }
  html body .dashboard-shell .chart-space { height: 185px; }
  html body .dashboard-shell .chart-panel { min-height: 260px; }
  html body .dashboard-shell .view-section-heading h2 { font-size: 22px; }
  html body .dashboard-shell #inviteFormV12,
  html body .dashboard-shell [data-pane='fees'] .extras-form { grid-template-columns: 1fr; gap: 17px; }
  html body .dashboard-shell [data-pane='fees'] > .glass-panel,
  html body .dashboard-shell [data-pane='team'] > .glass-panel { padding: 18px; }
  html body .dashboard-shell .nx17-kitline { padding: 11px; gap: 10px; }
  html body .dashboard-shell .footer { gap: 10px; line-height: 1.6; }
  /* Prevent Safari from zooming the page when editing a small numeric field. */
  html body:is(.nx-light, :not(.nx-light)) .dashboard-shell .view-pane :is(input, select, textarea),
  html body:is(.nx-light, :not(.nx-light)) .dashboard-shell .filters :is(input, select),
  html body .nx13-dialog :is(input, select, textarea) { font-size: 16px !important; }
}


/* NX Pro V17.4.1 — native dropdown contrast, visual-only patch.
   Important: <option> menus can be painted by the OS rather than the page.
   color-scheme fixes native rendering; explicit option colors provide a fallback.
   All selections, option values, handlers and data flows remain unchanged. */
html:has(body:not(.nx-light)) { color-scheme: dark !important; }
html:has(body.nx-light) { color-scheme: light !important; }
html body:not(.nx-light) :is(select, optgroup, option) {
  color-scheme: dark !important;
  background-color: #1c1f23 !important;
  color: #f3f4f6 !important;
}
html body:not(.nx-light) select option:checked {
  background-color: #403868 !important;
  color: #fff !important;
}
html body:not(.nx-light) select option:disabled {
  color: #a0a5ae !important;
}
html body.nx-light :is(select, optgroup, option) {
  color-scheme: light !important;
  background-color: #fff !important;
  color: #20232b !important;
}
html body.nx-light select option:checked {
  background-color: #ded8f9 !important;
  color: #20232b !important;
}
html body.nx-light select option:disabled {
  color: #6f7480 !important;
}
