/* North Star - v2 operational layout (Platform OS). Ported from Nick's
   2026-09-26 prototype; tokens kept, type scaled to a real screen.
   Single dark theme by design (the navy/gold/cyan world). */
.ns {
  --av-bg: #06101a; --av-bg-deep: #040b12; --av-shell: #0a1622;
  --av-surface: #0e1b28; --av-surface-2: #122231; --av-surface-3: #172a3a;
  --av-line: rgba(145,165,184,.16); --av-line-strong: rgba(145,165,184,.29);
  --av-text: #f2f5f6; --av-soft: #bbc5cd; --av-muted: #8494a3; --av-dim: #6b7c8b;
  --av-gold: #d0a66b; --av-gold-soft: rgba(208,166,107,.12);
  --av-cyan: #3bd8d1; --av-cyan-soft: rgba(59,216,209,.10);
  --av-red: #ff7c84; --av-green: #59d9a5; --av-purple: #9a8cff; --av-blue: #65a9ff;
  --av-radius: 10px;
  color: var(--av-text); background: var(--av-bg);
  font-family: Inter, Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.45; min-height: 100vh;
}
html.ns-html, body.ns-body { margin: 0; background: #06101a; }
.ns * { box-sizing: border-box; }
/* :where() keeps these at element specificity: in shell mode the legacy
   stylesheet loads after this file and its own element rules win inside
   .v1-page (2026-10-01). */
:where(.ns) button, :where(.ns) input, :where(.ns) textarea, :where(.ns) select { font: inherit; }
:where(.ns) h1, :where(.ns) h2, :where(.ns) h3, :where(.ns) p { margin: 0; }
.ns [hidden] { display: none !important; }
:where(.ns) a { color: inherit; }
/* Legacy variable names the shared chrome scripts still emit. */
.ns { --text-muted: var(--av-muted); --text-color: var(--av-text); --border-color: var(--av-line); }
.ns .cursor-interaction { cursor: pointer; }

/* Atmosphere - Nick 2026-09-26: bring the Workforce tab's grid back
   and make the two glows read, offset so the page is not lit only at
   the top; the v2 preview read as bare black. */
.ns .app-frame { position: relative; min-height: 100vh; }
.ns[data-intensity="cinematic"] .app-frame::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(208,166,107,.20), transparent 32%),
    radial-gradient(circle at 86% 62%, rgba(59,216,209,.15), transparent 34%),
    radial-gradient(circle at 45% 105%, rgba(208,166,107,.08), transparent 30%),
    linear-gradient(180deg, #0a1622 0%, #06101a 55%, #040b12 100%); }
.ns .app-frame::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .11;
  background-image:
    linear-gradient(rgba(215,177,124,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215,177,124,.35) 1px, transparent 1px);
  background-size: 54px 54px; }
