/*
 * MineGrid Grid Operations v73
 *
 * A structural replacement for the earlier editorial workbench. The layout
 * moves to a persistent operations rail, a high-density command surface and
 * a floating engineering register. Calculation and data contracts remain
 * server-side and unchanged.
 */

.cw.mg63.gx73 {
  --gx-canvas: #e9eef1;
  --gx-canvas-deep: #dde5e9;
  --gx-surface: #f7f9fa;
  --gx-panel: #ffffff;
  --gx-panel-soft: #f0f4f6;
  --gx-ink: #121a20;
  --gx-ink-soft: #34434c;
  --gx-muted: #52636d;
  --gx-faint: #5d6d77;
  --gx-line: #ccd6db;
  --gx-line-strong: #94a4ad;
  --gx-accent: #165dff;
  --gx-accent-deep: #0f45c7;
  --gx-accent-soft: #e5edff;
  --gx-green: #07795d;
  --gx-green-soft: #dcf6ed;
  --gx-solar: #ed6a2f;
  --gx-solar-soft: #ffeadf;
  --gx-lime: #b8e84b;
  --gx-blue: #2f74ff;
  --gx-amber: #966200;
  --gx-amber-soft: #fff2d5;
  --gx-red: #c72f46;
  --gx-red-soft: #fde9ed;
  --gx-radius: 10px;
  --gx-radius-small: 7px;
  --gx-shadow: 0 18px 48px rgba(18, 26, 32, 0.12);

  --sd-paper: var(--gx-canvas);
  --sd-paper-deep: var(--gx-canvas-deep);
  --sd-surface: var(--gx-panel);
  --sd-surface-soft: var(--gx-panel-soft);
  --sd-surface-raised: #e5ebee;
  --sd-ink: var(--gx-ink);
  --sd-ink-soft: var(--gx-ink-soft);
  --sd-muted: var(--gx-muted);
  --sd-faint: var(--gx-faint);
  --sd-line: var(--gx-line);
  --sd-line-strong: var(--gx-line-strong);
  --sd-accent: var(--gx-accent);
  --sd-accent-deep: var(--gx-accent-deep);
  --sd-accent-soft: var(--gx-accent-soft);
  --sd-green: var(--gx-green);
  --sd-green-soft: var(--gx-green-soft);
  --sd-solar: var(--gx-solar);
  --sd-solar-soft: var(--gx-solar-soft);
  --sd-blue: var(--gx-blue);
  --sd-amber: var(--gx-amber);
  --sd-red: var(--gx-red);

  --fx-bg: var(--gx-canvas);
  --fx-canvas: var(--gx-canvas);
  --fx-surface: var(--gx-panel);
  --fx-surface-soft: var(--gx-panel-soft);
  --fx-surface-raised: #e5ebee;
  --fx-ink: var(--gx-ink);
  --fx-ink-soft: var(--gx-ink-soft);
  --fx-muted: var(--gx-muted);
  --fx-faint: var(--gx-faint);
  --fx-line: var(--gx-line);
  --fx-line-strong: var(--gx-line-strong);
  --fx-accent: var(--gx-accent);
  --fx-accent-deep: var(--gx-accent-deep);
  --fx-accent-soft: var(--gx-accent-soft);
  --fx-green: var(--gx-green);
  --fx-green-soft: var(--gx-green-soft);
  --fx-solar: var(--gx-solar);
  --fx-solar-soft: var(--gx-solar-soft);
  --fx-amber: var(--gx-amber);
  --fx-red: var(--gx-red);
  --fx-red-soft: var(--gx-red-soft);
  --fx-storage: var(--gx-blue);
  --fx-diesel: #6d7981;
  --fx-rail: var(--gx-ink);
  --fx-rail-soft: #26343d;
  --fx-rail-line: rgba(18, 26, 32, 0.12);
  --fx-radius: var(--gx-radius);
  --fx-radius-small: var(--gx-radius-small);
  --fx-shadow: var(--gx-shadow);
  --fx-topbar: 64px;
  --fx-inspector-width: clamp(344px, 24vw, 382px);
  --sd-nav-height: 0px;
  --sd-chrome-height: var(--fx-topbar);

  --body: "Signal Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: var(--body);
  --number: "Signal Sans", "SFMono-Regular", "Cascadia Mono",
    "Roboto Mono", monospace;

  color: var(--gx-ink);
  background-color: var(--gx-canvas);
  background:
    radial-gradient(
      circle at 12% -8%,
      rgba(22, 93, 255, 0.11),
      transparent 34rem
    ),
    radial-gradient(
      circle at 96% 22%,
      rgba(8, 127, 98, 0.07),
      transparent 30rem
    ),
    linear-gradient(150deg, var(--gx-canvas) 0%, #f3f6f7 54%, #e5ecef 100%);
  background-color: var(--gx-canvas);
  font-family: var(--body);
  font-size: 14px;
}

.cw.mg63.gx73 ::selection {
  color: #fff;
  background: var(--gx-accent);
}

.cw.mg63.gx73
  :where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gx-accent);
  outline-offset: 3px;
}

.cw.mg63.gx73
  :where(
    .topbar,
    .app-sidebar,
    .view-intro,
    .panel-heading,
    .rail-head,
    .control-rail summary,
    .metric-label,
    .mode-switch,
    .button,
    .view-nav,
    .hero-score,
    .hero-copy,
    .sidebar-project
  ) {
  -webkit-user-select: none;
  user-select: none;
}

.cw.mg63.gx73 :where(.metric-value, .metric-note, .data-table, .atlas-node-value,
    .mono, code, .quality-repro, .comparison-table, .sensitivity-cell) {
  -webkit-user-select: text;
  user-select: text;
}

/* Application shell */

.cw.mg63.gx73 .app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 0;
  background: transparent;
}

.cw.mg63.gx73 .nav-backdrop {
  display: none !important;
}

.cw.mg63.gx73 .app-sidebar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  width: 218px;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: var(--gx-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), transparent 34%),
    rgba(242, 246, 248, 0.93);
  border: 0;
  border-right: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: 8px 0 26px rgba(18, 26, 32, 0.035);
  backdrop-filter: blur(18px) saturate(1.04);
}

.cw.mg63.gx73 .sidebar-head {
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(204, 214, 219, 0.82);
}

.cw.mg63.gx73 .brand {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--gx-ink);
}

.cw.mg63.gx73 .brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 48%),
    var(--gx-accent);
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  font-family: var(--number);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cw.mg63.gx73 .brand-mark::after {
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gx-lime);
  border: 0;
  border-radius: 50%;
}

.cw.mg63.gx73 .brand-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 2px;
  line-height: 1;
}

