/* ==========================================================================
   Enerdex Dashboard · Light design system layer · 2026-10-20
   Loaded last. Pulls the shared brand tokens, then restyles every dashboard
   component. Scoped to .enerdex-dashboard so the site header is untouched.
   ========================================================================== */
@import url("./design-system.css?v=light-20261021-3");

@font-face {
  font-family: "JetBrains Mono";
  src: url("/dashboard/assets/jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- Base ---------------------------------------------------------- */
.enerdex-dashboard {
  --color-primary: var(--edx-navy);
  --color-text: var(--ink-1);
  --color-muted: var(--ink-3);
  background: var(--surface-1);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
.enerdex-dashboard * { letter-spacing: 0 !important; }
.enerdex-dashboard .mono, .enerdex-dashboard .platform-address, .enerdex-dashboard .network-hash, .enerdex-dashboard .platform-hash { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.enerdex-dashboard h1, .enerdex-dashboard h2, .enerdex-dashboard h3 { color: var(--ink-1); }
.enerdex-dashboard h2 { font-size: var(--text-lg); font-weight: 600; }
.enerdex-dashboard h3 { font-size: var(--text-md); font-weight: 600; }
.enerdex-dashboard p { color: var(--ink-2); }
.enerdex-dashboard .muted { color: var(--ink-3); }
.enerdex-dashboard button:focus-visible, .enerdex-dashboard a:focus-visible, .enerdex-dashboard [tabindex]:focus-visible,
.enerdex-dashboard input:focus-visible, .enerdex-dashboard select:focus-visible, .enerdex-dashboard textarea:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--shadow-focus); }

/* ---------- Toolbar: workspace tabs + search ------------------------------- */
.enerdex-dashboard .dashboard-toolbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-1); box-shadow: none; }
.enerdex-dashboard .sidebar nav a, .enerdex-dashboard .navigation-dialog nav a {
  color: var(--ink-2); font-weight: 500; font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--edx-ease-out), color var(--dur-fast) var(--edx-ease-out), border-color var(--dur-fast) var(--edx-ease-out);
}
.enerdex-dashboard .sidebar nav a svg, .enerdex-dashboard .navigation-dialog nav a svg { color: var(--ink-3); }
/* Toolbar tabs: underline, no pill */
.enerdex-dashboard .sidebar nav a { border-radius: 0; box-shadow: none; background: transparent; border-bottom: 2px solid transparent; }
.enerdex-dashboard .sidebar nav a:hover { background: transparent; color: var(--ink-1); border-bottom-color: var(--line-2); }
.enerdex-dashboard .sidebar nav a[aria-current=page] { background: transparent; box-shadow: none; color: var(--ink-1); font-weight: 600; border-bottom-color: var(--edx-mint); }
/* Navigation drawer: mint pill */
.enerdex-dashboard .navigation-dialog nav a { border-radius: var(--r-md); }
.enerdex-dashboard .navigation-dialog nav a:hover { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .navigation-dialog nav a[aria-current=page] { background: var(--mint-50); color: var(--mint-800); font-weight: 600; box-shadow: inset 0 0 0 1px var(--mint-200); }
.enerdex-dashboard .sidebar nav a[aria-current=page] svg, .enerdex-dashboard .navigation-dialog nav a[aria-current=page] svg { color: var(--mint-600); }
.enerdex-dashboard .global-search { background: var(--surface-0); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-inset); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.enerdex-dashboard .global-search:hover { border-color: var(--navy-300); }
.enerdex-dashboard .global-search:focus-within { border-color: var(--line-focus); box-shadow: var(--shadow-focus); }
.enerdex-dashboard .global-search input { color: var(--ink-1); font-size: var(--text-sm); }
.enerdex-dashboard .global-search input::placeholder { color: var(--ink-3); }
.enerdex-dashboard .global-search > svg { color: var(--ink-4); }
.enerdex-dashboard .icon-button, .enerdex-dashboard .topbar-actions > .icon-button { color: var(--ink-2); border-radius: var(--r-md); border-color: transparent; background: transparent; transition: background var(--dur-fast), color var(--dur-fast); }
.enerdex-dashboard .icon-button:hover:not(:disabled), .enerdex-dashboard .topbar-actions > .icon-button:hover:not(:disabled) { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .topbar .avatar { background: var(--edx-navy); color: #fff; font-weight: 600; border-radius: var(--r-md); }
.enerdex-dashboard .notification-dot { background: var(--edx-mint); box-shadow: 0 0 0 2px #fff; }
.enerdex-dashboard .breadcrumb strong { color: var(--ink-1); }
.enerdex-dashboard .breadcrumb > span, .enerdex-dashboard .breadcrumb svg { color: var(--ink-3); }

/* ---------- Page heading --------------------------------------------------- */
.enerdex-dashboard .page-heading, .enerdex-dashboard .overview-surface .page-heading { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); padding-bottom: 0; }
.enerdex-dashboard .page-heading > div:first-child { flex: 1 1 360px; min-width: 0; }
.enerdex-dashboard .page-heading > .heading-actions, .enerdex-dashboard .overview-surface .page-heading > .heading-actions { margin: 0; }
.enerdex-dashboard .eyebrow, .enerdex-dashboard .ov-kicker { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3); }
.enerdex-dashboard .small-dot { background: var(--edx-mint); box-shadow: 0 0 0 3px var(--mint-100); }
.enerdex-dashboard .page-heading h1, .enerdex-dashboard h1, .enerdex-dashboard .network-overview h1 { font-size: var(--text-3xl); font-weight: 600; line-height: var(--leading-tight); letter-spacing: 0 !important; color: var(--ink-1); }
.enerdex-dashboard .page-heading p { font-size: var(--text-md); color: var(--ink-3); max-width: 640px; }

/* ---------- Buttons -------------------------------------------------------- */
.enerdex-dashboard .button {
  height: 36px; padding: 0 var(--sp-4); gap: 8px; font-size: var(--text-sm); font-weight: 500;
  color: var(--ink-1); background: var(--surface-0); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); transition: background var(--dur-fast) var(--edx-ease-out), border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.enerdex-dashboard .button:hover:not(:disabled), .enerdex-dashboard .button:hover { background: var(--surface-2); border-color: var(--navy-300); color: var(--ink-1); }
.enerdex-dashboard .button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.enerdex-dashboard .button:disabled { opacity: .5; }
.enerdex-dashboard .button svg { width: 16px; height: 16px; color: var(--ink-3); }
.enerdex-dashboard .button.primary, .enerdex-dashboard .button.primary:hover:not(:disabled), .enerdex-dashboard .button.primary:hover { background: var(--edx-navy); border-color: var(--edx-navy); color: #fff; }
.enerdex-dashboard .button.primary:hover:not(:disabled) { background: var(--navy-700); border-color: var(--navy-700); }
.enerdex-dashboard .button.primary svg { color: rgba(255,255,255,.85); }
.enerdex-dashboard .text-link { color: var(--navy-600); font-weight: 500; }
.enerdex-dashboard .text-link svg { color: currentColor; }
.enerdex-dashboard .segmented, .enerdex-dashboard .network-scope { padding: 3px; gap: 2px; background: var(--surface-2); border: 0; border-radius: var(--r-md); }
.enerdex-dashboard .segmented button, .enerdex-dashboard .network-scope button { height: 28px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); font-size: var(--text-xs); font-weight: 500; transition: all var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .segmented button:hover, .enerdex-dashboard .network-scope button:hover { color: var(--ink-1); }
.enerdex-dashboard .segmented button[aria-pressed=true], .enerdex-dashboard .network-scope button[aria-pressed=true] { background: var(--surface-0); color: var(--ink-1); box-shadow: var(--shadow-1); }
.enerdex-dashboard .network-scope svg { color: inherit; }

/* ---------- Notices -------------------------------------------------------- */
.enerdex-dashboard .demo-strip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-pill); background: #eef2f6; border: 0; color: var(--navy-600); font-size: var(--text-xs); margin: 0 0 var(--sp-5); box-shadow: none; }
.enerdex-dashboard .demo-strip > svg { color: var(--navy-600); width: 15px; height: 15px; }
.enerdex-dashboard .demo-strip > strong { color: var(--navy-600); font-weight: 600; }
.enerdex-dashboard .demo-strip > span:not(.snapshot) { color: var(--navy-600); }
.enerdex-dashboard .network-context { color: var(--ink-3); font-size: var(--text-xs); }
.enerdex-dashboard .network-context > span > svg { color: var(--ink-4); }
.enerdex-dashboard .platform-notice { background: var(--surface-2); border: 1px solid var(--line-1); border-radius: var(--r-md); color: var(--ink-2); font-size: var(--text-sm); }
.enerdex-dashboard .platform-error { background: #eef2f6; color: var(--navy-600); border: 1px solid var(--line-2); border-radius: var(--r-md); font-weight: 500; }
.enerdex-dashboard .local-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; line-height: 1; white-space: nowrap; }
.enerdex-dashboard .workspace-switch .local-pill { background: var(--navy-600); color: #fff; border-color: transparent; }

/* ---------- Application chips --------------------------------------------- */
.candidate-app-links { gap: 8px; margin: 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line-1); border-bottom: 0; }
.candidate-app-links > span { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3); }
.candidate-app-links a { font-size: var(--text-xs); font-weight: 500; padding: 7px 12px; border-radius: var(--r-pill); color: var(--ink-2); background: var(--surface-0); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); transition: all var(--dur-fast) var(--edx-ease-out); }
.candidate-app-links a:hover { background: var(--mint-50); border-color: var(--mint-200); color: var(--mint-800); }
.candidate-app-links svg { color: var(--ink-3); }
.candidate-app-links a:hover svg { color: var(--mint-600); }

/* ---------- Feed status ---------------------------------------------------- */
.enerdex-dashboard .network-feed-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); background: transparent; border: 0; box-shadow: none; padding: 0; }
@media (max-width: 800px) {
  /* network-overview.css stacks the strip as a column at 800px; centring it there misaligns the pill and window chip. */
  .enerdex-dashboard .network-feed-status { align-items: flex-start; }
}
.enerdex-dashboard .network-feed-status strong { color: var(--mint-700); font-size: var(--text-sm); font-weight: 600; }
.enerdex-dashboard .network-feed-status > div > span:last-child { color: var(--ink-3); font-size: var(--text-xs); }
.enerdex-dashboard .network-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--edx-mint); animation: edx-pulse 1.8s var(--edx-ease-out) infinite; }
.enerdex-dashboard .network-feed-status.stale strong, .enerdex-dashboard .network-feed-status.unavailable strong { color: var(--navy-600); }
.enerdex-dashboard .network-feed-status.stale .network-status-dot { background: var(--navy-300); animation: none; }
.enerdex-dashboard .network-feed-status.unavailable .network-status-dot { background: var(--navy-600); animation: none; }
/* Unavailable carries an alert icon in front of the label, not just a colour change */
.enerdex-dashboard .network-feed-status.unavailable .network-status-dot { width: 14px; height: 14px; border-radius: 0; background: var(--navy-600); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.enerdex-dashboard .network-feed-status.loading .network-status-dot { background: var(--navy-300); animation: none; }
.enerdex-dashboard .network-feed-status.loading strong { color: var(--ink-2); }
.enerdex-dashboard .network-window { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); background: var(--surface-2); padding: 4px 8px; border-radius: var(--r-sm); }