.ns[data-intensity="quiet"] .app-frame::before { background: linear-gradient(180deg, #0a1622 0%, #06101a 55%, #040b12 100%); }

/* Session banners (live demo exit, support view-as) inside the shell */
.ns .app-banner-reconnect { border-color: rgba(255,124,132,.45); background: rgba(255,124,132,.10); }
.ns .app-banner { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 8px 14px; border: 1px solid rgba(208,166,107,.38); border-radius: 8px; background: var(--av-gold-soft); color: var(--av-text); font-size: 12.5px; }
.ns .app-banner .btn { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid var(--av-line-strong); border-radius: 6px; background: rgba(17,31,44,.8); color: var(--av-soft); font-size: 11.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ns .app-banner .btn-primary { background: var(--av-gold); border-color: var(--av-gold); color: #17130e; }

/* Top bar */
.ns .topbar { position: sticky; top: 0; z-index: 8; min-height: 56px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--av-line); background: radial-gradient(ellipse at 12% 0%, rgba(208,166,107,.16), transparent 42%), radial-gradient(ellipse at 92% 100%, rgba(59,216,209,.10), transparent 40%), rgba(12,24,36,.97); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(208,166,107,.08), 0 10px 30px rgba(0,0,0,.25); }
.ns .brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; text-decoration: none; }
.ns .brand-mark { width: 27px; height: 31px; display: grid; place-items: center; color: var(--av-gold); border: 1px solid rgba(208,166,107,.48); border-radius: 8px 8px 11px 11px; background: linear-gradient(155deg, #26394c, #0d1824); }
.ns .brand-mark img { width: 18px; height: 20px; display: block; }
.ns .top-context { min-width: 0; display: flex; align-items: center; gap: 6px; }
.ns .context-chip, .ns .search-trigger { min-height: 31px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--av-line); border-radius: 7px; background: rgba(18,34,49,.74); color: var(--av-muted); font-size: 12px; white-space: nowrap; text-decoration: none; }
.ns .context-chip strong { color: var(--av-text); font-weight: 600; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.ns .search-trigger { width: min(240px, 26vw); margin-left: auto; justify-content: space-between; text-align: left; cursor: pointer; }
.ns .kbd { color: var(--av-dim); font-size: 10px; }
.ns .top-actions { display: flex; align-items: center; gap: 12px; color: var(--av-muted); }
.ns .sync { display: flex; gap: 6px; align-items: center; font-size: 11px; white-space: nowrap; }
.ns .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--av-cyan); box-shadow: 0 0 0 4px var(--av-cyan-soft); flex: 0 0 auto; }
.ns .avatar { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(208,166,107,.38); border-radius: 50%; background: var(--av-gold-soft); color: var(--av-gold); font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.ns .avatar:hover { border-color: var(--av-gold); }

/* Shared chrome (2026-10-01): profile + brand pickers as context chips,
   help and bell icons, the avatar menu. Legacy ids/classes kept for
   _shell_scripts.html; every property set here so styles.css (shell
   mode) cannot leak its header look in. */
:is(.ns .topbar, .ns .drawer-context) .profile-selector { display: block; margin: 0; padding: 0; min-width: 0; }
:is(.ns .topbar, .ns .drawer-context) .profile-selector label { display: none; }
:is(.ns .topbar, .ns .drawer-context) .ps-dropdown { position: relative; }
:is(.ns .topbar, .ns .drawer-context) .ps-selected { min-height: 31px; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--av-line); border-radius: 7px; background: rgba(18,34,49,.74); color: var(--av-muted); font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
:is(.ns .topbar, .ns .drawer-context) .ps-selected:hover { opacity: 1; border-color: var(--av-line-strong); color: var(--av-soft); }
:is(.ns .topbar, .ns .drawer-context) .ps-label { color: var(--av-muted); }
:is(.ns .topbar, .ns .drawer-context) .ps-name { color: var(--av-text); font-weight: 600; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
:is(.ns .topbar, .ns .drawer-context) .ps-country { color: var(--av-dim); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; background: transparent; padding: 0; border: 0; }
:is(.ns .topbar, .ns .drawer-context) .ps-chevron { width: 12px; height: 12px; color: var(--av-dim); flex: 0 0 auto; transition: transform .15s; }
:is(.ns .topbar, .ns .drawer-context) .ps-dropdown.open .ps-chevron { transform: rotate(180deg); }
:is(.ns .topbar, .ns .drawer-context) .ps-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; max-width: 380px; padding: 0; border: 1px solid var(--av-line-strong); border-radius: 10px; background: #0d1a27; box-shadow: 0 18px 50px rgba(0,0,0,.45); z-index: 30; overflow: hidden; }
:is(.ns .topbar, .ns .drawer-context) .ps-dropdown.open .ps-panel { display: block; }
:is(.ns .topbar, .ns .drawer-context) .ps-search { width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--av-line-strong); border-radius: 0; background: transparent; color: var(--av-text); padding: 10px 12px; font-size: 13px; outline: none; box-shadow: none; }
:is(.ns .topbar, .ns .drawer-context) .ps-search::placeholder { color: var(--av-dim); }
:is(.ns .topbar, .ns .drawer-context) .ps-options { max-height: 300px; overflow-y: auto; padding: 6px; }
:is(.ns .topbar, .ns .drawer-context) .ps-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--av-soft); font-size: 12.5px; cursor: pointer; }
:is(.ns .topbar, .ns .drawer-context) .ps-option-name { font-weight: 500; }
:is(.ns .topbar, .ns .drawer-context) .ps-option-country { color: var(--av-dim); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
:is(.ns .topbar, .ns .drawer-context) .ps-option:hover, :is(.ns .topbar, .ns .drawer-context) .ps-option-focused { background: var(--av-gold-soft); color: var(--av-text); }
:is(.ns .topbar, .ns .drawer-context) .ps-option-active { color: var(--av-gold); }
:is(.ns .topbar, .ns .drawer-context) .ps-option-active .ps-option-name { color: var(--av-gold); }
:is(.ns .topbar, .ns .drawer-context) .ps-hidden { display: none; }
:is(.ns .topbar, .ns .drawer-context) .ps-no-results { padding: 10px; color: var(--av-dim); font-size: 12px; }
.ns .top-icon { position: relative; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid var(--av-line); border-radius: 7px; background: rgba(18,34,49,.74); color: var(--av-muted); cursor: pointer; text-decoration: none; }
.ns .top-icon:hover { color: var(--av-text); border-color: var(--av-line-strong); }
.ns .top-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--av-red); color: #1f1316; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.ns .notif-bell-wrapper { position: relative; display: inline-flex; align-items: center; }
.ns .notif-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 32px); max-height: 480px; border: 1px solid var(--av-line-strong); border-radius: 10px; background: #0d1a27; box-shadow: 0 18px 50px rgba(0,0,0,.45); z-index: 30; overflow: hidden; text-align: left; }
.ns .notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--av-line-strong); color: var(--av-text); font-size: 12.5px; }
.ns .notif-head a { color: var(--av-muted); font-size: 11px; text-decoration: none; }
.ns .notif-list { max-height: 380px; overflow-y: auto; }
.ns .notif-empty { padding: 24px 16px; text-align: center; color: var(--av-dim); font-size: 12px; }
.ns .notif-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--av-line); cursor: pointer; }
.ns .notif-item.is-unread { background: rgba(208,166,107,.06); }
.ns .notif-item:hover { background: rgba(255,255,255,.03); }
.ns .notif-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.ns .notif-text { flex: 1; min-width: 0; }
.ns .notif-title { color: var(--av-text); font-size: 12.5px; font-weight: 600; }
.ns .notif-item:not(.is-unread) .notif-title { font-weight: 500; color: var(--av-soft); }
.ns .notif-body { margin-top: 2px; color: var(--av-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ns .notif-time { margin-top: 3px; color: var(--av-dim); font-size: 10.5px; }
.ns .notif-foot { padding: 8px 14px; border-top: 1px solid var(--av-line); text-align: right; }
.ns .notif-foot button { padding: 2px 6px; border: 0; background: none; color: var(--av-muted); font-size: 11px; cursor: pointer; }
.ns .user-menu { position: relative; display: inline-block; }
.ns .user-menu .dropdown-toggle::after { display: none; }
.ns .user-menu .dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 232px; padding: 6px; border: 1px solid var(--av-line-strong); border-radius: 10px; background: #0d1a27; box-shadow: 0 18px 50px rgba(0,0,0,.45); z-index: 30; backdrop-filter: none; }
.ns .user-menu .dropdown-menu.show { display: block; }
.ns .user-menu .dropdown-user { padding: 6px 10px 2px; color: var(--av-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns .user-menu .dropdown-plan { padding: 2px 10px 8px; color: var(--av-gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ns .user-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--av-soft); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: none; }
.ns .user-menu .dropdown-item svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--av-muted); }
.ns .user-menu .dropdown-item:hover { background: var(--av-gold-soft); color: var(--av-text); }
.ns .user-menu .dropdown-item.is-current { color: var(--av-gold); }
.ns .user-menu .dropdown-divider { height: 1px; margin: 6px 4px; background: var(--av-line); }

/* Scrollbars in the theme (Nick 2026-10-01): thin, line-coloured
   thumb, no track. scrollbar-color for Chrome 121+ / Firefox / Safari
   18.2+, the -webkit- rules for older Safari. */
html.ns-html { scrollbar-width: thin; scrollbar-color: rgba(145,165,184,.28) #06101a; }
.ns, .ns * { scrollbar-width: thin; scrollbar-color: rgba(145,165,184,.28) transparent; }
html.ns-html::-webkit-scrollbar, .ns ::-webkit-scrollbar { width: 10px; height: 10px; }
html.ns-html::-webkit-scrollbar-track, .ns ::-webkit-scrollbar-track { background: transparent; }
html.ns-html::-webkit-scrollbar-thumb, .ns ::-webkit-scrollbar-thumb { background: rgba(145,165,184,.24); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
html.ns-html::-webkit-scrollbar-thumb:hover, .ns ::-webkit-scrollbar-thumb:hover { background: rgba(145,165,184,.42); background-clip: padding-box; }
html.ns-html::-webkit-scrollbar-corner, .ns ::-webkit-scrollbar-corner { background: transparent; }

/* Shell + rail. The groups scroll inside .rail-scroll; the plan line
   and the collapse control stay pinned at the bottom (Nick 2026-10-01). */
.ns .shell { position: relative; display: grid; grid-template-columns: 212px minmax(0,1fr); min-height: calc(100vh - 56px); }
.ns .menu-toggle, .ns .drawer-head, .ns .drawer-context, .ns .drawer-backdrop { display: none; }
body.ns-drawer-lock { overflow: hidden; }
.ns[data-compact-rail="true"] .shell { grid-template-columns: 64px minmax(0,1fr); }
.ns .sidebar { display: flex; flex-direction: column; padding: 18px 11px 14px; border-right: 1px solid var(--av-line); background: rgba(6,14,23,.66); position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; }
.ns .rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; }
.ns .rail-tip { position: fixed; z-index: 50; transform: translateY(-50%); padding: 5px 9px; border: 1px solid var(--av-line-strong); border-radius: 6px; background: #101e2b; color: var(--av-text); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; }
.ns .nav-group { margin-bottom: 12px; }
.ns .nav-label { padding: 0 9px 7px; color: var(--av-dim); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ns .nav-button { position: relative; width: 100%; min-height: 33px; display: flex; align-items: center; gap: 10px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--av-muted); text-align: left; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ns .nav-button.is-locked { opacity: .5; }
.ns .nav-button.is-locked::after { content: ""; margin-left: auto; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: inset 0 -5px 0 0 currentColor; opacity: .7; }
.ns .nav-button:hover { color: var(--av-text); background: rgba(255,255,255,.03); }
.ns .nav-button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ns .nav-button[aria-current="page"] { color: var(--av-text); background: var(--av-gold-soft); }
.ns .nav-button[aria-current="page"]::before { content: ""; position: absolute; left: 0; width: 2px; height: 16px; border-radius: 2px; background: var(--av-gold); }
.ns .nav-count { margin-left: auto; color: var(--av-gold); font-size: 11px; font-variant-numeric: tabular-nums; }
.ns .rail-foot { flex: 0 0 auto; padding: 11px 9px; border-top: 1px solid var(--av-line); color: var(--av-muted); font-size: 11px; line-height: 1.5; }
.ns .rail-foot strong { display: flex; gap: 7px; align-items: center; color: var(--av-text); }
.ns .rail-toggle { margin-top: 8px; width: 100%; min-height: 32px; border: 1px solid var(--av-line); border-radius: 6px; background: transparent; color: var(--av-dim); font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ns .rail-toggle:hover { color: var(--av-text); border-color: var(--av-line-strong); }
.ns .rail-toggle svg { transition: transform .15s ease; }
.ns[data-compact-rail="true"] .rail-toggle svg { transform: rotate(180deg); }
.ns[data-compact-rail="true"] .rail-foot { display: none; }
.ns[data-compact-rail="true"] .rail-toggle { margin-top: 0; }
.ns[data-compact-rail="true"] .nav-label, .ns[data-compact-rail="true"] .rail-foot, .ns[data-compact-rail="true"] .nav-text, .ns[data-compact-rail="true"] .nav-count, .ns[data-compact-rail="true"] .rail-toggle span { display: none; }
.ns[data-compact-rail="true"] .nav-button { justify-content: center; padding: 8px 0; }
.ns[data-compact-rail="true"] .sidebar { padding-inline: 8px; }

/* Main - full width with the same gutter the Workspace pages get
   (Nick 2026-10-01: the fixed 1140px column is gone). */
.ns .main { min-width: 0; padding: 22px clamp(16px, 2.4vw, 32px) 44px; }
.ns .page { max-width: none; margin: 0; }
.ns .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--av-gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ns .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--av-gold); }
.ns .page-title { margin-top: 10px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.ns .page-subtitle { max-width: 68ch; margin-top: 9px; color: var(--av-muted); font-size: 13px; line-height: 1.55; }
.ns .page-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: end; margin-bottom: 22px; }
.ns .page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ns .primary-action, .ns .secondary-action, .ns .row-action, .ns .ghost-action { min-height: 34px; padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ns .primary-action { border: 1px solid var(--av-gold); background: var(--av-gold); color: #17130e; }
.ns .primary-action:disabled { opacity: .5; cursor: not-allowed; }
.ns .secondary-action { border: 1px solid var(--av-line-strong); background: rgba(17,31,44,.8); color: var(--av-soft); }
.ns .row-action { min-height: 30px; border: 1px solid rgba(208,166,107,.36); background: transparent; color: var(--av-gold); }
.ns .ghost-action { border: 0; background: transparent; color: var(--av-muted); padding-inline: 5px; }
.ns .ghost-action:hover { color: var(--av-text); }

/* Hero */
.ns .hero { position: relative; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(190px,.55fr); gap: 28px; align-items: center; padding: 12px 0 28px; }
.ns .hero-copy h1 { margin-top: 13px; max-width: 24ch; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; text-wrap: balance; }
.ns .hero-copy h1 em { color: var(--av-gold); font-style: normal; }
.ns .hero-copy p { max-width: 62ch; margin-top: 13px; color: var(--av-muted); font-size: 13px; line-height: 1.6; }
.ns .hero-orbit { position: relative; width: 184px; height: 184px; display: grid; place-items: center; margin-left: auto; border-radius: 50%;
  background: conic-gradient(var(--av-gold) 0 var(--orbit-gold,24%), rgba(208,166,107,.09) var(--orbit-gold,24%) 58%, var(--av-cyan) 58% var(--orbit-cyan,79%), rgba(59,216,209,.08) var(--orbit-cyan,79%) 100%);
  box-shadow: 0 0 70px rgba(59,216,209,.08), inset 0 0 0 1px rgba(255,255,255,.05); }
.ns .hero-orbit::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #09131e; border: 1px solid var(--av-line-strong); }
.ns .orbit-inner { position: relative; z-index: 1; text-align: center; padding: 0 22px; }
.ns .orbit-value { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.ns .orbit-label { margin-top: 6px; color: var(--av-gold); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; max-width: 120px; margin-inline: auto; line-height: 1.25; }
.ns .orbit-note { margin-top: 4px; color: var(--av-muted); font-size: 11px; max-width: 120px; margin-inline: auto; }

/* Signal ledger */
.ns .signal-ledger { display: grid; grid-template-columns: repeat(var(--signal-count,3), minmax(0,1fr)) auto; margin-bottom: 26px; border-top: 1px solid var(--av-line-strong); border-bottom: 1px solid var(--av-line); }
.ns .signal { position: relative; min-width: 0; padding: 14px 18px 15px 0; text-decoration: none; }
.ns .signal + .signal { padding-left: 18px; border-left: 1px solid var(--av-line); }
.ns .signal::before { content: ""; position: absolute; top: -3px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--av-cyan); box-shadow: 0 0 12px var(--av-cyan); }
.ns .signal.warn::before { background: var(--av-gold); box-shadow: 0 0 12px rgba(208,166,107,.7); }
.ns .signal.risk::before { background: var(--av-red); box-shadow: 0 0 12px rgba(255,124,132,.65); }
.ns .signal strong { display: block; color: var(--av-text); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns .signal span { display: block; margin-top: 4px; color: var(--av-muted); font-size: 12px; line-height: 1.35; }
.ns .ledger-meta { align-self: center; padding-left: 18px; color: var(--av-dim); font-size: 11px; line-height: 1.5; white-space: nowrap; }

/* Sales strip (Today) */
.ns .sales-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--av-line-strong); border-bottom: 1px solid var(--av-line); margin-top: 4px; }
.ns .sales-cell { min-width: 0; padding: 14px 18px 14px 0; text-decoration: none; color: inherit; position: relative; }
.ns .sales-cell + .sales-cell { padding-left: 18px; border-left: 1px solid var(--av-line); }
.ns .sales-cell::before { content: ""; position: absolute; top: -3px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--av-cyan); box-shadow: 0 0 12px var(--av-cyan); }
.ns .sales-cell + .sales-cell::before { left: 18px; }
.ns .s-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ns .s-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-gold); }
.ns .s-sub { font-size: 11px; color: var(--av-dim); white-space: nowrap; }
.ns .s-value { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns .s-lines { display: flex; gap: 14px; margin-top: 6px; font-size: 11.5px; color: var(--av-muted); }
.ns .s-lines b { color: var(--av-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ns .s-lines b.neg { color: var(--av-red); }
.ns .s-lines i { font-style: normal; color: var(--av-dim); font-size: 10.5px; }
.ns .s-cmp { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ns .s-cmp em { font-style: normal; font-weight: 400; color: var(--av-dim); }
.ns .s-cmp .up { color: var(--av-green); }
.ns .s-cmp .down { color: var(--av-red); }
.ns .s-cmp .na { color: var(--av-dim); }
.ns .strip-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 22px; color: var(--av-dim); font-size: 11px; }
.ns .team-row.cos strong { color: var(--av-gold); }
.ns .team-row small { white-space: normal; }
@media (max-width: 1000px) { .ns .sales-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } .ns .sales-cell:nth-child(3) { border-left: 0; padding-left: 0; } .ns .sales-cell:nth-child(3)::before { left: 0; } .ns .sales-cell:nth-child(n+3) { border-top: 1px solid var(--av-line); } }
@media (max-width: 520px) { .ns .sales-strip { grid-template-columns: 1fr; } .ns .sales-cell, .ns .sales-cell + .sales-cell { padding-left: 0; border-left: 0; } .ns .sales-cell + .sales-cell::before { left: 0; } .ns .strip-foot { flex-direction: column; align-items: flex-start; } }

/* Sections */
.ns .section-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(255px,.8fr); gap: 28px; }
.ns .equal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.ns .three-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.ns .section { min-width: 0; }
.ns .section + .section { margin-top: 28px; }
.ns .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--av-line-strong); }
.ns .section-head h2 { margin-top: 7px; font-size: 17px; letter-spacing: -.02em; }
.ns .section-head p, .ns .section-meta { color: var(--av-dim); font-size: 11px; line-height: 1.4; text-align: right; }
.ns .subtle-surface { padding: 16px; border: 1px solid var(--av-line); border-radius: var(--av-radius); background: rgba(12,27,40,.72); }

/* Rows */
.ns .decision-row, .ns .list-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--av-line); }
.ns .row-index { align-self: start; color: var(--av-gold); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ns .row-title { color: var(--av-text); font-size: 13px; font-weight: 700; line-height: 1.4; }
.ns .row-copy { margin-top: 4px; color: var(--av-muted); font-size: 12px; line-height: 1.5; }
.ns .row-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--av-dim); font-size: 11px; }
.ns .row-meta .impact { color: var(--av-gold); }
.ns .state { color: var(--av-cyan); font-size: 11px; white-space: nowrap; text-transform: lowercase; }
.ns .state.warn { color: var(--av-gold); }
.ns .state.risk { color: var(--av-red); }
.ns .sev-act_now .row-index { color: var(--av-red); }