.cw.mg63.gx73 .brand-copy strong {
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cw.mg63.gx73 .brand-copy small {
  display: block;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.cw.mg63.gx73 .nav-close {
  display: none;
}

.cw.mg63.gx73 .sidebar-project {
  display: grid;
  gap: 3px;
  margin: 14px 12px 8px;
  padding: 11px 12px;
  color: var(--gx-ink-soft);
  background:
    linear-gradient(135deg, rgba(22, 93, 255, 0.09), transparent 76%),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(22, 93, 255, 0.17);
  border-radius: 9px;
}

.cw.mg63.gx73 .sidebar-project > span {
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .sidebar-project strong {
  overflow: hidden;
  color: var(--gx-ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .sidebar-project small {
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .sidebar-nav-block {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

.cw.mg63.gx73 .sidebar-label {
  display: block;
  margin: 12px 18px 6px;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .view-nav {
  --indicator-x: 0px;
  --indicator-y: 0px;
  --indicator-width: 0px;
  --indicator-height: 0px;
  position: relative;
  top: auto;
  display: flex;
  width: 100%;
  height: auto;
  max-height: none;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0 10px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 123, 132, 0.36) transparent;
}

.cw.mg63.gx73 .view-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: var(--indicator-width);
  height: var(--indicator-height);
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(22, 93, 255, 0.2), transparent 42%),
    var(--gx-accent-soft);
  border: 0;
  border-radius: 9px;
  box-shadow: inset 3px 0 0 var(--gx-accent);
  transform: translate3d(var(--indicator-x), var(--indicator-y), 0);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    width 220ms cubic-bezier(0.16, 1, 0.3, 1),
    height 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms ease;
}

.cw.mg63.gx73 .view-tab-indicator.is-ready {
  opacity: 1;
}

.cw.mg63.gx73 .view-tab-indicator.is-immediate {
  transition: none;
}

.cw.mg63.gx73 .view-tab,
.cw.mg63.gx73 .view-tab:nth-child(n) {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 10px;
  color: var(--gx-muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: normal;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.cw.mg63.gx73 .view-tab:hover {
  color: var(--gx-ink);
  background: rgba(255, 255, 255, 0.58);
}

.cw.mg63.gx73 .view-tab.is-active,
.cw.mg63.gx73 .view-tab.is-active:nth-child(n) {
  color: var(--gx-accent-deep);
  background: transparent;
}

.cw.mg63.gx73 .view-tab.is-active::after {
  display: none;
}

.cw.mg63.gx73 .view-tab-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(148, 164, 173, 0.4);
  border-radius: 8px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.cw.mg63.gx73 .view-tab.is-active .view-tab-icon {
  color: #fff;
  background: var(--gx-accent);
  border-color: var(--gx-accent);
}

.cw.mg63.gx73 .view-tab-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw.mg63.gx73 .view-tab-label {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .view-tab-meta {
  display: none;
}

.cw.mg63.gx73 .sidebar-foot {
  display: block;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0 12px 12px;
  padding: 12px;
  color: var(--gx-muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--gx-line);
  border-radius: 9px;
}

.cw.mg63.gx73 .sidebar-local-state {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-align: left;
}

.cw.mg63.gx73 .sidebar-local-state > span {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  background: var(--gx-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 127, 98, 0.11);
}

.cw.mg63.gx73 .sidebar-local-state div {
  display: grid;
  gap: 2px;
}

.cw.mg63.gx73 .sidebar-local-state strong {
  color: var(--gx-ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.cw.mg63.gx73 .sidebar-local-state small {
  display: block;
  color: var(--gx-muted);
  font-size: 7px;
}

.cw.mg63.gx73 .sidebar-foot > p {
  display: block;
  margin: 9px 0 0;
  padding-top: 8px;
  color: var(--gx-faint);
  border-top: 1px solid var(--gx-line);
  font-size: 7px;
  line-height: 1.45;
}

/* Main frame and command row */

.cw.mg63.gx73 .app-frame {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .app-frame::before {
  display: none;
}

.cw.mg63.gx73 .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: var(--fx-topbar);
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 9px clamp(16px, 2vw, 26px);
  color: var(--gx-ink);
  background: rgba(247, 249, 250, 0.9);
  border: 0;
  border-bottom: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(18, 26, 32, 0.035);
  backdrop-filter: blur(20px) saturate(1.08);
}

.cw.mg63.gx73 .nav-button {
  display: none !important;
}

.cw.mg63.gx73 .title-stack {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 0;
}

.cw.mg63.gx73 .scenario-title {
  width: min(620px, 44vw);
  min-height: 27px;
  padding: 2px 6px;
  margin: 0 0 0 -6px;
  overflow: hidden;
  color: var(--gx-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--body);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .scenario-title:hover {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .scenario-title:focus {
  color: var(--gx-ink);
  background: var(--gx-panel);
  border-color: var(--gx-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.13);
}

.cw.mg63.gx73 .scenario-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.cw.mg63.gx73 .scenario-meta-separator {
  width: 14px;
  height: 1px;
  background: var(--gx-line-strong);
}

.cw.mg63.gx73 .top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.cw.mg63.gx73 .save-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin: 0 5px;
  padding: 0 8px;
  color: var(--gx-muted);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(204, 214, 219, 0.72);
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.cw.mg63.gx73 .save-state::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gx-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(8, 127, 98, 0.1);
}

.cw.mg63.gx73 .save-state.is-dirty::before {
  background: var(--gx-solar);
  box-shadow: 0 0 0 3px rgba(237, 106, 47, 0.11);
}

.cw.mg63.gx73 .save-state.is-error {
  color: var(--gx-red);
  background: var(--gx-red-soft);
}

.cw.mg63.gx73 .save-state.is-error::before {
  background: var(--gx-red);
}

.cw.mg63.gx73 .mode-switch {
  display: inline-flex;
  min-height: 34px;
  gap: 2px;
  padding: 3px;
  overflow: hidden;
  background: #e7ecef;
  border: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(148, 164, 173, 0.22);
}

.cw.mg63.gx73 .mode-button,
.cw.mg63.gx73 .mode-pro .mode-button,
.cw.mg63.gx73 .mode-simple .mode-button {
  min-height: 28px;
  padding: 4px 11px;
  color: var(--gx-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 9px;
  font-weight: 600;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.cw.mg63.gx73 .mode-button:hover {
  color: var(--gx-ink);
}

.cw.mg63.gx73 .mode-button.is-active,
.cw.mg63.gx73.mode-pro
  .mode-button[data-display-mode="pro"].is-active,
.cw.mg63.gx73.mode-simple
  .mode-button[data-display-mode="simple"].is-active {
  color: var(--gx-ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 26, 32, 0.12);
}

.cw.mg63.gx73 .button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--gx-ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--gx-line);
  border-radius: 8px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cw.mg63.gx73 .button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw.mg63.gx73 .button:hover {
  color: var(--gx-ink);
  background: #fff;
  border-color: var(--gx-line-strong);
  transform: translateY(-1px);
}

.cw.mg63.gx73 .button:active {
  transform: translateY(0);
}

.cw.mg63.gx73 .button-primary {
  color: #fff;
  background: var(--gx-accent);
  border-color: var(--gx-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cw.mg63.gx73 .button-primary:hover {
  color: #fff;
  background: var(--gx-accent-deep);
  border-color: var(--gx-accent-deep);
}

.cw.mg63.gx73 .button-secondary,
.cw.mg63.gx73 .button-quiet {
  color: var(--gx-ink-soft);
  background: rgba(255, 255, 255, 0.56);
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .button-small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 9px;
}

.cw.mg63.gx73 .icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--gx-ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.cw.mg63.gx73 .icon-button:hover {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Work area and engineering register */

.cw.mg63.gx73 .workspace {
  position: relative;
  display: grid;
  min-height: calc(100dvh - var(--fx-topbar));
  grid-template-columns: minmax(0, 1fr) var(--fx-inspector-width);
  align-items: start;
  gap: 0;
}

.cw.mg63.gx73 .main-stage {
  order: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding:
    clamp(18px, 2vw, 28px)
    clamp(18px, 2.2vw, 32px)
    calc(104px + var(--calculation-dock-offset, 0px));
}

.cw.mg63.gx73 .panel-backdrop,
.cw.mg63.gx73 .nav-backdrop {
  background: rgba(18, 26, 32, 0.38);
  border: 0;
  backdrop-filter: blur(4px);
}

.cw.mg63.gx73 .panel-backdrop {
  display: none;
}

.cw.mg63.gx73 .control-rail {
  position: sticky;
  top: var(--fx-topbar);
  order: 2;
  width: var(--fx-inspector-width);
  height: calc(100dvh - var(--fx-topbar));
  max-height: none;
  margin: 0;
  padding: 20px 16px 34px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--gx-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 28%),
    rgba(245, 248, 249, 0.93);
  border: 0;
  border-left: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gx-line-strong) transparent;
}

.cw.mg63.gx73 .control-rail > * {
  flex: 0 0 auto;
}

.cw.mg63.gx73 .rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 2px 16px;
  border-bottom: 1px solid var(--gx-line-strong);
}

.cw.mg63.gx73 .rail-head .eyebrow {
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .rail-head h2 {
  margin: 5px 0 0;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(21px, 1.6vw, 26px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cw.mg63.gx73 .rail-close {
  display: none;
  color: var(--gx-ink-soft);
  background: #fff;
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .mode-mobile {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 5px;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.cw.mg63.gx73 .mode-mobile .mode-switch {
  margin-left: auto;
}

.cw.mg63.gx73 .scenario-editor,
.cw.mg63.gx73 .preset-section,
.cw.mg63.gx73 .control-group,
.cw.mg63.gx73 .simple-mode-guide {
  margin: 0;
  overflow: hidden;
  color: var(--gx-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .scenario-editor > summary,
.cw.mg63.gx73 .control-group > summary {
  display: flex;
  min-height: 53px;
  align-items: center;
  gap: 9px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
}

.cw.mg63.gx73 .scenario-editor > summary::-webkit-details-marker,
.cw.mg63.gx73 .control-group > summary::-webkit-details-marker {
  display: none;
}

.cw.mg63.gx73 .scenario-editor > summary::after,
.cw.mg63.gx73 .control-group > summary::after {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  color: var(--gx-accent-deep);
  content: "+";
  background: var(--gx-accent-soft);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.cw.mg63.gx73 .scenario-editor[open] > summary::after,
.cw.mg63.gx73 .control-group[open] > summary::after {
  content: "−";
}

.cw.mg63.gx73 .scenario-editor-label {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.cw.mg63.gx73 .scenario-editor-label strong,
.cw.mg63.gx73 .control-group > summary {
  color: var(--gx-ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.cw.mg63.gx73 .scenario-editor-label small {
  overflow: hidden;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .control-group > summary em {
  margin-left: auto;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .section-count {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  color: var(--gx-muted);
  background: var(--gx-panel-soft);
  border: 0;
  border-radius: 5px;
  font-family: var(--number);
  font-size: 7px;
  letter-spacing: 0.035em;
}

.cw.mg63.gx73 .scenario-editor-body,
.cw.mg63.gx73 .control-body {
  padding: 0 2px 18px;
  border: 0;
}

.cw.mg63.gx73 .field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gx-muted);
  font-size: 9px;
}

.cw.mg63.gx73 .field input,
.cw.mg63.gx73 .field select,
.cw.mg63.gx73 .field textarea,
.cw.mg63.gx73 .control-value input {
  width: 100%;
  min-width: 0;
  min-height: 33px;
  padding: 6px 8px;
  color: var(--gx-ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 10px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.cw.mg63.gx73 .field input:hover,
.cw.mg63.gx73 .field select:hover,
.cw.mg63.gx73 .control-value input:hover {
  background: #fff;
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .field input:focus,
.cw.mg63.gx73 .field select:focus,
.cw.mg63.gx73 .control-value input:focus {
  background: #fff;
  border-color: var(--gx-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.cw.mg63.gx73 .mode-rail-note,
.cw.mg63.gx73 .control-hint {
  margin: 9px 0 0;
  color: var(--gx-muted);
  font-size: 8px;
  line-height: 1.58;
}

.cw.mg63.gx73 .mode-rail-note.is-warning {
  padding: 10px 11px;
  color: #724800;
  background: var(--gx-amber-soft);
  border: 0;
  border-radius: 7px;
}

.cw.mg63.gx73 .preset-section {
  padding: 16px 2px 17px;
}

.cw.mg63.gx73 .section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--gx-ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.cw.mg63.gx73 .preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cw.mg63.gx73 .preset-button {
  display: grid;
  min-width: 0;
  min-height: 62px;
  gap: 4px;
  padding: 10px;
  color: var(--gx-ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--gx-line);
  border-radius: 8px;
  box-shadow: none;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cw.mg63.gx73 .preset-button:hover,
.cw.mg63.gx73 .preset-button.is-active {
  color: var(--gx-accent-deep);
  background: var(--gx-accent-soft);
  border-color: #9ab7ff;
  transform: translateY(-1px);
}

.cw.mg63.gx73 .preset-button strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .preset-button small {
  overflow: hidden;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .control-group > summary {
  justify-content: flex-start;
}

.cw.mg63.gx73 .control-group > summary > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .control-item {
  padding: 13px 0 11px;
  border-top: 1px solid rgba(204, 214, 219, 0.68);
}

.cw.mg63.gx73 .control-item:first-child {
  padding-top: 3px;
  border-top: 0;
}

.cw.mg63.gx73 .control-head,
.cw.mg63.gx73 .control-label-row,
.cw.mg63.gx73 .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cw.mg63.gx73 .control-label {
  color: var(--gx-ink-soft);
  font-size: 9px;
  font-weight: 500;
}

.cw.mg63.gx73 .control-value {
  min-width: 92px;
}

.cw.mg63.gx73 .control-value input {
  min-height: 29px;
  padding: 4px 6px;
  text-align: right;
  font-family: var(--number);
  font-size: 9px;
  font-weight: 600;
}

.cw.mg63.gx73 .control-value span {
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .range-shell {
  height: 39px;
  margin: 0;
  padding-top: 0;
}

.cw.mg63.gx73 .range-visual {
  top: 15px;
  right: 2px;
  left: 2px;
  height: 6px;
  overflow: visible;
  background: #dbe3e7;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(18, 26, 32, 0.08);
}

.cw.mg63.gx73 .range-fill {
  height: 6px;
  background:
    linear-gradient(90deg, var(--gx-accent), #4f85ff);
  border-radius: 999px;
  box-shadow: none;
}

.cw.mg63.gx73 .range-fill::after {
  display: none;
}

.cw.mg63.gx73 .range-ticks {
  inset: -5px 0;
  opacity: 0.78;
  background-image: linear-gradient(
    90deg,
    var(--gx-line-strong) 0 1px,
    transparent 1px
  );
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: calc(100% / 10) 4px;
  mix-blend-mode: normal;
}

.cw.mg63.gx73 input[type="range"] {
  appearance: none;
  height: 39px;
  accent-color: var(--gx-accent);
}

.cw.mg63.gx73 input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.cw.mg63.gx73 input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  appearance: none;
  background: #fff;
  border: 5px solid var(--gx-accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #fff,
    0 3px 9px rgba(18, 26, 32, 0.18);
  transform: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cw.mg63.gx73 input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.cw.mg63.gx73 input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: #fff;
  border: 5px solid var(--gx-accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #fff,
    0 3px 9px rgba(18, 26, 32, 0.18);
  transform: none;
}

.cw.mg63.gx73 input[type="range"]:hover::-webkit-slider-thumb,
.cw.mg63.gx73 input[type="range"]:focus-visible::-webkit-slider-thumb,
.cw.mg63.gx73
  .range-shell.is-dragging
  input[type="range"]::-webkit-slider-thumb {
  transform: scale(1.14);
  box-shadow:
    0 0 0 3px #fff,
    0 5px 14px rgba(18, 26, 32, 0.24);
}

.cw.mg63.gx73 .range-bubble {
  top: -20px;
  color: #fff;
  background: var(--gx-ink);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(18, 26, 32, 0.18);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
}

.cw.mg63.gx73 .range-bubble::after {
  background: var(--gx-ink);
  border: 0;
}

.cw.mg63.gx73 .range-scale,
.cw.mg63.gx73 .range-ticks {
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .simple-mode-guide {
  margin: 15px 0 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(22, 93, 255, 0.1), transparent 76%),
    var(--gx-panel);
  border: 1px solid #bed0ff;
  border-radius: 9px;
}

.cw.mg63.gx73 .simple-mode-guide-kicker {
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .simple-mode-guide strong {
  display: block;
  margin-top: 6px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cw.mg63.gx73 .simple-mode-guide p {
  margin: 6px 0 11px;
  color: var(--gx-muted);
  font-size: 8px;
  line-height: 1.58;
}

.cw.mg63.gx73 .simple-mode-guide-button {
  min-height: 31px;
  padding: 6px 9px;
  color: #fff;
  background: var(--gx-accent);
  border: 1px solid var(--gx-accent);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 600;
}

.cw.mg63.gx73 .rail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .text-button {
  min-height: 30px;
  padding: 5px 7px;
  color: var(--gx-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 8px;
}

.cw.mg63.gx73 .text-button:hover {
  color: var(--gx-ink);
  background: #fff;
  border-color: var(--gx-line);
}

/* Shared view frame */

.cw.mg63.gx73 .view {
  display: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

.cw.mg63.gx73 .view.is-active {
  display: block;
  transform-origin: 50% 0;
  animation: fx-view-enter 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cw.mg63.gx73 .view.is-active > * {
  animation: fx-section-enter 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cw.mg63.gx73 .view.is-active > *:nth-child(2) {
  animation-delay: 24ms;
}

.cw.mg63.gx73 .view.is-active > *:nth-child(3) {
  animation-delay: 40ms;
}

.cw.mg63.gx73 .view.is-active > *:nth-child(4) {
  animation-delay: 56ms;
}

.cw.mg63.gx73 .view.is-active > *:nth-child(5) {
  animation-delay: 70ms;
}

.cw.mg63.gx73 .view.is-active > *:nth-child(6) {
  animation-delay: 82ms;
}

.cw.mg63.gx73 .view-intro {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 14px;
  padding: 22px 2px 20px;
  overflow: hidden;
  color: var(--gx-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gx-line-strong);
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .view-intro::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 48px;
  height: 3px;
  content: "";
  color: transparent;
  background: var(--gx-accent);
  border-radius: 0;
  font-size: 0;
  letter-spacing: 0;
}

.cw.mg63.gx73 .view-intro::after {
  display: none;
}

.cw.mg63.gx73 .view-intro > div:first-child {
  max-width: 900px;
}

.cw.mg63.gx73 .view-intro .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--gx-accent-deep);
}

.cw.mg63.gx73 .view-intro h1 {
  margin: 0 0 7px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(27px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cw.mg63.gx73 .view-intro p:not(.eyebrow) {
  max-width: 78ch;
  margin: 0;
  color: var(--gx-muted);
  font-size: 10px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cw.mg63.gx73 .eyebrow {
  margin: 0;
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .panel-heading .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.cw.mg63.gx73 .section-kicker,
.cw.mg63.gx73 .signal-label {
  display: block;
  margin: 0 0 6px;
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Overview: an operating readout, not a document cover */

.cw.mg63.gx73 #view-overview .overview-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.46fr) minmax(286px, 0.54fr);
  grid-template-areas:
    "copy score"
    "mix mix"
    "signal signal";
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--gx-ink);
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 26, 32, 0.045);
}

.cw.mg63.gx73 .overview-hero::before,
.cw.mg63.gx73 .overview-hero::after,
.cw.mg63.gx73 .hero-atmosphere,
.cw.mg63.gx73 .hero-aurora,
.cw.mg63.gx73 .hero-contour-map {
  display: none !important;
}

.cw.mg63.gx73 #overviewTrendChart .trend-flow,
.cw.mg63.gx73 #overviewTrendChart .trend-point-halo,
.cw.mg63.gx73 #overviewTrendChart .trend-scan,
.cw.mg63.gx73 #dailyChart .daily-scan,
.cw.mg63.gx73 #dailyChart .daily-load-glow,
.cw.mg63.gx73 .score-aura,
.cw.mg63.gx73 .score-tick-ring {
  display: none !important;
}

.cw.mg63.gx73 .hero-copy {
  grid-area: copy;
  display: flex;
  min-width: 0;
  min-height: 276px;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 2.1vw, 32px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 93, 255, 0.045), transparent 48%),
    transparent;
  border: 0;
  border-right: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .hero-copy::before,
.cw.mg63.gx73 .hero-copy::after {
  display: none;
}

.cw.mg63.gx73 .brief-kicker {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 8px;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .brief-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--gx-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 127, 98, 0.1);
  transform: none;
}

.cw.mg63.gx73 .brief-period {
  margin-left: auto;
  color: var(--gx-faint);
  font-size: 8px;
}

.cw.mg63.gx73 .hero-copy h1 {
  max-width: none;
  margin: 18px 0 12px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cw.mg63.gx73 .hero-lede {
  max-width: 63ch;
  margin: 0;
  color: var(--gx-ink-soft);
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.7;
  text-wrap: pretty;
}

.cw.mg63.gx73 .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.cw.mg63.gx73 .health-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--gx-ink-soft);
  background: var(--gx-panel-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  opacity: 0;
  animation: fx-chip-enter 220ms cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}

.cw.mg63.gx73 .health-tag::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  content: "";
  background: var(--gx-green);
  border-radius: 50%;
  box-shadow: none;
}

.cw.mg63.gx73 .health-tag.is-warning {
  color: #704800;
  background: var(--gx-amber-soft);
  border-color: transparent;
}

.cw.mg63.gx73 .health-tag.is-warning::before {
  background: var(--gx-solar);
}

.cw.mg63.gx73 .health-tag.is-critical {
  color: var(--gx-red);
  background: var(--gx-red-soft);
  border-color: transparent;
}

.cw.mg63.gx73 .health-tag.is-critical::before {
  background: var(--gx-red);
}

.cw.mg63.gx73 .hero-score {
  grid-area: score;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 2.1vw, 32px);
  overflow: hidden;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(184, 232, 75, 0.22),
      transparent 17rem
    ),
    linear-gradient(150deg, var(--gx-accent) 0%, #0c3eba 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .hero-score::before,
.cw.mg63.gx73 .hero-score::after {
  display: none;
}

.cw.mg63.gx73 .hero-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw.mg63.gx73 .hero-score-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .hero-score-period {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .brief-score {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  margin: clamp(28px, 3.4vw, 48px) 0 17px;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
}

.cw.mg63.gx73 .brief-score::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 4px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  mask: none;
  transform: none;
  filter: none;
}

.cw.mg63.gx73 .brief-score::after {
  display: none;
}

.cw.mg63.gx73 .score-value {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--body);
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.cw.mg63.gx73 .score-value.is-refreshing {
  animation: fx-score-refresh 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cw.mg63.gx73 .score-unit {
  position: relative;
  z-index: 2;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.cw.mg63.gx73 .score-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  height: 4px;
  background: var(--gx-lime);
  border-radius: 999px;
  clip-path: inset(0 calc(100% - var(--score-percent)) 0 0);
  transition: clip-path 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cw.mg63.gx73 .score-delta {
  min-height: 23px;
  align-self: flex-start;
  padding: 4px 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 8px;
}

.cw.mg63.gx73 .score-delta.is-positive {
  color: var(--gx-lime);
  background: rgba(184, 232, 75, 0.1);
  border-color: rgba(184, 232, 75, 0.35);
}

.cw.mg63.gx73 .score-delta.is-negative {
  color: #ffd2d9;
  background: rgba(199, 47, 70, 0.13);
  border-color: rgba(255, 210, 217, 0.35);
}

.cw.mg63.gx73 .hero-score > p {
  max-width: 32ch;
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  line-height: 1.6;
}

.cw.mg63.gx73 .hero-mix {
  grid-area: mix;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(110px, 1fr);
  grid-template-areas:
    "head head"
    "bar bar"
    "legend legend";
  gap: 9px 14px;
  padding: 16px clamp(22px, 2.1vw, 32px) 18px;
  overflow: hidden;
  background: var(--gx-panel);
  border: 0;
  border-top: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .mix-head {
  grid-area: head;
  display: flex;
  align-items: center;
  color: var(--gx-ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.cw.mg63.gx73 .mix-head span:last-child {
  margin-left: auto;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 500;
}

.cw.mg63.gx73 .mix-bar {
  grid-area: bar;
  display: flex;
  height: 11px;
  overflow: hidden;
  background: var(--gx-panel-soft);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(18, 26, 32, 0.08);
}

.cw.mg63.gx73 .mix-segment.direct {
  background: var(--gx-green);
}

.cw.mg63.gx73 .mix-segment.storage {
  background: var(--gx-blue);
}

.cw.mg63.gx73 .mix-segment.inventory {
  background: #8d6d35;
}

.cw.mg63.gx73 .mix-segment.diesel {
  background: var(--fx-diesel);
}

.cw.mg63.gx73 .mix-segment.unserved {
  background: var(--gx-red);
}

.cw.mg63.gx73 #mixBar .mix-segment {
  transform-origin: left center;
  animation: mix-grow 680ms var(--mix-delay, 420ms)
    cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cw.mg63.gx73 .mix-legend {
  grid-area: legend;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
  line-height: 1.45;
}

.cw.mg63.gx73 .mix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cw.mg63.gx73 .mix-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cw.mg63.gx73 .hero-signal {
  grid-area: signal;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 0.78fr);
  gap: 22px;
  align-items: stretch;
  margin: 0;
  padding: 22px clamp(20px, 2.1vw, 30px) 17px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 93, 255, 0.022), transparent 46%),
    var(--gx-panel-soft);
  border: 0;
  border-top: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
}

.cw.mg63.gx73 .hero-signal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.cw.mg63.gx73 .signal-heading {
  display: grid;
  gap: 10px;
}

.cw.mg63.gx73 .hero-signal-copy h2 {
  margin: 0;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cw.mg63.gx73 .hero-signal-copy h2::after {
  display: none;
}

.cw.mg63.gx73 .hero-signal-note {
  max-width: 34ch;
  margin: 0;
  color: var(--gx-muted);
  font-size: 8px;
  line-height: 1.6;
}

.cw.mg63.gx73 .hero-signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .hero-signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cw.mg63.gx73 .hero-signal-legend i {
  width: 14px;
  height: 3px;
  border-radius: 999px;
}

.cw.mg63.gx73 .hero-signal-chart {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.cw.mg63.gx73 .hero-energy-map {
  width: 100%;
  height: clamp(160px, 13vw, 208px);
  overflow: visible;
}

.cw.mg63.gx73 .hero-chart-grid line {
  stroke: rgba(109, 123, 132, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.cw.mg63.gx73 .hero-route {
  stroke-width: 2.4;
  filter: none;
  vector-effect: non-scaling-stroke;
}

.cw.mg63.gx73 #heroLoadPath {
  stroke-width: 1.4;
  opacity: 0.8;
}

.cw.mg63.gx73 #heroPvPath {
  stroke-width: 2.7;
}

.cw.mg63.gx73 #heroRenewablePath {
  stroke-width: 2.2;
}

.cw.mg63.gx73 .hero-data-path {
  opacity: 0;
}

.cw.mg63.gx73 .hero-data-path.is-drawing {
  animation: fx-hero-draw 1080ms cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}

.cw.mg63.gx73 #heroPvPath.is-drawing {
  animation-delay: 90ms;
}

.cw.mg63.gx73 #heroRenewablePath.is-drawing {
  animation-delay: 170ms;
}

.cw.mg63.gx73 .hero-route-pulse {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0.046 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.cw.mg63.gx73 .hero-route-pulse-warm {
  stroke: var(--gx-solar);
  stroke-width: 4;
  filter: drop-shadow(0 0 6px rgba(237, 106, 47, 0.46));
}

.cw.mg63.gx73 .hero-route-pulse-cool {
  stroke: var(--gx-green);
  stroke-width: 3.8;
  filter: drop-shadow(0 0 6px rgba(8, 127, 98, 0.42));
}

.cw.mg63.gx73 .hero-route-pulse-load {
  stroke: var(--fx-diesel);
  stroke-width: 2.5;
}

.cw.mg63.gx73 .hero-route-pulse.is-flowing {
  animation: fx-hero-pulse 2.55s cubic-bezier(0.4, 0, 0.2, 1) 3 both;
}

.cw.mg63.gx73 #heroPvPulse.is-flowing {
  animation-delay: 700ms;
}

.cw.mg63.gx73 #heroRenewablePulse.is-flowing {
  animation-delay: 1300ms;
}

.cw.mg63.gx73 .hero-node {
  fill: #fff;
  stroke: var(--gx-green);
  stroke-width: 1.4;
  filter: none;
  opacity: 0;
  animation: fx-node-in 280ms var(--hero-node-delay, 0ms)
    cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cw.mg63.gx73 .hero-node-ripple {
  fill: none;
  stroke: var(--gx-accent);
  stroke-width: 1;
  opacity: 0;
  animation: fx-node-ripple 1.1s var(--hero-node-delay, 0ms)
    cubic-bezier(0.2, 0.8, 0.2, 1) 2;
  transform-box: fill-box;
  transform-origin: center;
}

.cw.mg63.gx73 .hero-signal-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
}

/* Energy flow */

.cw.mg63.gx73 .energy-atlas {
  margin: 14px 0 0;
  padding: 22px 24px 18px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 58% 2%,
      rgba(22, 93, 255, 0.07),
      transparent 26rem
    ),
    var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 26, 32, 0.04);
}

.cw.mg63.gx73 .energy-atlas-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 12px;
}

.cw.mg63.gx73 .energy-atlas-head h2 {
  margin: 0 0 4px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cw.mg63.gx73 .energy-atlas-head p:not(.eyebrow) {
  max-width: 76ch;
  margin: 0;
  color: var(--gx-muted);
  font-size: 9px;
  line-height: 1.6;
}

.cw.mg63.gx73 .atlas-balance {
  display: grid;
  min-width: 198px;
  gap: 2px;
  padding: 10px 11px;
  color: var(--gx-ink-soft);
  text-align: right;
  background: var(--gx-panel-soft);
  border: 0;
  border-radius: 8px;
}

.cw.mg63.gx73 .atlas-balance span {
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.cw.mg63.gx73 .atlas-balance strong {
  color: var(--gx-green);
  font-size: 9px;
}

.cw.mg63.gx73 .atlas-balance small {
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .atlas-balance.is-warning strong {
  color: var(--gx-red);
}

.cw.mg63.gx73 .atlas-rules line {
  stroke: rgba(109, 123, 132, 0.17);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.cw.mg63.gx73 .atlas-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
  animation: gx-flow-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cw.mg63.gx73 .atlas-flow.is-direct {
  stroke: var(--gx-green);
}

.cw.mg63.gx73 .atlas-flow.is-storage {
  stroke: var(--gx-blue);
}

.cw.mg63.gx73 .atlas-flow.is-curtailment {
  stroke: var(--gx-solar);
}

.cw.mg63.gx73 .atlas-flow.is-diesel {
  stroke: var(--fx-diesel);
}

.cw.mg63.gx73 .atlas-flow-start.is-direct {
  fill: var(--gx-green);
}

.cw.mg63.gx73 .atlas-flow-start.is-storage {
  fill: var(--gx-blue);
}

.cw.mg63.gx73 .atlas-flow-start.is-curtailment {
  fill: var(--gx-solar);
}

.cw.mg63.gx73 .atlas-flow-start.is-diesel {
  fill: var(--fx-diesel);
}

.cw.mg63.gx73 .atlas-link-label {
  fill: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
  font-weight: 500;
}

.cw.mg63.gx73 .atlas-node rect {
  rx: 8px;
  fill: var(--gx-panel);
  stroke: var(--gx-line);
  stroke-width: 1;
  filter: none;
}

.cw.mg63.gx73 .atlas-node-kicker {
  fill: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.cw.mg63.gx73 .atlas-node-title {
  fill: var(--gx-muted);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 500;
}

.cw.mg63.gx73 .atlas-node-value {
  fill: var(--gx-ink);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.cw.mg63.gx73 .atlas-node-value tspan {
  fill: var(--gx-faint);
  font-size: 7px;
  font-weight: 500;
}

.cw.mg63.gx73 .atlas-node-detail {
  fill: var(--gx-faint);
  font-family: var(--number);
  font-size: 6px;
}

.cw.mg63.gx73 .atlas-node > path {
  fill: none;
  stroke: var(--gx-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.cw.mg63.gx73 .atlas-unserved-badge rect {
  fill: var(--gx-red-soft);
  stroke: transparent;
}

.cw.mg63.gx73 .atlas-unserved-badge circle {
  fill: var(--gx-red);
}

.cw.mg63.gx73 .atlas-unserved-badge text {
  fill: var(--gx-red);
  font-family: var(--body);
  font-size: 8px;
  font-weight: 600;
}

.cw.mg63.gx73 .atlas-mobile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .atlas-mobile-row span {
  color: var(--gx-ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.cw.mg63.gx73 .atlas-mobile-row small {
  color: var(--gx-muted);
  font-size: 7px;
}

.cw.mg63.gx73 .atlas-mobile-row strong {
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cw.mg63.gx73 .atlas-mobile-row > i {
  grid-column: 1 / -1;
  display: block;
  width: var(--atlas-mobile-width, 0%);
  height: 4px;
  background: var(--gx-green);
  border-radius: 999px;
}

.cw.mg63.gx73 .atlas-mobile-row.is-solar > i,
.cw.mg63.gx73 .atlas-mobile-row.is-curtailment > i {
  background: var(--gx-solar);
}

.cw.mg63.gx73 .atlas-mobile-row.is-storage > i {
  background: var(--gx-blue);
}

.cw.mg63.gx73 .atlas-mobile-row.is-diesel > i {
  background: var(--fx-diesel);
}

.cw.mg63.gx73 .atlas-mobile-load {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: end;
  margin-top: 11px;
  padding: 13px;
  background: var(--gx-green-soft);
  border: 0;
  border-radius: 8px;
}

.cw.mg63.gx73 .atlas-mobile-load span {
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .atlas-mobile-load strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 600;
}

.cw.mg63.gx73 .atlas-mobile-load small {
  color: var(--gx-muted);
  font-size: 7px;
}

/* Insights and metrics */

.cw.mg63.gx73 .insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  overflow: visible;
  border: 0;
}

.cw.mg63.gx73 .insight-card {
  min-width: 0;
  padding: 15px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--gx-line);
  border-radius: 9px;
  box-shadow: none;
}

.cw.mg63.gx73 .insight-card.is-warning {
  background: rgba(255, 242, 213, 0.66);
  border-color: rgba(150, 98, 0, 0.24);
}

.cw.mg63.gx73 .insight-card.is-critical {
  background: rgba(253, 233, 237, 0.72);
  border-color: rgba(199, 47, 70, 0.24);
}

.cw.mg63.gx73 .insight-card + .insight-card {
  border-left: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .insight-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cw.mg63.gx73 .insight-card > span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  transform: none;
}

.cw.mg63.gx73 .insight-card.is-warning > span {
  color: var(--gx-amber);
}

.cw.mg63.gx73 .insight-card.is-critical > span {
  color: var(--gx-red);
}

.cw.mg63.gx73 .insight-card p {
  margin: 8px 0 0;
  color: var(--gx-ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.cw.mg63.gx73 .metric-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 10px;
  padding: 0 2px;
}

.cw.mg63.gx73 .metric-section-head h2 {
  margin: 0 0 3px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.cw.mg63.gx73 .metric-section-head p {
  margin: 0;
  color: var(--gx-muted);
  font-size: 9px;
}

.cw.mg63.gx73 .metric-scope-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw.mg63.gx73 .metric-scope-actions > span {
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .metric-scope-toggle {
  min-height: 31px;
  padding: 6px 9px;
  color: var(--gx-accent-deep);
  background: var(--gx-accent-soft);
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 600;
}

.cw.mg63.gx73 .metric-scope-toggle:hover {
  color: #fff;
  background: var(--gx-accent);
  border-color: transparent;
  transform: none;
}

.cw.mg63.gx73 .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(18, 26, 32, 0.035);
}

.cw.mg63.gx73 .metric-card,
.cw.mg63.gx73 .metric-card:nth-child(n) {
  position: relative;
  grid-column: auto;
  grid-row: auto;
  min-height: 136px;
  padding: 17px 18px 16px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--gx-line);
  border-bottom: 1px solid var(--gx-line);
  border-radius: 0;
  box-shadow: none;
  transition: background-color 160ms ease;
}

.cw.mg63.gx73 .metric-card:nth-child(4n) {
  border-right: 0;
}

.cw.mg63.gx73 .metric-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.cw.mg63.gx73 .metric-card::after {
  display: none;
}

.cw.mg63.gx73 .metric-card:hover {
  z-index: 1;
  background: rgba(22, 93, 255, 0.025);
  transform: none;
}

.cw.mg63.gx73 .metric-card:first-child {
  color: var(--gx-ink);
  background:
    linear-gradient(145deg, rgba(22, 93, 255, 0.09), transparent 74%),
    var(--gx-accent-soft);
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gx-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.cw.mg63.gx73 .metric-label i {
  width: 6px;
  height: 6px;
  background: var(--metric-color, var(--gx-accent));
  border-radius: 50%;
  transform: none;
}

.cw.mg63.gx73 .metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 17px 0 8px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(27px, 2.65vw, 40px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.cw.mg63.gx73 .metric-value small {
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 500;
}

.cw.mg63.gx73 .metric-note {
  color: var(--gx-muted);
  font-size: 8px;
  line-height: 1.5;
}

.cw.mg63.gx73 .metric-delta {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 3px 6px;
  color: var(--gx-muted);
  background: var(--gx-panel-soft);
  border: 0;
  border-radius: 999px;
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .metric-delta.is-positive {
  color: var(--gx-green);
  background: var(--gx-green-soft);
}

.cw.mg63.gx73 .metric-delta.is-negative {
  color: var(--gx-red);
  background: var(--gx-red-soft);
}

/* Evidence panels */

.cw.mg63.gx73 .dashboard-grid,
.cw.mg63.gx73 .dashboard-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cw.mg63.gx73 .dashboard-grid-wide {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.cw.mg63.gx73 .panel,
.cw.mg63.gx73 .method-card,
.cw.mg63.gx73 .quality-summary-card {
  padding: 20px;
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(18, 26, 32, 0.035);
}

.cw.mg63.gx73 .panel::before,
.cw.mg63.gx73 .panel::after,
.cw.mg63.gx73 .method-card::before,
.cw.mg63.gx73 .method-card::after,
.cw.mg63.gx73 .quality-summary-card::before,
.cw.mg63.gx73 .quality-summary-card::after {
  display: none;
}

.cw.mg63.gx73 .panel:hover {
  border-color: var(--gx-line);
}

.cw.mg63.gx73 .panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 15px;
}

.cw.mg63.gx73 .panel-heading > div:first-child {
  min-width: 0;
  flex: 1;
}

.cw.mg63.gx73 .panel-heading h2 {
  margin: 0;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cw.mg63.gx73 .unit-chip,
.cw.mg63.gx73 .status-pill,
.cw.mg63.gx73 .section-count {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 3px 7px;
  color: var(--gx-muted);
  background: var(--gx-panel-soft);
  border: 0;
  border-radius: 5px;
  font-family: var(--number);
  font-size: 7px;
  letter-spacing: 0.025em;
}

.cw.mg63.gx73 .status-pill {
  color: var(--gx-green);
  background: var(--gx-green-soft);
}

.cw.mg63.gx73 .status-warning,
.cw.mg63.gx73 .status-pill.status-warning {
  color: #704800;
  background: var(--gx-amber-soft);
}

.cw.mg63.gx73 .chart-frame {
  min-height: 250px;
}

.cw.mg63.gx73 .chart-panel-tall .chart-frame {
  min-height: 340px;
}

/* Charts */

.cw.mg63.gx73 .chart-grid-line,
.cw.mg63.gx73 .grid-line {
  stroke: rgba(109, 123, 132, 0.17);
  stroke-width: 1;
}

.cw.mg63.gx73 .chart-axis-line,
.cw.mg63.gx73 .axis-line {
  stroke: rgba(109, 123, 132, 0.38);
  stroke-width: 1;
}

.cw.mg63.gx73 .axis-label {
  fill: var(--gx-muted);
  font-family: var(--number);
  font-size: 9px;
  font-weight: 500;
}

.cw.mg63.gx73 .bar-potential-outline {
  fill: var(--gx-solar-soft);
  stroke: rgba(237, 106, 47, 0.28);
}

.cw.mg63.gx73 .bar-segment {
  shape-rendering: geometricPrecision;
}

.cw.mg63.gx73 .chart-data-point:hover .bar-segment,
.cw.mg63.gx73 .chart-data-point:focus-visible .bar-segment {
  filter: brightness(1.06) saturate(1.08);
}

.cw.mg63.gx73 .trend-line-renewable {
  stroke: var(--gx-green);
}

.cw.mg63.gx73 .trend-line-curtailment {
  stroke: var(--gx-red);
}

.cw.mg63.gx73 .chart-tooltip {
  color: #fff;
  background: rgba(18, 26, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 26, 32, 0.22);
  font-family: var(--number);
  font-size: 9px;
}

/* Tables */

.cw.mg63.gx73 .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--gx-line);
  border-radius: 8px;
}

.cw.mg63.gx73 .data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--gx-panel);
  color: var(--gx-ink-soft);
  font-family: var(--number);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.cw.mg63.gx73 .data-table th,
.cw.mg63.gx73 .data-table td {
  padding: 10px 9px;
  text-align: right;
  border-bottom: 1px solid var(--gx-line);
  white-space: nowrap;
}

.cw.mg63.gx73 .data-table th:first-child,
.cw.mg63.gx73 .data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--gx-panel);
}

.cw.mg63.gx73 .data-table thead th {
  color: var(--gx-ink-soft);
  background: var(--gx-panel-soft);
  font-family: var(--body);
  font-weight: 600;
}

.cw.mg63.gx73 .data-table thead th:first-child {
  color: var(--gx-ink-soft);
  background: var(--gx-panel-soft);
}

.cw.mg63.gx73 .data-table tbody tr:hover td,
.cw.mg63.gx73 .data-table tbody tr:hover th {
  background: var(--gx-accent-soft);
}

.cw.mg63.gx73 .data-table .total-row th,
.cw.mg63.gx73 .data-table .total-row td {
  color: var(--gx-ink);
  background: var(--gx-panel-soft);
  font-weight: 600;
}

.cw.mg63.gx73 .economics-stack {
  display: grid;
  gap: 0;
}

.cw.mg63.gx73 .economics-hero {
  display: grid;
  gap: 5px;
  padding: 2px 0 15px;
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .economics-hero span {
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .economics-hero strong {
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: clamp(31px, 2.7vw, 43px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.cw.mg63.gx73 .economics-hero strong small {
  margin-left: 4px;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 7px;
  font-weight: 500;
}

.cw.mg63.gx73 .economics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--gx-muted);
  border-bottom: 1px solid var(--gx-line);
  font-size: 8px;
}

.cw.mg63.gx73 .economics-row strong {
  color: var(--gx-ink-soft);
  font-family: var(--number);
  font-size: 9px;
  font-weight: 500;
}

.cw.mg63.gx73 .economics-note {
  padding: 10px 0;
  color: #704800;
  font-size: 8px;
}

/* Analysis controls and supporting views */

.cw.mg63.gx73 .balance-checks,
.cw.mg63.gx73 .hourly-status,
.cw.mg63.gx73 .quality-verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.cw.mg63.gx73 .check-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  color: var(--gx-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gx-line);
  border-radius: 999px;
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .hourly-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  padding: 13px;
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 10px;
}

.cw.mg63.gx73 .hourly-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .hourly-toolbar select,
.cw.mg63.gx73 .hourly-toolbar input {
  min-height: 33px;
  padding: 6px 8px;
  color: var(--gx-ink);
  background: var(--gx-panel-soft);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 8px;
}

.cw.mg63.gx73 .hourly-toolbar select:focus,
.cw.mg63.gx73 .hourly-toolbar input:focus {
  background: #fff;
  border-color: var(--gx-accent);
  outline: 0;
}

.cw.mg63.gx73 .toolbar-spacer {
  flex: 1;
}

.cw.mg63.gx73 .row-count {
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cw.mg63.gx73 .swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cw.mg63.gx73 .swatch-load {
  background: var(--gx-ink-soft);
}

.cw.mg63.gx73 .swatch-pv {
  background: var(--gx-solar);
}

.cw.mg63.gx73 .swatch-storage {
  background: var(--gx-blue);
}

.cw.mg63.gx73 .swatch-diesel {
  background: var(--fx-diesel);
}

.cw.mg63.gx73 .swatch-soc {
  background: var(--gx-green);
}

.cw.mg63.gx73 .hourly-table-shell {
  overflow: hidden;
  border: 1px solid var(--gx-line);
  border-radius: 8px;
}

.cw.mg63.gx73 .hourly-head,
.cw.mg63.gx73 .hourly-row {
  display: grid;
  grid-template-columns: 1.25fr repeat(8, minmax(78px, 1fr));
  min-width: 880px;
}

.cw.mg63.gx73 .hourly-head {
  color: var(--gx-ink-soft);
  background: var(--gx-panel-soft);
  font-size: 8px;
  font-weight: 600;
}

.cw.mg63.gx73 .hourly-head > *,
.cw.mg63.gx73 .hourly-row > * {
  min-width: 0;
  padding: 9px 8px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .hourly-head > *:first-child,
.cw.mg63.gx73 .hourly-row > *:first-child {
  text-align: left;
}

.cw.mg63.gx73 .hourly-body {
  position: relative;
  overflow: auto;
  max-height: 530px;
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .hourly-row:hover {
  background: var(--gx-accent-soft);
}

.cw.mg63.gx73 .sensitivity-status {
  margin: -4px 0 12px;
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.cw.mg63.gx73 .sensitivity-wrap {
  position: relative;
  min-height: 326px;
  overflow: auto;
  border: 1px solid var(--gx-line);
  border-radius: 9px;
}

.cw.mg63.gx73 .sensitivity-grid {
  display: grid;
  gap: 3px;
  min-width: 740px;
  padding: 9px;
  background: var(--gx-panel-soft);
}

.cw.mg63.gx73 .sensitivity-cell {
  min-height: 57px;
  padding: 5px;
  color: var(--gx-ink);
  border: 1px solid rgba(18, 26, 32, 0.05);
  border-radius: 5px;
}

.cw.mg63.gx73 .sensitivity-cell:hover,
.cw.mg63.gx73 .sensitivity-cell.is-active {
  outline: 2px solid var(--gx-accent);
  outline-offset: -2px;
}

.cw.mg63.gx73 .sensitivity-placeholder {
  display: grid;
  min-height: 326px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 25px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(22, 93, 255, 0.1),
      transparent 18rem
    ),
    var(--gx-panel);
}

.cw.mg63.gx73 .quality-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 11px;
}

.cw.mg63.gx73 .quality-summary-card {
  min-height: 104px;
  padding: 16px;
}

.cw.mg63.gx73 .quality-verdict {
  display: grid;
  min-width: 260px;
  max-width: 360px;
  justify-items: end;
  gap: 4px;
  padding: 11px 13px;
  text-align: right;
  background: var(--gx-panel-soft);
  border: 0;
  border-radius: 9px;
}

.cw.mg63.gx73 .quality-status {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--gx-green);
  background: var(--gx-green-soft);
  border-radius: 999px;
  font-family: var(--number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cw.mg63.gx73 .quality-verdict.is-warning .quality-status {
  color: #704800;
  background: var(--gx-amber-soft);
}

.cw.mg63.gx73 .quality-verdict.is-fail .quality-status {
  color: var(--gx-red);
  background: var(--gx-red-soft);
}

.cw.mg63.gx73 .quality-verdict strong {
  color: var(--gx-ink-soft);
  font-size: 9px;
}

.cw.mg63.gx73 .quality-verdict small {
  color: var(--gx-muted);
  font-family: var(--number);
  font-size: 7px;
}

.cw.mg63.gx73 .quality-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 12px;
  margin-top: 12px;
}

.cw.mg63.gx73 .quality-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cw.mg63.gx73 .quality-check-list {
  display: grid;
  max-height: 640px;
  overflow-y: auto;
  border-top: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .quality-check-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 2px;
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .quality-repro,
.cw.mg63.gx73 .quality-normalization,
.cw.mg63.gx73 .provenance-audit {
  display: grid;
  gap: 8px;
  color: var(--gx-ink-soft);
  font-size: 8px;
}

.cw.mg63.gx73 .quality-warning-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw.mg63.gx73 .quality-warning-list li {
  padding: 10px 0;
  color: var(--gx-ink-soft);
  border-bottom: 1px solid var(--gx-line);
  font-size: 9px;
  line-height: 1.55;
}

.cw.mg63.gx73 .quality-normalization-panel,
.cw.mg63.gx73 .quality-warning-panel,
.cw.mg63.gx73 .limitation-panel,
.cw.mg63.gx73 .calendar-panel {
  margin-top: 12px;
}

.cw.mg63.gx73 .calendar-grid {
  display: grid;
  grid-template-columns: repeat(31, minmax(10px, 1fr));
  gap: 3px;
  min-width: 720px;
}

.cw.mg63.gx73 .calendar-grid > * {
  aspect-ratio: 1;
  border-radius: 3px;
}

.cw.mg63.gx73 .method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cw.mg63.gx73 .method-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
}

.cw.mg63.gx73 .method-index {
  color: var(--gx-accent);
  font-family: var(--number);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cw.mg63.gx73 .method-index::before {
  content: "STEP ";
}

.cw.mg63.gx73 .method-card h2 {
  margin: 19px 0 8px;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cw.mg63.gx73 .method-card p {
  margin: 0;
  color: var(--gx-muted);
  font-size: 9px;
  line-height: 1.65;
}

.cw.mg63.gx73 .method-card code {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px;
  color: var(--gx-accent-deep);
  background: var(--gx-accent-soft);
  border-radius: 7px;
  font-family: var(--number);
  font-size: 8px;
  white-space: normal;
}

.cw.mg63.gx73 .provenance-list,
.cw.mg63.gx73 .api-list {
  display: grid;
  gap: 0;
}

.cw.mg63.gx73 .provenance-list > div,
.cw.mg63.gx73 .api-list > div {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .provenance-list span,
.cw.mg63.gx73 .api-list code {
  color: var(--gx-accent-deep);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .provenance-list strong,
.cw.mg63.gx73 .api-list span {
  color: var(--gx-ink-soft);
  font-size: 9px;
}

.cw.mg63.gx73 .provenance-list em {
  color: var(--gx-muted);
  font-size: 8px;
  font-style: normal;
}

.cw.mg63.gx73 .limitation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.cw.mg63.gx73 .limitation-grid p {
  margin: 0;
  padding: 11px 0;
  color: var(--gx-ink-soft);
  border-bottom: 1px solid var(--gx-line);
  font-size: 9px;
}

.cw.mg63.gx73 .version-badge {
  padding: 9px 11px;
  color: var(--gx-accent-deep);
  background: var(--gx-accent-soft);
  border: 0;
  border-radius: 7px;
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .software-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 0;
  color: var(--gx-faint);
  border-top: 1px solid var(--gx-line);
  font-size: 8px;
}

.cw.mg63.gx73 .software-identity strong {
  color: var(--gx-ink-soft);
}

.cw.mg63.gx73 .software-identity em {
  font-style: normal;
}

/* Startup, progress and dialogs */

.cw.mg63.gx73 .startup-console {
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(22, 93, 255, 0.13),
      transparent 28rem
    ),
    radial-gradient(
      circle at 84% 78%,
      rgba(8, 127, 98, 0.09),
      transparent 25rem
    ),
    var(--gx-canvas);
}

.cw.mg63.gx73 .startup-card {
  display: grid;
  width: min(840px, 100%);
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 14px;
  box-shadow: 0 24px 66px rgba(18, 26, 32, 0.15);
}

.cw.mg63.gx73 .startup-identity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(184, 232, 75, 0.24),
      transparent 18rem
    ),
    linear-gradient(150deg, var(--gx-accent), #0b3aaf);
}

.cw.mg63.gx73 .startup-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-family: var(--number);
  font-size: 11px;
  font-weight: 600;
}

.cw.mg63.gx73 .startup-identity .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.cw.mg63.gx73 .startup-identity > div:last-child span {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--number);
  font-size: 8px;
}

.cw.mg63.gx73 .startup-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 29px;
}

.cw.mg63.gx73 .startup-loader {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  color: var(--gx-accent);
  border: 1px solid var(--gx-line);
  border-radius: 50%;
}

.cw.mg63.gx73 .startup-loader::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 3px solid transparent;
  border-top-color: var(--gx-accent);
  border-right-color: rgba(22, 93, 255, 0.18);
  border-radius: 50%;
  animation: fx-startup-spin 1.2s linear infinite;
}

.cw.mg63.gx73 .startup-loader span {
  font-family: var(--number);
  font-size: 15px;
  font-weight: 600;
}

.cw.mg63.gx73 .startup-copy h1 {
  margin: 6px 0;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cw.mg63.gx73 .startup-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--gx-muted);
  font-size: 9px;
}

.cw.mg63.gx73 .startup-steps {
  display: grid;
  gap: 7px;
  margin: 18px 0 14px;
  padding: 0;
  list-style: none;
}

.cw.mg63.gx73 .startup-steps li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .startup-steps i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gx-line-strong);
  border-radius: 50%;
  transform: none;
}

.cw.mg63.gx73 .startup-steps li.is-active i {
  background: var(--gx-accent);
  border-color: var(--gx-accent);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.1);
}

.cw.mg63.gx73 .startup-steps li.is-done i {
  background: var(--gx-green);
  border-color: var(--gx-green);
}

.cw.mg63.gx73 .startup-steps li.is-error i {
  background: var(--gx-red);
  border-color: var(--gx-red);
}

.cw.mg63.gx73 .startup-steps em {
  color: var(--gx-faint);
  font-family: var(--number);
  font-size: 7px;
  font-style: normal;
}

.cw.mg63.gx73 .startup-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 12px;
  color: var(--gx-faint);
  border-top: 1px solid var(--gx-line);
  font-size: 8px;
}

.cw.mg63.gx73 .startup-foot strong {
  color: var(--gx-ink-soft);
  font-family: var(--number);
}

.cw.mg63.gx73 .calculation-dock {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: min(500px, calc(100vw - 24px));
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  color: #fff;
  background: rgba(18, 26, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: var(--gx-shadow);
  backdrop-filter: blur(14px);
}

.cw.mg63.gx73 .toast-stack {
  right: 14px;
  bottom: calc(14px + var(--calculation-dock-offset, 0px));
  gap: 7px;
  width: min(390px, calc(100vw - 28px));
}

.cw.mg63.gx73 .toast {
  padding: 11px 12px;
  color: #fff;
  background: rgba(18, 26, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: var(--gx-shadow);
  font-size: 9px;
  backdrop-filter: blur(12px);
}

.cw.mg63.gx73 .action-dialog {
  width: min(680px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  color: var(--gx-ink);
  background: var(--gx-panel);
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(18, 26, 32, 0.26);
}

.cw.mg63.gx73 .action-dialog::backdrop {
  background: rgba(18, 26, 32, 0.48);
  backdrop-filter: blur(5px);
}

.cw.mg63.gx73 .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--gx-panel-soft);
  border-bottom: 1px solid var(--gx-line);
}

.cw.mg63.gx73 .dialog-head h2 {
  margin: 4px 0 0;
  color: var(--gx-ink);
  font-family: var(--body);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cw.mg63.gx73 .dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
}

.cw.mg63.gx73 .action-card {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  color: var(--gx-ink-soft);
  text-align: left;
  background: var(--gx-panel-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cw.mg63.gx73 .action-card:hover {
  background: var(--gx-accent-soft);
  border-color: #b6caff;
  transform: translateY(-1px);
}

.cw.mg63.gx73 .action-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gx-accent-deep);
  background: #fff;
  border: 1px solid var(--gx-line);
  border-radius: 8px;
  font-family: var(--number);
  font-size: 8px;
  font-weight: 600;
}

.cw.mg63.gx73 .action-card strong {
  font-size: 9px;
}

.cw.mg63.gx73 .action-card small {
  color: var(--gx-muted);
  font-size: 8px;
}

.cw.mg63.gx73 .dialog-note {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--gx-faint);
  font-size: 8px;
}

.cw.mg63.gx73 .import-filebar,
.cw.mg63.gx73 .import-preview-body,
.cw.mg63.gx73 .import-actions,
.cw.mg63.gx73 .confirm-message,
.cw.mg63.gx73 .confirm-actions {
  margin: 0;
  padding: 14px 20px;
  background: transparent;
}

.cw.mg63.gx73 .import-filebar {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--gx-line);
  font-size: 9px;
}

.cw.mg63.gx73 .import-filebar span,
.cw.mg63.gx73 .import-filebar em {
  color: var(--gx-muted);
  font-size: 8px;
  font-style: normal;
}

.cw.mg63.gx73 .import-filebar strong {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw.mg63.gx73 .import-actions,
.cw.mg63.gx73 .confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid var(--gx-line);
}

/* Responsive layout */

@media (max-width: 1279px) {
  .cw.mg63.gx73 {
    --fx-inspector-width: min(386px, calc(100vw - 20px));
  }

  .cw.mg63.gx73 .app-shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }

  .cw.mg63.gx73 .app-sidebar {
    width: 198px;
  }

  .cw.mg63.gx73 .workspace {
    display: block;
  }

  .cw.mg63.gx73 .main-stage {
    padding-right: clamp(16px, 2.2vw, 28px);
    padding-left: clamp(16px, 2.2vw, 28px);
  }

  .cw.mg63.gx73 .control-trigger {
    display: inline-flex;
  }

  .cw.mg63.gx73 .control-rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    width: min(var(--fx-inspector-width), calc(100vw - 16px));
    height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      16px
      max(20px, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 30%),
      var(--gx-surface);
    border-left: 1px solid var(--gx-line);
    border-radius: 12px 0 0 12px;
    box-shadow: -24px 0 60px rgba(18, 26, 32, 0.2);
    transform: translate3d(calc(100% + 22px), 0, 0);
    transition:
      transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 280ms;
    visibility: hidden;
  }

  .cw.mg63.gx73 .rail-close {
    display: inline-grid;
  }

  .cw.mg63.gx73.controls-open .control-rail {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition:
      transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }

  .cw.mg63.gx73.controls-open .panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
  }
}

@media (min-width: 1280px) {
  .cw.mg63.gx73 .control-trigger {
    display: none;
  }

  .cw.mg63.gx73 .panel-backdrop {
    display: none !important;
  }

  .cw.mg63.gx73 .rail-close {
    display: none;
  }
}

@media (max-width: 1120px) {
  .cw.mg63.gx73 .sidebar-foot {
    display: none;
  }

  .cw.mg63.gx73 .save-state {
    display: none;
  }

  .cw.mg63.gx73 .scenario-title {
    width: min(520px, 47vw);
  }

  .cw.mg63.gx73 #view-overview .overview-hero {
    grid-template-columns: minmax(0, 1.36fr) minmax(254px, 0.64fr);
  }

  .cw.mg63.gx73 .hero-copy {
    padding-right: 22px;
  }

  .cw.mg63.gx73 .hero-score {
    padding-left: 22px;
  }

  .cw.mg63.gx73 .energy-atlas,
  .cw.mg63.gx73 .hero-signal {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cw.mg63.gx73 .quality-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw.mg63.gx73 .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cw.mg63.gx73 {
    --fx-topbar: 58px;
    --fx-inspector-width: min(376px, calc(100vw - 16px));
    --sd-nav-height: 62px;
  }

  .cw.mg63.gx73 .app-shell {
    display: block;
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .cw.mg63.gx73 .app-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: block;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom));
    min-height: 0;
    padding: 4px 5px env(safe-area-inset-bottom);
    overflow: visible;
    color: var(--gx-muted);
    background: rgba(247, 249, 250, 0.96);
    border-top: 1px solid var(--gx-line);
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 -10px 28px rgba(18, 26, 32, 0.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }

  .cw.mg63.gx73 .sidebar-head,
  .cw.mg63.gx73 .sidebar-nav-block {
    display: contents;
  }

  .cw.mg63.gx73 .brand,
  .cw.mg63.gx73 .sidebar-project,
  .cw.mg63.gx73 .sidebar-label,
  .cw.mg63.gx73 .sidebar-foot {
    display: none;
  }

  .cw.mg63.gx73 .view-nav {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: none;
    flex-direction: row;
    gap: 2px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: none;
  }

  .cw.mg63.gx73 .view-tab-indicator {
    display: none;
  }

  .cw.mg63.gx73 .view-tab,
  .cw.mg63.gx73 .view-tab:nth-child(n) {
    min-width: 0;
    min-height: 54px;
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    padding: 4px 2px;
    color: var(--gx-muted);
    border-radius: 8px;
    font-size: 8px;
    text-align: center;
    scroll-snap-align: center;
    white-space: normal;
  }

  .cw.mg63.gx73 .view-tab.is-active,
  .cw.mg63.gx73 .view-tab.is-active:nth-child(n) {
    color: var(--gx-accent-deep);
    background: var(--gx-accent-soft);
  }

  .cw.mg63.gx73 .view-tab.is-active::after {
    display: block;
    top: 0;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--gx-accent);
    border-radius: 999px;
    transform: translateX(-50%);
    animation: none;
  }

  .cw.mg63.gx73 .view-tab-icon {
    width: 19px;
    height: 19px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .cw.mg63.gx73 .view-tab.is-active .view-tab-icon {
    color: var(--gx-accent);
    background: transparent;
    border-color: transparent;
  }

  .cw.mg63.gx73 .view-tab-icon svg {
    width: 18px;
    height: 18px;
  }

  .cw.mg63.gx73 .view-tab-label {
    width: 100%;
    overflow: hidden;
    flex: 0 0 auto;
    font-size: inherit;
    text-overflow: ellipsis;
  }

  .cw.mg63.gx73 .app-frame {
    min-height: 100dvh;
    background: transparent;
  }

  .cw.mg63.gx73 .topbar {
    position: sticky;
    top: 0;
    min-height: var(--fx-topbar);
    gap: 6px;
    padding: 6px 9px;
  }

  .cw.mg63.gx73 .nav-button {
    display: none !important;
  }

  .cw.mg63.gx73 .scenario-title {
    width: min(55vw, 280px);
    min-height: 34px;
    padding: 4px 2px;
    font-size: 14px;
  }

  .cw.mg63.gx73 .scenario-meta {
    display: none;
  }

  .cw.mg63.gx73 .top-actions {
    gap: 3px;
    margin-left: auto;
  }

  .cw.mg63.gx73 .top-mode-switch,
  .cw.mg63.gx73 .top-baseline {
    display: none;
  }

  .cw.mg63.gx73 .control-trigger {
    width: 35px;
    min-height: 35px;
    padding: 0;
  }

  .cw.mg63.gx73 .control-trigger span {
    display: none;
  }

  .cw.mg63.gx73 #exportButton {
    min-height: 35px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .cw.mg63.gx73 .main-stage {
    padding: 12px 10px 26px;
  }

  .cw.mg63.gx73 .view-intro {
    min-height: 103px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding: 18px 2px 16px;
  }

  .cw.mg63.gx73 .view-intro::before {
    top: 0;
    left: 0;
    width: 38px;
    height: 3px;
    font-size: 0;
  }

  .cw.mg63.gx73 .view-intro h1 {
    font-size: 25px;
  }

  .cw.mg63.gx73 .view-intro p:not(.eyebrow) {
    font-size: 8px;
  }

  .cw.mg63.gx73 .view-intro > .button,
  .cw.mg63.gx73 .view-intro .quality-verdict {
    width: 100%;
  }

  .cw.mg63.gx73 .overview-hero,
  .cw.mg63.gx73 .energy-atlas,
  .cw.mg63.gx73 .metric-grid,
  .cw.mg63.gx73 .panel,
  .cw.mg63.gx73 .method-card,
  .cw.mg63.gx73 .quality-summary-card {
    border-radius: 10px;
  }

  .cw.mg63.gx73 #view-overview .overview-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "score"
      "mix"
      "signal";
  }

  .cw.mg63.gx73 .hero-copy {
    min-height: 0;
    padding: 22px 14px 20px;
    border-right: 0;
    border-bottom: 0;
  }

  .cw.mg63.gx73 .hero-copy h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .cw.mg63.gx73 .hero-lede {
    font-size: 9px;
  }

  .cw.mg63.gx73 .hero-score {
    min-height: 206px;
    padding: 19px 14px 20px;
    border-top: 0;
    border-left: 0;
    border-bottom: 0;
  }

  .cw.mg63.gx73 .brief-score {
    margin: 24px 0 14px;
  }

  .cw.mg63.gx73 .score-value {
    font-size: 60px;
  }

  .cw.mg63.gx73 .hero-mix {
    padding: 14px 14px 16px;
  }

  .cw.mg63.gx73 .hero-signal {
    grid-template-columns: minmax(0, 1fr);
    padding: 17px 13px 13px;
  }

  .cw.mg63.gx73 .hero-signal-copy {
    gap: 12px;
  }

  .cw.mg63.gx73 .hero-signal-note {
    max-width: 64ch;
  }

  .cw.mg63.gx73 .hero-energy-map {
    height: 164px;
  }

  .cw.mg63.gx73 .energy-atlas {
    margin-top: 10px;
    padding: 17px 13px;
  }

  .cw.mg63.gx73 .energy-atlas-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .cw.mg63.gx73 .atlas-balance {
    min-width: 0;
    text-align: left;
  }

  .cw.mg63.gx73 .atlas-desktop {
    display: none;
  }

  .cw.mg63.gx73 .atlas-mobile {
    display: block;
  }

  .cw.mg63.gx73 .energy-atlas-visual {
    min-height: 0;
  }

  .cw.mg63.gx73 .insight-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 10px;
  }

  .cw.mg63.gx73 .insight-card {
    padding: 13px 14px;
  }

  .cw.mg63.gx73 .insight-card + .insight-card {
    border-left: 1px solid var(--gx-line);
  }

  .cw.mg63.gx73 .metric-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  .cw.mg63.gx73 .metric-scope-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cw.mg63.gx73 .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw.mg63.gx73 .metric-card,
  .cw.mg63.gx73 .metric-card:nth-child(n) {
    min-height: 118px;
    padding: 14px;
    border-right: 1px solid var(--gx-line);
    border-bottom: 1px solid var(--gx-line);
  }

  .cw.mg63.gx73 .metric-card:nth-child(2n) {
    border-right: 0;
  }

  .cw.mg63.gx73 .metric-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .cw.mg63.gx73 .metric-value {
    margin-top: 14px;
    font-size: 31px;
  }

  .cw.mg63.gx73 .dashboard-grid,
  .cw.mg63.gx73 .dashboard-grid-wide,
  .cw.mg63.gx73 .quality-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .panel,
  .cw.mg63.gx73 .method-card,
  .cw.mg63.gx73 .quality-summary-card {
    padding: 16px 14px;
  }

  .cw.mg63.gx73 .chart-frame {
    min-height: 226px;
  }

  .cw.mg63.gx73 .chart-panel-tall .chart-frame {
    min-height: 286px;
  }

  .cw.mg63.gx73 .quality-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .cw.mg63.gx73 .quality-verdict {
    max-width: none;
    justify-items: start;
    text-align: left;
  }

  .cw.mg63.gx73 .quality-summary-grid,
  .cw.mg63.gx73 .method-grid,
  .cw.mg63.gx73 .limitation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .sensitivity-placeholder {
    min-height: 274px;
    grid-template-columns: minmax(0, 1fr);
    padding: 17px;
  }

  .cw.mg63.gx73 .hourly-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw.mg63.gx73 .hourly-toolbar label,
  .cw.mg63.gx73 .hourly-toolbar select,
  .cw.mg63.gx73 .hourly-toolbar input {
    width: 100%;
  }

  .cw.mg63.gx73 .toolbar-spacer {
    display: none;
  }

  .cw.mg63.gx73 .control-rail {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 160;
    width: 100%;
    height: min(88dvh, 760px);
    padding: 18px 15px max(21px, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 30%),
      var(--gx-surface);
    border-top: 1px solid var(--gx-line);
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -24px 62px rgba(18, 26, 32, 0.21);
    transform: translate3d(0, calc(100% + 22px), 0);
  }

  .cw.mg63.gx73.controls-open .control-rail {
    transform: translate3d(0, 0, 0);
  }

  .cw.mg63.gx73 .rail-head::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 3px;
    content: "";
    background: var(--gx-line-strong);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .cw.mg63.gx73 .rail-head {
    position: relative;
    padding-top: 17px;
  }

  .cw.mg63.gx73 .mode-mobile {
    display: flex;
  }

  .cw.mg63.gx73 .calculation-dock {
    right: 8px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
  }

  .cw.mg63.gx73 .toast-stack {
    right: 8px;
    bottom: calc(
      70px + env(safe-area-inset-bottom) +
        var(--calculation-dock-offset, 0px)
    );
    width: calc(100vw - 16px);
  }

  .cw.mg63.gx73 .startup-console {
    padding: 12px;
  }

  .cw.mg63.gx73 .startup-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .startup-identity {
    display: grid;
    min-height: 92px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
  }

  .cw.mg63.gx73 .startup-identity > div:last-child {
    align-self: end;
  }

  .cw.mg63.gx73 .startup-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 20px;
  }

  .cw.mg63.gx73 .startup-loader {
    width: 74px;
    height: 74px;
  }

  .cw.mg63.gx73 .startup-copy h1 {
    font-size: 23px;
  }

  .cw.mg63.gx73 .dialog-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .action-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .cw.mg63.gx73 .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .metric-card,
  .cw.mg63.gx73 .metric-card:nth-child(n) {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid var(--gx-line);
  }

  .cw.mg63.gx73 .metric-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--gx-line);
  }

  .cw.mg63.gx73 .metric-card:last-child {
    border-bottom: 0;
  }

  .cw.mg63.gx73 .metric-value {
    font-size: 34px;
  }

  .cw.mg63.gx73 .dashboard-grid,
  .cw.mg63.gx73 .dashboard-grid-wide {
    gap: 9px;
  }

  .cw.mg63.gx73 .panel-heading {
    flex-wrap: wrap;
  }

  .cw.mg63.gx73 .quality-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .quality-main-grid {
    gap: 9px;
  }

  .cw.mg63.gx73 .quality-side-stack {
    gap: 9px;
  }

  .cw.mg63.gx73 .method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw.mg63.gx73 .hourly-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .cw.mg63.gx73 .scenario-title {
    width: 54vw;
    font-size: 13px;
  }

  .cw.mg63.gx73 #exportButton {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 8px;
  }

  .cw.mg63.gx73 .view-tab-icon {
    display: none;
  }

  .cw.mg63.gx73 .view-tab {
    font-size: 7px;
  }

  .cw.mg63.gx73 .hero-copy h1 {
    font-size: 33px;
  }

  .cw.mg63.gx73 .score-value {
    font-size: 54px;
  }

  .cw.mg63.gx73 .metric-value {
    font-size: 32px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .cw.mg63.gx73 .app-sidebar {
    height: calc(56px + env(safe-area-inset-bottom));
  }

  .cw.mg63.gx73 .view-tab,
  .cw.mg63.gx73 .view-tab:nth-child(n) {
    min-height: 47px;
    flex-direction: row;
    gap: 5px;
  }

  .cw.mg63.gx73 .view-tab-icon {
    display: grid;
    width: 16px;
    height: 16px;
  }

  .cw.mg63.gx73 .app-shell {
    padding-bottom: calc(59px + env(safe-area-inset-bottom));
  }

  .cw.mg63.gx73 .control-rail {
    height: 94dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw.mg63.gx73 .hero-route-pulse,
  .cw.mg63.gx73 .hero-node-ripple,
  .cw.mg63.gx73 .atlas-flow-start,
  .cw.mg63.gx73 .trend-flow {
    display: none !important;
  }

  .cw.mg63.gx73 .view.is-active,
  .cw.mg63.gx73 .view.is-active > *,
  .cw.mg63.gx73 .health-tag {
    animation-duration: 0.0001s !important;
    animation-delay: 0ms !important;
  }

  .cw.mg63.gx73 #mixBar .mix-segment {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cw.mg63.gx73 * {
    scroll-behavior: auto !important;
  }
}

@media print {
  .cw.mg63.gx73 {
    background: #fff;
  }

  .cw.mg63.gx73 .app-sidebar,
  .cw.mg63.gx73 .topbar,
  .cw.mg63.gx73 .control-rail,
  .cw.mg63.gx73 .panel-backdrop,
  .cw.mg63.gx73 .nav-backdrop,
  .cw.mg63.gx73 .calculation-dock,
  .cw.mg63.gx73 .toast-stack {
    display: none !important;
  }

  .cw.mg63.gx73 .app-shell,
  .cw.mg63.gx73 .workspace {
    display: block;
  }

  .cw.mg63.gx73 .main-stage {
    max-width: none;
    padding: 0;
  }

  .cw.mg63.gx73 .view {
    display: block !important;
  }

  .cw.mg63.gx73 .panel,
  .cw.mg63.gx73 .metric-grid,
  .cw.mg63.gx73 .overview-hero,
  .cw.mg63.gx73 .energy-atlas {
    break-inside: avoid;
  }
}

@keyframes gx-flow-enter {
  from {
    opacity: 0;
    stroke-dasharray: 0 1;
  }
  to {
    opacity: 0.9;
    stroke-dasharray: 1 0;
  }
}

/* Readability and chrome pass
 *
 * Product labels should not trade legibility for density. The first v73 pass
 * inherited several 7-9px editorial sizes; these overrides establish a firm
 * floor for interface copy while leaving chart geometry and compact tables
 * comparatively dense.
 */

@media screen {
  .cw.mg63.gx73 {
    --gx-text-micro: 9px;
    --gx-text-label: 10px;
    --gx-text-ui: 11px;
    --gx-text-body: 12px;
    --gx-text-input: 12px;
  }

  .cw.mg63.gx73 .brand-copy small,
  .cw.mg63.gx73 .sidebar-project > span,
  .cw.mg63.gx73 .sidebar-label,
  .cw.mg63.gx73 .scenario-meta,
  .cw.mg63.gx73 .rail-head .eyebrow,
  .cw.mg63.gx73 .mode-mobile,
  .cw.mg63.gx73 .control-group > summary em,
  .cw.mg63.gx73 .section-count,
  .cw.mg63.gx73 .simple-mode-guide-kicker,
  .cw.mg63.gx73 .view-intro .eyebrow,
  .cw.mg63.gx73 .eyebrow,
  .cw.mg63.gx73 .section-kicker,
  .cw.mg63.gx73 .signal-label,
  .cw.mg63.gx73 .hero-score-period,
  .cw.mg63.gx73 .score-unit,
  .cw.mg63.gx73 .mix-head span:last-child,
  .cw.mg63.gx73 .atlas-balance span,
  .cw.mg63.gx73 .atlas-balance small,
  .cw.mg63.gx73 .metric-scope-actions > span,
  .cw.mg63.gx73 .metric-value small,
  .cw.mg63.gx73 .metric-delta,
  .cw.mg63.gx73 .unit-chip,
  .cw.mg63.gx73 .status-pill,
  .cw.mg63.gx73 .quality-status,
  .cw.mg63.gx73 .quality-verdict small,
  .cw.mg63.gx73 .startup-steps em,
  .cw.mg63.gx73 .action-icon {
    font-size: var(--gx-text-micro);
    line-height: 1.35;
  }

  .cw.mg63.gx73 .sidebar-project small,
  .cw.mg63.gx73 .sidebar-local-state small,
  .cw.mg63.gx73 .sidebar-foot > p,
  .cw.mg63.gx73 .save-state,
  .cw.mg63.gx73 .scenario-editor-label small,
  .cw.mg63.gx73 .preset-button small,
  .cw.mg63.gx73 .control-value span,
  .cw.mg63.gx73 .range-bubble,
  .cw.mg63.gx73 .range-scale,
  .cw.mg63.gx73 .range-ticks,
  .cw.mg63.gx73 .text-button,
  .cw.mg63.gx73 .brief-kicker,
  .cw.mg63.gx73 .brief-period,
  .cw.mg63.gx73 .hero-signal-legend,
  .cw.mg63.gx73 .hero-signal-axis,
  .cw.mg63.gx73 .mix-legend,
  .cw.mg63.gx73 .atlas-link-label,
  .cw.mg63.gx73 .atlas-node-kicker,
  .cw.mg63.gx73 .atlas-node-detail,
  .cw.mg63.gx73 .atlas-unserved-badge text,
  .cw.mg63.gx73 .atlas-mobile-row small,
  .cw.mg63.gx73 .atlas-mobile-load small,
  .cw.mg63.gx73 .insight-card > span,
  .cw.mg63.gx73 .metric-label,
  .cw.mg63.gx73 .metric-note,
  .cw.mg63.gx73 .economics-hero span,
  .cw.mg63.gx73 .check-chip,
  .cw.mg63.gx73 .hourly-toolbar label,
  .cw.mg63.gx73 .row-count,
  .cw.mg63.gx73 .chart-key,
  .cw.mg63.gx73 .quality-repro,
  .cw.mg63.gx73 .quality-normalization,
  .cw.mg63.gx73 .provenance-audit,
  .cw.mg63.gx73 .provenance-list span,
  .cw.mg63.gx73 .provenance-list em,
  .cw.mg63.gx73 .api-list code,
  .cw.mg63.gx73 .version-badge,
  .cw.mg63.gx73 .software-identity,
  .cw.mg63.gx73 .startup-identity > div:last-child span,
  .cw.mg63.gx73 .startup-foot,
  .cw.mg63.gx73 .dialog-note,
  .cw.mg63.gx73 .import-filebar span,
  .cw.mg63.gx73 .import-filebar em {
    font-size: var(--gx-text-label);
    line-height: 1.45;
  }

  .cw.mg63.gx73 .view-tab {
    font-size: 13px;
  }

  .cw.mg63.gx73 .mode-button,
  .cw.mg63.gx73 .button,
  .cw.mg63.gx73 .button-small,
  .cw.mg63.gx73 .scenario-editor-label strong,
  .cw.mg63.gx73 .control-group > summary,
  .cw.mg63.gx73 .field,
  .cw.mg63.gx73 .control-label,
  .cw.mg63.gx73 .preset-button strong,
  .cw.mg63.gx73 .simple-mode-guide p,
  .cw.mg63.gx73 .simple-mode-guide-button,
  .cw.mg63.gx73 .health-tag,
  .cw.mg63.gx73 .hero-score-label,
  .cw.mg63.gx73 .score-delta,
  .cw.mg63.gx73 .mix-head,
  .cw.mg63.gx73 .atlas-balance strong,
  .cw.mg63.gx73 .atlas-mobile-row span,
  .cw.mg63.gx73 .atlas-mobile-load span,
  .cw.mg63.gx73 .economics-row,
  .cw.mg63.gx73 .economics-row strong,
  .cw.mg63.gx73 .hourly-toolbar select,
  .cw.mg63.gx73 .hourly-toolbar input,
  .cw.mg63.gx73 .sensitivity-status,
  .cw.mg63.gx73 .quality-verdict strong,
  .cw.mg63.gx73 .quality-warning-list li,
  .cw.mg63.gx73 .method-card p,
  .cw.mg63.gx73 .provenance-list strong,
  .cw.mg63.gx73 .api-list span,
  .cw.mg63.gx73 .limitation-grid p,
  .cw.mg63.gx73 .startup-copy > p:not(.eyebrow),
  .cw.mg63.gx73 .startup-steps li,
  .cw.mg63.gx73 .toast,
  .cw.mg63.gx73 .action-card strong,
  .cw.mg63.gx73 .action-card small,
  .cw.mg63.gx73 .import-filebar {
    font-size: var(--gx-text-ui);
  }

  .cw.mg63.gx73 .sidebar-project strong,
  .cw.mg63.gx73 .sidebar-local-state strong,
  .cw.mg63.gx73 .field input,
  .cw.mg63.gx73 .field select,
  .cw.mg63.gx73 .field textarea,
  .cw.mg63.gx73 .control-value input,
  .cw.mg63.gx73 .hero-lede,
  .cw.mg63.gx73 .hero-signal-note,
  .cw.mg63.gx73 .energy-atlas-head p:not(.eyebrow),
  .cw.mg63.gx73 .insight-card p,
  .cw.mg63.gx73 .metric-section-head p,
  .cw.mg63.gx73 .economics-note,
  .cw.mg63.gx73 .view-intro p:not(.eyebrow) {
    font-size: var(--gx-text-body);
    line-height: 1.6;
  }

  .cw.mg63.gx73 .field input,
  .cw.mg63.gx73 .field select,
  .cw.mg63.gx73 .field textarea,
  .cw.mg63.gx73 .control-value input {
    font-size: var(--gx-text-input);
  }

  .cw.mg63.gx73 .data-table,
  .cw.mg63.gx73 .hourly-head,
  .cw.mg63.gx73 .hourly-body,
  .cw.mg63.gx73 .chart-tooltip {
    font-size: 10px;
  }

  .cw.mg63.gx73 .data-table th,
  .cw.mg63.gx73 .data-table td {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .cw.mg63.gx73 .axis-label {
    font-size: 10px;
  }

  .cw.mg63.gx73 .atlas-node-title {
    font-size: 11px;
  }

  .cw.mg63.gx73 .atlas-node-value {
    font-size: 24px;
  }

  .cw.mg63.gx73 .atlas-node-value tspan {
    font-size: 9px;
  }

  .cw.mg63.gx73 .mode-rail-note,
  .cw.mg63.gx73 .control-hint {
    font-size: var(--gx-text-ui);
    line-height: 1.58;
  }

  .cw.mg63.gx73 .topbar {
    background: #f7f9fa;
    box-shadow: none;
    backdrop-filter: none;
  }

  .cw.mg63.gx73 .app-sidebar {
    background: #f2f6f8;
    box-shadow: none;
    backdrop-filter: none;
  }

  .cw.mg63.gx73 .control-rail {
    background: #f5f8f9;
    backdrop-filter: none;
  }

  .cw.mg63.gx73 .panel,
  .cw.mg63.gx73 .method-card,
  .cw.mg63.gx73 .quality-summary-card,
  .cw.mg63.gx73 .metric-grid,
  .cw.mg63.gx73 #view-overview .overview-hero,
  .cw.mg63.gx73 .energy-atlas {
    box-shadow: none;
  }

  .cw.mg63.gx73 .view-tab-indicator {
    background: var(--gx-accent);
    box-shadow: none;
  }

  .cw.mg63.gx73 .data-table {
    font-variant-numeric: tabular-nums;
  }

  .cw.mg63.gx73 .data-table th,
  .cw.mg63.gx73 .data-table td {
    font-size: 10px;
  }

  .cw.mg63.gx73 .economics-row {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .cw.mg63.gx73 .simple-mode-guide p {
    line-height: 1.58;
  }

  .cw.mg63.gx73 .startup-steps {
    gap: 9px;
  }

  .cw.mg63.gx73 .startup-foot {
    line-height: 1.5;
  }
}

@media screen and (min-width: 901px) {
  .cw.mg63.gx73 .view-tab.is-active,
  .cw.mg63.gx73 .view-tab.is-active:nth-child(n) {
    color: #fff;
  }

  .cw.mg63.gx73 .view-tab.is-active .view-tab-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.26);
  }

  .cw.mg63.gx73 .view-tab.is-active:hover {
    color: #fff;
    background: transparent;
  }

  .cw.mg63.gx73 .view-tab-indicator {
    background: var(--gx-accent);
  }
}

@media screen and (max-width: 900px) {
  .cw.mg63.gx73 .view-tab,
  .cw.mg63.gx73 .view-tab:nth-child(n) {
    font-size: 10px;
  }

  .cw.mg63.gx73 .view-tab.is-active,
  .cw.mg63.gx73 .view-tab.is-active:nth-child(n) {
    color: var(--gx-accent-deep);
    background: var(--gx-accent-soft);
  }

  .cw.mg63.gx73 .view-tab.is-active .view-tab-icon {
    color: var(--gx-accent);
    background: transparent;
    border-color: transparent;
  }

  .cw.mg63.gx73 .field input,
  .cw.mg63.gx73 .field select,
  .cw.mg63.gx73 .field textarea,
  .cw.mg63.gx73 .control-value input {
    min-height: 42px;
  }

  .cw.mg63.gx73 .mode-button {
    min-height: 34px;
  }

  .cw.mg63.gx73 .preset-button {
    min-height: 70px;
  }

  .cw.mg63.gx73 .text-button {
    min-height: 40px;
  }
}

@media screen and (max-width: 380px) {
  .cw.mg63.gx73 .view-tab {
    font-size: 9px;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  .cw.mg63.gx73 .view-tab-indicator {
    transition-duration: 0.0001s !important;
    transition-delay: 0ms !important;
  }
}