/* ---------- Metrics → stat cards with sparklines --------------------------- */
.enerdex-dashboard .metrics, .enerdex-dashboard .overview-surface .metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0 0 var(--sp-5); }
.enerdex-dashboard .metric, .enerdex-dashboard .overview-surface .metric {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4) var(--sp-5) var(--sp-4); min-width: 0;
  background: var(--surface-0); border: 1px solid var(--line-1) !important; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--edx-ease-out), transform var(--dur-base) var(--edx-ease-out);
}
/* :nth-child(n) outranks the legacy :nth-child(2|3) padding resets in integration.css (900px) and styles.css (760px). */
.enerdex-dashboard .metric:nth-child(n), .enerdex-dashboard .overview-surface .metric:nth-child(n) { padding: var(--sp-4) var(--sp-5) !important; }
.enerdex-dashboard .metric { overflow: hidden; }
.enerdex-dashboard .metric:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.enerdex-dashboard .metric + .metric { border-left: 1px solid var(--line-1) !important; }
.enerdex-dashboard .metric-label { font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.enerdex-dashboard :is(.metric-label svg, .overview-surface .metric-label svg, .network-overview .metric-label > svg) { order: -1; display: block !important; width: 28px !important; height: 28px !important; padding: 6px; border-radius: var(--r-sm); background: var(--mint-50); color: var(--mint-600) !important; flex: none; }
.enerdex-dashboard .metric-value, .enerdex-dashboard .network-overview .metric-value, .enerdex-dashboard .overview-surface .metric-value {
  font-size: var(--text-2xl); font-weight: 600; letter-spacing: 0 !important; line-height: 1.1; min-height: 0; margin: 2px 0 0; color: var(--ink-1) !important; font-variant-numeric: tabular-nums;
}
.enerdex-dashboard .network-overview .metric-value.long-value { font-size: var(--text-xl); }
.enerdex-dashboard .network-overview .metric:nth-child(3) .metric-value, .enerdex-dashboard .network-overview .metric:nth-child(4) .metric-value { color: var(--ink-1); }
.enerdex-dashboard .metric-detail { font-size: var(--text-xs); color: var(--ink-3); }
.enerdex-dashboard .metric-detail.positive { color: var(--ok-text); font-weight: 600; }
.enerdex-dashboard .metric-spark { height: 34px; margin-top: 4px; }
.enerdex-dashboard .metric-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.enerdex-dashboard .metric-spark .spark-line { fill: none; stroke: var(--edx-mint); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.enerdex-dashboard .metric-spark .spark-fill { fill: var(--edx-mint); opacity: .14; }
.enerdex-dashboard .metric-spark.navy .spark-line, .enerdex-dashboard .metric-spark.blue .spark-line { stroke: var(--edx-navy); } .enerdex-dashboard .metric-spark.navy .spark-fill, .enerdex-dashboard .metric-spark.blue .spark-fill { fill: var(--edx-navy); }

/* ---------- Chart cards ---------------------------------------------------- */
.enerdex-dashboard .ov-analytics { gap: var(--sp-4); }
.enerdex-dashboard .ov-activity, .enerdex-dashboard .ov-distribution, .enerdex-dashboard .platform-section, .enerdex-dashboard .network-records > section {
  background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--sp-5);
}
.enerdex-dashboard .network-records { gap: var(--sp-4); margin-top: var(--sp-4); }
.enerdex-dashboard .ov-section-head h2, .enerdex-dashboard .network-records .section-heading h2, .enerdex-dashboard .section-heading h2 { font-size: var(--text-lg); font-weight: 600; letter-spacing: 0 !important; }
.enerdex-dashboard .ov-section-head p, .enerdex-dashboard .section-heading p { font-size: var(--text-xs); color: var(--ink-3); }
.enerdex-dashboard .ov-open.icon-button { border: 1px solid var(--line-2); background: var(--surface-0); box-shadow: var(--shadow-1); }
.enerdex-dashboard .ov-chart-meta { font-size: var(--text-xs); color: var(--ink-3); }
.enerdex-dashboard .ov-key { width: 10px; height: 10px; border-radius: 3px; }
.enerdex-dashboard .ov-key.green { background: var(--series-1); } .enerdex-dashboard .ov-key.blue { background: var(--series-2); } .enerdex-dashboard .ov-key.teal { background: var(--series-4); } .enerdex-dashboard .ov-key.mint { background: var(--series-5); } .enerdex-dashboard .ov-key.amber { background: var(--series-other); } .enerdex-dashboard .ov-key.neutral { background: var(--series-other); }
.enerdex-dashboard .ov-ring-segment.green { stroke: var(--series-1); } .enerdex-dashboard .ov-ring-segment.blue { stroke: var(--series-2); } .enerdex-dashboard .ov-ring-segment.teal { stroke: var(--series-4); } .enerdex-dashboard .ov-ring-segment.mint { stroke: var(--series-5); } .enerdex-dashboard .ov-ring-segment.amber { stroke: var(--series-other); } .enerdex-dashboard .ov-ring-segment.neutral { stroke: var(--series-other); }
.enerdex-dashboard .ov-grid-line { stroke: var(--grid-line); stroke-width: 1; }
.enerdex-dashboard .ov-y-axis span, .enerdex-dashboard .ov-x-axis span { font-size: 11px; font-weight: 500; color: var(--tick-text); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .network-bar { fill: var(--series-1); transition: fill var(--dur-fast), opacity var(--dur-fast); }
.enerdex-dashboard .network-chart-point:is(:hover, :focus) .network-bar { fill: var(--series-1); opacity: 1; }
.enerdex-dashboard .ov-history-line { stroke: var(--series-1); stroke-width: 2; }
.enerdex-dashboard .ov-chart-cursor { stroke: var(--crosshair); stroke-dasharray: 3 3; stroke-width: 1; }
.enerdex-dashboard .ov-chart-marker { fill: var(--series-1); stroke: #fff; stroke-width: 2; }
.enerdex-dashboard .network-chart-point:focus-visible .network-bar-hit, .enerdex-dashboard .ov-chart-point:focus-visible rect { stroke: var(--mint-600); stroke-width: 2; vector-effect: non-scaling-stroke; outline: none; box-shadow: none; }
.enerdex-dashboard .ov-chart-tooltip {
  background: var(--surface-inverse); color: var(--ink-inverse); border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 8px 10px; font-size: var(--text-xs);
}
.enerdex-dashboard .ov-chart-tooltip :is(.t-head, .t-foot) { color: var(--navy-300); font-weight: 500; }
.enerdex-dashboard .ov-chart-tooltip strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.enerdex-dashboard .ov-chart-foot { font-size: var(--text-xs); color: var(--ink-3); border-top: 1px solid var(--line-1); padding-top: var(--sp-3); }
.enerdex-dashboard .ov-chart-foot svg { color: var(--mint-600); }
.enerdex-dashboard .ov-chart-empty { color: var(--ink-3); }
.enerdex-dashboard .ov-chart-empty svg { color: var(--mint-600); background: var(--mint-50); border-radius: var(--r-lg); padding: 10px; width: 44px; height: 44px; }
.enerdex-dashboard .ov-chart-empty strong { color: var(--ink-1); }
.enerdex-dashboard .ov-ring-track { stroke: var(--surface-2); }
.enerdex-dashboard .ov-ring-segment { stroke-width: 14; transition: opacity var(--dur-fast); }
.enerdex-dashboard .ov-ring-total strong { font-size: var(--text-2xl); font-weight: 600; letter-spacing: 0 !important; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .ov-ring-total span { font-size: var(--text-2xs); color: var(--ink-3); text-transform: none; letter-spacing: 0 !important; font-weight: 500; max-width: 70%; text-align: center; line-height: 1.2; }
.enerdex-dashboard .ov-distribution-legend li { font-size: var(--text-sm); color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .ov-distribution-legend li:last-child { border-bottom: 0; }
.enerdex-dashboard .ov-distribution-legend strong { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .network-results { border-top: 1px solid var(--line-1); margin-top: var(--sp-4); padding-top: var(--sp-3); }
.enerdex-dashboard .network-results > div { font-size: var(--text-sm); color: var(--ink-3); }
.enerdex-dashboard .network-results strong { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .ov-progress-track { background: var(--surface-2); border-radius: var(--r-pill); height: 8px; overflow: hidden; }
.enerdex-dashboard .ov-progress-track > span { background: var(--edx-mint); border-radius: 4px; }

/* ---------- Tables --------------------------------------------------------- */
.enerdex-dashboard .network-table-wrap, .enerdex-dashboard .table-scroll { border: 1px solid var(--line-1); border-radius: var(--r-md); overflow: auto; background: var(--surface-0); }
.enerdex-dashboard .network-table, .enerdex-dashboard .platform-table { font-size: var(--text-sm); border-collapse: separate; border-spacing: 0; }
.enerdex-dashboard .network-table th, .enerdex-dashboard .platform-table th {
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-1); border-bottom: 1px solid var(--line-2); padding: 10px 14px; white-space: nowrap; position: sticky; top: 0;
}
.enerdex-dashboard .network-table td, .enerdex-dashboard .platform-table td { font-size: var(--text-sm); color: var(--ink-1); padding: 12px 14px; border-bottom: 1px solid var(--line-1); vertical-align: middle; }
.enerdex-dashboard .network-table tbody tr:last-child td, .enerdex-dashboard .platform-table tbody tr:last-child td { border-bottom: 0; }
.enerdex-dashboard .network-table tbody tr, .enerdex-dashboard .platform-table tbody tr { transition: background var(--dur-fast); }
.enerdex-dashboard .network-table tbody tr:hover, .enerdex-dashboard .platform-table tbody tr:hover { background: var(--mint-50); }
.enerdex-dashboard .network-align-right { text-align: right; font-variant-numeric: tabular-nums; }
.enerdex-dashboard .network-hash, .enerdex-dashboard .network-ledger-link, .enerdex-dashboard .platform-table .text-link { color: var(--navy-600); font-size: var(--text-xs); text-decoration: none; }
.enerdex-dashboard .network-hash:hover, .enerdex-dashboard .network-ledger-link:hover { text-decoration: underline; }
.enerdex-dashboard .network-ledger-link { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .cell-sub, .enerdex-dashboard .network-table .cell-sub { color: var(--ink-3); font-size: var(--text-2xs); font-family: var(--font-sans); }
.enerdex-dashboard .record-link { color: var(--ink-1); font-weight: 500; }
.enerdex-dashboard .record-link:hover { color: var(--navy-600); }
.enerdex-dashboard .network-row-count { font-size: var(--text-xs); color: var(--ink-3); background: var(--surface-2); padding: 3px 8px; border-radius: var(--r-pill); }
.enerdex-dashboard .network-search-summary { background: var(--surface-2); border-radius: var(--r-md); color: var(--ink-2); font-size: var(--text-sm); }
.enerdex-dashboard .network-empty-records { color: var(--ink-3); font-size: var(--text-sm); padding: var(--sp-6); text-align: center; background: var(--surface-1); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.enerdex-dashboard .pagination { font-size: var(--text-xs); color: var(--ink-3); }

/* ---------- Badges --------------------------------------------------------- */
.enerdex-dashboard .badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 500; border: 0; background: var(--surface-2); color: var(--ink-2); }
.enerdex-dashboard .badge > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Status pills: logo colours only, meaning carried by icon + label.
   success = mint + check · pending = slate + clock · failed = solid navy + alert-triangle · warning = mint outline + alert-circle */
.enerdex-dashboard .badge > svg { width: 12px; height: 12px; flex: none; stroke-width: 2.2; color: currentColor; }
.enerdex-dashboard .badge:is(.ok, .green, .validated, .approved) { background: #ecfaf4; color: #1c6b50; border: 1px solid transparent; }
.enerdex-dashboard .badge:is(.pending, .blue, .amber, .submitted, .review, .draft, .neutral) { background: #eef2f6; color: #3c556d; border: 1px solid transparent; }
.enerdex-dashboard .badge:is(.failed, .red, .rejected) { background: #3c556d; color: #fff; border: 1px solid #3c556d; }
.enerdex-dashboard .badge.warn { background: transparent; color: #1c6b50; border: 1px solid #3ebe91; }

/* ---------- Source footer -------------------------------------------------- */
.enerdex-dashboard .network-source { font-size: var(--text-xs); color: var(--ink-3); border-top: 1px solid var(--line-1); margin-top: var(--sp-6); padding-top: var(--sp-4); }
.enerdex-dashboard .network-source svg { color: var(--ink-4); }
.enerdex-dashboard .workspace-footer { background: var(--surface-0); border-top: 1px solid var(--line-1); color: var(--ink-3); font-size: var(--text-xs); }

/* ---------- Workspace strip, narrative, asset cards ------------------------ */
.enerdex-dashboard .platform-status { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.enerdex-dashboard .platform-status strong { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .platform-status p { color: var(--ink-3); font-size: var(--text-sm); }
.enerdex-dashboard .workspace-zone-label { color: var(--ink-3); font-size: var(--text-2xs); }
.enerdex-dashboard .narrative-section { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.enerdex-dashboard .narrative-track li { border-color: var(--line-1); }
.enerdex-dashboard .narrative-track button { border-radius: var(--r-md); transition: background var(--dur-fast); }
.enerdex-dashboard .narrative-track button:hover { background: var(--mint-50); }
.enerdex-dashboard .narrative-stage { color: var(--mint-700); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; }
.enerdex-dashboard .ov-stage-icon { background: var(--mint-50); color: var(--mint-600); border-radius: var(--r-md); }
.enerdex-dashboard .narrative-track strong { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .narrative-track small { color: var(--ink-3); }
.enerdex-dashboard .asset-card { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: box-shadow var(--dur-base) var(--edx-ease-out), transform var(--dur-base) var(--edx-ease-out); }
.enerdex-dashboard .asset-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.enerdex-dashboard .source-icon { background: var(--mint-50); color: var(--mint-600); border-radius: var(--r-md); }
.enerdex-dashboard .source-icon, .enerdex-dashboard .asset-card .source-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .source-icon svg { width: 20px; height: 20px; }
.enerdex-dashboard .source-icon.solar { background: #ecfaf4; color: #1c6b50; }
.enerdex-dashboard .source-icon.wind { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .source-icon.storage { background: #d4f3e6; color: #1c6b50; }
.enerdex-dashboard .source-icon.hydro { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .asset-name { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .asset-card-metrics strong { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .asset-card-metrics small { color: var(--ink-3); }

/* ---------- Empty, loading ------------------------------------------------- */
.enerdex-dashboard .platform-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: var(--sp-10) var(--sp-6); color: var(--ink-3); background: var(--surface-0); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.enerdex-dashboard .platform-empty > .lucide { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-lg); background: var(--mint-50); color: var(--mint-600); margin-bottom: 6px; }
.enerdex-dashboard .platform-empty strong { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .platform-empty p { font-size: var(--text-sm); color: var(--ink-3); max-width: 360px; }
.enerdex-dashboard .platform-loading { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-md); min-height: 120px; }
.enerdex-dashboard .platform-loading::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: edx-shimmer 1.4s infinite; }

/* ---------- Zones ---------------------------------------------------------- */
.enerdex-dashboard .zone-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.enerdex-dashboard .zone-summary > div { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--sp-4) var(--sp-5); }
.enerdex-dashboard .zone-summary strong { font-size: var(--text-2xl); font-weight: 600; letter-spacing: 0 !important; color: var(--ink-1); }
.enerdex-dashboard .zone-summary .zone-network-name { font-size: var(--text-lg); }
.enerdex-dashboard .zone-summary span { color: var(--ink-3); font-size: var(--text-xs); }
.enerdex-dashboard .zone-group { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.enerdex-dashboard .zone-group-heading { background: var(--surface-1); border-bottom: 1px solid var(--line-1); padding: 10px 16px; }
.enerdex-dashboard .zone-group-heading h3 { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3); }
.enerdex-dashboard .zone-group-heading > span { color: var(--ink-3); font-family: var(--font-mono); font-size: var(--text-xs); }
.enerdex-dashboard .zone-row { border-bottom: 1px solid var(--line-1); transition: background var(--dur-fast); }
.enerdex-dashboard .zone-row:hover { background: var(--mint-50); }
.enerdex-dashboard .zone-mark { background: var(--surface-2); color: var(--ink-2); border-radius: var(--r-md); }
.enerdex-dashboard .zone-row:hover .zone-mark { background: var(--mint-100); color: var(--mint-700); }
.enerdex-dashboard .zone-identity strong { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .zone-identity small { color: var(--ink-3); }
.enerdex-dashboard .zone-state { color: var(--ink-3); font-size: var(--text-xs); }
.enerdex-dashboard .zone-current { background: var(--mint-50); color: var(--mint-800); border: 1px solid var(--mint-200); border-radius: var(--r-pill); padding: 2px 8px; font-weight: 600; }
.enerdex-dashboard .zone-row > .lucide { color: var(--ink-4); }

/* ---------- Forms, drawer, dialog ----------------------------------------- */
.enerdex-dashboard .platform-field { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.enerdex-dashboard .platform-field input, .enerdex-dashboard .platform-field select, .enerdex-dashboard .platform-field textarea {
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 400; color: var(--ink-1); background: var(--surface-0); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-inset); min-height: 36px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.enerdex-dashboard .platform-field input:hover, .enerdex-dashboard .platform-field select:hover, .enerdex-dashboard .platform-field textarea:hover { border-color: var(--navy-300); }
.enerdex-dashboard .platform-field input:focus, .enerdex-dashboard .platform-field select:focus, .enerdex-dashboard .platform-field textarea:focus { border-color: var(--line-focus); box-shadow: var(--shadow-focus); outline: none; }
.enerdex-dashboard .platform-field small { color: var(--ink-3); font-weight: 400; }
.enerdex-dashboard .drawer { border: 1px solid var(--line-1); border-right: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-3); background: var(--surface-0); color: var(--ink-1); }
.enerdex-dashboard dialog::backdrop { background: rgba(24, 37, 50, .38); backdrop-filter: blur(3px); }
.enerdex-dashboard .drawer-head { border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .drawer-head h2 { font-size: var(--text-xl); font-weight: 600; letter-spacing: 0 !important; }
.enerdex-dashboard .detail-list > div { border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .detail-list dt { color: var(--ink-3); font-size: var(--text-xs); font-weight: 500; }
.enerdex-dashboard .detail-list dd { color: var(--ink-1); font-size: var(--text-sm); }
.enerdex-dashboard .detail-energy { font-size: var(--text-4xl); font-weight: 600; letter-spacing: 0 !important; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .detail-energy span { color: var(--ink-3); font-size: var(--text-lg); font-weight: 500; }
.enerdex-dashboard .detail-heading { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3); margin-top: var(--sp-6); }
.enerdex-dashboard .platform-evidence { background: var(--surface-1); border: 1px solid var(--line-1); border-radius: var(--r-md); }
.enerdex-dashboard .platform-role { border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-0); }
.enerdex-dashboard .toast { background: var(--surface-inverse); color: var(--ink-inverse); border-radius: var(--r-md); box-shadow: var(--shadow-3); font-size: var(--text-sm); font-weight: 500; }
.enerdex-dashboard .navigation-dialog { border: 0; border-radius: 0 var(--r-xl) var(--r-xl) 0; box-shadow: var(--shadow-3); background: var(--surface-0); }
.enerdex-dashboard .workspace-switch { background: var(--surface-1); border: 1px solid var(--line-1); border-radius: var(--r-lg); }
.enerdex-dashboard .workspace-symbol { background: var(--edx-navy); color: #fff; border-radius: var(--r-md); }
.enerdex-dashboard .workspace-switch strong { color: var(--ink-1); }
.enerdex-dashboard .workspace-switch small { color: var(--ink-3); }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 1023px) {
  .enerdex-dashboard .metrics, .enerdex-dashboard .overview-surface .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enerdex-dashboard .zone-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .enerdex-dashboard .metrics, .enerdex-dashboard .overview-surface .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .enerdex-dashboard .metric:nth-child(n), .enerdex-dashboard .overview-surface .metric:nth-child(n) { padding: 12px 14px !important; }
  .enerdex-dashboard .metric-value, .enerdex-dashboard .network-overview .metric-value, .enerdex-dashboard .overview-surface .metric-value { font-size: var(--text-xl); }
  .enerdex-dashboard .page-heading h1, .enerdex-dashboard h1, .enerdex-dashboard .network-overview h1 { font-size: var(--text-2xl); }
  .enerdex-dashboard .network-feed-status { flex-direction: column; align-items: flex-start; }
  .enerdex-dashboard .ov-activity, .enerdex-dashboard .ov-distribution, .enerdex-dashboard .platform-section, .enerdex-dashboard .network-records > section { padding: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .enerdex-dashboard .network-status-dot, .enerdex-dashboard .platform-loading::after { animation: none; }
  .enerdex-dashboard .metric:hover, .enerdex-dashboard .asset-card:hover { transform: none; }
}

/* ==========================================================================
   NEXT LEVEL · 2026-10-20-2
   Appended in plan order. Legacy layers are beaten by specificity or load order.
   ========================================================================== */

/* ---------- A2 · Focus and contrast --------------------------------------- */
.enerdex-dashboard .global-search:focus-within { outline: none; }
.enerdex-dashboard .global-search input:focus-visible { box-shadow: none; outline: none; }
.enerdex-dashboard main[tabindex]:focus-visible, .enerdex-dashboard #drawer-title:focus-visible { box-shadow: none; outline: none; }
.enerdex-dashboard .zone-row:focus-visible { outline: 2px solid transparent; outline-offset: -2px; box-shadow: inset 0 0 0 2px var(--mint-600); }

/* ---------- A3 · Phone gutters ------------------------------------------- */
@media (max-width: 639px) {
  .enerdex-dashboard { --rail: 16px; }
  .enerdex-dashboard .demo-strip { border-radius: var(--r-md); }
  .enerdex-dashboard .page-heading > .heading-actions, .enerdex-dashboard .overview-surface .page-heading > .heading-actions { width: auto; justify-content: flex-start; gap: var(--sp-2); }
}

/* ---------- A5 · Vertical rhythm: 16px between cards, 24px between bands --- */
.enerdex-dashboard #main, .enerdex-dashboard .overview-surface, .enerdex-dashboard #network-content, .enerdex-dashboard .zone-directory { display: flex; flex-direction: column; gap: var(--sp-4); }
.enerdex-dashboard :is(#main, .overview-surface, #network-content, .zone-directory) > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.enerdex-dashboard :is(#main, .overview-surface, #network-content) > :is(.metrics, .ov-analytics, .network-records) { margin-bottom: var(--sp-2); }
.enerdex-dashboard :is(#main, .overview-surface) > :is(.demo-strip, .network-scope) { align-self: flex-start; }
.enerdex-dashboard .ov-analytics { padding: 0; border-bottom: 0; }
.enerdex-dashboard :is(.network-context, .zone-summary, .zone-filters) { border-bottom: 0; padding-bottom: 0; }
.enerdex-dashboard .zone-directory, .enerdex-dashboard .asset-inventory { padding: 0; }
.enerdex-dashboard .zone-directory .zone-summary { padding: 0; }
.enerdex-dashboard .metrics > .metric:nth-child(n) { margin: 0; }

/* ---------- A6 · Card insets (20px, design-system reference) -------------- */
.enerdex-dashboard .platform-status, .enerdex-dashboard .overview-surface .platform-status { padding: var(--sp-4) var(--sp-5); }
.enerdex-dashboard .platform-section, .enerdex-dashboard .narrative-section, .enerdex-dashboard .platform-section.epoch-section, .enerdex-dashboard :is(.overview-surface, .network-records) :is(.platform-section, .narrative-section) { padding: var(--sp-5); }
.enerdex-dashboard .platform-section:last-child { border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .platform-evidence, .enerdex-dashboard .platform-role { padding: var(--sp-3) var(--sp-4); }
.enerdex-dashboard :is(.platform-evidence, .platform-role) + :is(.platform-evidence, .platform-role) { margin-top: var(--sp-2); }
.enerdex-dashboard .zone-row { padding: var(--sp-3) var(--sp-4); min-height: 0; }
.enerdex-dashboard .zone-directory .zone-summary > div:nth-child(n) { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-1); }
@media (max-width: 639px) {
  .enerdex-dashboard .platform-status, .enerdex-dashboard .overview-surface .platform-status,
  .enerdex-dashboard .platform-section, .enerdex-dashboard .narrative-section, .enerdex-dashboard .platform-section.epoch-section, .enerdex-dashboard :is(.overview-surface, .network-records) :is(.platform-section, .narrative-section),
  .enerdex-dashboard .zone-directory .zone-summary > div:nth-child(n) { padding: var(--sp-4); }
}

/* ---------- A7 · Buttons: 36px, 40px on phones ----------------------------- */
.enerdex-dashboard .button, .enerdex-dashboard .overview-surface .button, .enerdex-dashboard .platform-form .button { min-height: 36px; height: 36px; padding: 0 var(--sp-4); line-height: 1; white-space: nowrap; }
.enerdex-dashboard :is(.button.tool-button, #main .icon-button, .drawer-head > .icon-button, .network-overview .network-refresh, .zone-filters > .icon-button), .enerdex-dashboard .overview-surface .pagination .button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: var(--r-md); }
.enerdex-dashboard :is(.network-refresh, .drawer-head > .icon-button, .zone-filters > .icon-button) { border: 1px solid var(--line-2); background: var(--surface-0); box-shadow: var(--shadow-1); }
.enerdex-dashboard #main .heading-actions .button.tool-button { width: auto; padding: 0 var(--sp-4); }
.enerdex-dashboard #main .heading-actions .button.tool-button > span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
.enerdex-dashboard #main .table-scroll .icon-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
.enerdex-dashboard .button:focus-visible, .enerdex-dashboard .icon-button:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--shadow-focus); }
/* Form controls share the 36px control height */
.enerdex-dashboard .platform-field :is(input:not([type=file]), select) { height: 36px; min-height: 36px; padding: 0 var(--sp-3); line-height: 1.4; font-size: var(--text-sm); }
@media (max-width: 639px) {
  .enerdex-dashboard #main .button, .enerdex-dashboard .drawer .button { min-height: 40px; height: 40px; }
  .enerdex-dashboard #main :is(.button.tool-button, .icon-button), .enerdex-dashboard #main .heading-actions .button, .enerdex-dashboard #main .heading-actions .button.tool-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .enerdex-dashboard #main .heading-actions .button > span, .enerdex-dashboard #main .heading-actions .button.tool-button > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .enerdex-dashboard #main .table-scroll .icon-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
  .enerdex-dashboard .platform-field :is(input:not([type=file]), select) { height: 40px; min-height: 40px; font-size: 16px; }
}

/* ---------- A8 · Labels, search -------------------------------------------- */
.enerdex-dashboard :is(.eyebrow, .narrative-stage, .local-pill, .zone-group-heading > span) { font-family: var(--font-sans); }
@media (min-width: 1101px) {
  .enerdex-dashboard .global-search { width: clamp(240px, 22vw, 320px); }
}

/* ---------- A9 · Tables ----------------------------------------------------- */
.enerdex-dashboard :is(.network-table, .platform-table) td, .enerdex-dashboard .overview-surface :is(.network-table, .platform-table) td { height: auto; padding: 10px 16px; }
.enerdex-dashboard :is(.network-table, .platform-table) th, .enerdex-dashboard .overview-surface :is(.network-table, .platform-table) th { padding: 10px 16px; }
.enerdex-dashboard .platform-table :is(th, td).num { text-align: right; font-variant-numeric: tabular-nums; }
.enerdex-dashboard .network-table a { color: var(--navy-600); }
.enerdex-dashboard :is(.network-table, .platform-table, .overview-surface) .badge { height: 22px; padding: 0 8px; font-size: var(--text-xs); border-radius: var(--r-pill); }
.enerdex-dashboard .record-link { font-size: var(--text-sm); font-weight: 500; }
.enerdex-dashboard .network-type-inline { display: none; }
.enerdex-dashboard :is(.table-scroll, .network-table-wrap) {
  background:
    linear-gradient(90deg, var(--surface-0) 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--surface-0) 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(24, 37, 50, .14), rgba(24, 37, 50, 0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(24, 37, 50, .14), rgba(24, 37, 50, 0)) right center / 12px 100% no-repeat scroll,
    var(--surface-0);
}
@media (max-width: 639px) {
  .enerdex-dashboard .network-table :is(th, td) { padding-inline: 10px; }
}
@media (max-width: 480px) {
  .enerdex-dashboard .network-transactions .network-table :is(th, td):nth-child(2) { display: none; }
  .enerdex-dashboard .network-type-inline { display: block; }
}

/* ---------- A10 · Drawer, select filter, motion --------------------------- */
.enerdex-dashboard .drawer-head { background: var(--surface-0); }
.enerdex-dashboard .detail-list { border-top: 1px solid var(--line-1); }
.enerdex-dashboard .detail-list > div { padding: 12px 0; }
@media (max-width: 639px) {
  .enerdex-dashboard .drawer { border-radius: 0; border: 0; }
}
.enerdex-dashboard .select-field { position: relative; height: 36px; padding: 0 var(--sp-3); gap: var(--sp-2); background: var(--surface-0); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-inset); transition: border-color var(--dur-fast) var(--edx-ease-out), box-shadow var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .select-field:hover { border-color: var(--navy-300); }
.enerdex-dashboard .select-field:focus-within { outline: none; border-color: var(--line-focus); box-shadow: var(--shadow-focus); }
.enerdex-dashboard .select-field > span { font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.enerdex-dashboard .select-field select { border: 0; box-shadow: none; background: transparent; min-height: 0; height: 100%; padding: 0 22px 0 0; font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-1); cursor: pointer; }
.enerdex-dashboard .select-field select:focus-visible { outline: none; box-shadow: none; }
.enerdex-dashboard .select-field::after { content: ""; position: absolute; right: var(--sp-3); top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 639px) {
  .enerdex-dashboard .select-field { height: 40px; }
  .enerdex-dashboard .select-field select { font-size: 16px; }
}
@keyframes edx-drawer-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes edx-nav-in { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes edx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes edx-pop-in { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes edx-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.enerdex-dashboard .drawer[open] { animation: edx-drawer-in var(--dur-base) var(--edx-ease-out); }
.enerdex-dashboard .navigation-dialog[open] { animation: edx-nav-in var(--dur-base) var(--edx-ease-out); }
.enerdex-dashboard dialog[open]::backdrop { animation: edx-fade-in 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.enerdex-dashboard .toast:not([hidden]) { animation: edx-toast-in var(--dur-base) var(--edx-ease-out); }
@media (hover: none) {
  .enerdex-dashboard :is(.metric, .asset-card):hover { transform: none; box-shadow: var(--shadow-1); }
}

/* ---------- A11 · Zones ------------------------------------------------------ */
.enerdex-dashboard .zone-filters { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--sp-3) var(--sp-4); align-items: flex-end; gap: var(--sp-3); }
.enerdex-dashboard .zone-groups { gap: var(--sp-4); margin-top: 0; }
.enerdex-dashboard .zone-group-heading { border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .zone-identity small.mono { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink-2); font-size: var(--text-2xs); line-height: 1.5; }
.enerdex-dashboard .zone-results { align-items: center; }
.enerdex-dashboard .zone-state { max-width: none; }
.enerdex-dashboard .zone-current { align-self: flex-start; white-space: nowrap; font-size: var(--text-2xs); }
.enerdex-dashboard .zone-results > span { font-size: var(--text-xs); color: var(--ink-3); }
@media (max-width: 639px) {
  .enerdex-dashboard .zone-summary { grid-template-columns: 1fr 1fr; }
  .enerdex-dashboard .zone-directory .zone-summary > div:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- B12 · Status pills ----------------------------------------------- */
/* Legacy tone classes from cached scripts resolve to the same brand pills (see Badges above). */

/* ---------- B14 · KPI tiers, Epoch card, asset inventory --------------------- */
.enerdex-dashboard .asset-inventory .section-heading { margin-bottom: var(--sp-4); }
.enerdex-dashboard .platform-section > .section-heading { margin-bottom: var(--sp-4); }
.enerdex-dashboard .platform-section > .section-heading h2, .enerdex-dashboard .platform-section > h2 { font-size: var(--text-lg); }
.enerdex-dashboard .epoch-section .platform-subtabs { margin-bottom: var(--sp-4); }
.enerdex-dashboard .epoch-section .table-filters { margin-bottom: var(--sp-4); }
.enerdex-dashboard :is(.platform-section, .asset-inventory) .table-scroll { margin: 0; }
.enerdex-dashboard .platform-section .pagination { padding-top: var(--sp-4); margin: 0; }

/* ---------- B15 · Workspace strip and overview headings ---------------------- */
.enerdex-dashboard .platform-status > div:first-child { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--sp-3); align-items: center; }
.enerdex-dashboard .platform-status > div:first-child > :not(.strip-symbol) { grid-column: 2; }
.enerdex-dashboard .strip-symbol { grid-column: 1; grid-row: span 3; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .strip-symbol svg { width: 18px; height: 18px; }
.enerdex-dashboard .platform-status p .mono { font-size: var(--text-xs); color: var(--ink-2); }
.enerdex-dashboard .overview-surface :is(.section-heading, .narrative-heading) h2 { font-size: var(--text-lg); }
@media (max-width: 639px) {
  .enerdex-dashboard .platform-status .platform-actions { display: grid; grid-template-columns: 1fr 1fr 40px; width: 100%; gap: var(--sp-2); }
  .enerdex-dashboard .platform-status .platform-actions .button:not(.tool-button) { width: auto; min-width: 0; padding: 0 var(--sp-2); white-space: normal; text-align: center; line-height: 1.2; font-size: var(--text-xs); }
}

/* ---------- B16 · Asset cards ------------------------------------------------- */
.enerdex-dashboard .asset-grid { gap: var(--sp-4); }
.enerdex-dashboard .asset-card { padding: var(--sp-5); border-radius: var(--r-lg); border-color: var(--line-1); }
.enerdex-dashboard .asset-card:hover { border-color: var(--line-2); }
.enerdex-dashboard .asset-card-top { margin-bottom: var(--sp-4); }
.enerdex-dashboard .asset-name { font-size: var(--text-lg); line-height: 1.35; text-align: left; }
.enerdex-dashboard .asset-card > p { font-size: var(--text-sm); color: var(--ink-3); }
.enerdex-dashboard .asset-card-metrics { margin: var(--sp-4) 0; gap: var(--sp-2); }
.enerdex-dashboard .asset-card-metrics > div { padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.enerdex-dashboard .asset-card-metrics small { margin-bottom: 4px; font-size: var(--text-xs); }
.enerdex-dashboard .asset-card-metrics strong { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.enerdex-dashboard .asset-card-metrics strong span { font-size: var(--text-xs); }
.enerdex-dashboard .asset-card-footer { margin-top: 0; padding-top: var(--sp-3); border-top: 1px solid var(--line-1); }
.enerdex-dashboard .asset-card-footer .mono { font-size: var(--text-xs); color: var(--ink-3); }
@media (max-width: 639px) {
  .enerdex-dashboard .asset-card { padding: var(--sp-4); }
}

/* ---------- B17 · Empty, error, skeleton -------------------------------------- */
.enerdex-dashboard .platform-section .platform-empty { border: 0; background: transparent; }
.enerdex-dashboard .platform-empty .platform-actions { margin: var(--sp-3) 0 0; justify-content: center; }
.enerdex-dashboard .platform-empty > .lucide { margin-bottom: var(--sp-2); }
.enerdex-dashboard .platform-error { display: flex; gap: 10px; align-items: flex-start; padding: var(--sp-3) var(--sp-4); margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.enerdex-dashboard .platform-error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat; }
.enerdex-dashboard .drawer .platform-error { margin-bottom: var(--sp-4); }
.enerdex-dashboard .skeleton-line { display: block; height: 10px; width: 70%; border-radius: var(--r-pill); background: var(--surface-2); position: relative; overflow: hidden; }
.enerdex-dashboard .skeleton-line.lg { width: 90%; height: 12px; }
.enerdex-dashboard .skeleton-line.short { width: 40%; }
.enerdex-dashboard .skeleton-line + .skeleton-line { margin-top: 8px; }
.enerdex-dashboard .skeleton-line::after,
.enerdex-dashboard .metrics.is-loading .metric-value::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: edx-shimmer 1.4s infinite; }
.enerdex-dashboard .metrics.is-loading .metric-value { position: relative; overflow: hidden; width: 7ch; color: transparent !important; background: var(--surface-2); border-radius: var(--r-sm); }
.enerdex-dashboard .platform-skeleton { pointer-events: none; }
.enerdex-dashboard .platform-skeleton .platform-table { min-width: 0; }
.enerdex-dashboard .platform-skeleton td { padding-block: 14px; width: 25%; }
.enerdex-dashboard .platform-skeleton tbody tr:hover { background: transparent; }

/* Zones loading skeleton */
.enerdex-dashboard .zone-loading .zone-summary > div { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-1); }
.enerdex-dashboard .zone-skeleton-list { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.enerdex-dashboard .zone-skeleton-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .zone-skeleton-row:last-child { border-bottom: 0; }
.enerdex-dashboard .zone-skeleton-row .zone-mark { flex: 0 0 32px; width: 32px; height: 32px; }
.enerdex-dashboard .zone-skeleton-row .zone-identity { flex: 1; }

/* ---------- C19 · Hierarchy above the KPIs, app chips, feed pill ------------- */
.enerdex-dashboard .network-context { border: 0; padding: 0; margin: 0; }
.enerdex-dashboard .network-overview .heading-actions { flex-wrap: wrap; }
@media (max-width: 639px) {
  .candidate-app-links { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .candidate-app-links::-webkit-scrollbar { display: none; }
  .candidate-app-links > span { width: auto; flex: none; grid-column: auto; margin: 0; }
  .candidate-app-links a { flex: none; }
}
.enerdex-dashboard .network-feed-status > div { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: var(--r-pill); background: var(--mint-50); border: 1px solid var(--mint-200); min-width: 0; }
.enerdex-dashboard .network-feed-status > div > span:last-child { color: var(--ink-2); }
.enerdex-dashboard .network-feed-status.stale > div { background: #eef2f6; border-color: var(--line-2); }
.enerdex-dashboard .network-feed-status.stale strong { color: var(--navy-600); }
.enerdex-dashboard .network-feed-status.unavailable > div { background: #eef2f6; border-color: #cdd9d3; }
.enerdex-dashboard .network-feed-status.unavailable strong { color: var(--navy-600); }
.enerdex-dashboard .network-feed-status.loading > div { background: var(--surface-2); border-color: var(--line-1); }
@media (max-width: 639px) {
  .enerdex-dashboard .network-feed-status > div { border-radius: var(--r-md); }
}

/* ---------- C20 · Stat cards ------------------------------------------------- */
.enerdex-dashboard .metric-label, .enerdex-dashboard .overview-surface .metric-label, .enerdex-dashboard .network-overview .metric-label { justify-content: flex-start; align-items: center; gap: var(--sp-2); min-height: 28px; flex-wrap: wrap; }
.enerdex-dashboard .metric-delta { margin-left: auto; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill); font-size: var(--text-2xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.enerdex-dashboard .metric-delta.pos { background: #ecfaf4; color: #1c6b50; }
.enerdex-dashboard .metric-delta.neg { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .metric-delta.flat { background: var(--surface-2); color: var(--ink-3); }
.enerdex-dashboard .metric-spark { margin-top: auto; padding-top: 4px; }
@media (max-width: 639px) {
  /* Narrow cards: the change pill sits on the value row so the label never wraps */
  .enerdex-dashboard .metric-delta { position: absolute; top: 47px; right: 14px; margin: 0; }
  .enerdex-dashboard .metric-label, .enerdex-dashboard .overview-surface .metric-label, .enerdex-dashboard .network-overview .metric-label { flex-wrap: nowrap; line-height: 1.3; }
}
.enerdex-dashboard .metric-spark .spark-dot { fill: none; stroke: var(--series-1); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.enerdex-dashboard .metric-spark .spark-dot-halo { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.enerdex-dashboard .metric-spark:is(.navy, .blue) .spark-dot { stroke: var(--edx-navy); }
/* F33 loading: shimmer the placeholders, reserve the sparkline height */
.enerdex-dashboard .network-feed-status.loading ~ .metrics .metric-value,
.enerdex-dashboard .network-feed-status.loading ~ .ov-analytics :is(.ov-ring-total strong, .network-results strong) { position: relative; overflow: hidden; width: 7ch; max-width: 100%; color: transparent !important; background: var(--surface-2); border-radius: var(--r-sm); }
.enerdex-dashboard .network-feed-status.loading ~ .ov-analytics .network-results strong { width: 4ch; }
.enerdex-dashboard .network-feed-status.loading ~ .ov-analytics .ov-ring-total strong { width: 56px; height: 1.1em; }
.enerdex-dashboard .network-feed-status.loading ~ .metrics .metric-value::after,
.enerdex-dashboard .network-feed-status.loading ~ .ov-analytics :is(.ov-ring-total strong, .network-results strong)::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: edx-shimmer 1.4s infinite; }
.enerdex-dashboard .network-feed-status.loading ~ .metrics .metric:not(:first-child)::after { content: ""; display: block; height: 34px; margin-top: auto; border-radius: var(--r-sm); background: linear-gradient(180deg, transparent 40%, var(--surface-2)); }
@keyframes edx-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.enerdex-dashboard .network-feed-status.loading .network-status-dot { animation: edx-breathe 1.4s ease-in-out infinite; }
.enerdex-dashboard .network-feed-status.loading ~ .ov-analytics .ov-ring-track { animation: edx-breathe 1.4s ease-in-out infinite; }
.enerdex-dashboard .network-feed-status.unavailable ~ .metrics .metric-value { color: var(--ink-3) !important; }

/* ---------- C21-23 · Records, retry, stale ------------------------------------ */
.enerdex-dashboard .network-retry, .enerdex-dashboard .overview-surface .network-retry, .enerdex-dashboard #main .network-retry { margin-left: auto; height: 30px; min-height: 30px; padding: 0 var(--sp-3); font-size: var(--text-xs); }
.enerdex-dashboard .network-retry svg { width: 14px; height: 14px; }
@media (max-width: 800px) {
  .enerdex-dashboard .network-retry, .enerdex-dashboard .overview-surface .network-retry, .enerdex-dashboard #main .network-retry { margin-left: 0; }
}
.enerdex-dashboard .network-records.is-unavailable { grid-template-columns: minmax(0, 1fr); }
.enerdex-dashboard .network-records .platform-empty { padding: var(--sp-6) var(--sp-4); }
.enerdex-dashboard .network-empty-records { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--sp-8) var(--sp-4); text-align: center; }
.enerdex-dashboard .network-empty-records > svg { width: 40px; height: 40px; padding: 10px; margin-bottom: 4px; border-radius: var(--r-md); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .network-empty-records strong { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .network-empty-records > span { color: var(--ink-3); font-size: var(--text-xs); }
.enerdex-dashboard .network-empty-records .button { margin-top: var(--sp-2); }
.enerdex-dashboard .network-feed-status.stale ~ :is(.metrics, .ov-analytics, .network-records) { filter: saturate(.55); }
.enerdex-dashboard .network-skeleton { pointer-events: none; }
.enerdex-dashboard .network-skeleton td { height: 52px; }
.enerdex-dashboard .network-skeleton td:last-child { width: 72px; }
.enerdex-dashboard .network-skeleton td:last-child .skeleton-line { width: 40px; margin-left: auto; }
.enerdex-dashboard .network-skeleton tbody tr:hover { background: transparent; }
.enerdex-dashboard .network-no-data:not(.is-loading) .ov-chart-empty > svg { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .ov-chart-empty .button { margin-top: var(--sp-1); }
.enerdex-dashboard .ov-chart-empty .button span { display: inline; max-width: none; font-size: inherit; color: inherit; }
.enerdex-dashboard .ov-chart-empty .button svg { width: 16px; height: 16px; padding: 0; margin: 0; border-radius: 0; background: none; color: var(--ink-3); }

/* ---------- D26 · Chart system ---------------------------------------------- */
/* Palette: fixed series order, legacy tones kept for cached scripts */
.enerdex-dashboard .ov-key.s1 { background: var(--series-1); } .enerdex-dashboard .ov-key.s2 { background: var(--series-2); }
.enerdex-dashboard .ov-key.s3 { background: var(--series-3); } .enerdex-dashboard .ov-key.s4 { background: var(--series-4); }
.enerdex-dashboard .ov-key.s5 { background: var(--series-5); } .enerdex-dashboard .ov-key.s6 { background: var(--series-6); }
.enerdex-dashboard .ov-key.s7 { background: var(--series-7); } .enerdex-dashboard .ov-key.s8 { background: var(--series-8); }
.enerdex-dashboard .ov-ring-segment.s1 { stroke: var(--series-1); } .enerdex-dashboard .ov-ring-segment.s2 { stroke: var(--series-2); }
.enerdex-dashboard .ov-ring-segment.s3 { stroke: var(--series-3); } .enerdex-dashboard .ov-ring-segment.s4 { stroke: var(--series-4); }
.enerdex-dashboard .ov-ring-segment.s5 { stroke: var(--series-5); } .enerdex-dashboard .ov-ring-segment.s6 { stroke: var(--series-6); }
.enerdex-dashboard .ov-ring-segment.s7 { stroke: var(--series-7); } .enerdex-dashboard .ov-ring-segment.s8 { stroke: var(--series-8); }
.enerdex-dashboard .ov-key.neutral { background: var(--series-other); } .enerdex-dashboard .ov-ring-segment.neutral { stroke: var(--series-other); }

/* Axes (F18): ticks sit exactly on the gridlines */
.enerdex-dashboard .ov-y-axis { position: relative; display: block; padding: 0; }
.enerdex-dashboard .ov-y-axis span { position: absolute; right: 0; line-height: 1; transform: translateY(-50%); white-space: nowrap; }
.enerdex-dashboard .ov-y-axis span:nth-child(1) { top: 6.897%; } .enerdex-dashboard .ov-y-axis span:nth-child(2) { top: 28.448%; }
.enerdex-dashboard .ov-y-axis span:nth-child(3) { top: 50%; } .enerdex-dashboard .ov-y-axis span:nth-child(4) { top: 71.552%; }
.enerdex-dashboard .ov-y-axis span:nth-child(5) { top: 93.103%; }
.enerdex-dashboard .ov-x-axis { position: relative; display: block; height: 26px; }
.enerdex-dashboard .ov-x-axis:has(br) { height: 34px; }
.enerdex-dashboard .ov-x-axis span { position: absolute; top: 6px; white-space: nowrap; transform: translateX(-50%); line-height: 1.3; text-align: center; }
.enerdex-dashboard .network-activity .ov-x-axis span:nth-child(1) { left: 2.083%; } .enerdex-dashboard .network-activity .ov-x-axis span:nth-child(2) { left: 27.083%; }
.enerdex-dashboard .network-activity .ov-x-axis span:nth-child(3) { left: 52.083%; } .enerdex-dashboard .network-activity .ov-x-axis span:nth-child(4) { left: 77.083%; }
.enerdex-dashboard .network-activity .ov-x-axis span:nth-child(5) { left: 97.917%; }
.enerdex-dashboard .ov-activity:not(.network-activity) .ov-x-axis span:nth-child(1) { left: 0; transform: none; text-align: left; }
.enerdex-dashboard .ov-activity:not(.network-activity) .ov-x-axis span:nth-child(2) { left: 25%; }
.enerdex-dashboard .ov-activity:not(.network-activity) .ov-x-axis span:nth-child(3) { left: 50%; }
.enerdex-dashboard .ov-activity:not(.network-activity) .ov-x-axis span:nth-child(4) { left: 75%; }
.enerdex-dashboard .ov-activity:not(.network-activity) .ov-x-axis span:nth-child(5) { left: 100%; transform: translateX(-100%); text-align: right; }
@media (max-width: 600px) {
  .enerdex-dashboard :is(.ov-y-axis, .ov-x-axis) span { font-size: 10px; }
  .enerdex-dashboard .network-activity .ov-x-axis span:nth-child(5) { left: auto; right: 0; transform: none; }
}

/* Grid (F26) */
.enerdex-dashboard .ov-grid-line { stroke: var(--grid-line); stroke-width: 1; stroke-dasharray: none; shape-rendering: crispEdges; }
.enerdex-dashboard .ov-plot > svg > line.ov-grid-line:nth-of-type(5) { stroke: var(--axis-line); }
.enerdex-dashboard .ov-chart-cursor { stroke: var(--navy-400); stroke-dasharray: 3 3; }

/* Bars (F20) */
.enerdex-dashboard .network-bar { opacity: 1; fill: var(--series-1); transition: opacity 150ms var(--edx-ease-out); }
.enerdex-dashboard .network-activity svg:has(.network-chart-point:hover) .network-chart-point:not(:hover) .network-bar,
.enerdex-dashboard .network-activity svg:has(.network-chart-point:focus-visible) .network-chart-point:not(:focus-visible) .network-bar { opacity: .35; }
.enerdex-dashboard .network-chart-point:is(:hover, :focus-visible) .network-bar-hit { fill: rgba(60, 85, 109, .05); }
@media (forced-colors: active) {
  .enerdex-dashboard .network-chart-point:focus-visible .network-bar-hit, .enerdex-dashboard .ov-chart-point:focus-visible rect { stroke: Highlight; }
}

/* Ring (F22, F25) */
.enerdex-dashboard .ov-ring-segment, .enerdex-dashboard .ov-ring:hover .ov-ring-segment:not(:hover) { opacity: 1; }
.enerdex-dashboard .ov-ring-segment { transition: opacity 150ms var(--edx-ease-out), stroke-width 150ms var(--edx-ease-out); }
.enerdex-dashboard .ov-distribution:has(.ov-ring-segment.is-active) .ov-ring-segment:not(.is-active) { opacity: .35; }
.enerdex-dashboard .ov-ring-segment.is-active { stroke-width: 18; }
.enerdex-dashboard .ov-distribution-legend li[data-ring-index] { margin: 0 calc(var(--sp-2) * -1); padding: 6px var(--sp-2); border-radius: var(--r-sm); cursor: default; transition: background var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .ov-distribution-legend li[data-ring-index]:is(:hover, .is-active) { background: var(--mint-50); }
.enerdex-dashboard .ov-legend-share { min-width: 40px; text-align: right; color: var(--ink-3); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.enerdex-dashboard .ov-distribution-legend li[data-ring-index] > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 600px) {
  .enerdex-dashboard .ov-distribution-body { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); max-width: none; }
  .enerdex-dashboard .ov-distribution-body > .ov-ring { justify-self: center; }
}
.enerdex-dashboard .ov-ring-total strong { max-width: 72%; text-align: center; }
@media (max-width: 1100px) {
  .enerdex-dashboard .ov-ring-total strong, .enerdex-dashboard .overview-surface .ov-ring-total strong { font-size: var(--text-xl); }
}

/* Tooltip (F27) */
.enerdex-dashboard .ov-chart-tooltip { min-width: 156px; transition: left var(--dur-fast) var(--edx-ease-out), top var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .ov-chart-tooltip:not([hidden]) { animation: edx-pop-in var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .ov-chart-tooltip .t-head { margin-bottom: 6px; }
.enerdex-dashboard .ov-chart-tooltip .t-foot { margin-top: 6px; font-size: var(--text-2xs); }
.enerdex-dashboard .ov-chart-tooltip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; line-height: 1.5; }
.enerdex-dashboard .ov-chart-tooltip .t-row span { flex: 1; color: var(--ink-inverse); }
.enerdex-dashboard .ov-chart-tooltip .t-row b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.enerdex-dashboard .ov-chart-tooltip .t-sw { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--series-1); }

/* Markers and end mark (F24, F28) */
.enerdex-dashboard .ov-chart-marker { fill: none; stroke: var(--series-1); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.enerdex-dashboard .ov-chart-marker-halo { fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.enerdex-dashboard .ov-chart-point:is(:hover, :focus) :is(.ov-chart-marker, .ov-chart-marker-halo) { opacity: 1; }
.enerdex-dashboard .ov-chart-end { fill: none; stroke: var(--series-1); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.enerdex-dashboard .ov-chart-end-label { position: absolute; right: 0; transform: translateY(calc(-100% - 8px)); padding: 2px 7px; border-radius: var(--r-pill); background: var(--mint-50); border: 1px solid var(--mint-200); color: var(--mint-700); font-size: var(--text-2xs); font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.enerdex-dashboard .ov-chart-end-label.below { transform: translateY(8px); }
.enerdex-dashboard #ov-activity-fill stop { stop-color: var(--series-1); }
.enerdex-dashboard #ov-activity-fill stop:first-child { stop-opacity: .22; }
.enerdex-dashboard #ov-activity-fill stop:last-child { stop-opacity: 0; }

/* Loading and empty (F23, F43) */
.enerdex-dashboard .ov-chart-skeleton { position: absolute; inset: 40% 0 6.9% 0; overflow: hidden; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 0.7%, var(--surface-2) 0.7%, var(--surface-2) 3.47%, transparent 3.47%, transparent 4.1667%); }
.enerdex-dashboard .ov-chart-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); animation: edx-shimmer 1.6s infinite; }
.enerdex-dashboard .is-loading .ov-chart-empty { background: transparent; }
.enerdex-dashboard .is-loading .ov-chart-empty > svg { background: transparent; color: var(--ink-3); }
@keyframes edx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .enerdex-dashboard .is-loading .ov-chart-empty > svg { animation: edx-spin 1s linear infinite; }
}
.enerdex-dashboard .ov-distribution-legend .ov-legend-skeleton { height: 14px; margin: 6px 0; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--surface-2); }
.enerdex-dashboard .ov-legend-skeleton:nth-of-type(2) { width: 82%; } .enerdex-dashboard .ov-legend-skeleton:nth-of-type(3) { width: 64%; }
.enerdex-dashboard .ov-legend-skeleton:nth-of-type(4) { width: 72%; } .enerdex-dashboard .ov-legend-skeleton:nth-of-type(5) { width: 52%; }
.enerdex-dashboard .ov-distribution-legend .ov-no-contracts { border-bottom: 0; }
.enerdex-dashboard .ov-chart[data-empty="true"] :is(.ov-y-axis, .ov-x-axis) { visibility: hidden; }
.enerdex-dashboard .ov-chart[data-empty="true"] .ov-grid-line { stroke-opacity: .5; }
.enerdex-dashboard .ov-chart-empty .button { text-decoration: none; }

/* Progress (F30) */
.enerdex-dashboard .ov-progress-track { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-1); }
.enerdex-dashboard .ov-evidence-progress > div:first-child { gap: var(--sp-3); }
.enerdex-dashboard .ov-evidence-progress > div:first-child > span:first-child { flex: 1; }
.enerdex-dashboard .ov-progress-pct { font-size: var(--text-xs); color: var(--mint-700); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Reduced motion (all new animation) ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .enerdex-dashboard dialog[open]::backdrop { animation: none; }
  .enerdex-dashboard .drawer[open], .enerdex-dashboard .navigation-dialog[open], .enerdex-dashboard .toast:not([hidden]), .enerdex-dashboard .ov-chart-tooltip:not([hidden]),
  .enerdex-dashboard .skeleton-line::after, .enerdex-dashboard .metrics.is-loading .metric-value::after, .enerdex-dashboard .ov-chart-skeleton::after,
  .enerdex-dashboard .network-feed-status .network-status-dot, .enerdex-dashboard .network-feed-status.loading ~ .metrics .metric-value::after,
  .enerdex-dashboard .network-feed-status.loading ~ .ov-analytics :is(.ov-ring-total strong, .network-results strong)::after, .enerdex-dashboard .network-feed-status.loading ~ .ov-analytics .ov-ring-track { animation: none; }
  .enerdex-dashboard :is(.metric, .asset-card, .button, .ov-ring-segment, .network-bar, .ov-chart-tooltip) { transition: none; }
}

/* ==========================================================================
   REVIEW FIXES · 2026-10-20-3
   ========================================================================== */

/* ---------- Focus rings the tab and toggle styles were hiding ---------------- */
.enerdex-dashboard .sidebar nav a:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--mint-600); border-radius: var(--r-sm); }
.enerdex-dashboard .navigation-dialog nav a:focus-visible { outline: 2px solid transparent; box-shadow: var(--shadow-focus); }
.enerdex-dashboard :is(.segmented, .network-scope) button:focus-visible { outline: 2px solid transparent; box-shadow: var(--shadow-focus); }
/* Fallback focus target after a feed re-render: no ring around the whole region */
.enerdex-dashboard #network-content:focus-visible { outline: none; box-shadow: none; }

/* ---------- Busy controls stay focusable (aria-disabled) ---------------------- */
.enerdex-dashboard :is(.button, .icon-button)[aria-disabled=true] { opacity: .55; cursor: progress; }
.enerdex-dashboard .button[aria-disabled=true]:active { transform: none; box-shadow: var(--shadow-1); }
@media (prefers-reduced-motion: no-preference) {
  .enerdex-dashboard :is(.button, .icon-button)[aria-disabled=true] > svg { animation: edx-spin 1s linear infinite; }
}
.enerdex-dashboard a.button { text-decoration: none; }

/* ---------- Stat cards: unknown during an outage, never zero ------------------ */
.enerdex-dashboard .metrics.is-unavailable .metric-value { color: var(--ink-3) !important; }
.enerdex-dashboard .metrics.is-unavailable .metric-label svg { background: var(--surface-2); color: var(--ink-3) !important; }

/* ---------- Error banner with retry, unavailable empty states ---------------- */
.enerdex-dashboard .platform-alert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.enerdex-dashboard .platform-alert > .platform-error { flex: 1 1 320px; min-width: 0; }
.enerdex-dashboard .platform-alert > .platform-actions { margin: 0; }
.enerdex-dashboard .platform-empty.is-unavailable > .lucide,
.enerdex-dashboard .network-records.is-unavailable .platform-empty > .lucide { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .drawer .platform-empty .platform-actions { margin-bottom: 0; }

/* ---------- Ring legend: toggles, hidden series, empty and unavailable rows --- */
.enerdex-dashboard .ov-distribution-legend li[data-ring-index]:has(> .ov-legend-toggle) { padding: 0; }
.enerdex-dashboard .ov-legend-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px var(--sp-2); border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.enerdex-dashboard .ov-legend-toggle > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enerdex-dashboard .ov-legend-toggle > strong { margin-left: auto; }
.enerdex-dashboard .ov-distribution-legend li.is-off { color: var(--ink-3); }
.enerdex-dashboard .ov-distribution-legend li.is-off strong { color: var(--ink-3); }
.enerdex-dashboard .ov-distribution-legend li.is-off .ov-key { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy-300); }
.enerdex-dashboard .ov-distribution-legend li.is-off .ov-legend-toggle > span:nth-child(2) { text-decoration: line-through; }
.enerdex-dashboard .ov-ring-segment.is-off { display: none; }
.enerdex-dashboard .ov-key.draft { background: var(--series-other); }
.enerdex-dashboard .ov-ring-segment.draft { stroke: var(--series-other); }
.enerdex-dashboard .ov-distribution-legend .ov-legend-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--ink-3); }
.enerdex-dashboard .ov-distribution-legend .ov-legend-empty > svg { width: 32px; height: 32px; padding: 7px; margin-bottom: 4px; border-radius: var(--r-md); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .ov-distribution-legend .ov-legend-empty.is-unavailable > svg { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .ov-distribution-legend .ov-legend-empty > strong { margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); }
.enerdex-dashboard .ov-distribution-legend .ov-legend-empty > .button { margin-top: var(--sp-2); height: 32px; min-height: 32px; padding: 0 var(--sp-3); font-size: var(--text-xs); }

/* ---------- Tables: the header sticks inside the card ------------------------ */
.enerdex-dashboard :is(.table-scroll, .network-table-wrap) { max-height: min(70vh, 640px); overscroll-behavior-x: contain; }
.enerdex-dashboard :is(.network-table, .platform-table) th { z-index: 1; }

/* ---------- Drawer evidence: pills keep their size, hashes read as links ----- */
.enerdex-dashboard .platform-evidence > :is(.badge, .text-link) { align-self: flex-start; }
.enerdex-dashboard .platform-evidence a.platform-address { color: var(--navy-600); text-decoration: none; }
.enerdex-dashboard .platform-evidence a.platform-address:hover { text-decoration: underline; }

/* ---------- Zones: summary icons, even rhythm --------------------------------- */
.enerdex-dashboard .zone-groups { align-items: start; }
.enerdex-dashboard .zone-summary .zone-summary-icon { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 0 var(--sp-2); border-radius: var(--r-sm); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .zone-summary .zone-summary-icon svg { width: 16px; height: 16px; }
.enerdex-dashboard .zone-summary strong { font-variant-numeric: tabular-nums; }

/* ---------- Small phones (320-360px): heading actions never overflow ---------- */
.enerdex-dashboard .page-heading > .heading-actions, .enerdex-dashboard .overview-surface .page-heading > .heading-actions { flex: 0 1 auto; min-width: 0; max-width: 100%; }
@media (max-width: 360px) {
  .enerdex-dashboard .network-scope button { padding: 0 var(--sp-2); gap: 4px; }
  .enerdex-dashboard .network-scope button svg { width: 14px; height: 14px; }
}
@media (max-width: 639px) {
  /* Zone summary on phones: icon beside the figure, columns never wider than the gutter */
  .enerdex-dashboard .zone-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enerdex-dashboard .zone-directory:not(.zone-loading) .zone-summary > div:nth-child(n) { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--sp-3); row-gap: 2px; align-items: center; justify-content: stretch; }
  .enerdex-dashboard .zone-summary > div > .zone-summary-icon { grid-row: span 2; margin: 0; }
  .enerdex-dashboard .zone-summary > div > :not(.zone-summary-icon) { grid-column: 2; margin: 0; min-width: 0; }
}

/* ==========================================================================
   BRAND + MOTION · 2026-10-20-4
   Logo colours only in data. Chart motion is driven by /dashboard/motion.mjs,
   which applies it once per mount and tweens from the previous values on the
   15 s feed refresh. Nothing here replays on re-render.
   ========================================================================== */

/* Override the legacy amber stale/unavailable literals still in network-overview.css */
.enerdex-dashboard .network-feed-status.stale .network-status-dot { background: #9eb0c2; }

/* Delta pills: up = mint ▲, down = slate ▼ (glyph is part of the markup) */
.enerdex-dashboard .metric-delta .delta-glyph { font-size: .8em; margin-right: 3px; line-height: 1; }

/* Bars grow from the baseline */
.enerdex-dashboard .network-bar { transform-box: fill-box; transform-origin: 50% 100%; }
/* Lines, sparklines: revealed left to right by motion.mjs */
.enerdex-dashboard :is(.ov-history-line, .metric-spark svg) { will-change: auto; }

/* Pulsing mint dot on the newest bar of the primary chart (live feed only) */
.enerdex-dashboard .network-live-dot { position: absolute; z-index: 2; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--edx-mint); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.enerdex-dashboard .network-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--edx-mint); animation: edx-live-pulse 1.8s var(--edx-ease-out) infinite; }
@keyframes edx-live-pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(2.8); opacity: 0; } 100% { transform: scale(2.8); opacity: 0; } }

/* Hover emphasis: everything else fades to 35% over 150ms */
.enerdex-dashboard .ov-ring-segment, .enerdex-dashboard .ov-distribution-legend li[data-ring-index] { transition: opacity 150ms var(--edx-ease-out), stroke-width 150ms var(--edx-ease-out), background 150ms var(--edx-ease-out); }
.enerdex-dashboard .ov-distribution:has([data-ring-index]:hover) .ov-ring-segment[data-ring-index]:not(:hover):not(.is-active),
.enerdex-dashboard .ov-distribution:has([data-ring-index]:hover) .ov-distribution-legend li[data-ring-index]:not(:hover):not(.is-active),
.enerdex-dashboard .ov-distribution:has(.is-active) .ov-distribution-legend li[data-ring-index]:not(.is-active) { opacity: .35; }
.enerdex-dashboard .ov-plot svg:has(.ov-chart-point:hover) .ov-history-line { opacity: 1; }

/* ---------- Reduced motion: every dashboard animation and transition off ---- */
@media (prefers-reduced-motion: reduce) {
  .enerdex-dashboard *, .enerdex-dashboard *::before, .enerdex-dashboard *::after,
  .enerdex-dashboard dialog::backdrop { animation: none !important; transition: none !important; }
  .enerdex-dashboard .network-live-dot::after { display: none; }
  .enerdex-dashboard :is(.metric, .asset-card, .button):hover, .enerdex-dashboard .button:active { transform: none !important; }
}

/* ==========================================================================
   STRUCTURE · 2026-10-21 (light-20261021-2)
   Shared components (design-system/specs/_shared-components.md) and the dashboard
   structure (dashboard.md §2–§9): console bar, app switcher, truth line, stat tiles,
   chart engine marks, tables, pills, drawers, palette, link bus. Logo colours only.
   ========================================================================== */

/* ---------- Tokens used below -------------------------------------------------- */
.enerdex-dashboard { --wash: var(--area-wash, .18); --pending-bg: #eef2f6; --rail: var(--gutter); }
.enerdex-dashboard :is(.metric-value, .ov-ring-total strong, .results-value, .chip-count, .tab-count, .ledger-chip-value, .truth-chip, .bar-value, .journey-count, .hero-num, .filter-count, .pagination, .num, td.num, .chart-tick, .chart-dlabel, .wait-cell, .gantt-value-col, .detail-energy) { font-variant-numeric: tabular-nums lining-nums; }
.enerdex-dashboard .sr-only, .enerdex-dashboard .sr-only-col { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enerdex-dashboard th.sr-only-col, .enerdex-dashboard td.sr-only-col { display: none; }
.enerdex-dashboard .edx-icon { flex: none; display: inline-block; vertical-align: middle; }
.enerdex-dashboard .edx-icon.flip { transform: rotate(180deg); }
.enerdex-dashboard .mono { font-family: var(--font-mono); }
/* Mint never carries the focus ring on its own: two-ring white + mint-600 everywhere */
.enerdex-dashboard :is(button, a, [tabindex], input, select, textarea, summary):focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--shadow-focus); }

/* ---------- 12-column grid ------------------------------------------------------ */
.enerdex-dashboard .edx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.enerdex-dashboard .edx-grid > * { grid-column: span 12; min-width: 0; margin: 0; }
@media (min-width: 1024px) {
  .enerdex-dashboard .edx-grid > .edx-span-8 { grid-column: span 8; } .enerdex-dashboard .edx-grid > .edx-span-4 { grid-column: span 4; }
  .enerdex-dashboard .edx-grid > .edx-span-7 { grid-column: span 7; } .enerdex-dashboard .edx-grid > .edx-span-5 { grid-column: span 5; }
  .enerdex-dashboard .edx-grid > .edx-span-6 { grid-column: span 6; }
}
.enerdex-dashboard .ov-analytics.edx-grid, .enerdex-dashboard .overview-surface .ov-analytics.edx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 0; border: 0; }
.enerdex-dashboard .network-records { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-4); }
.enerdex-dashboard .network-records > * { grid-column: span 12; min-width: 0; }
@media (min-width: 1024px) { .enerdex-dashboard .network-records > .edx-span-5 { grid-column: span 5; } .enerdex-dashboard .network-records > .edx-span-7 { grid-column: span 7; } }
.enerdex-dashboard .network-records.is-unavailable > * { grid-column: 1 / -1; }

/* ---------- Console bar (§2.0 A, §3.1–3.3) -------------------------------------- */
.enerdex-dashboard .dashboard-toolbar.console-bar { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; height: auto; padding: 0 var(--gutter); background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line-1); box-shadow: none; flex-wrap: nowrap; }
.enerdex-dashboard[aria-busy=true] .dashboard-toolbar::after { background: var(--edx-mint); }
.enerdex-dashboard .console-bar .sidebar { display: block; flex: 1 1 auto; min-width: 0; position: static; width: auto; padding: 0; border: 0; background: transparent; }
.enerdex-dashboard .console-bar .sidebar nav { position: relative; display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 0 2px; }
.enerdex-dashboard .console-bar .sidebar nav::-webkit-scrollbar { display: none; }
.enerdex-dashboard .console-bar .sidebar nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; height: 36px; margin: 10px 0; padding: 0 12px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; scroll-snap-align: start; box-shadow: none; }
.enerdex-dashboard .console-bar .sidebar nav a svg { width: 16px; height: 16px; color: var(--ink-3); }
.enerdex-dashboard .console-bar .sidebar nav a:hover { background: var(--surface-2); color: var(--ink-1); border: 0; }
.enerdex-dashboard .console-bar .sidebar nav a[aria-current=page] { background: var(--mint-50); color: var(--mint-800); font-weight: 600; border: 0; }
.enerdex-dashboard .console-bar .sidebar nav a[aria-current=page] svg { color: var(--mint-600); }
.enerdex-dashboard .console-bar .sidebar nav a:focus-visible { box-shadow: var(--shadow-focus); }
.enerdex-dashboard .tab-indicator { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--edx-mint); border-radius: 2px; pointer-events: none; }
.enerdex-dashboard .tab-count { display: inline-flex; align-items: center; gap: 3px; height: 18px; min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font: 600 11px/1 var(--font-mono); }
.enerdex-dashboard .tab-count.is-attention { background: var(--pending-bg); color: var(--navy-600); }
.enerdex-dashboard .tab-count svg { width: 11px; height: 11px; }
.enerdex-dashboard .console-bar .topbar { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; height: auto; padding: 0; border: 0; background: transparent; position: static; }
.enerdex-dashboard .console-bar .topbar > .breadcrumb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.enerdex-dashboard .console-bar .topbar-actions { display: flex; align-items: center; gap: 4px; }
.enerdex-dashboard .console-bar .global-search { display: flex; align-items: center; gap: 8px; width: 280px; max-width: 420px; height: 36px; min-height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-0); box-shadow: var(--shadow-inset); outline: none; }
.enerdex-dashboard .console-bar .global-search > svg { width: 16px; height: 16px; color: var(--ink-4); }
.enerdex-dashboard .console-bar .global-search input { flex: 1; min-width: 0; height: 34px; border: 0; background: transparent; font-size: var(--text-sm); color: var(--ink-1); }
.enerdex-dashboard .console-bar .global-search input::-webkit-search-cancel-button { display: none; }
.enerdex-dashboard .search-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 500 11px var(--font-mono); color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-xs); cursor: pointer; }
.enerdex-dashboard .console-bar .topbar-actions > .icon-button { width: 36px; min-width: 36px; height: 36px; }
@media (min-width: 1024px) and (max-width: 1279px) { .enerdex-dashboard .console-bar .global-search { width: 220px; } }
/* Ledger chip */
.enerdex-dashboard .ledger-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; cursor: pointer; }
.enerdex-dashboard .ledger-chip[hidden] { display: none; }
.enerdex-dashboard .ledger-chip:hover { background: var(--surface-3); }
.enerdex-dashboard .ledger-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-300); }
.enerdex-dashboard .ledger-chip.is-live .ledger-chip-dot { background: var(--edx-mint); }
.enerdex-dashboard .ledger-chip-value { font-size: 12px; }
/* Workspace chip */
.enerdex-dashboard .workspace-chip-host { flex: none; min-width: 0; }
.enerdex-dashboard .workspace-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 220px; padding: 0 10px 0 6px; border: 1px solid var(--line-1); border-radius: var(--r-pill); background: var(--surface-0); color: var(--ink-1); text-align: left; cursor: pointer; }
.enerdex-dashboard .workspace-chip:hover { background: var(--surface-2); }
.enerdex-dashboard .workspace-chip-symbol { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--navy-600); color: #fff; }
.enerdex-dashboard .workspace-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.enerdex-dashboard .workspace-chip-text strong { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enerdex-dashboard .workspace-chip-text small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.enerdex-dashboard .workspace-chip-text small .mono { font-size: 11px; }
.enerdex-dashboard .workspace-chip-create { height: 32px !important; min-height: 32px !important; padding: 0 12px !important; font-size: var(--text-xs) !important; white-space: nowrap; }
.enerdex-dashboard .workspace-chip-create svg { color: #fff !important; width: 14px; height: 14px; }
.enerdex-dashboard .console-bar .mobile-menu { display: none; }

/* ---------- App switcher (shared §4.10) ----------------------------------------- */
.enerdex-dashboard .app-switcher { flex: none; position: relative; }
.enerdex-dashboard .app-switcher-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); font: 500 13px/1 var(--font-sans); cursor: pointer; transition: background var(--dur-fast) var(--edx-ease-out); }
.enerdex-dashboard .app-switcher-trigger:hover, .enerdex-dashboard .app-switcher-trigger[aria-expanded=true] { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .app-switcher-glyph { color: var(--ink-3); }
.enerdex-dashboard .app-switcher-chevron { color: var(--ink-4); }
.enerdex-dashboard .app-switcher-menu { position: fixed; inset: auto; margin: 0; width: min(300px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--surface-0); color: var(--ink-1); box-shadow: var(--shadow-2); overflow: visible; }
.enerdex-dashboard .app-switcher-menu:not(:popover-open):not(.is-open) { display: none; }
.enerdex-dashboard .app-switcher-menu:popover-open { animation: edx-menu-in 160ms var(--edx-ease-out); }
@keyframes edx-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.enerdex-dashboard .app-switcher-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0 !important; color: var(--ink-3); }
.enerdex-dashboard .app-switcher-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 10px; border-radius: var(--r-md); color: var(--ink-1); text-decoration: none; cursor: pointer; outline: none; }
.enerdex-dashboard .app-switcher-row:is(:hover, :focus-visible) { background: var(--mint-50); }
.enerdex-dashboard .app-switcher-row:focus-visible { box-shadow: inset 0 0 0 2px var(--mint-600); }
.enerdex-dashboard .app-switcher-tile { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.enerdex-dashboard .app-switcher-row.is-current .app-switcher-tile { background: var(--mint-50); color: var(--mint-700); }
.enerdex-dashboard .app-switcher-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.enerdex-dashboard .app-switcher-text strong { font-size: 13px; font-weight: 600; }
.enerdex-dashboard .app-switcher-text small { font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .app-switcher-check { color: var(--mint-600); }
.enerdex-dashboard .app-switcher-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; padding: 8px 10px; border-top: 1px solid var(--line-1); font-size: 11px; color: var(--ink-3); }
.enerdex-dashboard .pill-env { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: 11px; font-weight: 500; white-space: nowrap; }

/* Console bar: tablet scrolls the tabs; phone moves them to a second row */
@media (max-width: 1023px) {
  .enerdex-dashboard .dashboard-toolbar.console-bar { flex-wrap: wrap; row-gap: 0; }
  .enerdex-dashboard .console-bar .workspace-chip-host { order: 1; }
  .enerdex-dashboard .console-bar .topbar { width: auto; margin-left: auto; order: 2; }
  .enerdex-dashboard .console-bar .sidebar { order: 3; flex: 1 0 100%; border-top: 1px solid var(--line-1); }
  .enerdex-dashboard .console-bar .global-search { display: none; }
  .enerdex-dashboard .console-bar .mobile-search { display: grid; }
  .enerdex-dashboard .console-bar .topbar.search-open .global-search { display: flex; position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); width: auto; max-width: none; z-index: 5; box-shadow: var(--shadow-2); }
  .enerdex-dashboard .console-bar .sidebar nav { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
}
@media (max-width: 767px) { .enerdex-dashboard .ledger-chip { display: none; } }
@media (max-width: 639px) {
  .enerdex-dashboard .dashboard-toolbar.console-bar { flex-wrap: wrap; row-gap: 0; padding: 0 var(--gutter); }
  .enerdex-dashboard .console-bar .app-switcher-label { display: none; }
  .enerdex-dashboard .console-bar .app-switcher-trigger { padding: 0 6px; gap: 2px; }
  .enerdex-dashboard .console-bar .topbar { width: auto; margin-left: auto; min-height: 52px; order: 2; }
  .enerdex-dashboard .console-bar .workspace-chip-host { order: 1; }
  .enerdex-dashboard .console-bar .sidebar { order: 3; flex: 1 0 100%; border-top: 1px solid var(--line-1); }
  .enerdex-dashboard .console-bar .sidebar nav a { margin: 6px 0; min-height: 36px; }
  .enerdex-dashboard .workspace-chip { max-width: 132px; padding-right: 8px; }
  .enerdex-dashboard .workspace-chip-text strong { display: none; }
  .enerdex-dashboard .workspace-chip-text small .mono { display: none; }
  .enerdex-dashboard .workspace-chip-create span { display: none; }
  .enerdex-dashboard .workspace-chip-create { width: 36px; padding: 0 !important; justify-content: center; }
  .enerdex-dashboard .console-bar .topbar-actions > .icon-button { width: 40px; min-width: 40px; height: 40px; }
  .enerdex-dashboard .console-bar .mobile-menu { display: grid; width: 40px; min-width: 40px; height: 40px; }
}

/* ---------- Page head ----------------------------------------------------------- */
.enerdex-dashboard .page-heading p { color: var(--ink-2); }
.enerdex-dashboard .page-heading { margin-bottom: 0; }

/* ---------- Truth line (§3.5) + live dot (§4.11) ------------------------------- */
.enerdex-dashboard .truth { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 36px; padding: 0 0 12px; border-bottom: 1px solid var(--line-1); font-size: 12px; color: var(--ink-2); }
.enerdex-dashboard .truth-main { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.enerdex-dashboard .truth-main strong { font-size: 12px; font-weight: 600; color: var(--ink-1); }
.enerdex-dashboard .truth.is-live .truth-main strong { color: var(--mint-700); }
.enerdex-dashboard .truth-sep { color: var(--ink-4); }
.enerdex-dashboard .truth-detail, .enerdex-dashboard .truth-relative { color: var(--ink-2); }
.enerdex-dashboard .truth-chips { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.enerdex-dashboard .truth-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.enerdex-dashboard button.truth-chip { cursor: pointer; } .enerdex-dashboard button.truth-chip:hover { background: var(--surface-3); }
.enerdex-dashboard .truth-info { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); cursor: pointer; }
.enerdex-dashboard .truth-info:hover { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .truth-popover { position: fixed; inset: auto; top: auto; margin: 0; width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-0); color: var(--ink-2); box-shadow: var(--shadow-2); font-size: 12px; line-height: 1.5; }
.enerdex-dashboard .truth-popover:popover-open { animation: edx-menu-in 160ms var(--edx-ease-out); }
.enerdex-dashboard .truth-popover strong { display: block; margin-bottom: 6px; color: var(--ink-1); font-size: 12px; }
.enerdex-dashboard .truth-popover ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.enerdex-dashboard .truth .network-retry, .enerdex-dashboard .truth .network-retry-action { height: 28px; min-height: 28px; padding: 0 10px; font-size: var(--text-xs); }
.enerdex-dashboard .truth .badge { height: 22px; }
.enerdex-dashboard .live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-300); }
.enerdex-dashboard .live-dot.is-live { background: var(--edx-mint); animation: edx-pulse 1.8s var(--edx-ease-out) infinite; }
.enerdex-dashboard .live-dot.is-loading { background: var(--navy-300); animation: edx-breathe 1.4s ease-in-out infinite; }
.enerdex-dashboard .live-dot.is-stale { background: var(--navy-300); }
.enerdex-dashboard .live-dot.is-workspace { background: var(--navy-600); border-radius: 2px; }
.enerdex-dashboard .truth.is-stale ~ :is(.metrics, .ov-analytics, .network-records) { filter: saturate(.55); }
@media (max-width: 639px) { .enerdex-dashboard .truth-chips { margin-left: 0; width: 100%; } }

/* ---------- Stat tiles (shared §4.2) -------------------------------------------- */
.enerdex-dashboard .metric:nth-child(n) { padding: var(--sp-5) !important; }
.enerdex-dashboard .metrics.is-mini .metric:nth-child(n) { padding: 14px 16px !important; }
.enerdex-dashboard .metrics.is-mini .metric-value { font-size: var(--text-xl) !important; }
.enerdex-dashboard .metrics.is-mini .metric-label svg { width: 24px !important; height: 24px !important; padding: 5px; }
.enerdex-dashboard .metrics.is-mini .metric-spark { height: 28px; }
.enerdex-dashboard .metric-label .badge { margin-left: auto; }
.enerdex-dashboard .metric-label .metric-delta + .badge { margin-left: 6px; }
.enerdex-dashboard .metric-spark { position: relative; }
.enerdex-dashboard .metric-spark .spark-fill { opacity: var(--wash); }
.enerdex-dashboard .spark-live { position: absolute; right: 0; width: 6px; height: 6px; margin: -3px -3px 0 0; border-radius: 50%; background: var(--edx-mint); box-shadow: 0 0 0 2px #fff; }
.enerdex-dashboard .spark-live::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--edx-mint); animation: edx-ring 1.8s var(--edx-ease-out) infinite; }
.enerdex-dashboard .metric-spark.navy .spark-live, .enerdex-dashboard .metric-spark.navy .spark-live::after { background: var(--edx-navy); border-color: var(--edx-navy); }
.enerdex-dashboard .metric-spark.navy .spark-live::after { background: transparent; }
@keyframes edx-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3); opacity: 0; } }
.enerdex-dashboard .metric-delta .delta-glyph { font-size: .8em; margin-right: 3px; }
.enerdex-dashboard .metrics.is-loading .metric-value { color: var(--ink-4) !important; }
.enerdex-dashboard .truth.is-loading ~ .metrics .metric-value { position: relative; overflow: hidden; width: 7ch; max-width: 100%; color: transparent !important; background: var(--surface-2); border-radius: var(--r-sm); }
.enerdex-dashboard .truth.is-loading ~ .metrics .metric-value::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: edx-shimmer 1.4s infinite; }
.enerdex-dashboard .truth.is-loading ~ .metrics .metric:not(:first-child)::after { content: ""; display: block; height: 34px; margin-top: auto; border-radius: var(--r-sm); background: linear-gradient(180deg, transparent 40%, var(--surface-2)); }
.enerdex-dashboard .metrics.is-unavailable .metric-value { color: var(--ink-3) !important; }

/* ---------- Chart card + chrome (shared §3.1, §3.2) ----------------------------- */
.enerdex-dashboard .chart-card { background: var(--surface-0); border: 1px solid var(--line-1); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--sp-5); min-width: 0; }
.enerdex-dashboard .chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.enerdex-dashboard .chart-head h2 { margin: 2px 0 0; font-size: 15px !important; font-weight: 600; line-height: 1.3; }
.enerdex-dashboard .chart-head p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.45; }
.enerdex-dashboard .chart-head .ov-open { flex: none; width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; }
.enerdex-dashboard .chart { position: relative; min-width: 0; }
.enerdex-dashboard .chart-plot { position: relative; min-width: 0; }
.enerdex-dashboard .chart-plot > svg { display: block; width: 100%; height: auto; overflow: visible; }
.enerdex-dashboard .network-plot-switch { display: none; }
.enerdex-dashboard .chart-c1.is-narrow .network-plot-switch { display: inline-flex; gap: 2px; margin-bottom: 16px; padding: 3px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-2); }
.enerdex-dashboard .network-plot-switch button { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font: 500 12px var(--font-sans); cursor: pointer; }
.enerdex-dashboard .network-plot-switch button[aria-pressed=true] { background: var(--surface-0); color: var(--mint-800); box-shadow: var(--shadow-1); }
.enerdex-dashboard .chart-c1.is-narrow .chart-plot > svg { overflow: hidden; }
.enerdex-dashboard .chart-c1.is-narrow[data-plot=interval] .network-bar { visibility: hidden; }
.enerdex-dashboard .chart-c1.is-narrow[data-plot=interval] .c2-marker { opacity: 1; }
.enerdex-dashboard .chart-grid { stroke: var(--grid-line); stroke-width: 1; shape-rendering: crispEdges; }
.enerdex-dashboard .chart-grid.is-baseline { stroke: var(--axis-line); }
.enerdex-dashboard .chart-tick { fill: var(--ink-3); font: 500 11px var(--font-sans); }
.enerdex-dashboard .chart-note { fill: var(--ink-3); font: 600 10px var(--font-sans); letter-spacing: 0 !important; text-transform: uppercase; }
.enerdex-dashboard .chart-note.is-left { text-anchor: start; }
.enerdex-dashboard .chart-dlabel { fill: var(--ink-2); font: 600 11px var(--font-sans); }
.enerdex-dashboard .chart-reference { stroke: var(--edx-navy); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.enerdex-dashboard .chart-ref-label { fill: var(--ink-2); font: 500 11px var(--font-sans); }
.enerdex-dashboard .chart-latest-halo { fill: var(--mint-50); }
.enerdex-dashboard .chart-skeleton-col { fill: var(--surface-2); }
.enerdex-dashboard .ov-chart-cursor { stroke: var(--crosshair); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity 120ms; }
.enerdex-dashboard :is(.network-chart-point, .ov-chart-point):is(:hover, :focus-visible, .is-hover, [data-pinned]) .ov-chart-cursor { opacity: 1; }
.enerdex-dashboard .network-bar-hit, .enerdex-dashboard .chart-hit { fill: transparent; }
.enerdex-dashboard .network-chart-point, .enerdex-dashboard .ov-chart-point { outline: none; cursor: pointer; }
.enerdex-dashboard .network-chart-point:focus-visible .network-bar-hit, .enerdex-dashboard .ov-chart-point:focus-visible .chart-hit { stroke: var(--mint-600); stroke-width: 2; }
.enerdex-dashboard .network-bar { fill: var(--series-1); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity var(--dur-dim) var(--edx-ease-out); }
.enerdex-dashboard .network-bar.is-zero { fill: var(--series-3); }
.enerdex-dashboard .chart-c1 svg:is(:has(.network-chart-point:hover), :has(.network-chart-point:focus-visible), :has(.network-chart-point.is-linked), :has(.network-chart-point[data-pinned])) .network-chart-point:not(:hover):not(:focus-visible):not(.is-linked):not([data-pinned]) .network-bar { opacity: var(--dim-opacity); }
.enerdex-dashboard .c2-line { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.enerdex-dashboard .c2-area { fill: var(--series-2); opacity: .08; }
.enerdex-dashboard .c2-marker { fill: var(--series-2); stroke: #fff; stroke-width: 2; opacity: 0; }
.enerdex-dashboard .network-chart-point:is(:hover, :focus-visible, .is-hover, .is-linked, [data-pinned]) .c2-marker { opacity: 1; }
.enerdex-dashboard .chart-live-core { fill: var(--edx-mint); stroke: #fff; stroke-width: 2; }
.enerdex-dashboard .chart-live-ring { fill: none; stroke: var(--edx-mint); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: edx-ring 1.8s var(--edx-ease-out) infinite; }
.enerdex-dashboard .chart-live-dot { pointer-events: none; }
.enerdex-dashboard .ov-history-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.enerdex-dashboard .ov-history-area { fill: var(--series-1); opacity: var(--wash); stroke: none; }
.enerdex-dashboard .chart-end-dot, .enerdex-dashboard .ov-chart-marker { fill: var(--series-1); stroke: #fff; stroke-width: 2; }
.enerdex-dashboard .ov-chart-marker { opacity: 0; }
.enerdex-dashboard .ov-chart-point:is(:hover, :focus-visible) .ov-chart-marker { opacity: 1; }
.enerdex-dashboard .chart-first-mark { fill: var(--edx-navy); }
.enerdex-dashboard .chart-c6 .ov-chart-end-label { position: absolute; right: 0; }
.enerdex-dashboard .chart .ov-chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: var(--sp-4); background: rgba(255, 255, 255, .72); }
.enerdex-dashboard .chart .ov-chart-empty.is-quiet { background: transparent; pointer-events: none; }
.enerdex-dashboard .chart .ov-chart-empty > svg { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-lg); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .chart.network-no-data:not(.is-loading) .ov-chart-empty > svg { background: var(--navy-600); color: #fff; }
.enerdex-dashboard .chart .ov-chart-empty span { font-size: var(--text-sm); color: var(--ink-3); max-width: 360px; }
.enerdex-dashboard .chart[data-empty=true] .chart-plot { min-height: 220px; }
.enerdex-dashboard .ov-chart-tooltip { position: absolute; z-index: 5; pointer-events: none; }
.enerdex-dashboard .ov-chart-tooltip .t-hint { margin-top: 6px; font-size: var(--text-2xs); color: var(--navy-300); }
.enerdex-dashboard .ov-chart-tooltip .t-sw { width: 10px; height: 2px; border-radius: 1px; }
.enerdex-dashboard .chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--text-xs); color: var(--ink-2); }
.enerdex-dashboard .chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.enerdex-dashboard .chart-caption { margin: var(--sp-2) 0 0; font-size: var(--text-xs); color: var(--ink-3); }
.enerdex-dashboard .series-1 { --mark: var(--series-1); } .enerdex-dashboard .series-2 { --mark: var(--series-2); } .enerdex-dashboard .series-3 { --mark: var(--series-3); } .enerdex-dashboard .series-other { --mark: var(--series-other); }
.enerdex-dashboard i.series-1 { background: var(--series-1); } .enerdex-dashboard i.series-3 { background: var(--series-3); }
/* Table twin */
.enerdex-dashboard .chart-table { margin-top: var(--sp-3); }
.enerdex-dashboard .chart-table > summary { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 500; color: var(--navy-600); cursor: pointer; list-style: none; border-radius: var(--r-xs); }
.enerdex-dashboard .chart-table > summary::-webkit-details-marker { display: none; }
.enerdex-dashboard .chart-table > summary::before { content: "▸"; font-size: 10px; transition: transform var(--dur-fast); }
.enerdex-dashboard .chart-table[open] > summary::before { transform: rotate(90deg); }
.enerdex-dashboard .chart-table .table-scroll { margin-top: var(--sp-2); max-height: 280px; }

/* ---------- Bar lists (C3, C7, C9, C10) ---------------------------------------- */
.enerdex-dashboard .bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.enerdex-dashboard .bar-row { margin: 0; padding: 0; border: 0; }
.enerdex-dashboard .bar-hit { display: grid; grid-template-columns: minmax(64px, 120px) minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-1); font: inherit; text-align: left; cursor: pointer; transition: opacity var(--dur-dim) var(--edx-ease-out), background var(--dur-fast); }
.enerdex-dashboard .status-ladder .bar-hit { grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) auto; min-height: 32px; }
.enerdex-dashboard .bar-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-1); }
.enerdex-dashboard .bar-label .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.enerdex-dashboard .bar-track { position: relative; height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.enerdex-dashboard .status-ladder .bar-track { height: 12px; }
.enerdex-dashboard .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 0 4px 4px 0; background: var(--series-1); transform-origin: left center; }
.enerdex-dashboard .bar-fill.series-other { background: var(--series-other); }
.enerdex-dashboard .bar-value { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.enerdex-dashboard .bar-row:is(:hover, .is-linked) .bar-hit { background: var(--mint-50); }
.enerdex-dashboard .bar-list:has(.bar-row:hover) .bar-row:not(:hover) .bar-hit, .enerdex-dashboard .bar-list:has(.bar-hit:focus-visible) .bar-row:not(:has(.bar-hit:focus-visible)) .bar-hit { opacity: var(--dim-opacity); }
.enerdex-dashboard .bar-list.is-skeleton .bar-row { height: 36px; display: flex; align-items: center; }
.enerdex-dashboard .ov-legend-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--text-xs); color: var(--ink-3); }
.enerdex-dashboard .ov-legend-empty > svg { width: 32px; height: 32px; padding: 7px; margin-bottom: 4px; border-radius: var(--r-md); background: var(--mint-50); color: var(--mint-600); }
.enerdex-dashboard .ov-legend-empty.is-unavailable > svg { background: var(--navy-600); color: #fff; }
.enerdex-dashboard .ov-legend-empty strong { color: var(--ink-1); font-size: var(--text-sm); }
@media (max-width: 639px) { .enerdex-dashboard .bar-hit { grid-template-columns: 64px minmax(0, 1fr) auto; } .enerdex-dashboard .status-ladder .bar-hit { grid-template-columns: 112px minmax(0, 1fr) auto; } }

/* ---------- Meters (C4, C8) ----------------------------------------------------- */
.enerdex-dashboard .meter { display: flex; gap: 2px; height: 8px; border-radius: var(--r-pill); background: var(--mint-100); overflow: hidden; }
.enerdex-dashboard .meter-seg { flex: 0 0 var(--w); height: 100%; transform-origin: left center; }
.enerdex-dashboard .meter-seg:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.enerdex-dashboard .meter-seg:last-child { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.enerdex-dashboard .meter-seg:only-child { border-radius: var(--r-pill); }
.enerdex-dashboard .meter-fill, .enerdex-dashboard .meter-success { background: var(--edx-mint); }
.enerdex-dashboard .meter-warning { background: var(--surface-0); box-shadow: inset 0 0 0 1.5px var(--edx-mint); }
.enerdex-dashboard .network-results .meter { background: var(--surface-2); }
.enerdex-dashboard .network-results { display: grid; gap: 8px; margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-1); }
.enerdex-dashboard .results-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0 !important; color: var(--ink-3); }
.enerdex-dashboard .results-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.enerdex-dashboard .results-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.enerdex-dashboard .results-value { color: var(--ink-1); font-weight: 600; }
.enerdex-dashboard .results-legend .is-success { color: var(--mint-700); } .enerdex-dashboard .results-legend .is-warning { color: var(--mint-700); }
.enerdex-dashboard .ov-evidence-progress { display: grid; gap: 8px; margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-1); }
.enerdex-dashboard .ov-evidence-progress > div:first-child { display: flex; align-items: baseline; gap: var(--sp-3); font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .ov-evidence-progress > div:first-child > span:first-child { flex: 1; }
.enerdex-dashboard .ov-evidence-progress strong { font-size: 13px; color: var(--ink-1); }
.enerdex-dashboard .ov-delivery-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .ov-delivery-note svg { width: 14px; height: 14px; color: var(--mint-600); }

/* ---------- Heat strip (C5) ------------------------------------------------------ */
.enerdex-dashboard .heat-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin: 0 0 6px; }
.enerdex-dashboard .heat-cell { height: 10px; border-radius: 2px; background: var(--surface-2); outline: none; cursor: pointer; }
.enerdex-dashboard .heat-cell.seq-400 { background: var(--seq-400); } .enerdex-dashboard .heat-cell.seq-500 { background: var(--seq-500); } .enerdex-dashboard .heat-cell.seq-600 { background: var(--seq-600); } .enerdex-dashboard .heat-cell.seq-700 { background: var(--seq-700); } .enerdex-dashboard .heat-cell.seq-800 { background: var(--seq-800); }
.enerdex-dashboard .heat-cell:is(:hover, :focus-visible, .is-linked, [data-pinned]) { box-shadow: 0 0 0 2px var(--navy-600); }
.enerdex-dashboard .heat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--sp-3); font-size: 11px; color: var(--ink-3); }
.enerdex-dashboard .heat-legend { display: inline-flex; align-items: center; gap: 3px; }
.enerdex-dashboard .heat-legend i { width: 10px; height: 8px; border-radius: 2px; }
.enerdex-dashboard .heat-legend i.seq-400 { background: var(--seq-400); } .enerdex-dashboard .heat-legend i.seq-500 { background: var(--seq-500); } .enerdex-dashboard .heat-legend i.seq-600 { background: var(--seq-600); } .enerdex-dashboard .heat-legend i.seq-700 { background: var(--seq-700); } .enerdex-dashboard .heat-legend i.seq-800 { background: var(--seq-800); }
@media (max-width: 1023px) { .enerdex-dashboard .heat-cell { height: 8px; } }
@media (max-width: 639px) { .enerdex-dashboard .heat-cell { height: 6px; } }

/* ---------- Gantt (C11) and interval strip (C13), waiting bar (C14) -------------- */
.enerdex-dashboard .gantt { --label: 200px; --value: 150px; display: grid; gap: 4px; }
.enerdex-dashboard .gantt.is-compact { --label: 150px; --value: 128px; }
.enerdex-dashboard .gantt-axis, .enerdex-dashboard .gantt-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr) var(--value); align-items: center; gap: 10px; }
.enerdex-dashboard .gantt-axis { height: 34px; font-size: 11px; color: var(--ink-3); }
.enerdex-dashboard .gantt-track-col { position: relative; height: 100%; min-width: 0; }
.enerdex-dashboard .gantt-axis .gantt-track-col { height: 34px; }
.enerdex-dashboard .gantt-tick { position: absolute; bottom: 2px; transform: translateX(-50%); white-space: nowrap; }
.enerdex-dashboard .gantt-now-chip { position: absolute; top: 0; transform: translateX(-50%); z-index: 2; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface-inverse); color: var(--ink-inverse); font-size: 10px; font-weight: 600; white-space: nowrap; }
.enerdex-dashboard .gantt-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.enerdex-dashboard .gantt-rows li { margin: 0; }
.enerdex-dashboard .gantt-row { width: 100%; min-height: 40px; padding: 4px 6px; border: 0; border-radius: var(--r-sm); background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink-1); transition: opacity var(--dur-dim), background var(--dur-fast); }
.enerdex-dashboard .gantt-rows li:is(:hover, .is-linked) .gantt-row { background: var(--mint-50); }
.enerdex-dashboard .gantt-rows:has(li:hover) li:not(:hover) .gantt-row { opacity: var(--dim-opacity); }
.enerdex-dashboard .gantt-label-col { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.enerdex-dashboard .gantt-label-col .gantt-ref { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enerdex-dashboard .gantt-label-col small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enerdex-dashboard .gantt-row .gantt-track-col { height: 24px; }
.enerdex-dashboard .gantt-past { position: absolute; left: 0; top: 0; bottom: 0; background: #eef2f0; border-radius: 2px; }
.enerdex-dashboard .gantt-axis .gantt-past { top: 22px; }
.enerdex-dashboard .gantt-bar { position: absolute; top: 6px; height: 12px; border-radius: 4px; }
.enerdex-dashboard .gantt-bar.is-open { background: var(--series-1); }
.enerdex-dashboard .gantt-bar.is-past { background: var(--series-3); }
.enerdex-dashboard .gantt-now { position: absolute; top: -4px; bottom: -4px; left: var(--now); border-left: 1.5px dashed var(--edx-navy); opacity: .7; }
.enerdex-dashboard .gantt-value-col { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; white-space: nowrap; }
.enerdex-dashboard .gantt-legend { margin-top: 6px; }
.enerdex-dashboard .gantt-now-key { width: 0 !important; height: 10px !important; border-left: 1.5px dashed var(--edx-navy); border-radius: 0 !important; }
@media (max-width: 639px) {
  .enerdex-dashboard .gantt, .enerdex-dashboard .gantt.is-compact { --label: 1fr; --value: auto; }
  .enerdex-dashboard .gantt-axis { display: none; }
  .enerdex-dashboard .gantt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; row-gap: 4px; }
  .enerdex-dashboard .gantt-row .gantt-label-col { grid-area: label; } .enerdex-dashboard .gantt-row .gantt-value-col { grid-area: value; } .enerdex-dashboard .gantt-row .gantt-track-col { grid-area: track; height: 12px; }
  .enerdex-dashboard .gantt-row .gantt-bar { top: 2px; height: 8px; }
}
.enerdex-dashboard .interval-strip { position: relative; height: 16px; margin: 8px 0 4px; border-radius: 2px; background: var(--surface-2); }
.enerdex-dashboard .interval { position: absolute; top: 4px; height: 8px; border-radius: 2px; background: var(--edx-mint); box-shadow: 0 0 0 1px #fff; }
.enerdex-dashboard .interval-bound { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--edx-navy); opacity: .7; }
.enerdex-dashboard .interval-bound:last-of-type { transform: translateX(-1.5px); }
.enerdex-dashboard .interval-now { position: absolute; top: -4px; bottom: -4px; border-left: 1.5px dashed var(--edx-navy); }
.enerdex-dashboard .evidence-caption { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .wait-cell { display: inline-flex; align-items: center; gap: 8px; }
.enerdex-dashboard .wait-bar { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.enerdex-dashboard .wait-bar > span { display: block; width: var(--w); height: 100%; background: var(--series-3); border-radius: 3px; }

/* ---------- Pills (shared §1.2, §4.3) — resolved by ui/status.mjs ---------------- */
.enerdex-dashboard .badge.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.enerdex-dashboard .badge.pill > svg { width: 12px; height: 12px; stroke-width: 2.2; }
.enerdex-dashboard .badge.pill.pill-dense { height: 20px; font-size: 11px; padding: 0 7px; }
.enerdex-dashboard .badge.pill-success { background: #ecfaf4; color: #1c6b50; }
.enerdex-dashboard .badge.pill-pending { background: #eef2f6; color: #3c556d; }
.enerdex-dashboard .badge.pill-failed { background: #3c556d; color: #fff; border-color: #3c556d; }
.enerdex-dashboard .badge.pill-warning { background: transparent; color: #1c6b50; border-color: #3ebe91; }
.enerdex-dashboard .badge.pill-serious { background: transparent; color: #3c556d; border-color: #3c556d; }
.enerdex-dashboard .badge.pill-neutral { background: var(--surface-2); color: var(--ink-2); }
.enerdex-dashboard .badge.pill-identity { background: var(--mint-50); color: var(--mint-700); border-color: var(--mint-200); }
.enerdex-dashboard .badge.pill-label { background: transparent; color: var(--ink-2); border-color: var(--line-2); font-size: 10px; font-weight: 600; letter-spacing: 0 !important; }
/* Outline caps labels (TESTNET, SAMPLE ASSET …). Solid navy is reserved for failed. */
.enerdex-dashboard .local-pill, .enerdex-dashboard .workspace-switch .local-pill { background: transparent !important; color: var(--ink-2) !important; border: 1px solid var(--line-2) !important; }

/* ---------- Tables (shared §4.1) -------------------------------------------------- */
.enerdex-dashboard .platform-table.table-dense td, .enerdex-dashboard .network-table.table-dense td { height: 40px; padding: 6px 12px; }
.enerdex-dashboard .platform-table.table-dense th, .enerdex-dashboard .network-table.table-dense th { height: 32px; padding: 0 12px; }
.enerdex-dashboard .platform-table td.mono, .enerdex-dashboard .platform-table td .mono { font-size: 12px; }
.enerdex-dashboard .sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: 0 !important; text-transform: inherit; cursor: pointer; border-radius: var(--r-xs); }
.enerdex-dashboard .sort-caret { font-size: 9px; opacity: .35; }
.enerdex-dashboard th[aria-sort=ascending] .sort-caret, .enerdex-dashboard th[aria-sort=descending] .sort-caret { opacity: 1; color: var(--mint-600); }
.enerdex-dashboard th.num .sort-button { flex-direction: row-reverse; }
.enerdex-dashboard .col-expand { width: 36px; padding-right: 0 !important; }
.enerdex-dashboard .expand-button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); cursor: pointer; }
.enerdex-dashboard .expand-button:hover { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .expand-button svg { transition: transform var(--dur-base) var(--edx-ease-out); }
.enerdex-dashboard .expand-button[aria-expanded=true] svg { transform: rotate(90deg); }
.enerdex-dashboard .row-detail > td { padding: 0 !important; height: auto !important; background: var(--surface-1); }
.enerdex-dashboard .row-detail-grid { padding: 12px 16px; animation: edx-fade-in var(--dur-base) var(--edx-ease-out); }
.enerdex-dashboard .row-detail-grid .detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; border: 0; }
.enerdex-dashboard .row-detail-grid .detail-list > div { padding: 8px 0; }
.enerdex-dashboard :is(.platform-table, .network-table) tbody tr:is(.is-linked, [data-pinned]) > td { background: var(--mint-50); }
.enerdex-dashboard :is(.platform-table, .network-table) tbody tr:is(.is-linked, [data-pinned]) > td:first-child { box-shadow: inset 2px 0 0 var(--mint-400); }
.enerdex-dashboard .pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 40px; padding-top: var(--sp-2); font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .pagination > div { display: flex; gap: 6px; }
.enerdex-dashboard .pagination.is-count { justify-content: flex-start; }
.enerdex-dashboard .hash-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 24px; }
.enerdex-dashboard .hash-chip a { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--navy-600); text-decoration: none; }
.enerdex-dashboard .hash-chip a:hover { text-decoration: underline; }
.enerdex-dashboard .copy-button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer; opacity: .55; }
.enerdex-dashboard :is(.hash-chip, dd, td):is(:hover, :focus-within) .copy-button, .enerdex-dashboard .copy-button:focus-visible { opacity: 1; }
.enerdex-dashboard .copy-button:hover { background: var(--surface-2); color: var(--ink-1); }
.enerdex-dashboard .network-row-count.is-foot { display: inline-block; margin-top: var(--sp-2); }
@media (max-width: 639px) {
  .enerdex-dashboard .table-scroll .platform-table { min-width: 560px; }
  .enerdex-dashboard .table-scroll .platform-table :is(td, th).col-identity { position: sticky; left: 0; z-index: 1; background: var(--surface-0); box-shadow: 1px 0 0 var(--line-1); }
}

/* ---------- Filter row and chips (§3.11, shared §4.3 filter chip) ---------------- */
.enerdex-dashboard .filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--sp-3); }
.enerdex-dashboard .filter-search { display: flex; align-items: center; gap: 8px; height: 36px; width: min(280px, 100%); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-0); box-shadow: var(--shadow-inset); color: var(--ink-4); }
.enerdex-dashboard .filter-search:focus-within { border-color: var(--line-focus); box-shadow: var(--shadow-focus); }
.enerdex-dashboard .filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: var(--text-sm); color: var(--ink-1); outline: none; }
.enerdex-dashboard .filter-count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .btn-ghost { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--ink-2) !important; }
.enerdex-dashboard .btn-ghost:hover { background: var(--surface-2) !important; }
.enerdex-dashboard .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.enerdex-dashboard .filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface-0); color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer; }
.enerdex-dashboard .filter-chip:hover { background: var(--surface-2); }
.enerdex-dashboard .filter-chip[aria-pressed=true] { background: var(--mint-50); color: var(--mint-700); border-color: var(--mint-200); }
.enerdex-dashboard .chip-count { font-size: 11px; color: var(--ink-3); }
.enerdex-dashboard .seg-count { margin-left: 6px; font: 500 11px var(--font-mono); color: var(--ink-4); }
.enerdex-dashboard .epoch-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.enerdex-dashboard .epoch-tools .filter-row { flex: 1 1 520px; }
.enerdex-dashboard .epoch-tabs .segmented button { min-width: 0; }
@media (max-width: 767px) { .enerdex-dashboard .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } }

/* ---------- Needs you (§3.15) and journey rail (§3.16) --------------------------- */
.enerdex-dashboard .needs-you .section-heading { margin-bottom: var(--sp-3); }
.enerdex-dashboard .needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.enerdex-dashboard .needs-card { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--surface-0); box-shadow: var(--shadow-1); min-width: 0; }
.enerdex-dashboard .needs-card.is-linked { box-shadow: inset 2px 0 0 var(--mint-400), var(--shadow-1); }
.enerdex-dashboard .needs-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0 !important; color: var(--ink-3); }
.enerdex-dashboard .role-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--edx-navy); }
.enerdex-dashboard .needs-card strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enerdex-dashboard .needs-card p { margin: 0; font-size: 13px; color: var(--ink-2); }
.enerdex-dashboard .needs-context { font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .needs-action { margin-top: auto; padding-top: 6px; }
.enerdex-dashboard .needs-action .button { height: 30px !important; min-height: 30px !important; font-size: var(--text-xs); }
.enerdex-dashboard .needs-you.is-clear { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-0); color: var(--ink-2); font-size: 13px; }
.enerdex-dashboard .needs-you.is-clear svg { color: var(--mint-600); }
@media (max-width: 1023px) { .enerdex-dashboard .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .enerdex-dashboard .needs-grid { grid-template-columns: 1fr; } }
.enerdex-dashboard .journey { padding: var(--sp-5); border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--surface-0); box-shadow: var(--shadow-1); }
.enerdex-dashboard .journey-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.enerdex-dashboard .journey-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.enerdex-dashboard .journey-hero .hero-num { font-size: var(--text-4xl); font-weight: 600; line-height: 1; letter-spacing: 0 !important; color: var(--ink-1); }
.enerdex-dashboard .hero-unit { font-size: var(--text-xl); color: var(--ink-3); }
.enerdex-dashboard .hero-word { font-size: 14px; color: var(--ink-2); }
.enerdex-dashboard .journey-hero .local-pill { align-self: center; }
.enerdex-dashboard .journey .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--surface-2); }
.enerdex-dashboard .journey .seg button { height: 28px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 500; cursor: pointer; }
.enerdex-dashboard .journey .seg button[aria-pressed=true] { background: var(--surface-0); color: var(--ink-1); box-shadow: var(--shadow-1); }
.enerdex-dashboard .journey-rail { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.enerdex-dashboard .journey-rail li { position: relative; margin: 0; min-width: 0; }
.enerdex-dashboard .journey-rail li + li::before { content: "›"; position: absolute; left: calc(var(--sp-6) / -2); top: 50%; transform: translate(-50%, -50%); color: var(--ink-4); font-size: 14px; }
.enerdex-dashboard .journey-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; padding: var(--sp-3); border: 1px solid var(--line-1); border-radius: var(--r-md); background: transparent; text-align: left; font: inherit; color: var(--ink-1); cursor: pointer; transition: background var(--dur-fast); }
.enerdex-dashboard .journey-stage:hover { background: var(--mint-50); }
.enerdex-dashboard .journey-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0 !important; color: var(--mint-700); }
.enerdex-dashboard .journey-stage .ov-stage-icon { display: grid; place-items: center; width: 32px; height: 32px; margin: 4px 0; }
.enerdex-dashboard .journey-stage .ov-stage-icon svg { width: 16px; height: 16px; }
.enerdex-dashboard .journey-count { font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; }
.enerdex-dashboard .journey-stage.is-zero .journey-count { color: var(--ink-3); }
.enerdex-dashboard .journey-title { font-size: 14px; font-weight: 600; }
.enerdex-dashboard .journey-stage small { font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .journey-spark { display: block; width: 100%; }
.enerdex-dashboard .journey-spark .metric-spark { height: 28px; margin: 4px 0 0; padding: 0; }
.enerdex-dashboard .journey-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--navy-600); }
.enerdex-dashboard .journey-cta svg { width: 12px; height: 12px; }
@media (max-width: 1023px) { .enerdex-dashboard .journey-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); } .enerdex-dashboard .journey-rail li + li::before { display: none; } }
@media (max-width: 639px) {
  .enerdex-dashboard .journey-rail { grid-template-columns: 1fr; gap: 8px; padding-left: 12px; border-left: 2px solid var(--navy-100); }
  .enerdex-dashboard .journey-hero .hero-num { font-size: var(--text-3xl); }
  .enerdex-dashboard .journey { padding: var(--sp-4); }
}

