/* Space estimator only. Discovery celebrations keep their own palette. */
.storage-site #calculator.packing-game:not([data-celebration]) {
  --estimate-blue: #033982;
  --estimate-ink: #142b49;
  --estimate-muted: #465b75;
  --estimate-line: #cfdbeb;
  --estimate-wash: #f4f8fd;
  background: linear-gradient(160deg, #edf4fc, #f8fbff 70%);
  padding-block: clamp(42px, 6vw, 82px);
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell {
  border-color: var(--estimate-line);
  border-radius: 18px;
  box-shadow: 0 14px 36px #142b490b;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-heading {
  border-top: 4px solid var(--estimate-blue);
  background: linear-gradient(105deg, #fff 34%, #f0f6fd);
}

.storage-site #calculator.packing-game:not([data-celebration]) .packing-tally {
  padding: 7px 12px;
  border: 1px solid #d2e0f1;
  border-radius: 999px;
  background: #fff;
  color: var(--estimate-blue);
  font-size: 14px;
  line-height: 1.4;
}

.storage-site #calculator.packing-game:not([data-celebration]) .discovery-tools {
  border-bottom: 1px solid var(--estimate-line);
  background: var(--estimate-wash);
}

.storage-site #calculator.packing-game:not([data-celebration]) .discovery-search {
  border-radius: 9px;
  background: #fff;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calc-tabs button {
  border-radius: 8px;
  font-weight: 650;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .calc-item {
  padding-inline: 8px;
  border-bottom-color: #e0e9f3;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .calc-item.is-packed {
  border-bottom-color: #bcd4ee;
  border-radius: 6px;
  background: #edf5ff;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .stepper button {
  border-radius: 8px;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .stepper button[data-step='1'] {
  background: var(--estimate-blue);
  border-color: var(--estimate-blue);
  color: #fff;
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .stepper button[data-step='1']:hover:not(:disabled) {
  background: #022b64;
  border-color: #022b64;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate {
  border-color: var(--estimate-line);
  background: var(--estimate-wash);
  scroll-margin-top: 16px;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .estimate-result {
  margin-bottom: 14px;
  border-color: var(--estimate-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .estimate-heading {
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom-color: #e0e9f3;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .estimate-heading > span:first-child {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--estimate-blue);
  font-size: 12px;
  letter-spacing: .1em;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .estimate-heading > span:first-child::before {
  width: 8px;
  height: 8px;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .estimate-primary {
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 750;
}

.storage-site #calculator.packing-game:not([data-celebration]) #space-estimate .packing-preview {
  padding: 10px 10px 8px;
  border-color: #e0eaf6;
  background: #f6faff;
}

.storage-site #calculator[data-estimate-state='empty']:not([data-celebration]) #space-estimate:has(.estimate-empty-note) :is(
  .estimate-primary-label, .estimate-primary, .estimate-start, .estimate-size-scale, .packing-preview figcaption
) {
  display: none;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-empty-note {
  color: var(--estimate-ink);
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-empty-note strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-empty-note p {
  margin: 6px 0 0;
  color: var(--estimate-muted);
  font-size: 14px;
  line-height: 1.5;
}

.storage-site #calculator[data-estimate-state='empty']:not([data-celebration]) #space-estimate .estimate-result:has(.estimate-empty-note) .packing-preview {
  margin-bottom: 0;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid var(--estimate-line);
  border-radius: 10px;
  background: #fff;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-metrics h4 {
  color: var(--estimate-ink);
  font-size: 12px;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-metrics .figure {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  white-space: nowrap;
}

.storage-site #calculator:not([data-celebration]) #space-estimate .estimate-metrics #calcCount {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--estimate-muted);
  font-size: 13px;
}

.storage-site #calculator:not([data-celebration]) #space-estimate :is(.estimate-empty-note, .estimate-metrics)[hidden] {
  display: none;
}

.storage-site #calculator.packing-game:not([data-celebration]) .estimate-jump {
  border-color: #c5d7eb;
  border-radius: 8px;
  background: #fff;
  color: var(--estimate-blue);
}

.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell :is(button, a, select, summary):focus-visible {
  outline: 2px solid var(--estimate-blue);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell {
    border-radius: 12px;
  }

  .storage-site #calculator.packing-game:not([data-celebration]) .calculator-heading {
    padding: 18px 15px;
  }

  .storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell #calcGroups {
    padding-inline: 13px;
  }

  .storage-site #calculator.packing-game:not([data-celebration]) #space-estimate {
    padding: 13px;
  }
}
