/* FABLE uniformity overlay — Dashboard (stage 1, consolidated). Native DOM/JS/CSS untouched; this file only restyles. */
body.dashboard-page{--fx-canvas:#f6f9f7;--fx-surface:#fff;--fx-surface-2:#f4f7f5;--fx-rule:#e1e9e5;--fx-rule-2:#cdd9d3;--fx-rule-row:#eaf0ed;--fx-ink:#182532;--fx-ink-2:#3c556d;--fx-muted:#586c7e;--fx-disabled:#9eb0c2;--fx-accent:#3ebe91;--fx-green:#228764;--fx-green-text:#17533f;--fx-mint:#ecfaf4;--fx-mint-2:#cde9da;--fx-strip:#f3faf6;--fx-primary:#3c556d;--fx-primary-h:#2f4559;--fx-amber:#b7791f;--fx-red:#b23b3b;--fx-live:#2f9a74;--fx-s1:0 1px 2px rgba(24,37,50,.05);--fx-s2:0 2px 8px rgba(24,37,50,.08);--fx-s3:0 10px 28px rgba(24,37,50,.14);--fx-sans:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;--fx-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--dx-head:48px;--dx-side:248px;--dx-bar:56px;--dx-tabs:44px;--dx-gutter:24px;background:var(--fx-canvas)}
body.dashboard-page .enerdex-dashboard{--r-lg:8px;--r-xl:8px;--gutter:var(--dx-gutter);--line:var(--fx-rule);--soft:var(--fx-surface-2);--pale:var(--fx-mint);--green:var(--fx-green);--brand:var(--fx-accent);--ink:var(--fx-ink-2);--strong:var(--fx-ink);--muted:var(--fx-muted);background:var(--fx-canvas);color:var(--fx-ink-2);font-family:var(--fx-sans);font-size:14px;line-height:20px;min-width:0;max-width:100%}
body.dashboard-page .enerdex-dashboard *,body.dashboard-page .site-header *{letter-spacing:0}
body.dashboard-page .enerdex-dashboard :is(.mono,.network-hash,.network-window,.local-pill,.eyebrow,.ov-eyebrow,.narrative-stage,.zone-group-heading>span,.search-kbd,.kbd){font-family:var(--fx-mono);font-variant-numeric:tabular-nums}
body.dashboard-page .enerdex-dashboard :is(.eyebrow,.ov-eyebrow,.narrative-stage){font-family:var(--fx-sans)}
body.dashboard-page .enerdex-dashboard :is(h1,h2,h3,strong,b,.button,.text-link){font-weight:600}
body.dashboard-page .enerdex-dashboard :is(b,strong,.record-link,.flow-list strong,.asset-label strong,.detail-records strong,.detail-timeline strong){font-weight:500}

/* ---------- Site header: 48 desktop, static on phone ---------- */
body.dashboard-page .site-header{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:16px;height:var(--dx-head);min-height:var(--dx-head);margin:0;padding:0 24px;background:var(--fx-surface);border-bottom:1px solid var(--fx-rule);box-shadow:none}
body.dashboard-page .site-header .brand{display:inline-flex;align-items:center;height:44px;min-height:44px;flex:none}
body.dashboard-page .site-header .brand img{width:auto;height:28px;max-height:28px;object-fit:contain;filter:none}
body.dashboard-page .site-header .desktop-nav{gap:2px}
body.dashboard-page .site-header .desktop-nav>a,body.dashboard-page .site-header .nav-trigger{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 10px;border-radius:6px;font-size:14px;line-height:20px;font-weight:500;color:var(--fx-ink-2);text-decoration:none}
body.dashboard-page .site-header .desktop-nav>a:hover,body.dashboard-page .site-header .nav-trigger:hover{background:var(--fx-surface-2);color:var(--fx-ink)}
body.dashboard-page .site-header .desktop-nav svg{width:14px;height:14px}
body.dashboard-page .site-header .app-menu{z-index:70;padding:6px;border:1px solid var(--fx-rule);border-radius:8px;background:var(--fx-surface);box-shadow:var(--fx-s2)}
body.dashboard-page .site-header .app-menu a{border-radius:6px;min-height:36px}
body.dashboard-page .site-header .app-menu a:hover{background:var(--fx-surface-2)}
body.dashboard-page .site-header .header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
body.dashboard-page .site-header .button.compact{height:36px;min-height:36px;padding:0 14px;border-radius:6px;font-size:13px;line-height:20px;font-weight:600;background:var(--fx-primary);border:1px solid var(--fx-primary);color:#fff;box-shadow:none}
body.dashboard-page .site-header .button.compact:hover{background:var(--fx-primary-h);border-color:var(--fx-primary-h)}
body.dashboard-page .site-header .button.compact svg{width:14px;height:14px}
body.dashboard-page .site-header .menu-toggle{width:44px;height:44px;border-radius:6px;color:var(--fx-ink-2)}
body.dashboard-page .site-header .mobile-nav{position:absolute;top:100%;left:0;right:0;z-index:65;background:var(--fx-surface);border-bottom:1px solid var(--fx-rule);box-shadow:var(--fx-s2)}
body.dashboard-page .site-header .mobile-nav a{display:flex;align-items:center;min-height:44px;padding:0 16px;font-size:14px;color:var(--fx-ink-2)}
body.dashboard-page .site-header :is(a,button):focus-visible{outline:2px solid var(--fx-green);outline-offset:2px}

/* ---------- Console bar base ---------- */
body.dashboard-page .enerdex-dashboard .dashboard-toolbar.console-bar{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--fx-surface);box-shadow:none;border-color:var(--fx-rule)}
body.dashboard-page .enerdex-dashboard .console-bar .icon-button{color:var(--fx-ink-2);border-radius:6px}
body.dashboard-page .enerdex-dashboard .console-bar .icon-button:hover:not(:disabled){background:var(--fx-surface-2);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .console-bar .icon-button svg{width:16px;height:16px}
body.dashboard-page .enerdex-dashboard .console-bar .notification-dot{background:var(--fx-amber);box-shadow:0 0 0 2px var(--fx-surface)}
body.dashboard-page .enerdex-dashboard .console-bar .breadcrumb{font-size:13px;line-height:18px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .console-bar .breadcrumb strong{font-weight:600;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .console-bar .mobile-brand{width:28px;height:28px;object-fit:contain;filter:none;flex-shrink:0}
body.dashboard-page .enerdex-dashboard .app-switcher-trigger .app-switcher-mark{display:block;width:28px;height:28px;min-width:28px;object-fit:contain;filter:none;flex-shrink:0}
body.dashboard-page img.enerdex-nav-mark{display:block;flex:none;object-fit:contain;filter:none;border-radius:0}
body.dashboard-page .enerdex-dashboard :is(.sidebar nav,.navigation-dialog nav) a>.enerdex-nav-mark{width:20px;height:20px}
body.dashboard-page .enerdex-dashboard :is(.workspace-chip-symbol,.workspace-symbol){background:transparent}
body.dashboard-page .enerdex-dashboard :is(.workspace-chip-symbol,.workspace-symbol,.app-switcher-tile)>.enerdex-nav-mark{width:24px;height:24px}
body.dashboard-page .site-header .app-menu a>.enerdex-nav-mark{width:24px;height:24px}
body.dashboard-page .enerdex-dashboard .ledger-chip{height:32px;border-radius:6px;border:1px solid var(--fx-rule-2);background:var(--fx-surface);font-size:12px}
body.dashboard-page .enerdex-dashboard .ledger-chip-dot{background:var(--fx-live)}
body.dashboard-page .enerdex-dashboard .search-kbd{height:20px;min-height:20px;padding:0 5px;border-radius:4px;border:1px solid var(--fx-rule-2);background:var(--fx-surface-2);font-size:11px;color:var(--fx-muted)}

/* ---------- Desktop >=1024: 248 sidebar + 56 workspace bar ---------- */
@media (min-width:1024px){
  body.dashboard-page .enerdex-dashboard .dashboard-toolbar.console-bar{position:fixed;top:var(--dx-head);left:0;bottom:0;z-index:40;width:var(--dx-side);min-height:0;height:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:8px;padding:12px;border-right:1px solid var(--fx-rule);border-bottom:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher{order:0;width:100%}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher-trigger{width:100%;height:40px;padding:0 10px;justify-content:flex-start;border-radius:6px;font-size:15px;line-height:20px;font-weight:600;color:var(--fx-ink)}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher-trigger:hover{background:var(--fx-surface-2)}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher-chevron{margin-left:auto;color:var(--fx-muted)}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-host{order:1;width:100%;padding-bottom:12px;border-bottom:1px solid var(--fx-rule)}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip{width:100%;max-width:none;height:44px;padding:0 10px 0 8px;border-radius:6px;border:1px solid var(--fx-rule);background:var(--fx-surface-2);font-size:12px;line-height:16px}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-text strong{max-width:160px}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-create{width:100%;justify-content:center;height:36px!important;min-height:36px!important;border-radius:6px;background:var(--fx-primary);color:#fff;font-size:13px;font-weight:600}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-create:hover{background:var(--fx-primary-h)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar{order:2;flex:1 1 auto;width:100%;border:0;padding:4px 0 0}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav{flex-direction:column;align-items:stretch;gap:2px;padding:0;overflow:visible;-webkit-mask-image:none;mask-image:none;scroll-snap-type:none}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a{display:flex;width:100%;height:40px;min-height:40px;margin:0;padding:0 12px;gap:10px;justify-content:flex-start;border:0;border-radius:6px;font-size:14px;line-height:20px;font-weight:500;color:var(--fx-ink-2);background:transparent;box-shadow:none}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a>svg{display:block;width:18px;height:18px;flex:none;color:var(--fx-muted)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a:hover{background:var(--fx-surface-2);color:var(--fx-ink)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a[aria-current=page]{background:var(--fx-mint);color:var(--fx-green-text);font-weight:600;box-shadow:inset 2px 0 0 var(--fx-accent)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a[aria-current=page]>svg{color:var(--fx-green-text)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a:focus-visible{outline:2px solid var(--fx-green);outline-offset:-2px}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a .tab-count{margin-left:auto}
  body.dashboard-page .enerdex-dashboard .console-bar .tab-indicator{display:none}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar{position:fixed;top:var(--dx-head);left:var(--dx-side);right:0;z-index:41;order:3;height:var(--dx-bar);min-height:var(--dx-bar);display:flex;align-items:center;gap:12px;padding:0 var(--dx-gutter);background:var(--fx-surface);border-bottom:1px solid var(--fx-rule);backdrop-filter:none;-webkit-backdrop-filter:none}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar>.breadcrumb{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:flex;align-items:center;gap:6px;min-width:0}
  body.dashboard-page .enerdex-dashboard .console-bar .breadcrumb .mobile-brand{display:none}
  body.dashboard-page .enerdex-dashboard .console-bar .breadcrumb svg{width:14px;height:14px}
  body.dashboard-page .enerdex-dashboard .console-bar .breadcrumb strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.dashboard-page .enerdex-dashboard .console-bar .global-search{margin-left:auto;width:360px;max-width:36%;min-width:220px;height:36px;min-height:36px}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar-actions{gap:4px;flex:none}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar-actions>.icon-button{width:32px;min-width:32px;height:32px}
  /* Owner follow-up: header + sidebar stay fixed; workspace is the single bounded scroll pane (desktop only). */
  html:has(body.dashboard-page){overflow:hidden;scrollbar-gutter:auto}
  body.dashboard-page .enerdex-dashboard .workspace{position:fixed;top:calc(var(--dx-head) + var(--dx-bar));left:var(--dx-side);right:0;bottom:0;z-index:1;margin:0;padding:0;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
  body.dashboard-page .enerdex-dashboard .workspace>.workspace-footer{flex:none}
  body.dashboard-page .enerdex-dashboard .workspace>main{flex:1 0 auto;width:100%;max-width:1440px;margin:0 auto;padding:24px var(--dx-gutter) 40px;box-sizing:border-box}
}
@media (min-width:1280px){body.dashboard-page{--dx-gutter:32px}}

/* ---------- Tablet & phone: sticky two-row bar ---------- */
@media (max-width:1023px){
  body.dashboard-page .enerdex-dashboard .dashboard-toolbar.console-bar{position:sticky;top:var(--dx-head);z-index:40;flex-wrap:wrap;gap:8px;row-gap:0;padding:0 var(--dx-gutter);border-bottom:1px solid var(--fx-rule)}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar{min-height:var(--dx-bar);height:var(--dx-bar);background:var(--fx-surface);backdrop-filter:none;-webkit-backdrop-filter:none;border:0}
  body.dashboard-page .enerdex-dashboard .console-bar .mobile-menu,body.dashboard-page .enerdex-dashboard .console-bar .topbar-actions>.icon-button{width:44px;min-width:44px;height:44px;min-height:44px}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar{min-height:var(--dx-tabs)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a{height:44px;min-height:44px;margin:0;padding:0 12px;border-radius:0;font-size:14px;line-height:20px;font-weight:500;color:var(--fx-ink-2);background:transparent;box-shadow:inset 0 -2px 0 transparent}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a[aria-current=page]{color:var(--fx-green-text);font-weight:600;background:transparent;box-shadow:inset 0 -2px 0 var(--fx-green)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a:focus-visible{outline:2px solid var(--fx-green);outline-offset:-2px}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a>svg{width:18px;height:18px;color:var(--fx-muted)}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar nav a[aria-current=page]>svg{color:var(--fx-green-text)}
  body.dashboard-page .enerdex-dashboard .workspace{min-width:0}
  body.dashboard-page .enerdex-dashboard .workspace>main{padding:20px var(--dx-gutter) 32px;max-width:100%;box-sizing:border-box}
}
@media (max-width:767px){
  body.dashboard-page{--dx-gutter:16px;--dx-head:0px}
  body.dashboard-page .site-header{position:static;height:56px;min-height:56px;padding:0 var(--dx-gutter);gap:8px}
  body.dashboard-page .site-header .brand img{height:28px;max-height:28px}
  body.dashboard-page .site-header .button.compact{height:44px;min-height:44px}
  body.dashboard-page .enerdex-dashboard .dashboard-toolbar.console-bar{top:0;padding:0 var(--dx-gutter);gap:4px}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher{order:0}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-host{order:1;flex:1 1 auto;min-width:0}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar{order:2;flex:none;margin-left:0;gap:0}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar{order:3;flex-basis:100%;height:var(--dx-tabs);min-height:var(--dx-tabs);margin:0 calc(var(--dx-gutter)*-1);padding:0 var(--dx-gutter);overflow-x:auto;scrollbar-width:none}
  body.dashboard-page .enerdex-dashboard .console-bar .sidebar::-webkit-scrollbar{display:none}
  body.dashboard-page .enerdex-dashboard .console-bar .app-switcher-trigger{height:44px;min-width:44px;justify-content:center;border-radius:6px}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip{max-width:100%;height:44px;border-radius:6px}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-text{overflow:hidden}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-text small{overflow:hidden;text-overflow:ellipsis}
  body.dashboard-page .enerdex-dashboard .console-bar .workspace-chip-create{width:44px;height:44px!important;min-height:44px!important;border-radius:6px}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar-actions{gap:0}
  body.dashboard-page .enerdex-dashboard .console-bar .topbar.search-open .global-search{top:var(--dx-bar);left:var(--dx-gutter);right:var(--dx-gutter);height:44px;border-radius:6px;border-color:var(--fx-rule-2);box-shadow:var(--fx-s2)}
  body.dashboard-page .enerdex-dashboard .console-bar .global-search input{font-size:16px;height:40px}
  body.dashboard-page .enerdex-dashboard .search-kbd{min-height:24px}
  body.dashboard-page .enerdex-dashboard .workspace>main{padding:16px var(--dx-gutter) 28px}
}

/* ---------- Heading block ---------- */
body.dashboard-page .enerdex-dashboard .page-heading{align-items:flex-start;gap:16px 24px;margin-bottom:20px}
body.dashboard-page .enerdex-dashboard .page-heading>div:first-child{min-width:0;flex:1 1 auto}
body.dashboard-page .enerdex-dashboard .page-heading h1,body.dashboard-page .enerdex-dashboard .network-overview h1{font-size:24px;line-height:32px;font-weight:600;margin:0 0 4px;color:var(--fx-ink);max-width:none;overflow-wrap:anywhere}
body.dashboard-page .enerdex-dashboard .page-heading p{font-size:14px;line-height:20px;color:var(--fx-ink-2);margin:0}
body.dashboard-page .enerdex-dashboard .eyebrow,body.dashboard-page .enerdex-dashboard .ov-kicker,body.dashboard-page .enerdex-dashboard .ov-eyebrow,body.dashboard-page .enerdex-dashboard .chart-note,body.dashboard-page .enerdex-dashboard .narrative-stage{font:600 11px/16px var(--fx-sans);color:var(--fx-muted);margin-bottom:4px;text-transform:uppercase}
body.dashboard-page .enerdex-dashboard .eyebrow .small-dot{background:var(--fx-live)}
body.dashboard-page .enerdex-dashboard .heading-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;flex:none;max-width:100%;min-width:0;margin:0}
body.dashboard-page .enerdex-dashboard .network-overview .heading-actions{margin-top:0;gap:8px}
/* Fable launcher (mounted by entry.mjs into .heading-actions, or on Zones .page-heading) — no extra row, no overflow */
body.dashboard-page .enerdex-dashboard :is(.heading-actions,.page-heading)>.edx-analysis-entry{display:inline-flex;align-items:center;flex:none;margin:0;padding:0;min-height:0;max-width:100%;min-width:0;border:0;background:transparent;box-shadow:none}
body.dashboard-page .enerdex-dashboard .page-heading>.edx-analysis-entry{align-self:flex-start}
body.dashboard-page .enerdex-dashboard .edx-analysis-entry .edx-analysis-launcher,body.dashboard-page .enerdex-dashboard .edx-analysis-entry>button{height:36px;min-height:36px;padding:0 12px;border:1px solid var(--fx-rule-2);border-radius:6px;background:var(--fx-surface);color:var(--fx-ink-2);font:500 13px/20px var(--fx-sans);white-space:nowrap;max-width:100%}
body.dashboard-page .enerdex-dashboard .edx-analysis-entry>button:hover{background:var(--fx-surface-2);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .truth{padding-bottom:14px;border-bottom:1px solid var(--fx-rule);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard .truth-chip{background:var(--fx-surface);border:1px solid var(--fx-rule);border-radius:6px;height:22px;font-family:var(--fx-mono);font-size:12px}
body.dashboard-page .enerdex-dashboard .truth-info{width:32px;height:32px;min-width:32px;border-radius:6px;position:relative}
body.dashboard-page .enerdex-dashboard .network-context,body.dashboard-page .enerdex-dashboard .network-feed-status,body.dashboard-page .enerdex-dashboard .network-source{font-size:12px;line-height:16px;color:var(--fx-muted);border-color:var(--fx-rule)}
body.dashboard-page .enerdex-dashboard .network-feed-status strong{font-size:12px;font-weight:600;color:var(--fx-green-text)}
body.dashboard-page .enerdex-dashboard .network-status-dot{background:var(--fx-live)}
body.dashboard-page .enerdex-dashboard .network-feed-status.stale strong{color:var(--fx-amber)}
body.dashboard-page .enerdex-dashboard .network-feed-status.stale .network-status-dot{background:var(--fx-amber)}
body.dashboard-page .enerdex-dashboard .network-feed-status.unavailable strong{color:var(--fx-red)}
body.dashboard-page .enerdex-dashboard .network-feed-status.unavailable .network-status-dot{background:var(--fx-red)}
body.dashboard-page .enerdex-dashboard .network-window{font-size:12px;white-space:normal}
body.dashboard-page .enerdex-dashboard .demo-strip{border-radius:6px;background:var(--fx-strip);border:1px solid var(--fx-rule);border-left:3px solid var(--fx-amber);color:var(--fx-ink-2);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard .demo-strip>strong{color:var(--fx-ink);font-size:12px}
body.dashboard-page .enerdex-dashboard .demo-strip>svg{color:var(--fx-amber)}
body.dashboard-page .enerdex-dashboard :is(#main,.overview-surface,#network-content){gap:20px}
body.dashboard-page .enerdex-dashboard .platform-notice{border-left:3px solid var(--fx-green);background:var(--fx-strip);border-radius:6px;color:var(--fx-ink-2);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard .platform-error{border:1px solid var(--fx-rule);border-radius:6px;background:var(--fx-surface);box-shadow:inset 3px 0 0 var(--fx-red);color:var(--fx-red);font-size:13px;line-height:18px}
body.dashboard-page .enerdex-dashboard .platform-loading{background:rgba(255,255,255,.94);font-size:14px;font-weight:600;border-color:var(--fx-rule)}
body.dashboard-page .enerdex-dashboard :is(.platform-empty,.empty-state){background:var(--fx-surface-2);border:1px solid var(--fx-rule);border-radius:8px;color:var(--fx-muted);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard :is(.platform-empty,.empty-state)>svg{width:22px;height:22px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .text-link{color:var(--fx-green-text);font-size:13px;font-weight:500}
body.dashboard-page .enerdex-dashboard .text-link:hover{color:var(--fx-green)}

/* ---------- Panels ---------- */
body.dashboard-page .enerdex-dashboard :is(.metric,.chart-card,.ov-activity,.ov-distribution,.platform-section,.network-records>section,.narrative-section,.platform-status,.asset-card,.zone-group,.zone-filters,.zone-summary>div,.needs-card,.journey,.zone-skeleton-list){background:var(--fx-surface);border:1px solid var(--fx-rule);border-radius:8px;box-shadow:var(--fx-s1)}
body.dashboard-page .enerdex-dashboard .metric{border:1px solid var(--fx-rule)!important}
body.dashboard-page .enerdex-dashboard :is(.metric,.asset-card):hover{transform:none;box-shadow:var(--fx-s1);border-color:var(--fx-rule-2)}
body.dashboard-page .enerdex-dashboard :is(.chart-card,.ov-activity,.ov-distribution,.platform-section,.network-records>section,.narrative-section,.journey,.platform-status){padding:20px}
body.dashboard-page .enerdex-dashboard :is(.chart-card,.platform-section,.network-records>section) :is(.chart-card,.platform-section){border:0;box-shadow:none;padding:0;border-radius:0}
body.dashboard-page .enerdex-dashboard .ov-charts{border-color:var(--fx-rule)}

/* ---------- KPI strip ---------- */
body.dashboard-page .enerdex-dashboard .metrics{gap:12px;border:0;padding:0;margin:0}
body.dashboard-page .enerdex-dashboard .metric:nth-child(n){padding:16px 18px!important}
body.dashboard-page .enerdex-dashboard .metric+.metric{border-left:1px solid var(--fx-rule)}
body.dashboard-page .enerdex-dashboard :is(.metric-label,.network-overview .metric-label){font-size:15px;line-height:20px;font-weight:600;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .metric-label svg{color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .metric-value,body.dashboard-page .enerdex-dashboard .network-overview .metric-value{font-size:26px!important;line-height:30px;font-weight:600;color:var(--fx-ink);font-family:var(--fx-mono);min-height:30px;margin:8px 0 4px}
body.dashboard-page .enerdex-dashboard .network-overview .metric-value.long-value{font-size:22px!important}
body.dashboard-page .enerdex-dashboard .metric-value>span{font-size:13px;font-family:var(--fx-sans);color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard :is(.metric-detail,.network-overview .metric-detail){font-size:12px;line-height:16px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .metric-delta{font-size:11px;line-height:16px;height:22px;border-radius:6px;padding:0 6px}
body.dashboard-page .enerdex-dashboard .metric-detail.positive{color:var(--fx-green-text)}
body.dashboard-page .enerdex-dashboard .metric-detail.warning-text{color:var(--fx-amber)}
body.dashboard-page .enerdex-dashboard .zone-summary strong{font-size:26px;line-height:30px;font-weight:600;font-family:var(--fx-mono);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .zone-summary span{font-size:12px;line-height:16px;color:var(--fx-muted)}

/* ---------- Section heads, charts ---------- */
body.dashboard-page .enerdex-dashboard .chart-head{margin-bottom:14px}
body.dashboard-page .enerdex-dashboard :is(.chart-head h2,.ov-section-head h2,.section-heading h2,.narrative-heading h2,.network-records .section-heading h2,.zone-results h2,h2){font-size:17px!important;line-height:24px;font-weight:600;color:var(--fx-ink);margin:0}
body.dashboard-page .enerdex-dashboard :is(h3,.zone-group-heading h3){font-size:15px;line-height:20px;font-weight:600;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard :is(.chart-head,.ov-section-head,.section-heading,.narrative-heading) p,body.dashboard-page .enerdex-dashboard :is(.ov-chart-subtitle,.ov-chart-caption,.chart-caption,.quiet-label,.network-row-count,.zone-results>span){font-size:12px;line-height:16px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .section-heading{margin-bottom:16px;gap:12px 16px}
body.dashboard-page .enerdex-dashboard .section-heading .count-badge{font-size:11px;line-height:16px;height:22px;display:inline-flex;align-items:center;border-radius:6px;background:var(--fx-surface-2);color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard .chart-head .ov-open,body.dashboard-page .enerdex-dashboard .ov-open.icon-button{width:32px;height:32px;min-width:32px;border:1px solid var(--fx-rule-2);box-shadow:none;border-radius:6px;background:var(--fx-surface);color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard .ov-open.icon-button svg{color:var(--fx-accent)}
body.dashboard-page .enerdex-dashboard :is(.ov-chart-tooltip,.chart-tooltip){border:1px solid var(--fx-rule);border-radius:6px;background:var(--fx-surface);box-shadow:var(--fx-s3);color:var(--fx-ink);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard :is(.energy-chart svg text,.ov-chart svg text,.network-chart svg text){fill:var(--fx-muted);font-size:11px}
body.dashboard-page .enerdex-dashboard .chart-grid-line{stroke:#e8efeb}
body.dashboard-page .enerdex-dashboard .chart-ref-label{paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
body.dashboard-page .enerdex-dashboard :is(.ov-legend-label,.mix-legend>div,.chart-legend label){font-size:12px;line-height:16px;color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard :is(.ov-legend-value,.mix-legend strong){font-size:12.5px;font-weight:600;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .chart-legend label{min-height:40px}
body.dashboard-page .enerdex-dashboard .legend-swatch{width:10px;height:3px;border-radius:2px}
body.dashboard-page .enerdex-dashboard .network-bar{fill:var(--fx-accent);opacity:.85}
body.dashboard-page .enerdex-dashboard .meter{background:var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard .meter>span{background:var(--fx-accent)}

/* ---------- Tables ---------- */
body.dashboard-page .enerdex-dashboard :is(.network-table-wrap,.table-scroll){border:1px solid var(--fx-rule);border-radius:8px;background:var(--fx-surface);scrollbar-width:thin;scrollbar-color:var(--fx-rule-2) var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard :is(.platform-section,.network-records>section,.chart-card) :is(.network-table-wrap,.table-scroll){border:0;border-top:1px solid var(--fx-rule);border-radius:0;margin-left:-20px;margin-right:-20px;width:auto;max-width:none}
body.dashboard-page .enerdex-dashboard table{font-size:13px;line-height:18px;border-color:var(--fx-rule)}
body.dashboard-page .enerdex-dashboard :is(.network-table,.platform-table,table) th{background:var(--fx-surface-2);font-size:12px;line-height:16px;font-weight:600;color:var(--fx-muted);border-top:0;border-bottom:1px solid var(--fx-rule-2);padding:10px 16px}
body.dashboard-page .enerdex-dashboard :is(.network-table,.platform-table,table) td{padding:11px 16px;font-size:13px;line-height:18px;color:var(--fx-ink-2);border-top:0;border-bottom:1px solid var(--fx-rule-row);height:auto}
body.dashboard-page .enerdex-dashboard .network-table td{font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard :is(.numeric,.network-align-right,td.numeric){text-align:right;font-family:var(--fx-mono);font-variant-numeric:tabular-nums}
body.dashboard-page .enerdex-dashboard tbody tr:hover{background:var(--fx-strip)}
body.dashboard-page .enerdex-dashboard tbody tr[aria-selected=true]{background:var(--fx-mint);box-shadow:inset 2px 0 0 var(--fx-accent)}
body.dashboard-page .enerdex-dashboard tbody tr:focus-visible{outline:2px solid var(--fx-green);outline-offset:-2px}
body.dashboard-page .enerdex-dashboard :is(.cell-sub,.network-table .cell-sub){font-size:11px;line-height:16px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .network-hash{font-size:12px}
body.dashboard-page .enerdex-dashboard .network-table a,body.dashboard-page .enerdex-dashboard .record-link{color:var(--fx-green-text)}
body.dashboard-page .enerdex-dashboard .network-row-count{border-radius:6px}
body.dashboard-page .enerdex-dashboard .badge,body.dashboard-page .enerdex-dashboard .network-table .badge{display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:6px;font-size:11px;line-height:16px;font-weight:500}
body.dashboard-page .enerdex-dashboard :is(.badge.green,.badge.validated,.badge.approved){color:var(--fx-green-text);background:var(--fx-mint)}
body.dashboard-page .enerdex-dashboard :is(.badge.amber,.badge.submitted,.badge.review){color:var(--fx-amber);background:#fbf3e1}
body.dashboard-page .enerdex-dashboard :is(.badge.failed,.badge.rejected){color:var(--fx-red);background:#f9ebe8}
body.dashboard-page .enerdex-dashboard :is(.badge.blue,.badge.draft){color:var(--fx-ink-2);background:#edf2f7}
body.dashboard-page .enerdex-dashboard .badge.neutral{color:var(--fx-ink-2);background:var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard .pagination{font-size:13px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .pagination .icon-button{width:32px;height:32px;min-width:32px;border:1px solid var(--fx-rule-2);border-radius:6px}
body.dashboard-page .enerdex-dashboard .table-footnote{font-size:12px;line-height:16px;color:var(--fx-muted)}

/* ---------- Controls ---------- */
body.dashboard-page .enerdex-dashboard .button{min-height:36px;height:36px;padding:0 14px;gap:8px;border:1px solid var(--fx-rule-2);border-radius:6px;background:var(--fx-surface);color:var(--fx-ink-2);box-shadow:none;font-size:13px;line-height:20px;font-weight:500}
body.dashboard-page .enerdex-dashboard .button svg{width:16px;height:16px}
body.dashboard-page .enerdex-dashboard .button:hover:not(:disabled){background:var(--fx-surface-2);border-color:var(--fx-rule-2);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .button.primary{background:var(--fx-primary);border-color:var(--fx-primary);color:#fff;font-weight:600}
body.dashboard-page .enerdex-dashboard .button.primary:hover:not(:disabled){background:var(--fx-primary-h);border-color:var(--fx-primary-h);color:#fff}
body.dashboard-page .enerdex-dashboard .button.tool-button{width:36px;min-width:36px;height:36px;min-height:36px;padding:0}
body.dashboard-page .enerdex-dashboard .button:disabled,body.dashboard-page .enerdex-dashboard button:disabled{opacity:.45}
body.dashboard-page .enerdex-dashboard .icon-button{width:32px;min-width:32px;height:32px;border-radius:6px;color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard .icon-button:hover:not(:disabled){background:var(--fx-surface-2);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .icon-button svg{width:16px;height:16px}
body.dashboard-page .enerdex-dashboard .network-overview .network-refresh{width:36px;height:36px;border:1px solid var(--fx-rule-2);border-radius:6px;background:var(--fx-surface)}
body.dashboard-page .enerdex-dashboard .global-search{height:36px;min-height:36px;border:1px solid var(--fx-rule-2);border-radius:6px;background:var(--fx-surface);box-shadow:none}
body.dashboard-page .enerdex-dashboard .global-search input{font-size:13px;height:34px}
body.dashboard-page .enerdex-dashboard .global-search>svg{width:16px;height:16px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch){border-radius:6px;background:var(--fx-surface-2);border:1px solid var(--fx-rule-2);padding:1px;gap:0;height:34px}
body.dashboard-page .enerdex-dashboard .epoch-tabs>.platform-subtabs{margin-bottom:0}
body.dashboard-page .enerdex-dashboard .journey .seg button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch) button{min-height:30px;height:30px;min-width:0;padding:0 10px;border-radius:4px;font-size:12px;line-height:16px;font-weight:500;color:var(--fx-ink-2);box-shadow:none}
body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch) button[aria-pressed=true]{background:var(--fx-mint);color:var(--fx-green-text);font-weight:600;box-shadow:inset 0 -2px 0 var(--fx-green)}
body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch) button:focus-visible{outline:2px solid var(--fx-green);outline-offset:-2px}
body.dashboard-page .enerdex-dashboard :is(.network-refresh,.zone-filters>.icon-button){width:36px;height:36px;border:1px solid var(--fx-rule-2);border-radius:6px;box-shadow:none;background:var(--fx-surface)}
body.dashboard-page .enerdex-dashboard :is(.filter-chip,.workspace-chip){font-size:12px;line-height:16px;height:32px;border-radius:6px;border:1px solid var(--fx-rule-2)}
body.dashboard-page .enerdex-dashboard .local-pill{height:22px;border-radius:6px;border-color:var(--fx-mint-2);background:var(--fx-mint);color:var(--fx-green-text);font-size:11px}
body.dashboard-page .enerdex-dashboard .platform-field{font-size:13px;line-height:18px;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .platform-field :is(input,select,textarea){min-height:36px;padding:7px 12px;border:1px solid var(--fx-rule-2);border-radius:6px;font-size:14px;line-height:20px;background:var(--fx-surface);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .platform-field textarea,body.dashboard-page .enerdex-dashboard #record-note{min-height:96px;border-radius:6px;border:1px solid var(--fx-rule-2);font-size:14px;line-height:20px}
body.dashboard-page .enerdex-dashboard .platform-form #field-csv{font-family:var(--fx-mono)}
body.dashboard-page .enerdex-dashboard .platform-field :is(input,select,textarea):focus-visible,body.dashboard-page .enerdex-dashboard #record-note:focus-visible{outline:none;border-color:var(--fx-green);box-shadow:0 0 0 3px rgba(62,190,145,.22)}
body.dashboard-page .enerdex-dashboard .platform-field input::file-selector-button{border-radius:4px;background:var(--fx-surface-2);color:var(--fx-ink-2);font-weight:500}
body.dashboard-page .enerdex-dashboard :is(.select-field,.search-field){height:32px;border:1px solid var(--fx-rule-2);border-radius:6px;font-size:13px;line-height:20px}
body.dashboard-page .enerdex-dashboard :is(.select-field select,.search-field input){font-size:13px}
body.dashboard-page .enerdex-dashboard .select-field>span{font-size:12px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .search-field:focus-within{outline:none;border-color:var(--fx-green);box-shadow:0 0 0 3px rgba(62,190,145,.22)}
body.dashboard-page .enerdex-dashboard .platform-form .button{min-height:36px}
body.dashboard-page .enerdex-dashboard .unit-options label{border-radius:6px;border-color:var(--fx-rule-2);min-height:44px}
body.dashboard-page .enerdex-dashboard .unit-options label:has(:checked){border-color:var(--fx-mint-2);background:var(--fx-mint)}
body.dashboard-page .enerdex-dashboard .unit-options input{accent-color:var(--fx-green)}
@media (max-width:767px){
  body.dashboard-page .enerdex-dashboard #main .button,body.dashboard-page .enerdex-dashboard .drawer .button,body.dashboard-page .enerdex-dashboard .platform-form .button{min-height:44px;height:44px}
  body.dashboard-page .enerdex-dashboard #main :is(.button.tool-button,.icon-button),body.dashboard-page .enerdex-dashboard #main .heading-actions .button,body.dashboard-page .enerdex-dashboard .network-overview .network-refresh,body.dashboard-page .enerdex-dashboard .zone-filters>.icon-button,body.dashboard-page .enerdex-dashboard .pagination .icon-button,body.dashboard-page .enerdex-dashboard .chart-head .ov-open,body.dashboard-page .enerdex-dashboard .ov-open.icon-button{width:44px;min-width:44px;height:44px;min-height:44px}
  body.dashboard-page .enerdex-dashboard #main .table-scroll .icon-button,body.dashboard-page .enerdex-dashboard .drawer-head>.icon-button,body.dashboard-page .enerdex-dashboard .navigation-dialog .nav-close{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  body.dashboard-page .enerdex-dashboard .edx-analysis-entry>button{height:44px;min-height:44px}
  body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch){height:46px}
  body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch) button{min-height:42px;height:42px;flex:1 1 auto}
  body.dashboard-page .enerdex-dashboard :is(.filter-chip,.ledger-chip,.text-link,.record-link,.alert-title,.asset-name,.acknowledge,.detail-records>button,.asset-summary-row,.narrative-track button){min-height:44px}
  body.dashboard-page .enerdex-dashboard .truth-info{width:44px;min-width:44px;height:44px}
  body.dashboard-page .enerdex-dashboard .chart-legend label{min-height:44px}
  body.dashboard-page .enerdex-dashboard .platform-field :is(input:not([type=file]),select),body.dashboard-page .enerdex-dashboard :is(.select-field,.search-field){height:44px;min-height:44px}
  body.dashboard-page .enerdex-dashboard :is(.platform-field input,.platform-field select,.platform-field textarea,.search-field input,.select-field select,#record-note){font-size:16px}
  body.dashboard-page .enerdex-dashboard :is(.bar-hit,.gantt-row,.zone-row){min-height:44px}
  body.dashboard-page .enerdex-dashboard .alert-item>.icon-button{width:44px;min-width:44px;height:44px}
  body.dashboard-page .enerdex-dashboard .chart-table>summary{min-height:44px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch){height:48px;min-height:48px;box-sizing:border-box;max-width:100%}
  body.dashboard-page .enerdex-dashboard :is(.segmented,.network-scope,.journey .seg,.network-plot-switch) button{min-height:44px;height:44px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .select-field{height:46px;min-height:46px;box-sizing:border-box;max-width:100%;min-width:0}
  body.dashboard-page .enerdex-dashboard .select-field select{height:44px;min-height:44px;box-sizing:border-box;min-width:0}
  body.dashboard-page .enerdex-dashboard .filter-search{height:46px;min-height:46px;box-sizing:border-box;max-width:100%;min-width:0}
  body.dashboard-page .enerdex-dashboard .filter-search input{height:44px;min-height:44px;box-sizing:border-box;flex:1 1 auto;min-width:0;font-size:16px}
  body.dashboard-page .enerdex-dashboard .filter-search>svg{flex:none}
}

/* ---------- Drawer, navigation, palette, menus, toast ---------- */
body.dashboard-page .enerdex-dashboard .drawer{border:0;border-left:1px solid var(--fx-rule)!important;border-radius:0;background:var(--fx-surface);color:var(--fx-ink-2);box-shadow:-8px 0 24px rgba(24,37,50,.08)}
body.dashboard-page .enerdex-dashboard .drawer-head{min-height:56px;padding:12px 24px;gap:12px;background:var(--fx-surface);border-bottom:1px solid var(--fx-rule);backdrop-filter:none;-webkit-backdrop-filter:none}
body.dashboard-page .enerdex-dashboard .drawer-head h2{font-size:16px!important;line-height:24px;font-weight:600}
body.dashboard-page .enerdex-dashboard .drawer-head>.icon-button{width:36px;height:36px;min-width:36px;border:1px solid var(--fx-rule-2);background:var(--fx-surface);border-radius:6px}
body.dashboard-page .enerdex-dashboard .drawer-body{padding:24px}
body.dashboard-page .enerdex-dashboard .drawer-foot{background:var(--fx-surface-2);border-top:1px solid var(--fx-rule)}
body.dashboard-page .enerdex-dashboard .detail-energy{font-size:26px;line-height:30px;font-weight:600;font-family:var(--fx-mono);color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .detail-energy>span{font-size:13px;font-family:var(--fx-sans)}
body.dashboard-page .enerdex-dashboard :is(.detail-intro,.detail-list>div,.detail-list dd,.detail-records>button,.detail-timeline strong,.drawer .alert-item p,.notification-summary){font-size:13px;line-height:18px}
body.dashboard-page .enerdex-dashboard :is(.detail-list dt,.detail-timeline small,.detail-records small,.drawer .alert-item small,.note-actions small){font-size:12px;line-height:16px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .detail-list{border-color:var(--fx-rule)}
body.dashboard-page .enerdex-dashboard .detail-list>div{border-color:var(--fx-rule-row)}
body.dashboard-page .enerdex-dashboard .detail-heading{font-size:15px;line-height:20px;font-weight:600;color:var(--fx-ink)}
body.dashboard-page .enerdex-dashboard .detail-notice{background:var(--fx-strip);border:1px solid var(--fx-rule);border-radius:6px;color:var(--fx-ink-2);font-size:12px;line-height:16px}
body.dashboard-page .enerdex-dashboard .navigation-dialog{border-radius:0;border-right:1px solid var(--fx-rule);background:var(--fx-surface);box-shadow:8px 0 24px rgba(24,37,50,.08);padding:16px}
body.dashboard-page .enerdex-dashboard .navigation-dialog nav{gap:2px}
body.dashboard-page .enerdex-dashboard .navigation-dialog nav a{min-height:44px;border-radius:6px;padding:0 12px;font-size:14px;line-height:20px;font-weight:500;color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard .navigation-dialog nav a:hover{background:var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard .navigation-dialog nav a[aria-current=page]{background:var(--fx-mint);color:var(--fx-green-text);font-weight:600;box-shadow:inset 2px 0 0 var(--fx-accent)}
body.dashboard-page .enerdex-dashboard .navigation-dialog nav a svg{width:18px;height:18px;color:var(--fx-muted)}
body.dashboard-page .enerdex-dashboard .navigation-dialog .workspace-home{font-size:15px;line-height:20px;font-weight:600}
body.dashboard-page .enerdex-dashboard .palette{border-radius:8px;border:1px solid var(--fx-rule);background:var(--fx-surface);box-shadow:var(--fx-s3);padding:8px}
body.dashboard-page .enerdex-dashboard .palette-item{min-height:40px;border-radius:6px;font-size:13px;line-height:18px}
body.dashboard-page .enerdex-dashboard .palette-item:hover{background:var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard .palette-item.is-active{background:var(--fx-mint);color:var(--fx-green-text);box-shadow:inset 2px 0 0 var(--fx-accent)}
body.dashboard-page .enerdex-dashboard :is(.app-switcher-menu,.truth-popover,.drawer-overflow>.platform-actions){border-radius:8px;border:1px solid var(--fx-rule);background:var(--fx-surface);box-shadow:var(--fx-s2);padding:6px}
body.dashboard-page .enerdex-dashboard :is(.app-switcher-menu,.drawer-overflow>.platform-actions) :is(a,button){min-height:36px;border-radius:6px;font-size:13px;line-height:18px;color:var(--fx-ink-2)}
body.dashboard-page .enerdex-dashboard :is(.app-switcher-menu,.drawer-overflow>.platform-actions) :is(a,button):hover{background:var(--fx-surface-2)}
body.dashboard-page .enerdex-dashboard .app-switcher-menu [aria-current]{background:var(--fx-mint);color:var(--fx-green-text)}
body.dashboard-page .enerdex-dashboard dialog::backdrop{background:rgba(24,37,50,.28);backdrop-filter:none;-webkit-backdrop-filter:none}
body.dashboard-page .enerdex-dashboard .toast{border:1px solid var(--fx-rule);border-radius:6px;background:var(--fx-surface);color:var(--fx-ink);box-shadow:var(--fx-s2);font-size:13px;line-height:18px}
@media (max-width:767px){
  body.dashboard-page .enerdex-dashboard .drawer,body.dashboard-page .enerdex-dashboard .drawer.is-wide{width:100%;max-width:100%;border-left:0!important;border-radius:0!important}
  body.dashboard-page .enerdex-dashboard dialog.drawer .drawer-head{height:auto!important;min-height:68px;flex:0 0 auto;align-items:flex-start;padding:16px 20px 12px;border-radius:0}
  body.dashboard-page .enerdex-dashboard .drawer-body{padding:16px}
  body.dashboard-page .enerdex-dashboard .asset-detail-photo{margin:-16px -16px 16px}
  body.dashboard-page .enerdex-dashboard .palette{width:100vw;max-width:100vw;border-radius:0}
  body.dashboard-page .enerdex-dashboard .palette-item,body.dashboard-page .enerdex-dashboard .app-switcher-menu :is(a,button,.app-switcher-row,[role=menuitem]){min-height:44px}
  body.subpage.dashboard-page .enerdex-dashboard .dashboard-toolbar .app-switcher .app-switcher-menu :is(a.app-switcher-row,.app-switcher-row,a[role=menuitem],[role=menuitem]){min-height:44px !important;height:auto !important;max-height:none !important;box-sizing:border-box !important;display:flex !important;align-items:center !important;overflow:visible !important}
  body.dashboard-page .enerdex-dashboard .navigation-dialog{width:300px;max-width:88%}
}

/* ---------- Palette close: phone + short landscape only ---------- */
body.dashboard-page .enerdex-dashboard .palette-close{display:none}
@media (max-width:767px),(max-height:480px) and (max-width:1023px){
  body.dashboard-page .enerdex-dashboard .palette{top:0;max-height:100vh;max-height:100dvh;height:auto;box-sizing:border-box;overflow:hidden}
  body.dashboard-page .enerdex-dashboard .palette-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 18px);min-height:0}
  body.dashboard-page .enerdex-dashboard .palette-input-row{flex:none;display:flex;align-items:center;gap:8px;min-width:0}
  body.dashboard-page .enerdex-dashboard .palette-input-row>.kbd{display:none}
  body.dashboard-page .enerdex-dashboard #palette-input{flex:1 1 auto;min-width:0;min-height:44px;font-size:16px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .palette-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid var(--fx-rule-2);border-radius:6px;background:var(--fx-surface);color:var(--fx-ink-2);cursor:pointer;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .palette-close:hover{background:var(--fx-surface-2);color:var(--fx-ink)}
  body.dashboard-page .enerdex-dashboard .palette-list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
  body.dashboard-page .enerdex-dashboard .palette-shape,body.dashboard-page .enerdex-dashboard .palette-foot{flex:none}
}
@media (max-height:480px) and (min-width:768px) and (max-width:1023px){
  body.dashboard-page .enerdex-dashboard .palette{margin:8px auto;top:0;bottom:auto;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  body.dashboard-page .enerdex-dashboard .palette-panel{max-height:calc(100vh - 34px);max-height:calc(100dvh - 34px)}
}
@media (max-height:480px) and (max-width:767px){
  body.dashboard-page .enerdex-dashboard .palette-panel{max-height:calc(100vh - 18px);max-height:calc(100dvh - 18px)}
}
/* ---------- Drawer touch targets: short landscape only ---------- */
@media (max-height:480px) and (max-width:1023px){
  body.dashboard-page .enerdex-dashboard .drawer .drawer-head>.icon-button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .drawer .button{min-height:44px;height:44px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .drawer :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-size:16px;min-height:44px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .drawer :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){height:44px}
  body.dashboard-page .enerdex-dashboard .drawer-body{min-height:0}
}
@media (max-width:767px),(max-height:480px) and (max-width:1023px){
  body.dashboard-page .enerdex-dashboard .global-search,body.dashboard-page .enerdex-dashboard .console-bar .topbar.search-open .global-search{height:46px;min-height:46px;box-sizing:border-box;min-width:0}
  body.dashboard-page .enerdex-dashboard .console-bar .global-search input{height:44px;min-height:44px;box-sizing:border-box;min-width:0;flex:1 1 auto;font-size:16px}
  body.dashboard-page .enerdex-dashboard .global-search .search-kbd{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;flex:none;box-sizing:border-box}
}

/* ---------- Footer / provenance (text verbatim, restyled only) ---------- */
body.dashboard-page .enerdex-dashboard .workspace-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 20px;padding:14px var(--dx-gutter);font-size:12px;line-height:16px;color:var(--fx-muted);background:var(--fx-surface);border-top:1px solid var(--fx-rule)}
body.dashboard-page .enerdex-dashboard .workspace-footer>span{display:inline}
body.dashboard-page .enerdex-dashboard .workspace-footer>span:first-child{display:inline-flex;align-items:center;gap:8px;color:var(--fx-green-text);font-weight:600}
body.dashboard-page .enerdex-dashboard .workspace-footer .small-dot{background:var(--fx-live)}

/* ---------- Tablet / phone content ---------- */
@media (max-width:1023px){
  body.dashboard-page .enerdex-dashboard :is(.platform-section,.network-records>section,.chart-card) :is(.network-table-wrap,.table-scroll){margin-left:-20px;margin-right:-20px}
  body.dashboard-page .enerdex-dashboard .network-records{grid-template-columns:minmax(0,1fr);gap:20px}
}
@media (max-width:767px){
  body.dashboard-page .enerdex-dashboard .page-heading{flex-direction:row;flex-wrap:wrap;gap:12px;margin-bottom:20px}
  body.dashboard-page .enerdex-dashboard .page-heading h1,body.dashboard-page .enerdex-dashboard .network-overview h1{font-size:20px;line-height:28px}
  body.dashboard-page .enerdex-dashboard .page-heading p{font-size:13px;line-height:20px}
  body.dashboard-page .enerdex-dashboard .heading-actions,body.dashboard-page .enerdex-dashboard .network-overview .heading-actions{width:auto;max-width:100%;justify-content:flex-start;margin-top:0;gap:8px}
  body.dashboard-page .enerdex-dashboard :is(#main,.overview-surface,#network-content){gap:16px}
  body.dashboard-page .enerdex-dashboard .metrics{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.dashboard-page .enerdex-dashboard .metric:nth-child(n){padding:12px 14px!important;border-left:1px solid var(--fx-rule)!important}
  body.dashboard-page .enerdex-dashboard :is(.metric-label,.network-overview .metric-label){position:relative;font-size:14px;line-height:20px;min-height:54px;padding-bottom:26px;box-sizing:border-box}
  body.dashboard-page .enerdex-dashboard .metric-label svg{display:block;width:16px;height:16px}
  body.dashboard-page .enerdex-dashboard .metric-delta{position:absolute;top:30px;left:0;right:auto;margin:0}
  body.dashboard-page .enerdex-dashboard .metric-value,body.dashboard-page .enerdex-dashboard .network-overview .metric-value{font-size:22px!important;line-height:26px;min-height:26px}
  body.dashboard-page .enerdex-dashboard .network-overview .metric-value.long-value{font-size:18px!important}
  body.dashboard-page .enerdex-dashboard .metric-detail{font-size:11px;line-height:16px}
  body.dashboard-page .enerdex-dashboard :is(.chart-head h2,.ov-section-head h2,.section-heading h2,.narrative-heading h2,.zone-results h2,h2){font-size:16px!important;line-height:22px}
  body.dashboard-page .enerdex-dashboard :is(h3,.zone-group-heading h3){font-size:14px}
  body.dashboard-page .enerdex-dashboard .zone-summary strong{font-size:22px;line-height:26px}
  body.dashboard-page .enerdex-dashboard :is(.chart-card,.ov-activity,.ov-distribution,.platform-section,.network-records>section,.narrative-section,.journey,.platform-status){padding:16px}
  body.dashboard-page .enerdex-dashboard :is(.platform-section,.network-records>section,.chart-card) :is(.network-table-wrap,.table-scroll){margin-left:-16px;margin-right:-16px}
  body.dashboard-page .enerdex-dashboard :is(.network-table,.platform-table,table) :is(th,td){padding:10px 12px}
  body.dashboard-page .enerdex-dashboard .network-table td{height:auto}
  body.dashboard-page .enerdex-dashboard .workspace-footer{flex-direction:column;align-items:flex-start;padding:14px 16px}
  body.dashboard-page .enerdex-dashboard .workspace-footer>span:last-child{margin-left:0}
  body.dashboard-page .enerdex-dashboard .demo-strip{font-size:12px;line-height:16px}
  body.dashboard-page .enerdex-dashboard .network-context{font-size:12px;gap:8px;padding-bottom:14px}
  body.dashboard-page .enerdex-dashboard .network-feed-status,body.dashboard-page .enerdex-dashboard .network-source{font-size:12px;line-height:16px}
  body.dashboard-page .enerdex-dashboard .truth-chip{height:auto;min-height:22px;white-space:normal}
  body.dashboard-page .enerdex-dashboard .truth-main{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px;min-width:0}
  body.dashboard-page .enerdex-dashboard .truth-main>.truth-sep{display:none}
}
@media (min-width:1024px) and (max-width:1279px){
  body.dashboard-page .enerdex-dashboard .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.dashboard-page .enerdex-dashboard .network-records{grid-template-columns:minmax(0,1fr);gap:20px}
}
@media (max-width:360px){
  body.dashboard-page .enerdex-dashboard .metrics{grid-template-columns:minmax(0,1fr)}
  body.dashboard-page .enerdex-dashboard :is(.metric-label,.network-overview .metric-label):not(:has(.metric-delta)){min-height:0;padding-bottom:0}
  body.dashboard-page .enerdex-dashboard .heading-actions .button{min-width:44px;width:44px;padding:0}
  body.dashboard-page .enerdex-dashboard .heading-actions .button>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  body.dashboard-page .enerdex-dashboard .page-heading h1,body.dashboard-page .enerdex-dashboard .network-overview h1{font-size:20px;line-height:28px}
  body.dashboard-page .enerdex-dashboard .metric-value,body.dashboard-page .enerdex-dashboard .network-overview .metric-value{font-size:22px!important}
}

/* ---------- Focus & motion ---------- */
body.dashboard-page .enerdex-dashboard :is(button,a,[tabindex],input,select,textarea,summary):focus-visible{outline:2px solid var(--fx-green);outline-offset:2px}
body.dashboard-page .enerdex-dashboard :is(.palette-item,tbody tr,.app-switcher-menu a,.app-switcher-menu button,.navigation-dialog nav a):focus-visible{outline-offset:-2px}
body.dashboard-page .enerdex-dashboard .global-search input:focus-visible,body.dashboard-page .enerdex-dashboard main[tabindex]:focus-visible,body.dashboard-page .enerdex-dashboard .search-field input:focus-visible{outline:none}
body.dashboard-page .enerdex-dashboard .global-search:focus-within{outline:none;border-color:var(--fx-green);box-shadow:0 0 0 3px rgba(62,190,145,.22)}
body.dashboard-page .enerdex-dashboard .chart-legend label:has(input:focus-visible){outline:2px solid var(--fx-green);outline-offset:2px}
body.dashboard-page .enerdex-dashboard[aria-busy=true] .dashboard-toolbar:after{background:var(--fx-accent)}
@media (min-width:768px) and (max-height:480px){
  body.dashboard-page .enerdex-dashboard .journey .seg{height:48px;min-height:48px;padding:1px;box-sizing:border-box;align-items:center}
  body.dashboard-page .enerdex-dashboard .journey .seg button{height:44px;min-height:44px;min-width:44px;box-sizing:border-box}
}
@media (prefers-reduced-motion:reduce){
  body.dashboard-page .site-header *,body.dashboard-page .enerdex-dashboard *,body.dashboard-page .enerdex-dashboard *::before,body.dashboard-page .enerdex-dashboard *::after,body.dashboard-page .enerdex-dashboard dialog::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