/* Team rail */
.ns .team-rail { }
.ns .bar-track.is-empty { opacity: .35; }
.ns .outcome-items-toggle { display: inline-block; margin-top: 6px; font-size: 11px; }
.ns .outcome-items { margin-top: 8px; }
.ns th.sortable a { color: inherit; text-decoration: none; }
.ns th.sortable a:hover { text-decoration: underline; }
.ns th.is-sorted a { color: var(--av-gold); }
.ns .cell-link { color: var(--av-cyan); text-decoration: none; }
.ns .cell-link:hover { text-decoration: underline; }
.ns .item-verdicts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ns .pl-edit { font: inherit; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--av-cyan); background: none; border: 1px solid var(--av-line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; cursor: pointer; vertical-align: middle; }
.ns .pl-edit:hover, .ns .pl-edit.is-on { border-color: var(--av-cyan); }
.ns .pl-editor { margin-top: 6px; }
.ns .pl-editor .ns-input { width: 100%; }
.ns .pl-editor small { display: block; margin-top: 4px; color: var(--av-dim); font-size: 11px; }
.ns .pl-field.is-changed > .detail-kicker, .ns .kv.is-changed .kv-label { color: var(--av-gold); }
.ns .pl-review { position: sticky; bottom: 0; z-index: 20; margin-top: 18px; padding: 12px 16px; background: var(--av-surface, #12161c); border: 1px solid var(--av-gold); border-radius: 10px; box-shadow: 0 -8px 30px rgba(0,0,0,.35); }
.ns .pl-review-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--av-muted); }
.ns .pl-review-head strong { color: var(--av-gold); font-size: 13px; }
.ns .pl-review-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 12px; }
.ns .pl-review-list .before { color: var(--av-dim); text-decoration: line-through; }
.ns .pl-review-list .after { color: var(--av-text, #e8edf2); }
.ns .pl-review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ns .pl-review-actions .ns-input { flex: 1; min-width: 200px; }
.ns .pl-review-result { margin-top: 10px; font-size: 12px; }
.ns .pl-review-result .ok { color: var(--av-green, #59d9a5); }
.ns .pl-review-result .bad { color: var(--av-red); }
.ns .item-verdict { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 10px; align-items: baseline; font-size: 12px; }
.ns .item-verdict .verdict { font-size: 10px; padding: 1px 7px; }
.ns .item-verdict span:not(.verdict) { grid-column: 2; color: var(--av-muted); }
.ns .item-verdict small { grid-column: 2; color: var(--av-dim); }
.ns .row-links { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.ns .row-links a { font-size: 11px; color: var(--av-cyan); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns .row-links a:hover { text-decoration: underline; }
.ns .team-row { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--av-line); text-decoration: none; }
.ns .team-row .dot { width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: var(--av-cyan); }
.ns .team-row.waiting .dot { background: var(--av-gold); }
.ns .team-row strong { display: block; font-size: 12px; }
.ns .team-row small { display: block; margin-top: 3px; color: var(--av-muted); font-size: 11px; line-height: 1.4; }
.ns .team-row em { color: var(--av-dim); font-size: 11px; font-style: normal; white-space: nowrap; }
.ns .team-row.waiting em { color: var(--av-gold); }
.ns .proof-note { margin-top: 20px; padding: 13px 0 0 15px; border-top: 1px solid var(--av-line); border-left: 2px solid var(--av-gold); }
.ns .proof-note strong { display: block; font-size: 12px; }
.ns .proof-note p { margin-top: 5px; color: var(--av-muted); font-size: 12px; line-height: 1.5; }

/* Charts */
.ns .chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 8px; color: var(--av-muted); font-size: 11px; }
.ns .legend-item { display: flex; align-items: center; gap: 6px; }
.ns .legend-swatch { width: 10px; height: 2px; background: var(--swatch); }
.ns .chart-host { min-height: 190px; width: 100%; }
.ns .chart-host.compact { min-height: 150px; }
.ns .chart-host svg { display: block; width: 100%; height: auto; overflow: visible; }
.ns .chart-host text { font-family: inherit; fill: var(--av-muted); font-size: 11px; }
.ns .chart-host .grid-line { stroke: var(--av-line); stroke-width: 1; }
.ns .chart-host .value-label { fill: var(--av-text); font-size: 11px; font-weight: 700; }
.ns .chart-empty { color: var(--av-dim); font-size: 12px; padding: 24px 0; }

/* Bars */
.ns .bar-list { padding-top: 9px; }
.ns .bar-row { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(120px,1.3fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--av-line); }
.ns .bar-label strong { display: block; font-size: 12px; }
.ns .bar-label span { display: block; margin-top: 3px; color: var(--av-dim); font-size: 11px; }
.ns .bar-track { height: 7px; border-radius: 999px; background: rgba(132,148,163,.12); overflow: hidden; }
.ns .bar-fill { height: 100%; border-radius: inherit; background: var(--bar-color, var(--av-cyan)); }
.ns .bar-value { color: var(--av-soft); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tabs */
.ns .mini-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 13px; }
.ns .mini-tab { min-height: 30px; padding: 5px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--av-muted); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ns .mini-tab[aria-selected="true"] { border-color: rgba(208,166,107,.34); background: var(--av-gold-soft); color: var(--av-gold); }

/* Decision workbench */
/* Two columns: the queue on the left spans both rows; the evidence
   sits right with the audit trail as a strip beneath it (2026-09-28:
   the third column sat empty under four bullets while the evidence
   column overflowed). */
.ns .decision-workbench { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,2.2fr); grid-template-rows: auto auto; margin-top: 14px; border-top: 1px solid var(--av-line-strong); border-bottom: 1px solid var(--av-line-strong); }
.ns .queue-pane, .ns .decision-detail, .ns .lifecycle-pane { min-width: 0; padding: 16px; }
.ns .queue-pane { grid-row: 1 / span 2; }
.ns .decision-detail, .ns .lifecycle-pane { border-left: 1px solid var(--av-line-strong); }
.ns .lifecycle-pane { border-top: 1px solid var(--av-line-strong); }
.ns .life-steps { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 14px; }
.ns .lifecycle-pane .life-step { flex: 1 1 200px; padding: 0 0 0 18px; }
.ns .lifecycle-pane .life-step::after { display: none; }
.ns .queue-item { width: 100%; display: block; padding: 12px 10px; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--av-line); background: transparent; color: var(--av-muted); text-align: left; cursor: pointer; text-decoration: none; }
.ns .queue-item:hover { color: var(--av-text); }
.ns .queue-item[aria-selected="true"] { background: var(--av-gold-soft); color: var(--av-text); border-left-color: var(--av-gold); }
.ns .queue-item.sev-act_now[aria-selected="false"] { border-left-color: rgba(255,124,132,.55); }
.ns .queue-item strong { display: block; font-size: 12.5px; line-height: 1.4; }
.ns .queue-item span { display: block; margin-top: 5px; color: var(--av-dim); font-size: 11px; line-height: 1.4; }
.ns .detail-kicker { color: var(--av-gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ns .decision-detail h2 { margin-top: 8px; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.ns .decision-detail > p { margin-top: 8px; color: var(--av-muted); font-size: 12.5px; line-height: 1.55; max-width: 70ch; }
.ns .impact-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 1px; margin-top: 17px; background: var(--av-line); }
.ns .impact-fact { padding: 11px; background: var(--av-bg); }
.ns .impact-fact span { display: block; color: var(--av-dim); font-size: 11px; }
.ns .impact-fact strong { display: block; margin-top: 5px; font-size: 15px; }
.ns .impact-fact small { display: block; margin-top: 4px; color: var(--av-dim); font-size: 10.5px; line-height: 1.35; }
.ns .evidence-list { margin-top: 16px; border-top: 1px solid var(--av-line-strong); }
.ns .evidence-row { display: grid; grid-template-columns: minmax(140px,1fr) minmax(0,.8fr) minmax(0,1.4fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--av-line); font-size: 11.5px; }
.ns .evidence-row > span { color: var(--av-dim); }
.ns .evidence-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 0 7px; border-bottom: 1px solid var(--av-line); font-size: 11.5px; }
.ns .evidence-head strong { color: var(--av-text); font-weight: 700; }
.ns .evidence-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ns .evidence-row > span .evidence-chips { display: flex; }
.ns .evidence-chips em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--av-line); border-radius: 999px; color: var(--av-dim); white-space: nowrap; }
.ns .evidence-chips em b { color: var(--av-soft); font-weight: 600; }
.ns .evidence-why { margin-top: 4px; color: var(--av-dim); font-size: 11px; line-height: 1.45; }
/* Long text fields (bullets, search terms) stack Currently / Changes to
   instead of squeezing into two narrow columns (2026-09-28). */
.ns .evidence-row.is-long { grid-template-columns: 1fr; gap: 8px; }
.ns .evidence-row.is-long .before, .ns .evidence-row.is-long .after { white-space: pre-line; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--av-line); border-radius: 6px; }
.ns .evidence-row.is-long .before { text-decoration: none; }
.ns .evidence-row.is-long small { display: block; margin-bottom: 4px; color: var(--av-dim); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ns .evidence-row .after .awh-dw-add { background: rgba(89,217,165,.18); color: var(--av-text); border-radius: 3px; padding: 0 1px; }
.ns .evidence-row .after .awh-dw-del, .ns .evidence-row .before .awh-dw-del { background: rgba(255,124,132,.18); text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
.ns .evidence-row.is-excluded { opacity: .45; }
.ns .evidence-row .pick { display: inline-block; margin-right: 6px; vertical-align: middle; }
.ns .evidence-row .pick input { accent-color: var(--av-gold); }
.ns .ov-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--av-dim); }
.ns .ov-row input { min-height: 28px; padding: 3px 8px; border: 1px solid var(--av-line-strong); border-radius: 6px; background: var(--av-bg); color: var(--av-text); font-size: 12px; }
.ns .ov-row input.ns-ov { width: 90px; }
.ns .ov-row input.ns-ov-note { flex: 1 1 160px; max-width: 320px; }
/* Signal tables: the rows behind a platform count */
.ns .signal-table { margin-top: 16px; overflow-x: auto; border-top: 1px solid var(--av-line-strong); }
.ns .signal-table table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ns .signal-table th { padding: 8px 8px; text-align: left; color: var(--av-dim); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--av-line); white-space: nowrap; }
.ns .signal-table td { padding: 8px 8px; vertical-align: top; border-bottom: 1px solid var(--av-line); color: var(--av-text); white-space: nowrap; }
.ns .signal-table td.lines { white-space: normal; }
.ns .signal-table td.tone-good { color: var(--av-green, #59d9a5); }
.ns .signal-table td.tone-bad { color: var(--av-red, #ff7c84); }
.ns .signal-table small.tone-up { color: var(--av-green, #59d9a5); }
.ns .signal-table small.tone-down { color: var(--av-red, #ff7c84); }
.ns .budget-edit input.tone-up { border-color: rgba(89,217,165,.75); box-shadow: 0 0 0 1px rgba(89,217,165,.35); }
.ns .budget-edit input.tone-down { border-color: rgba(255,124,132,.75); box-shadow: 0 0 0 1px rgba(255,124,132,.35); }
.ns .signal-table td small { display: block; color: var(--av-dim); font-size: 10.5px; margin-top: 2px; }
.ns .signal-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns .signal-table td.lines div { color: var(--av-muted); line-height: 1.4; max-width: 46ch; }
.ns .signal-table td.lines div + div { margin-top: 3px; }
.ns .budget-edit { display: flex; gap: 4px; align-items: center; }
.ns .budget-edit input { width: 76px; min-height: 28px; padding: 3px 6px; border: 1px solid var(--av-line-strong); border-radius: 6px; background: var(--av-bg); color: var(--av-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.ns .budget-edit .secondary-action { min-height: 28px; padding: 3px 9px; font-size: 11.5px; }
.ns .table-foot { margin-top: 8px; color: var(--av-dim); font-size: 11px; line-height: 1.45; }
.ns .table-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Department pages carry the desk's row tables inline under each tile */
.ns .decision-fold { border-bottom: 1px solid var(--av-line); }
.ns .decision-fold .decision-row { border-bottom: 0; padding-bottom: 8px; }
.ns .fold-toggle { margin: 0 0 12px 40px; padding-inline: 0; font-size: 11.5px; }
.ns .decision-fold .signal-inline { border-bottom: 0; padding-top: 0; }
.ns .signal-inline { padding: 0 0 14px 40px; border-bottom: 1px solid var(--av-line); }
.ns .signal-inline .signal-table { margin-top: 6px; border-top: 0; }
.ns .signal-inline .signal-table table { font-size: 11px; }
.ns .team-overdue { margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(255,124,132,.35); border-radius: 6px; color: var(--av-muted); font-size: 11.5px; line-height: 1.45; }
.ns .team-overdue a { color: var(--av-gold); }
.ns .list-row.is-signal .row-title { color: var(--av-gold); }
/* Bronze safe tag on the queue row (2026-09-28: '· safe' in the sub-line was invisible) */
.ns .queue-item .safe-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(208,166,107,.5); border-radius: 999px; background: var(--av-gold-soft); color: var(--av-gold); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.ns .evidence-row .before { color: var(--av-muted); text-decoration: line-through rgba(255,124,132,.5); }
.ns .evidence-row .after { color: var(--av-text); }
.ns .evidence-row ins { background: rgba(89,217,165,.18); text-decoration: none; }
.ns .evidence-row del { background: rgba(255,124,132,.18); }
.ns .detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.ns .detail-status { font-size: 12px; color: var(--av-muted); }
.ns .life-step { position: relative; padding: 0 0 17px 18px; color: var(--av-muted); font-size: 11.5px; line-height: 1.45; }
.ns .life-step::before { content: ""; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--av-cyan); }
.ns .life-step::after { content: ""; position: absolute; left: 2.5px; top: 13px; bottom: 2px; width: 1px; background: var(--av-line-strong); }
.ns .life-step:last-child::after { display: none; }
.ns .life-step.pending::before { background: var(--av-gold); }
.ns .life-step strong { display: block; margin-bottom: 4px; color: var(--av-text); font-size: 12px; }
.ns .signal-detail { margin-top: 16px; padding: 14px; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(12,27,40,.6); font-size: 12.5px; color: var(--av-soft); line-height: 1.55; }

/* Outcomes */
.ns .outcome-timeline { border-top: 1px solid var(--av-line-strong); }
.ns .outcome-row { display: grid; grid-template-columns: 70px 120px minmax(0,1fr) auto 18px; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--av-line); font-size: 12.5px; text-decoration: none; }
.ns .outcome-link { color: var(--av-dim); text-decoration: none; font-size: 14px; line-height: 1.4; }
.ns .outcome-link:hover { color: var(--av-gold); }
.ns .verdict-detail { margin-top: 8px; font-size: 11.5px; }
.ns .verdict-detail summary { cursor: pointer; color: var(--av-gold); font-weight: 700; }
.ns .verdict-detail dl { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 4px 12px; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--av-line); border-radius: 6px; }
.ns .verdict-detail dt { color: var(--av-dim); }
.ns .verdict-detail dd { margin: 0; color: var(--av-text); line-height: 1.5; font-variant-numeric: tabular-nums; }
.ns .verdict-detail a { color: var(--av-cyan); text-decoration: none; }
.ns .bar-row { text-decoration: none; color: inherit; }
.ns .bar-segments { display: flex; height: 100%; width: 100%; }
.ns .bar-segments span { display: block; height: 100%; }
.ns .bar-track { min-width: 40px; }
.ns .proof-note.risk { border-left-color: var(--av-red); }
.ns .outcome-date { color: var(--av-dim); font-variant-numeric: tabular-nums; }
.ns .outcome-kind { color: var(--av-gold); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.ns .outcome-main strong { display: block; }
.ns .outcome-main span { display: block; margin-top: 4px; color: var(--av-muted); font-size: 11.5px; }
/* Pills: verdicts are loud (filled), waiting states are quiet (2026-09-28:
   '39D LEFT' and HURT looked alike). */
.ns .verdict { min-width: 80px; text-align: right; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; line-height: 1.4; }
.ns .verdict.plain, .ns .verdict.maturing, .ns .verdict.due { font-weight: 600; letter-spacing: 0; color: var(--av-dim); }
.ns .verdict.maturing { color: var(--av-muted); }
.ns .verdict.due { color: var(--av-gold); }
.ns .verdict.failed, .ns .verdict.v-hurt { color: var(--av-red); text-transform: uppercase; }
.ns .verdict.v-helped { color: var(--av-green); text-transform: uppercase; }
.ns .verdict.v-neutral { color: var(--av-blue); text-transform: uppercase; }
.ns .verdict.v-confounded, .ns .verdict.v-lowvolume { color: var(--av-gold); text-transform: uppercase; }
.ns .verdict.v-applied { color: var(--av-cyan); text-transform: uppercase; }
.ns .verdict.v-unread { color: var(--av-dim); text-transform: uppercase; }
.ns .verdict.provisional { opacity: .8; font-weight: 700; }

/* Workforce */
.ns .workforce-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-top: 1px solid var(--av-line-strong); border-bottom: 1px solid var(--av-line); margin-top: 16px; }
.ns .workforce-stat { padding: 13px 12px; }
.ns .workforce-stat + .workforce-stat { border-left: 1px solid var(--av-line); }
.ns .workforce-stat strong { display: block; font-size: 20px; color: var(--av-gold); font-variant-numeric: tabular-nums; }
.ns .workforce-stat span { display: block; margin-top: 4px; color: var(--av-muted); font-size: 11px; line-height: 1.35; }

/* Tools */
.ns .tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.ns .tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.ns .tool-button { min-height: 72px; padding: 12px; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(14,27,40,.68); color: var(--av-soft); text-align: left; text-decoration: none; display: block; }
.ns .tool-button:hover { border-color: rgba(208,166,107,.4); }
.ns .tool-button strong { display: block; color: var(--av-text); font-size: 13px; }
.ns .tool-button span { display: block; margin-top: 5px; color: var(--av-muted); font-size: 11px; line-height: 1.4; }

/* Growth plan */
.ns .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.ns .plan-field label { display: block; color: var(--av-gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ns .plan-field textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(12,27,40,.8); color: var(--av-text); font-size: 13px; line-height: 1.5; resize: vertical; }
.ns .plan-field textarea:focus { outline: none; border-color: var(--av-gold); }
.ns .ns-input { width: 100%; border: 1px solid var(--av-line); border-radius: 8px; padding: 10px 12px; background: rgba(12,27,40,.8); color: var(--av-text); font-size: 13px; }
.ns .ns-input:focus { outline: none; border-color: var(--av-gold); }

/* Tables (growth scorecard) */
.ns .ns-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.ns .ns-table th { text-align: left; color: var(--av-dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--av-line-strong); }
.ns .ns-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--av-line); font-variant-numeric: tabular-nums; }
.ns .ns-table td:first-child { color: var(--av-text); font-weight: 600; }
.ns select.secondary-action { appearance: none; padding-right: 12px; }

/* Command palette + toast */
.ns .command-overlay { position: fixed; z-index: 40; inset: 0; display: grid; place-items: start center; padding: 12vh 18px 18px; background: rgba(2,7,12,.72); backdrop-filter: blur(9px); }
.ns .command-box { width: min(640px, 100%); border: 1px solid var(--av-line-strong); border-radius: 12px; background: #0d1a27; box-shadow: 0 30px 90px rgba(0,0,0,.48); overflow: hidden; }
.ns .command-input-wrap { display: flex; align-items: center; gap: 9px; padding: 13px; border-bottom: 1px solid var(--av-line-strong); }
.ns .command-input { width: 100%; border: 0; background: transparent; color: var(--av-text); outline: none; font-size: 15px; }
.ns .command-results { padding: 8px; max-height: 50vh; overflow: auto; }
.ns .command-section { padding: 7px 8px 4px; color: var(--av-dim); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ns .command-result { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--av-muted); text-align: left; text-decoration: none; }
.ns .command-result:hover, .ns .command-result.is-focused { background: var(--av-gold-soft); }
.ns .command-result.is-sub { min-height: 36px; padding: 6px 10px 6px 26px; position: relative; }
.ns .command-result.is-sub::before { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-left: 1px solid var(--av-line-strong); border-bottom: 1px solid var(--av-line-strong); }
.ns .command-result.is-sub strong { font-size: 12.5px; font-weight: 600; color: var(--av-soft); }
.ns .command-parent { padding: 8px 10px 2px; color: var(--av-muted); font-size: 12.5px; font-weight: 700; }
.ns .command-result strong { display: block; color: var(--av-text); font-size: 13px; }
.ns .command-result span { display: block; margin-top: 2px; color: var(--av-dim); font-size: 11px; }
.ns .command-key { color: var(--av-gold); font-size: 11px; }
.ns .toast { position: fixed; z-index: 45; right: 18px; bottom: 18px; max-width: 340px; padding: 11px 13px; border: 1px solid var(--av-line-strong); border-radius: 8px; background: #101e2b; color: var(--av-soft); box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 12.5px; line-height: 1.45; }
.ns .preview-tag { color: var(--av-dim); font-size: 11px; margin-bottom: 10px; }
.ns .preview-tag b { color: var(--av-gold); font-weight: 700; }
.ns .unavailable { margin-top: 12px; color: var(--av-dim); font-size: 11px; }
.ns .allclear { color: var(--av-muted); font-size: 13px; padding: 14px 0; line-height: 1.55; max-width: 62ch; }

/* Unit costs: library upload panel + product-page cost form (2026-10-01) */
.ns .pl-upload { margin: 0 0 18px; }
.ns .pl-upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ns .pl-upload-form input[type="file"] { color: var(--av-soft); font-size: 12.5px; }
.ns .pl-upload-result { margin-top: 12px; font-size: 12.5px; line-height: 1.5; }
.ns .pl-upload-result ul { margin: 6px 0 0 18px; color: var(--av-muted); }
.ns .pl-upload-result .ok { color: var(--av-green); }
.ns .pl-upload-result .bad { color: var(--av-red); }
.ns .pl-cost-form { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--av-line); border-radius: var(--av-radius); background: rgba(12,27,40,.6); }
.ns .pl-cost-grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.ns .pl-cost-grid label { display: flex; flex-direction: column; gap: 5px; color: var(--av-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ns .pl-cost-grid label small { color: var(--av-dim); font-weight: 500; letter-spacing: 0; text-transform: none; }
.ns .pl-cost-parts { margin-top: 10px; }
.ns .pl-cost-parts summary { cursor: pointer; color: var(--av-muted); font-size: 12px; }
.ns .pl-cost-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 780px) { .ns .pl-cost-grid { grid-template-columns: 1fr 1fr; } }

/* P&L cards fragment on Today (shared /pnl/cards) */
.ns .pnl-slot { margin: 6px 0 26px; }

@media (max-width: 1000px) {
  .ns .topbar { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  .ns .sync, .ns .search-trigger .kbd { display: none; }
  .ns .search-trigger { width: auto; min-width: 0; margin-left: 0; }
  .ns .top-context { flex-wrap: wrap; }
  .ns .section-grid, .ns .decision-workbench { grid-template-columns: 1fr; }
  .ns .queue-pane { grid-row: auto; }
  .ns .decision-detail, .ns .lifecycle-pane { border-left: 0; border-top: 1px solid var(--av-line-strong); }
  .ns .workforce-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
/* What moved (diagnosis layer, 2026-09-30) */
.ns .moved-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(220px,.8fr); gap: 22px; margin-top: 10px; }
.ns .moved-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--av-line); font-size: 12.5px; }
.ns .moved-label { color: var(--av-soft); }
.ns .moved-label small { display: block; color: var(--av-dim); font-size: 10.5px; margin-top: 1px; }
.ns .moved-value { color: var(--av-text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns .moved-delta { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--av-muted); font-size: 12px; }
.ns .moved-delta.tone-good, .ns .moved-mover .tone-good { color: var(--av-green); }
.ns .moved-delta.tone-bad, .ns .moved-mover .tone-bad { color: var(--av-red); }
.ns .moved-movers { padding-top: 2px; }
.ns .moved-mover { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--av-line); text-decoration: none; color: inherit; font-size: 12px; }
.ns .moved-mover strong { color: var(--av-text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns .moved-mover span { color: var(--av-muted); }
.ns .moved-mover:hover strong { color: var(--av-gold); }
@media (max-width: 780px) { .ns .moved-grid { grid-template-columns: 1fr; } }

/* Products (product page foundation, 2026-09-29) */
.ns .pl-stages { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ns .pl-stage { display: flex; flex-direction: column; min-width: 92px; padding: 9px 12px; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(12,27,40,.6); text-decoration: none; color: var(--av-muted); }
.ns .pl-stage strong { color: var(--av-text); font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns .pl-stage span { font-size: 11px; margin-top: 2px; }
.ns .pl-stage.is-on { border-color: rgba(208,166,107,.5); background: var(--av-gold-soft); }
.ns .pl-stage.tone-ok strong { color: var(--av-green); }
.ns .pl-stage.tone-warn strong { color: var(--av-gold); }
.ns .pl-filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(160px,1fr) minmax(140px,.8fr) auto; gap: 8px; align-items: center; }
.ns .pl-filters .ns-input { padding: 8px 10px; }
.ns .pl-table td.pl-thumb { width: 44px; padding-right: 0; }
.ns .pl-thumb img { width: 36px; height: 36px; object-fit: contain; border-radius: 5px; background: #fff; display: block; }
.ns .pl-noimg { display: block; width: 36px; height: 36px; border-radius: 5px; border: 1px dashed var(--av-line-strong); }
.ns .pl-noimg.big { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; color: var(--av-dim); font-size: 12px; }
.ns .pl-title { color: var(--av-text); font-weight: 700; text-decoration: none; }
.ns .pl-title:hover { color: var(--av-gold); }
.ns .pl-table tr.is-quiet td { color: var(--av-dim); }
.ns .pl-table tr.is-quiet .pl-title { color: var(--av-muted); }
.ns .pl-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--av-line-strong); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--av-muted); white-space: nowrap; }
.ns .pl-pill.tone-ok { color: var(--av-green); border-color: rgba(89,217,165,.4); }
.ns .pl-pill.tone-warn { color: var(--av-gold); border-color: rgba(208,166,107,.45); }
.ns .pl-crumbs { color: var(--av-dim); font-size: 12px; margin-bottom: 14px; }
.ns .pl-crumbs a { color: var(--av-muted); text-decoration: none; }
.ns .pl-crumbs a:hover { color: var(--av-gold); }
.ns .pl-hero { display: grid; grid-template-columns: 200px minmax(0,1fr) 250px; gap: 24px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--av-line-strong); }
.ns .pl-hero-media { aspect-ratio: 1; max-width: 100%; border-radius: 10px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ns .pl-hero-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ns .pl-idline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ns .pl-chip { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--av-line); background: rgba(18,34,49,.7); color: var(--av-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ns .pl-chip.tone-good { color: var(--av-green); border-color: rgba(89,217,165,.35); }
.ns .pl-chip.tone-bad { color: var(--av-red); border-color: rgba(255,124,132,.35); }
.ns .pl-stagebar { margin-top: 14px; display: grid; grid-template-columns: minmax(200px,.6fr) minmax(0,1fr); gap: 14px; align-items: end; }
.ns .pl-stagectl .ns-input { margin-top: 6px; padding: 8px 10px; }
.ns .pl-evidence { color: var(--av-muted); font-size: 12px; line-height: 1.5; }
.ns .pl-hero-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.ns .pl-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ns .pl-stat { padding: 10px 12px; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(12,27,40,.6); }
.ns .pl-stat strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns .pl-stat span { display: block; margin-top: 3px; color: var(--av-muted); font-size: 11px; line-height: 1.3; }
.ns .pl-stat.tone-bad strong { color: var(--av-red); }
.ns .pl-tabs { margin: 14px 0 18px; }
.ns .pl-pane[hidden] { display: none; }
.ns .kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 22px; margin-top: 8px; }
.ns .kv-grid.one { grid-template-columns: 1fr; }
.ns .kv { display: grid; grid-template-columns: minmax(110px,.45fr) minmax(0,1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--av-line); font-size: 12.5px; }
.ns .kv-label { color: var(--av-dim); }
.ns .kv-value { color: var(--av-text); overflow-wrap: anywhere; }
.ns .kv-value small { display: block; color: var(--av-dim); font-size: 10.5px; margin-top: 1px; }
.ns .pl-own { display: grid; gap: 10px; margin-top: 16px; }
.ns .pl-own label { display: grid; gap: 5px; }
.ns .pl-own .ns-input { padding: 8px 10px; }
.ns .pl-check { display: grid; gap: 4px; margin-top: 8px; font-size: 12.5px; }
.ns .pl-check div { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--av-muted); }
.ns .pl-check .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--av-line-strong); flex: 0 0 auto; }
.ns .pl-check .ok { color: var(--av-text); }
.ns .pl-check .ok .dot { background: var(--av-green); box-shadow: 0 0 8px rgba(89,217,165,.5); }
.ns .pl-check .todo .dot { background: var(--av-gold); }
.ns .pl-listing + .pl-listing { margin-top: 30px; }
.ns .pl-issues { margin-top: 12px; display: grid; gap: 6px; }
.ns .pl-issue { padding: 8px 10px; border-radius: 7px; font-size: 12px; line-height: 1.45; border: 1px solid var(--av-line); color: var(--av-soft); }
.ns .pl-issue.err { border-color: rgba(255,124,132,.4); background: rgba(255,124,132,.06); }
.ns .pl-issue.warn { border-color: rgba(208,166,107,.35); background: rgba(208,166,107,.05); }
.ns .pl-issue strong { color: var(--av-text); margin-right: 6px; }
.ns .pl-issue em { color: var(--av-dim); font-style: normal; }
.ns .pl-content { margin-top: 14px; display: grid; gap: 14px; }
.ns .pl-field .detail-kicker small { color: var(--av-dim); font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.ns .pl-field p, .ns .pl-field ol { margin: 6px 0 0; color: var(--av-soft); font-size: 13px; line-height: 1.55; max-width: 90ch; }
.ns .pl-field ol { padding-left: 20px; }
.ns .pl-field li + li { margin-top: 4px; }
.ns .pl-desc { white-space: pre-wrap; }
.ns .pl-attrs { margin-top: 16px; border-top: 1px solid var(--av-line); padding-top: 10px; }
.ns .pl-attrs summary { cursor: pointer; color: var(--av-gold); font-size: 12px; font-weight: 700; }
.ns .pl-attr-group { margin-top: 14px; }
.ns .pl-waterfall { display: grid; gap: 0; margin-top: 10px; }
.ns .pl-waterfall div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--av-line); font-size: 13px; }
.ns .pl-waterfall div span { color: var(--av-muted); }
.ns .pl-waterfall div span em { display: block; color: var(--av-dim); font-size: 10.5px; font-style: normal; }
.ns .pl-waterfall strong { font-variant-numeric: tabular-nums; }
.ns .pl-waterfall strong.neg { color: var(--av-soft); }
.ns .pl-waterfall .total { border-bottom: 0; border-top: 1px solid var(--av-line-strong); font-size: 14px; }
.ns .pl-waterfall .total strong small { color: var(--av-dim); font-size: 11px; margin-left: 6px; }
.ns .pl-age { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; margin-top: 8px; }
.ns .pl-age div { text-align: center; padding: 8px 4px; border: 1px solid var(--av-line); border-radius: 7px; }
.ns .pl-age span { display: block; color: var(--av-dim); font-size: 10px; }
.ns .pl-age strong { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ns .pl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.ns .pl-gallery figure { margin: 0; }
.ns .pl-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.ns .pl-gallery figcaption { margin-top: 4px; color: var(--av-dim); font-size: 10.5px; }
.ns .pl-list { display: grid; gap: 4px; margin-top: 8px; }
.ns .pl-list .list-row { grid-template-columns: minmax(0,1fr); text-decoration: none; }
.ns .table-foot { margin-top: 10px; color: var(--av-dim); font-size: 11.5px; line-height: 1.5; max-width: 90ch; }
.ns .pl-aplus.is-active { border-left: 2px solid var(--av-green); padding-left: 10px; }
.ns .pl-aplus-body { margin-top: 8px; display: grid; gap: 8px; }
.ns .pl-aplus-module { padding: 8px 10px; border: 1px solid var(--av-line); border-radius: 7px; }
.ns .pl-aplus-module p { margin: 4px 0 0; color: var(--av-soft); font-size: 12px; line-height: 1.45; }
.ns .pl-aplus-module small { display: block; margin-top: 4px; color: var(--av-dim); font-size: 10.5px; }
@media (max-width: 980px) {
  .ns .pl-hero { grid-template-columns: 140px minmax(0,1fr); }
  .ns .pl-hero-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ns .pl-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .ns .pl-hero, .ns .pl-stagebar, .ns .kv-grid, .ns .pl-filters { grid-template-columns: 1fr; }
  .ns .pl-hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ns .pl-age { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  /* Phone shell (2026-10-02, Nick: the rail wrapped into rows of links
     and the top bar into three). One compact bar; the rail is a drawer
     that slides in behind the menu button; pickers and search live in
     the drawer (northstar.js moves them). The compact-rail preference
     never applies on a phone. */
  .ns .topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; }
  .ns .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--av-line); border-radius: 8px; background: rgba(18,34,49,.74); color: var(--av-soft); cursor: pointer; }
  .ns .menu-toggle:hover, .ns .menu-toggle[aria-expanded="true"] { color: var(--av-text); border-color: var(--av-line-strong); }
  .ns .topbar .top-context { display: none; }
  .ns .topbar .sync, .ns .topbar a.top-icon { display: none; }
  .ns .top-actions { margin-left: auto; gap: 8px; }
  .ns .shell, .ns[data-compact-rail="true"] .shell { grid-template-columns: 1fr; }
  .ns .sidebar, .ns[data-compact-rail="true"] .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(86vw, 330px); z-index: 60; display: flex; flex-direction: column; padding: 0 12px 14px; border-right: 1px solid var(--av-line-strong); background: #0a1520; transform: translateX(-104%); transition: transform .22s ease; overflow-y: auto; overflow-x: hidden; }
  .ns.drawer-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .ns .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px 10px; position: sticky; top: 0; z-index: 1; background: #0a1520; color: var(--av-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .ns .drawer-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--av-line); border-radius: 8px; background: transparent; color: var(--av-soft); cursor: pointer; }
  .ns .drawer-context { display: grid; gap: 8px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--av-line); }
  .ns .drawer-context:empty { display: none; }
  .ns .drawer-context .profile-selector, .ns .drawer-context .ps-dropdown, .ns .drawer-context .ps-selected, .ns .drawer-context .search-trigger, .ns .drawer-context .context-chip { width: 100%; max-width: none; margin: 0; }
  .ns .drawer-context .ps-name { max-width: none; }
  .ns .drawer-context .ps-panel { position: static; max-width: none; min-width: 0; margin-top: 6px; }
  .ns .drawer-context .search-trigger { display: flex; }
  .ns .rail-scroll { flex: none; margin: 0; padding: 0; overflow: visible; }
  .ns .nav-group, .ns[data-compact-rail="true"] .nav-group { display: block; margin-bottom: 12px; }
  .ns .nav-label, .ns[data-compact-rail="true"] .nav-label { display: block; }
  .ns[data-compact-rail="true"] .nav-text, .ns[data-compact-rail="true"] .nav-count { display: inline; }
  .ns .nav-button, .ns[data-compact-rail="true"] .nav-button { width: 100%; justify-content: flex-start; padding: 8px 9px; min-height: 38px; font-size: 13.5px; }
  .ns .rail-spacer, .ns .rail-toggle { display: none; }
  .ns .rail-foot, .ns[data-compact-rail="true"] .rail-foot { display: block; margin-top: auto; }
  .ns .rail-tip { display: none; }
  .ns .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(2,8,14,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .ns.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .ns .hero, .ns .page-head, .ns .equal-grid, .ns .three-grid, .ns .tool-groups, .ns .plan-grid { grid-template-columns: 1fr; }
  .ns .page-actions { justify-content: flex-start; }
  .ns .hero-orbit { margin: 0; }
  .ns .signal-ledger { grid-template-columns: 1fr; }
  .ns .signal, .ns .signal + .signal { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--av-line); }
  .ns .ledger-meta { padding: 10px 0; white-space: normal; }
  .ns .impact-band { grid-template-columns: 1fr; }
  .ns .outcome-row { grid-template-columns: 65px minmax(0,1fr) auto; }
  .ns .outcome-link { display: none; }
  .ns .outcome-kind { display: none; }
  .ns .bar-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ns .main { padding: 24px 16px 34px; }
  .ns .decision-row, .ns .list-row { grid-template-columns: 24px minmax(0,1fr); }
  .ns .decision-row .row-action, .ns .list-row .state { grid-column: 2; justify-self: start; }
  .ns .workforce-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ns .tool-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ns * { transition: none !important; } }
