/* One reserve, one threshold, one clear action. */
.charge-console {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) 210px;
  align-items: center;
  gap: 38px;
  padding: 30px 34px;
  margin: 18px 0 24px;
  color: #f5f7f2;
  background: #10140e;
  border: 1px solid #20271c;
  border-radius: 32px;
  box-shadow: 0 16px 38px -22px #111d0f52, inset 0 1px 0 #ffffff0a;
}
.charge-primary { min-width: 0; }
.charge-eyebrow { display: flex; align-items: center; gap: 7px; }
.charge-eyebrow h2 { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; line-height: 1.5; color: #c2c8bc; }
.charge-eyebrow [data-round] { color: #a4ad9c; font-size: 12px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.charge-eyebrow .status-light { width: 4px; height: 4px; min-width: 4px; min-height: 4px; max-width: 4px; max-height: 4px; background: #b7f500; box-shadow: none; }
.reserve-reading { display: flex; align-items: baseline; gap: 11px; margin: 9px 0 4px; line-height: 1; white-space: nowrap; }
.reserve-reading>strong { font-size: clamp(52px,5.5vw,74px); font-weight: 550; letter-spacing: -.055em; color: #c0f653; font-variant-numeric: tabular-nums; }
.reserve-reading>span { font-size: 22px; letter-spacing: -.035em; color: #c0f653; font-weight: 400; }
.charge-label { font-size: 12px; color: #aeb7a6; }
.charge-window { min-width: 0; }
.charge-window>p { margin: 0; font-size: 14px; line-height: 1.55; color: #c0c8b9; }
.charge-window>p strong { font-weight: 550; color: #fafbf7; }
/* A compact glass vial, with a proportional liquid fill and contained discharge. */
.charge-progress { position: relative; isolation: isolate; width: 100%; height: auto; aspect-ratio: 6 / 1; margin-top: 15px; border: 0; border-radius: 999px; background: transparent; transition: filter .5s ease; }
.vial-shell { position: absolute; z-index: 3; top: 50%; left: -3.4%; width: 106.8%; height: auto; max-width: none; transform: translateY(-50%); pointer-events: none; filter: brightness(.86) saturate(.6); }
.vial-chamber { position: absolute; inset: 12% 2.2%; overflow: hidden; border-radius: 999px; background: linear-gradient(180deg, #111b0ccc, #2c39203b 55%, #131d0f80); box-shadow: inset 0 2px 4px #030800b3, inset 0 -1px 0 #d8efb31c; }
#gauge-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; border-radius: 999px 20px 20px 999px; transition: width .08s linear; }
.vial-liquid { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #efffa6 0%, #bcf249 15%, #95d524 43%, #a6e839 64%, #6da61b 92%, #c2f868 100%); box-shadow: inset 0 1px 2px #ffffd6cc, inset 0 -2px 5px #3f770b80; transition: filter .5s ease; }
.vial-liquid::before { content: ''; position: absolute; inset: 0; background: linear-gradient(104deg, transparent 23%, #edffb21f 37%, transparent 50%, #ecffae24 69%, transparent 81%); }
.vial-liquid::after { content: ''; position: absolute; top: 20%; left: 0; right: 0; height: 13%; border-radius: 50%; background: #f1ffd557; filter: blur(1px); }
.vial-meniscus { position: absolute; right: 0; top: 0; bottom: 0; width: 24px; border-radius: 50%; border-right: 1px solid #f5ffdabb; background: linear-gradient(90deg, #47820815, #d4ff83ad 73%, #edffb9cc); box-shadow: -3px 0 7px #56841226, inset -2px 0 4px #eeffc785; }
.vial-graduations { position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; opacity: .2; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #ecffd4 calc(10% - 1px) 10%); }
.vial-energy { z-index: 2; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; overflow: hidden; border-radius: inherit; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.energy-halo { stroke: #b8ff43; stroke-width: 3; filter: blur(3px); }
.energy-core { stroke: #f4ffd9; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.charge-progress[data-energized=true] { filter: drop-shadow(0 0 8px #a7f4494d); }
.charge-progress[data-energized=true] .vial-liquid { filter: brightness(1.14) saturate(.85); }
.charge-progress[data-energized=true] .vial-energy { opacity: .25; animation: vial-electrify 1.2s ease-out both; }
.charge-progress[data-energized=true] .energy-core { animation: vial-conduct 1.05s cubic-bezier(.16,.8,.3,1) both; }
@keyframes vial-electrify { 0% { opacity: 0; } 24% { opacity: .95; } 60% { opacity: .6; } 100% { opacity: .25; } }
@keyframes vial-conduct { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.charge-scale { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; color: #aeb7a6; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.charge-scale strong { font-weight: 400; color: #d1d7c9; }
.charge-side { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding-left: 25px; border-left: 1px solid #ffffff17; }
.charge-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#charging-state { display: inline-flex; align-items: center; gap: 6px; color: #d8e7c4; font-size: 12px; line-height: 1.5; }
#charging-state .status-light { width: 5px; height: 5px; background: #b8ee64; }
.charge-demo { font-size: 12px; color: #b4beaa; }
.cycle-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 10px 13px; color: #f5f8f0; background: linear-gradient(180deg, #ffffff12, #ffffff08); border: 1px solid #ffffff26; border-radius: 12px; box-shadow: inset 0 1px 0 #ffffff08; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .18s, border-color .18s; }
.cycle-button>svg { width: 15px; height: 15px; fill: currentColor; }
.cycle-button:hover:not(:disabled) { background: #ffffff16; border-color: #ffffff44; }
.cycle-button:focus-visible { outline-color: #c0f653; outline-offset: 4px; }
.cycle-button:disabled { color: #aeb7a6; }
#gauge-label { margin: 0; font-size: 12px; color: #aeb7a6; line-height: 1.45; }
@media (max-width: 1100px) {
  .charge-console { gap: 27px; padding: 28px; grid-template-columns: auto minmax(0,1fr) 188px; }
  .reserve-reading>strong { font-size: 58px; }
  .reserve-reading>span { font-size: 19px; }
  .charge-side { padding-left: 19px; }
}
@media (max-width: 850px) {
  .charge-console { grid-template-columns: 1fr 1fr; gap: 25px 30px; }
  .reserve-reading>strong { font-size: 64px; }
  .charge-side { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; align-items: center; border-left: 0; border-top: 1px solid #ffffff17; padding: 18px 0 0; gap: 5px 28px; }
  .charge-status { justify-content: flex-start; gap: 15px; }
  .charge-demo { border-left: 1px solid #ffffff26; padding-left: 15px; }
  .cycle-button { grid-column: 2; grid-row: 1/3; min-width: 173px; }
  #gauge-label { grid-column: 1; grid-row: 2; }
}
@media (max-width: 620px) {
  .charge-console { grid-template-columns: 1fr; border-radius: 25px; padding: 25px; gap: 23px; margin-top: 15px; margin-bottom: 18px; }
  .reserve-reading { margin-top: 12px; margin-bottom: 5px; }
  .reserve-reading>strong { font-size: clamp(56px,15vw,72px); }
  .reserve-reading>span { font-size: 22px; }
  .charge-window>p { font-size: 14px; }
  .charge-window>p br { display: none; }
  .charge-progress { margin-top: 15px; }
  .charge-side { grid-column: 1; gap: 5px 18px; }
  .cycle-button { min-width: 0; padding-inline: 12px; font-size: 12px; gap: 7px; }
  #gauge-label { max-width: 180px; }
}
@media (max-width: 380px) {
  .charge-console { padding: 23px 20px; }
  .charge-side { gap: 5px 12px; }
  .cycle-button { grid-column: 1/-1; grid-row: 3; margin-top: 10px; min-height: 44px; }
  #gauge-label { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #gauge-fill, .cycle-button, .charge-progress, .vial-liquid { transition: none; }
  .charge-progress[data-energized=true] .vial-energy, .charge-progress[data-energized=true] .energy-core { animation: none; }
  .charge-progress[data-energized=true] .vial-energy { opacity: .25; }
}

.charge-latest { font-size: 12px; color: #9eaa95; }
@media (max-width: 850px) { .charge-latest { grid-column: 1; font-size: 12px; } .charge-side .cycle-button { grid-row: 1/4; } }
@media (max-width: 380px) { .charge-side .cycle-button { grid-row: 4; } }