/* ---------- Drawer (shared §4.6) ------------------------------------------------- */
.enerdex-dashboard .drawer { width: 480px !important; max-width: 100% !important; padding: 0 !important; border: 0 !important; border-left: 1px solid var(--line-1) !important; border-radius: 0 !important; display: none; flex-direction: column; }
.enerdex-dashboard .drawer[open] { display: flex; animation: edx-drawer-enter 240ms var(--edx-ease-out); }
.enerdex-dashboard .drawer.is-wide { width: 560px !important; }
@keyframes edx-drawer-enter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .enerdex-dashboard .drawer, .enerdex-dashboard .drawer.is-wide { width: 440px !important; } }
.enerdex-dashboard .drawer-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px !important; border-bottom: 1px solid var(--line-1); background: var(--surface-0); }
.enerdex-dashboard .drawer-head > div { flex: 1; min-width: 0; }
.enerdex-dashboard .drawer-head h2 { margin: 0; font-size: 16px !important; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.enerdex-dashboard .drawer-head .eyebrow { margin: 0 0 2px; }
.enerdex-dashboard .drawer-kind { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--mint-50); color: var(--mint-700); }
.enerdex-dashboard .drawer-head > .icon-button { width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; }
.enerdex-dashboard .drawer-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 36px; padding: 6px 20px; border-bottom: 1px solid var(--line-1); }
.enerdex-dashboard .drawer-time { font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .drawer-body { flex: 1; padding: 20px !important; }
.enerdex-dashboard .drawer-foot { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-1); background: var(--surface-1); }
.enerdex-dashboard .drawer-next { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.enerdex-dashboard .drawer-overflow { position: relative; flex: none; }
.enerdex-dashboard .drawer-overflow > summary { list-style: none; cursor: pointer; }
.enerdex-dashboard .drawer-overflow > summary::-webkit-details-marker { display: none; }
.enerdex-dashboard .drawer-overflow > .platform-actions { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; gap: 4px; width: min(260px, calc(100vw - 48px)); max-height: 50dvh; overflow-y: auto; margin: 0; padding: 6px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-0); box-shadow: var(--shadow-2); }
.enerdex-dashboard .drawer-overflow .button { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; }
.enerdex-dashboard .drawer-foot .button { flex: none; }
.enerdex-dashboard .drawer-section { margin-top: var(--sp-4); border-top: 1px solid var(--line-1); }
.enerdex-dashboard .drawer-section > summary { display: flex; align-items: center; gap: 6px; padding: 12px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0 !important; text-transform: uppercase; color: var(--ink-3); cursor: pointer; list-style: none; }
.enerdex-dashboard .drawer-section > summary::-webkit-details-marker { display: none; }
.enerdex-dashboard .drawer-section > summary::after { content: "▾"; margin-left: auto; font-size: 10px; transition: transform var(--dur-fast); }
.enerdex-dashboard .drawer-section:not([open]) > summary::after { transform: rotate(-90deg); }
.enerdex-dashboard .drawer-section-body { display: grid; gap: 8px; padding-bottom: 8px; }
.enerdex-dashboard .platform-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; }
.enerdex-dashboard .platform-notice > svg { flex: none; margin-top: 2px; color: var(--ink-3); }
.enerdex-dashboard .platform-error { background: var(--pending-bg); color: var(--navy-600); }
.enerdex-dashboard .platform-error::before { background: var(--navy-600); }
.enerdex-dashboard .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 479px) { .enerdex-dashboard .field-pair { grid-template-columns: 1fr; } }
.enerdex-dashboard .field-help { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.enerdex-dashboard .file-drop input[type=file] { min-height: 88px; padding: 28px 12px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--surface-1); }
.enerdex-dashboard .platform-field textarea { min-height: 128px; resize: vertical; }
.enerdex-dashboard #field-csv { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 767px) {
  .enerdex-dashboard .drawer, .enerdex-dashboard .drawer.is-wide { width: 100% !important; inset: auto 0 0 0 !important; height: 95dvh !important; max-height: 95dvh !important; margin: auto 0 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-1) !important; border-radius: 20px 20px 0 0 !important; }
  .enerdex-dashboard .drawer[open] { animation: edx-sheet-up 240ms var(--edx-ease-out); }
  .enerdex-dashboard .drawer-head { border-radius: 20px 20px 0 0; }
  .enerdex-dashboard .drawer-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .enerdex-dashboard .drawer-foot { flex-wrap: wrap; }
  .enerdex-dashboard .drawer-foot .button { flex: 1 1 auto; }
}
@keyframes edx-sheet-up { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Stepper (§3.14) */
.enerdex-dashboard .stepper { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: var(--sp-4) 0; padding: 0; }
.enerdex-dashboard .stepper-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; text-align: center; }
.enerdex-dashboard .stepper-node + .stepper-node::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--navy-100); z-index: 0; }
.enerdex-dashboard .stepper-node.is-done + .stepper-node::before { background: var(--edx-mint); }
.enerdex-dashboard .stepper-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: #fff; }
.enerdex-dashboard .stepper-node.is-done .stepper-dot { background: var(--edx-mint); }
.enerdex-dashboard .stepper-node.is-current .stepper-dot { background: #fff; box-shadow: inset 0 0 0 2px var(--navy-600); }
.enerdex-dashboard .stepper-node.is-exception.is-warning .stepper-dot { background: #fff; color: var(--mint-700); box-shadow: inset 0 0 0 1.5px var(--edx-mint); }
.enerdex-dashboard .stepper-node.is-exception.is-failed .stepper-dot { background: var(--navy-600); color: #fff; }
.enerdex-dashboard .stepper-node.is-exception.is-neutral .stepper-dot { background: var(--surface-2); color: var(--ink-2); }
.enerdex-dashboard .stepper-label { font-size: 10px; font-weight: 500; color: var(--ink-3); line-height: 1.2; }
.enerdex-dashboard .stepper-node:is(.is-done, .is-current, .is-exception) .stepper-label { color: var(--ink-1); }
@media (max-width: 479px) {
  .enerdex-dashboard .stepper { grid-template-columns: 1fr; gap: 10px; }
  .enerdex-dashboard .stepper-node { flex-direction: row; text-align: left; }
  .enerdex-dashboard .stepper-node + .stepper-node::before { top: -10px; left: 9px; right: auto; width: 2px; height: 10px; }
  .enerdex-dashboard .stepper-label { font-size: 12px; }
}
/* Timeline (§3.14) */
.enerdex-dashboard .timeline { position: relative; list-style: none; margin: var(--sp-3) 0; padding: 0 0 0 26px; }
.enerdex-dashboard .timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--navy-100); }
.enerdex-dashboard .timeline-item { position: relative; display: flex; gap: 10px; min-height: 44px; padding: 4px 0 10px; margin: 0; }
.enerdex-dashboard .timeline-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.enerdex-dashboard .timeline-item strong { font-size: 13px; font-weight: 500; color: var(--ink-1); }
.enerdex-dashboard .timeline-item > div > :is(.badge, .hash-chip, .text-link) { align-self: flex-start; }
.enerdex-dashboard .timeline-meta { font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .timeline-body { font-size: 13px; color: var(--ink-2); }
.enerdex-dashboard .timeline-node { position: absolute; left: -26px; top: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--navy-300); color: #fff; }
.enerdex-dashboard .timeline-node svg.edx-icon { position: relative; width: 10px; height: 10px; }
.enerdex-dashboard .timeline-item.is-done .timeline-node { background: var(--edx-mint); box-shadow: none; }
.enerdex-dashboard .timeline-node > svg:not(.edx-icon) { position: absolute; inset: 0; width: 16px; height: 16px; transform: rotate(-90deg); }
.enerdex-dashboard .node-ring { fill: none; stroke: var(--mint-700); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.enerdex-dashboard .timeline-item.is-current .timeline-node { box-shadow: inset 0 0 0 2px var(--navy-600); }
.enerdex-dashboard .timeline-item.is-failed .timeline-node { background: var(--navy-600); box-shadow: none; }
.enerdex-dashboard .timeline-item.is-warning .timeline-node { background: #fff; color: var(--mint-700); box-shadow: inset 0 0 0 1.5px var(--edx-mint); }
.enerdex-dashboard .timeline-day { margin: 8px 0 4px -26px; font-size: 11px; font-weight: 600; letter-spacing: 0 !important; color: var(--ink-3); list-style: none; }
.enerdex-dashboard .btn-more { margin-top: var(--sp-2); }
/* Intent card (§3.19) */
.enerdex-dashboard .intent-card { margin: var(--sp-4) 0; padding: 16px; border-radius: var(--r-lg); background: var(--surface-inverse); color: var(--ink-inverse); }
.enerdex-dashboard .intent-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--edx-mint); color: var(--mint-300); font-size: 10px; font-weight: 600; letter-spacing: 0 !important; }
.enerdex-dashboard .intent-card dl { display: grid; gap: 10px; margin: 12px 0 0; }
.enerdex-dashboard .intent-card dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0 !important; color: var(--navy-300); }
.enerdex-dashboard .intent-card dd { margin: 2px 0 0; font-size: 13px; color: #fff; overflow-wrap: anywhere; }
.enerdex-dashboard .intent-rail { display: flex; gap: 6px; list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--navy-300); }
.enerdex-dashboard .intent-rail li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.enerdex-dashboard .intent-rail li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--navy-300); }
.enerdex-dashboard .intent-rail li.is-done::before { background: var(--edx-mint); box-shadow: none; }
.enerdex-dashboard .intent-rail li.is-current { color: #fff; } .enerdex-dashboard .intent-rail li.is-current::before { box-shadow: inset 0 0 0 2px #fff; }
.enerdex-dashboard .intent-rail li + li::after { content: none; }

/* ---------- Command palette (shared §4.5) ---------------------------------------- */
.enerdex-dashboard .palette { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: none; margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--surface-0); color: var(--ink-1); box-shadow: var(--shadow-3); overflow: hidden; }
.enerdex-dashboard .palette[open] { animation: edx-palette-in 160ms var(--edx-ease-out); }
@keyframes edx-palette-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.enerdex-dashboard .palette::backdrop { background: rgba(24, 37, 50, .30); backdrop-filter: blur(2px); }
.enerdex-dashboard .palette-input-row { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line-1); color: var(--ink-4); }
.enerdex-dashboard .palette-input-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15px; color: var(--ink-1); outline: none; box-shadow: none !important; }
.enerdex-dashboard .palette-input-row input.mono { font-family: var(--font-mono); font-size: 14px; }
.enerdex-dashboard .palette-shape { padding: 8px 14px 0; }
.enerdex-dashboard .palette-list { max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; }
.enerdex-dashboard .palette-heading { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0 !important; color: var(--ink-3); }
.enerdex-dashboard .palette-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r-md); cursor: pointer; }
.enerdex-dashboard .palette-item.is-active { background: var(--mint-50); box-shadow: inset 2px 0 0 var(--mint-400); }
.enerdex-dashboard .palette-icon { display: grid; place-items: center; color: var(--ink-3); }
.enerdex-dashboard .palette-item.is-active .palette-icon { color: var(--mint-600); }
.enerdex-dashboard .palette-text { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.enerdex-dashboard .palette-title { font-size: 13px; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enerdex-dashboard .palette-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enerdex-dashboard .palette-external { color: var(--ink-4); }
.enerdex-dashboard .palette-enter { visibility: hidden; }
.enerdex-dashboard .palette-item.is-active .palette-enter { visibility: visible; }
.enerdex-dashboard .palette-item .kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 500 11px var(--font-mono); color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-xs); }
.enerdex-dashboard .palette-input-row .kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 500 11px var(--font-mono); color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-xs); }
.enerdex-dashboard .palette-empty { display: grid; gap: 4px; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.enerdex-dashboard .palette-empty strong { color: var(--ink-1); }
.enerdex-dashboard .palette-foot { display: flex; align-items: center; min-height: 32px; padding: 0 14px; border-top: 1px solid var(--line-1); font-size: 11px; color: var(--ink-3); }
@media (max-width: 767px) { .enerdex-dashboard .palette { width: 100vw; margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); } .enerdex-dashboard .palette-list { max-height: 70vh; } }

