.calc-shell-section {
  padding: 0 0 24px;
}

.calc-shell {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius, 22px);
  border: 1px solid var(--line, rgba(31, 26, 22, 0.12));
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow, 0 18px 38px rgba(18, 22, 33, 0.08));
}

.calc-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-shell-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(11, 109, 197, 0.12));
  color: var(--accent, #0b6dc5);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.calc-shell-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.calc-shell-status.is-active {
  background: rgba(15, 138, 84, 0.12);
  color: var(--good, #0f8a54);
}

.calc-shell-status.is-base {
  background: rgba(11, 109, 197, 0.12);
  color: var(--accent, #0b6dc5);
}

.calc-shell-status.is-outdated {
  background: rgba(211, 90, 52, 0.12);
  color: #c74d26;
}

.calc-shell-status.is-history {
  background: rgba(91, 33, 153, 0.12);
  color: #5b2199;
}

.calc-shell-note {
  margin: 0;
  color: var(--muted, #5b6577);
  line-height: 1.6;
}

.calc-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-shell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 35, 64, 0.12);
  background: rgba(15, 35, 64, 0.04);
  color: var(--ink, #152033);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.calc-shell-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 35, 64, 0.2);
}

.calc-shell-link.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent, #0b6dc5) 0%, var(--accent-2, #1f82db) 100%);
  color: #fff;
  box-shadow: var(--button-shadow, 0 14px 24px rgba(11, 109, 197, 0.22));
}

.calc-runtime-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.calc-runtime-banner.is-active {
  background: rgba(15, 138, 84, 0.12);
  border: 1px solid rgba(15, 138, 84, 0.18);
  color: #0b6d43;
}

.calc-runtime-banner.is-outdated {
  background: rgba(211, 90, 52, 0.12);
  border: 1px solid rgba(211, 90, 52, 0.18);
  color: #a84524;
}

.calc-runtime-banner a {
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .calc-shell {
    padding: 16px;
  }

  .calc-shell-link {
    width: 100%;
  }
}
