html { background: #f7f7f5; }
body { margin: 0; background: #f7f7f5; }

.fixed-battery {
  min-height: 100vh;
  background: #f7f7f5;
  color: var(--fg-2);
}

.fixed-battery .fb-masthead {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}

.fixed-battery .fb-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.fixed-battery .fb-masthead__inner { min-height: 82px; }
.fixed-battery .fb-brand { display: inline-flex; }
.fixed-battery .fb-brand img { display: block; height: 26px; width: auto; }
.fixed-battery .fb-masthead__label { color: rgba(255,255,255,.72); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fixed-battery .fb-masthead__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fixed-battery .fb-masthead__site { margin: 0; color: #fff; font-size: var(--text-xs); font-weight: 600; }

.fixed-battery .fb-docket { max-width: 1120px; padding-top: clamp(42px, 7vw, 84px); padding-bottom: 80px; }
.fixed-battery .fb-eyebrow { color: var(--navy); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fixed-battery .fb-introduction { max-width: 820px; }
.fixed-battery .fb-introduction h1 { margin-top: 12px; color: var(--ink, #08090a); font-size: clamp(2rem, 4.6vw, 3.65rem); letter-spacing: -.035em; }
.fixed-battery .fb-introduction__lede { max-width: 65ch; margin-top: 20px; color: var(--fg-2); font-size: 1.08rem; }
.fixed-battery .fb-current-rate-note { max-width: 72ch; margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--fg-2); font-size: var(--text-sm); }

.fixed-battery .fb-spine { display: flex; align-items: center; width: min(100%, 680px); margin: 46px 0 28px; }
.fixed-battery .fb-spine__node { width: 11px; height: 11px; flex: 0 0 auto; border: 2px solid var(--navy); background: #f7f7f5; }
.fixed-battery .fb-spine__node:last-child { background: var(--accent); border-color: var(--accent); }
.fixed-battery .fb-spine__line { height: 2px; flex: 1; background: var(--accent); }

.fixed-battery .fb-section-heading { max-width: 660px; margin-bottom: 20px; }
.fixed-battery .fb-section-heading h2,
.fixed-battery .fb-run-region h2 { margin-top: 6px; color: var(--ink, #08090a); font-size: 1.5rem; }
.fixed-battery .fb-section-heading p:last-child,
.fixed-battery .fb-run-region p { margin-top: 7px; color: var(--fg-2); font-size: var(--text-sm); }
.fixed-battery .fb-source-bays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fixed-battery .fb-source-bay,
.fixed-battery .fb-assumption-group,
.fixed-battery .fb-run-region,
.fixed-battery .fb-wait-sheet { position: relative; border: 1px solid var(--border); background: #fff; box-shadow: none; }
.fixed-battery .fb-source-bay { min-height: 278px; padding: 24px; }
.fixed-battery .fb-source-bay::before,
.fixed-battery .fb-source-bay::after,
.fixed-battery .fb-assumption-group::before,
.fixed-battery .fb-assumption-group::after { content: ""; position: absolute; width: 11px; height: 11px; border-color: var(--steel, #cacbcd); border-style: solid; pointer-events: none; }
.fixed-battery .fb-source-bay::before,
.fixed-battery .fb-assumption-group::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.fixed-battery .fb-source-bay::after,
.fixed-battery .fb-assumption-group::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.fixed-battery .fb-source-bay__number { color: var(--accent-active); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; }
.fixed-battery .fb-source-bay h3 { margin-top: 13px; color: var(--ink, #08090a); font-size: 1.28rem; }
.fixed-battery .fb-source-bay > p:not(.fb-source-bay__number):not(.fb-file-name):not(.fb-field-hint) { max-width: 48ch; margin-top: 8px; color: var(--fg-2); font-size: var(--text-sm); }
.fixed-battery .fb-mono { font-family: var(--font-mono); font-size: .95em; font-variant-numeric: tabular-nums; }
.fixed-battery .fb-file-control input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fixed-battery .fb-file-control { position: relative; display: inline-flex; min-height: 40px; align-items: center; margin-top: 26px; padding: 0 14px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; font-weight: 700; font-size: var(--text-sm); }
.fixed-battery .fb-file-control:hover { background: var(--navy); color: #fff; }
.fixed-battery .fb-file-control:focus-visible,
.fixed-battery .fb-file-control:focus-within,
.fixed-battery .fb-run-button:focus-visible,
.fixed-battery .fb-return-link:focus-visible {
  outline: 3px solid #011635;
  outline-offset: 3px;
  box-shadow: none;
}
.fixed-battery .fb-brand:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}
.fixed-battery .fb-field-hint { margin-top: 10px; color: var(--muted); font-size: var(--text-xs); }
.fixed-battery .fb-file-name { max-width: 100%; margin-top: 8px; overflow: hidden; color: var(--success); font-family: var(--font-mono); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }

.fixed-battery .fb-assumption-group { min-width: 0; margin-top: 26px; padding: 24px; }
.fixed-battery .fb-assumption-group legend { padding: 0 8px; color: var(--ink, #08090a); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.fixed-battery .fb-group-note { max-width: 76ch; margin-bottom: 20px; color: var(--fg-2); font-size: var(--text-sm); }
.fixed-battery .fb-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fixed-battery .fb-field-grid--rates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fixed-battery .fb-advanced-fold { margin-top: 20px; }
.fixed-battery .fb-advanced-fold summary { cursor: pointer; color: var(--navy); font-size: var(--text-sm); font-weight: 600; }
.fixed-battery .fb-advanced-fold[open] summary { margin-bottom: 16px; }
.fixed-battery .fb-advanced-fold summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.fixed-battery .fb-field { min-width: 0; }
.fixed-battery .fb-field label { display: block; min-height: 38px; color: var(--fg-2); font-size: var(--text-xs); font-weight: 700; line-height: 1.35; }
.fixed-battery .fb-field label span { color: var(--muted); font-family: var(--font-mono); font-size: .92em; font-weight: 400; }
.fixed-battery .fb-field input { width: 100%; min-width: 0; height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 0; background: #fff; color: var(--ink, #08090a); font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.fixed-battery .fb-field input:focus,
.fixed-battery .fb-field input:focus-visible {
  border-color: var(--navy);
  outline: 3px solid #011635;
  outline-offset: 3px;
  box-shadow: none;
}

.fixed-battery .fb-run-region { display: flex; align-items: end; justify-content: flex-end; gap: 28px; margin-top: 26px; padding: 26px 24px; border-top: 3px solid var(--navy); }
.fixed-battery .fb-run-actions { display: grid; justify-items: end; gap: 10px; }
.fixed-battery .fb-run-button { min-height: 48px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--navy); cursor: pointer; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800; }
.fixed-battery .fb-run-button:hover { background: var(--accent-hover); }
.fixed-battery .fb-run-button:disabled { cursor: wait; opacity: .6; }
.fixed-battery .fb-privacy-note { max-width: 32ch; margin: 0 !important; color: var(--muted) !important; font-size: var(--text-xs) !important; text-align: right; }
.fixed-battery .fb-error { margin-top: 18px; padding: 14px; border-left: 4px solid var(--danger); background: #fff2f0; color: #7d241c; font-size: var(--text-sm); }

.fixed-battery.fb-wait-page { box-sizing: border-box; display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.fixed-battery .fb-wait-sheet { width: min(100%, 620px); padding: 30px; }
.fixed-battery .fb-wait-sheet__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: -30px -30px 44px;
  padding: 22px 26px;
  background: var(--navy);
}
.fixed-battery .fb-wait-sheet__topline img { width: auto; height: 26px; }
.fixed-battery .fb-status-led { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,156,0,.18); }
.fixed-battery .fb-wait-sheet h1 { max-width: 15ch; margin-top: 12px; color: var(--ink, #08090a); font-size: clamp(1.85rem, 4vw, 2.7rem); letter-spacing: -.03em; }
.fixed-battery .fb-wait-sheet__message { min-height: 48px; margin-top: 22px; color: var(--fg-2); }
.fixed-battery .fb-wait-sheet__detail { margin-top: 12px; color: var(--muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.fixed-battery .fb-return-link { display: inline-flex; margin-top: 22px; color: var(--navy); font-size: var(--text-sm); font-weight: 700; }

body.fb-result-body { background: #07111f; }

.fixed-battery.fb-result-page {
  min-height: 100vh;
  background: #07111f;
  color: #e8edf5;
  --fb-result-field: #07111f;
  --fb-result-panel: #0d1a2b;
  --fb-result-rule: #34445a;
  --fb-result-steel: #aeb9c7;
  --fb-result-gold: #ffb340;
}

.fixed-battery.fb-result-page .fb-masthead { background: #050c17; border-bottom-color: #34445a; }
.fixed-battery .fb-result-docket { max-width: 1220px; padding-top: clamp(28px, 5vw, 58px); padding-bottom: 96px; }
.fixed-battery.fb-result-page .fb-readout-label { margin: 0 0 9px; color: var(--fb-result-steel); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.fixed-battery .fb-material-warning {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid #f0a62e;
  border-left-width: 5px;
  background: #241b0d;
  color: #fff4df;
}
.fixed-battery .fb-material-warning h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.fixed-battery .fb-material-warning p:last-child { max-width: 88ch; margin: 10px 0 0; color: #f2d7a8; }

.fixed-battery .fb-decision-band { position: relative; overflow: hidden; border: 1px solid var(--fb-result-rule); border-left: 5px solid var(--fb-result-gold); background: var(--fb-result-panel); }
.fixed-battery .fb-decision-band::after { content: "15M / IMMUTABLE"; position: absolute; top: 18px; right: 20px; color: #65758b; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.fixed-battery .fb-decision-band__statement { padding: clamp(24px, 5vw, 48px); padding-right: clamp(24px, 16vw, 180px); border-bottom: 1px solid var(--fb-result-rule); }
.fixed-battery .fb-decision-band h1 { max-width: 22ch; margin: 0; color: #fff; font-size: clamp(2rem, 4.8vw, 4rem); letter-spacing: -.04em; line-height: .98; }
.fixed-battery .fb-financial-basis { margin: 22px 0 0; color: var(--fb-result-steel); font-family: var(--font-mono); font-size: 13px; }
.fixed-battery .fb-economic-readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fixed-battery .fb-economic-reading { min-width: 0; padding: clamp(24px, 4vw, 40px); }
.fixed-battery .fb-economic-reading + .fb-economic-reading { border-left: 1px solid var(--fb-result-rule); }
.fixed-battery .fb-economic-reading__value { margin: 0; color: var(--fb-result-gold); font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 3.7rem); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.fixed-battery .fb-economic-reading__payback { margin: 13px 0 0; color: #d4dbe5; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.fixed-battery .fb-transfer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 15px 24px; border-top: 1px solid var(--fb-result-rule); background: #091523; color: var(--fb-result-steel); font-size: 12px; }
.fixed-battery .fb-transfer-line strong { margin-left: 7px; color: #fff; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.fixed-battery .fb-audit-section { min-width: 0; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--fb-result-rule); }
.fixed-battery .fb-audit-heading { max-width: 760px; margin-bottom: 19px; }
.fixed-battery .fb-audit-heading h2 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.fixed-battery .fb-audit-heading > p:last-child { max-width: 70ch; margin: 8px 0 0; color: var(--fb-result-steel); font-size: 13px; }
.fixed-battery .fb-table-scroll { overflow-x: auto; border: 1px solid var(--fb-result-rule); background: #091523; scrollbar-color: var(--fb-result-gold) #091523; }
.fixed-battery .fb-audit-table { width: 100%; min-width: 620px; border-collapse: collapse; color: #e8edf5; }
.fixed-battery .fb-audit-table--wide { min-width: 980px; }
.fixed-battery .fb-audit-table th,
.fixed-battery .fb-audit-table td { padding: 13px 15px; border-bottom: 1px solid #26364b; text-align: left; vertical-align: top; }
.fixed-battery .fb-audit-table thead th { background: #111f31; color: var(--fb-result-steel); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.fixed-battery .fb-audit-table tbody th { color: #fff; font-size: 13px; font-weight: 600; }
.fixed-battery .fb-audit-table td { color: #d7dee8; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fixed-battery .fb-audit-table tbody tr:last-child th,
.fixed-battery .fb-audit-table tbody tr:last-child td { border-bottom: 0; }

.fixed-battery .fb-audit-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 38px; }
.fixed-battery .fb-audit-list { margin: 0; border: 1px solid var(--fb-result-rule); background: #091523; }
.fixed-battery .fb-audit-list--sources { margin-top: 16px; }
.fixed-battery .fb-audit-list div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 13px; border-bottom: 1px solid #26364b; }
.fixed-battery .fb-audit-list div:last-child { border-bottom: 0; }
.fixed-battery .fb-audit-list dt { color: var(--fb-result-steel); font-size: 12px; }
.fixed-battery .fb-audit-list dd { margin: 0; color: #fff; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.fixed-battery .fb-caveat-list { margin: 0; padding: 0; list-style: none; }
.fixed-battery .fb-caveat-list li { position: relative; padding: 0 0 14px 20px; color: #c7d0dc; font-size: 13px; }
.fixed-battery .fb-caveat-list li::before { content: "·"; position: absolute; left: 0; color: var(--fb-result-gold); }

.fixed-battery .fb-artifact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; background: var(--fb-result-rule); list-style: none; }
.fixed-battery .fb-artifact-links a { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; background: #091523; color: #fff; text-decoration: none; }
.fixed-battery .fb-artifact-links a:hover { background: #142338; }
.fixed-battery .fb-artifact-links code { color: var(--fb-result-gold); font-size: 11px; text-align: right; }

.fixed-battery .fb-rerun-panel { margin-top: 58px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--fb-result-rule); border-top: 4px solid var(--fb-result-gold); background: var(--fb-result-panel); }
.fixed-battery .fb-result-fieldset { min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.fixed-battery .fb-result-fieldset legend { margin-bottom: 16px; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.fixed-battery .fb-result-field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fixed-battery.fb-result-page .fb-field label { min-height: 36px; color: #c4cedb; }
.fixed-battery.fb-result-page .fb-field label span { color: #8592a3; }
.fixed-battery.fb-result-page .fb-field input { border-color: #43536a; background: var(--fb-result-field); color: #fff; }
.fixed-battery.fb-result-page .fb-field input:focus,
.fixed-battery.fb-result-page .fb-field input:focus-visible { border-color: var(--fb-result-gold); outline: 3px solid #fff; outline-offset: 3px; }
.fixed-battery .fb-result-error { margin-top: 20px; padding: 14px; border-left: 4px solid #f06a5b; background: #2a1213; color: #ffd8d3; font-size: 13px; }
.fixed-battery .fb-rerun-action { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fb-result-rule); }
.fixed-battery .fb-rerun-action p { margin: 0; color: var(--fb-result-steel); font-size: 12px; }
.fixed-battery .fb-rerun-button { min-height: 48px; padding: 0 20px; border: 1px solid var(--fb-result-gold); border-radius: 0; background: var(--fb-result-gold); color: #07111f; cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.fixed-battery .fb-rerun-button:hover { background: #ffc261; }
.fixed-battery .fb-rerun-button:disabled { cursor: wait; opacity: .62; }
.fixed-battery.fb-result-page a:focus-visible,
.fixed-battery.fb-result-page button:focus-visible,
.fixed-battery.fb-result-page .fb-table-scroll:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }

@media (max-width: 820px) {
  .fixed-battery .fb-field-grid--rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fixed-battery .fb-result-field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fixed-battery .fb-audit-split { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .fixed-battery .fb-masthead__inner { min-height: 70px; }
  .fixed-battery .fb-masthead__label { max-width: 20ch; text-align: right; }
  .fixed-battery .fb-source-bays,
  .fixed-battery .fb-field-grid,
  .fixed-battery .fb-field-grid--rates { grid-template-columns: 1fr; }
  .fixed-battery .fb-field label { min-height: auto; }
  .fixed-battery .fb-run-region { display: block; }
  .fixed-battery .fb-run-actions { justify-items: stretch; margin-top: 22px; }
  .fixed-battery .fb-run-button { width: 100%; }
  .fixed-battery .fb-privacy-note { max-width: none; text-align: left; }
  .fixed-battery .fb-docket { padding-top: 34px; }
  .fixed-battery .fb-decision-band__statement { padding-right: 24px; }
  .fixed-battery .fb-decision-band::after { display: none; }
  .fixed-battery .fb-economic-readings { grid-template-columns: 1fr; }
  .fixed-battery .fb-economic-reading + .fb-economic-reading { border-top: 1px solid var(--fb-result-rule); border-left: 0; }
  .fixed-battery .fb-result-field-grid { grid-template-columns: 1fr; }
  .fixed-battery .fb-artifact-links { grid-template-columns: 1fr; }
  .fixed-battery .fb-artifact-links a { align-items: flex-start; flex-direction: column; }
  .fixed-battery .fb-artifact-links code { text-align: left; }
  .fixed-battery .fb-rerun-action { align-items: stretch; flex-direction: column; }
  .fixed-battery .fb-rerun-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-battery *, .fixed-battery *::before, .fixed-battery *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
