.bandgap-theme {
  --ink: #102344;
  --muted: #56647b;
  --accent: #1655e6;
  --line: #d8e3f3;
  --bg: #f0f5fc;
}
.bandgap-theme .drop-zone,
.bandgap-theme .viewer-controls,
.bandgap-theme .viewer-empty { background: #f4f8ff; }
.bandgap-theme .drop-zone { border-color: #9eb9ea; }
.bandgap-theme .tag, .bandgap-theme .step { background: #e8f0ff; color: #1655e6; }
.bandgap-theme .primary:not(:disabled):hover { background: #1245bd; }
.bandgap-theme .viewer-empty svg { color: #719be7; }
.bandgap-theme .upload-panel #notice:not([data-state=error]) { background: #edf4ff; }
.bandgap-theme .downloads a { border-color: #bdd1f4; }
.bandgap-theme .viewer-controls button,
.bandgap-theme .fullscreen-button,
.bandgap-theme .share-row button { background: #eaf2ff; color: #1749ae; border-color: #bdd1f4; }
.bandgap-theme .viewer-controls button[aria-pressed=true],
.bandgap-theme .fullscreen-button:hover:not(:disabled) { background: var(--accent); color: white; border-color: var(--accent); }
.bandgap-theme .amp-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(15px, 3vw, 26px); }
.amp-card + .amp-card { margin-top: 16px; }
.amp-card h3, .amp-card h4 { margin: 0; font-size: clamp(20px, 3vw, 27px); line-height: 1.2; }
.amp-card h4 { margin-bottom: 10px; font-size: 20px; }
.amp-overview { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; padding: 20px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.amp-estimate { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.amp-estimate strong { color: var(--accent); font-size: clamp(32px, 6vw, 55px); line-height: 1.1; letter-spacing: -.03em; }
.amp-estimate span, .amp-note { color: var(--muted); }
.amp-split-labels { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.amp-split { display: flex; height: 32px; overflow: hidden; border-radius: 8px; font-weight: 700; }
.amp-split span { display: grid; place-items: center; overflow: hidden; }
#amp-metal-fill { background: #2563eb; color: white; }
#amp-nonmetal-fill { background: #bdd7fd; color: #11254c; }
.amp-interval-chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 36px 36px auto; column-gap: 28px; padding: 43px 6px 0; }
.amp-interval-plot { position: relative; grid-column: 1; grid-row: 1 / 4; min-width: 0; }
.amp-interval-label { grid-column: 2; display: flex; gap: 10px; align-items: center; white-space: nowrap; font-size: 13px; }
.amp-interval-label strong { color: #16458e; }
.amp-interval-track { height: 36px; position: relative; }
.amp-interval-band { position: absolute; top: 5px; height: 25px; min-width: 2px; border-radius: 6px; }
.amp-level-95 { background: #d8e7fc; }
.amp-level-80 { background: #9dc2fa; }
.amp-marker { position: absolute; top: 5px; height: 68px; border-left: 2px solid var(--accent); }
.amp-marker::before { content: ""; position: absolute; top: -3px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.amp-marker-value { position: absolute; top: -34px; left: clamp(44px, var(--marker-position), calc(100% - 44px)); transform: translateX(-50%); padding: 3px 8px; border-radius: 5px; color: white; background: var(--accent); font-weight: 700; white-space: nowrap; font-size: 13px; }
.amp-axis { position: relative; height: 46px; border-top: 1px solid #73829b; font-size: 12px; }
.amp-axis > span { position: absolute; top: 4px; transform: translateX(-50%); }
.amp-axis-title { text-align: center; padding-top: 24px; font-style: italic; }
.amp-note { margin: 8px 0 0; font-size: 13px; }
.amp-interval-chart + .amp-note, #amp-intervals + .amp-note { text-align: center; }
.amp-ranges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.amp-range { text-align: center; border-radius: 8px; padding-bottom: 5px; min-width: 0; }
.amp-range.is-likely { background: #e8f0ff; }
.amp-range-plot { position: relative; height: 124px; border-bottom: 1px solid #8491a8; }
.amp-range-bar { position: absolute; bottom: 0; left: 16%; width: 68%; border-radius: 5px 5px 0 0; background: #a6c9fb; }
.is-likely .amp-range-bar { background: var(--accent); }
.amp-range-bar strong { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: clamp(11px, 1.8vw, 15px); }
.amp-range-label { display: block; margin-top: 5px; font-size: clamp(10px, 1.7vw, 14px); overflow-wrap: anywhere; }
@media (max-width: 550px) {
  .amp-overview { grid-template-columns: 1fr; gap: 14px; }
  .amp-estimate { border-right: 0; }
  .amp-interval-chart { column-gap: 14px; }
  .amp-interval-label { flex-direction: column; justify-content: center; gap: 0; font-size: 11px; }
  .amp-ranges { gap: 3px; }
}
