.tank-grid {
  align-items: stretch;
}

.tank-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 16px;
  overflow: hidden;
}

.tank-card h2 {
  font-size: 16px;
}

.tank-heading-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tank-active-badge {
  background: #e4f1df;
  color: #146f54;
}

.tank-visual {
  position: relative;
  width: 100%;
  max-width: 410px;
  height: auto;
  aspect-ratio: 360 / 205;
  flex: none;
  margin: 12px auto 0;
}

.tank-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tank-stand {
  fill: #aab8b2;
  stroke: #81928a;
  stroke-width: 1.5;
}

.tank-card{position:relative;background:linear-gradient(155deg,#fff 0%,#fbfaf4 55%,#f1f6ed 100%);border-color:#dce6d9;box-shadow:0 14px 34px #11352b10}
.tank-card:before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:3px;border-radius:0 4px 4px 0;background:linear-gradient(#19ae9c,#91bf77)}
.tank-heading-meta .badge{background:#e5f0e8;color:#476d55}
.tank-heading-meta .tank-active-badge{background:#dceee5;color:#087b69}
.tank-outline{stroke:#809890}
.tank-end-seam{stroke:#9fafa4}
.tank-fill{filter:drop-shadow(0 -3px 4px #11a08b2c)}
.tank-reading{border-color:#c9ded2;background:#fffffff5;box-shadow:0 5px 18px #174b3930}
.tank-reading strong{color:#126853}
.tank-summary>div{position:relative;padding-left:12px}
.tank-summary>div:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:2px;background:#df8952}
.tank-role.active{color:#0a806d}
.tank-forecast{background:linear-gradient(110deg,#e5f3e9,#f3f2df);color:#426650;border:1px solid #d8e9d8}
.monthly-card{position:relative;overflow:hidden;background:linear-gradient(155deg,#f1ead7 0%,#e4e8d6 54%,#d9eee7 100%);border:1px solid #d7e2d2;box-shadow:0 15px 36px #233e2a13}
.monthly-card:after{content:"";position:absolute;width:210px;height:210px;right:-85px;top:-70px;border:1px solid #70987b31;border-radius:50%;box-shadow:0 0 0 18px #70987b0c,0 0 0 39px #70987b09;pointer-events:none}
.monthly-main strong{color:#185f54}
.monthly-main strong small{color:#45796a}
.month-comparisons li{border-color:#cbd9cc}
.month-comparisons li strong{color:#245b4b}
.monthly-history-link{color:#0e776b}

.tank-foot {
  fill: none;
  stroke: #7f9088;
  stroke-width: 4;
  stroke-linecap: round;
}

.tank-cover {
  fill: #e7eeeb;
  stroke: #91a39b;
  stroke-width: 2;
}

.tank-cover-detail {
  fill: none;
  stroke: #a5b3ad;
  stroke-width: 2;
  stroke-linecap: round;
}

.tank-outline {
  fill: none;
  stroke: #91a39b;
  stroke-width: 2;
}

.tank-end-seam {
  fill: none;
  stroke: #aebbb5;
  stroke-width: 1.4;
  opacity: .8;
}

.tank-fill {
  y: calc(183px - var(--fill, 0) * 1.43px);
  height: calc(var(--fill, 0) * 1.43px);
}

.tank-gloss {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .8;
}

.tank-reading {
  position: absolute;
  z-index: 2;
  top: 54.4%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px 5px;
  border: 1px solid #d7e3df;
  border-radius: 999px;
  background: #fffffff0;
  box-shadow: 0 1px 5px #17382e26;
}

.tank-reading strong {
  color: #174f48;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.tank-reading strong small {
  margin-left: 1px;
  font-size: .55em;
  letter-spacing: 0;
}

.tank-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px;
}

.tank-summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.8px;
  white-space: nowrap;
}

.tank-summary strong small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.tank-summary > .small {
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.method {
  min-height: 35px;
  margin: 12px 4px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.tank-visual-empty {
  display: grid;
  place-items: center;
}

.tank-visual-empty svg {
  opacity: .68;
}

.tank-visual-empty > span {
  position: absolute;
  padding: 7px 13px;
  border: 1px solid #d5dfda;
  border-radius: 999px;
  background: #ffffffdf;
  color: #53645c;
  font-size: 13px;
  font-weight: 600;
}

.tank-summary-empty {
  margin-top: 2px;
}

.tank-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 4px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tank-role {
  color: var(--muted);
  font-size: 11px;
}

.tank-role.active {
  color: var(--green);
  font-weight: 650;
}

.tank-switch-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 10px;
}

.tank-forecast {
  display: grid;
  gap: 2px;
  margin: 10px 4px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5e9;
  color: #365b43;
  font-size: 11px;
}

.tank-forecast strong {
  font-size: 13px;
}

.monthly-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 26px;
  background: #edf3e8;
}

.monthly-card h2 {
  margin-top: 8px;
  font-size: 18px;
}

.monthly-main {
  display: grid;
  gap: 2px;
  margin: 22px 0 8px;
}

.monthly-main strong {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}

.monthly-main strong small {
  font-size: 15px;
  letter-spacing: 0;
}

.monthly-main > span {
  color: #55745d;
  font-size: 13px;
}

.monthly-card > .small {
  font-size: 10px;
}

.comparison-title {
  margin-top: 24px;
  font-size: 13px;
}

.month-comparisons {
  display: grid;
  gap: 0;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.month-comparisons li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 9px 0;
  border-bottom: 1px solid #dce6d8;
  font-size: 12px;
}

.month-comparisons li strong {
  font-variant-numeric: tabular-nums;
}

.month-comparisons li small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.month-comparisons .comparison-empty {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.monthly-history-link {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .tank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .overview-grid .monthly-card {
    order: -1;
  }

  .tank-card {
    padding: 17px 15px 13px;
  }

  .tank-visual {
    max-width: 420px;
    margin-top: 8px;
  }

  .tank-summary {
    align-items: center;
  }

  .monthly-card {
    padding: 20px;
  }

  .tank-summary strong {
    font-size: 23px;
  }

  .method {
    font-size: 9px;
  }
}