/* ---------- Network applications chips (same names, icons, order, purposes) ------ */
.enerdex-dashboard #network-apps:empty { display: none; }
.enerdex-dashboard .candidate-app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line-1); }
.enerdex-dashboard .candidate-app-links > span { width: 100%; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0 !important; color: var(--ink-3); }
.enerdex-dashboard .candidate-app-links a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--surface-0); box-shadow: var(--shadow-1); color: var(--ink-1); text-decoration: none; transition: background var(--dur-fast); }
.enerdex-dashboard .candidate-app-links a:hover { background: var(--mint-50); border-color: var(--mint-200); }
.enerdex-dashboard .app-chip-tile { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.enerdex-dashboard .candidate-app-links a:hover .app-chip-tile { background: var(--mint-100); color: var(--mint-700); }
.enerdex-dashboard .app-chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.enerdex-dashboard .app-chip-text strong { font-size: 13px; font-weight: 600; }
.enerdex-dashboard .app-chip-text small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 639px) { .enerdex-dashboard .candidate-app-links { display: grid; grid-template-columns: 1fr; } .enerdex-dashboard .candidate-app-links a { width: 100%; } }

/* ---------- Views: grid, mesh, zones ---------------------------------------------- */
.enerdex-dashboard .energy-chip { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; }
.enerdex-dashboard .energy-chip svg { width: 12px; height: 12px; }
.enerdex-dashboard .energy-chip.solar { background: rgba(62, 190, 145, .12); color: #3ebe91; }
.enerdex-dashboard .energy-chip.wind { background: rgba(158, 176, 194, .18); color: #3c556d; }
.enerdex-dashboard .energy-chip.storage { background: rgba(28, 107, 80, .12); color: #1c6b50; }
.enerdex-dashboard .energy-chip.hydro { background: rgba(60, 85, 109, .12); color: #3c556d; }
.enerdex-dashboard .role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.enerdex-dashboard .role-card { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 6px; padding: 12px 14px !important; margin: 0 !important; }
.enerdex-dashboard .role-card-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.enerdex-dashboard .role-card-head strong { text-transform: capitalize; font-size: 13px; }
.enerdex-dashboard .role-card-head svg { width: 16px; height: 16px; color: var(--ink-3); }
.enerdex-dashboard .role-card-head .badge { margin-left: auto; }
.enerdex-dashboard .role-card small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 1023px) { .enerdex-dashboard .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .enerdex-dashboard .role-grid { grid-template-columns: 1fr; } }
.enerdex-dashboard .workspace-zone-card .section-heading { margin-bottom: var(--sp-3); }
.enerdex-dashboard .workspace-zone-card h2 { margin: 2px 0 0; }
.enerdex-dashboard .workspace-zone-card p.mono { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.enerdex-dashboard .zone-meaning { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.enerdex-dashboard .zone-meaning li { display: flex; gap: 8px; align-items: center; }
.enerdex-dashboard .zone-meaning svg { color: var(--mint-700); }
.enerdex-dashboard .asset-card.is-linked { box-shadow: 0 0 0 2px var(--mint-400), var(--shadow-1); }

/* ---------- Forced colours and print (§7.4) -------------------------------------- */
@media (forced-colors: active) {
  .enerdex-dashboard :is(.badge, .bar-fill, .meter-seg, .heat-cell, .gantt-bar, .live-dot, .tab-count) { outline: 1px solid transparent; forced-color-adjust: auto; }
  .enerdex-dashboard .network-chart-point:focus-visible .network-bar-hit { stroke: Highlight; }
}
@media print {
  .enerdex-dashboard .dashboard-toolbar, .enerdex-dashboard dialog, .enerdex-dashboard .toast, .enerdex-dashboard .truth-info { display: none !important; }
  .enerdex-dashboard details.chart-table > :not(summary) { display: block !important; }
}

/* ---------- Reduced motion: nothing moves (shared §2) ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .enerdex-dashboard *, .enerdex-dashboard *::before, .enerdex-dashboard *::after, .enerdex-dashboard dialog::backdrop { animation: none !important; transition: none !important; }
  .enerdex-dashboard .chart-live-ring, .enerdex-dashboard .spark-live::after { display: none; }
}

/* ---------- Fit fixes (preview pass) -------------------------------------------- */
.enerdex-dashboard .network-table.table-dense { table-layout: auto; }
.enerdex-dashboard .network-transactions .network-table td:last-child, .enerdex-dashboard .network-transactions .network-table th:last-child { width: 1%; white-space: nowrap; }
@media (min-width: 1024px) { .enerdex-dashboard .console-bar .mobile-search { display: none; } }
@media (min-width: 1024px) and (max-width: 1599px) { .enerdex-dashboard .console-bar .global-search { width: 200px; } .enerdex-dashboard .console-bar .sidebar nav a { padding: 0 9px; gap: 6px; } .enerdex-dashboard .workspace-chip-text strong { max-width: 120px; } }
/* Legacy layers paint `.badge span` as a 4–6 px dot; the shared pill's label is a plain text span. */
.enerdex-dashboard .badge.pill > span, .enerdex-dashboard .badge.pill > span:first-child, .enerdex-dashboard .badge.pill > span:first-of-type { display: inline; width: auto; height: auto; margin: 0; background: none; border-radius: 0; position: static; }
@media (min-width: 1024px) and (max-width: 1599px) { .enerdex-dashboard .console-bar .sidebar nav a > svg { display: none; } .enerdex-dashboard .console-bar .global-search { width: 240px; } }
.enerdex-dashboard .hash-chip { white-space: nowrap; }
.enerdex-dashboard .gantt.is-compact { --label: 140px; --value: 150px; }
.enerdex-dashboard .gantt-axis .gantt-tick { bottom: 0; }
