/* ==========================================================================
   LASKURI.CSS (siistitty + korjattu)
   - Ei muuteta toiminnallista logiikkaa / layoutin perusideaa
   - Poistettu päällekkäiset/yliajetut kohdat (mm. mobiilin duplikaatit)
   - Desktop: smooth fade + stagger (vain >=761px)
   - Mobiili: slide-out + slide-in toimii (ei item-transform resettiä)
   - Toggle: desktopissa vasemman palstan levyinen (koska toggle on layoutin ulkopuolella)
   - Summary: nostettu togglen tasolle desktopissa
   Breakpointit:
   - default (desktop perus)
   - >=1024px (iso layout: 420px sidebar)
   - <=1100px (1 sarake)
   - <=760px  (mobiili)
   ========================================================================== */

/* ── Base ────────────────────────────────────────────────────────────────── */

* { -webkit-tap-highlight-color: transparent; }

/* ── Logo ────────────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.logo-image {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 12px;
  transform: translateY(8px);
}

.logo-text-image {
  height: 27px;
  width: auto;
  display: block;
  margin-left: -4px;
  transform: translateY(11px);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.calculator-shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  transform: none;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.6rem;
  align-items: start;
}

.calculator-main {
  min-width: 0;
  max-width: 100%;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ── Cards (items) ───────────────────────────────────────────────────────── */

.calc-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.88));
  border: 1px solid rgba(16, 35, 51, 0.08);
  border-radius: 20px;
  padding: 0.95rem;
  box-shadow: 0 16px 34px rgba(16, 35, 51, 0.07);
  display: grid;
  gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(16, 35, 51, 0.09);
  border-color: rgba(20, 163, 199, 0.18);
}

.calc-item h3 {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.calc-item-note {
  margin: -0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* ── Illustration ───────────────────────────────────────────────────────── */

.calc-illustration {
  height: 98px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(83, 208, 237, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(240, 247, 252, 0.92));
  border: 1px solid rgba(16, 35, 51, 0.06);
  overflow: hidden;
  position: relative;
}

.calc-illustration::before {
  content: "";
  position: absolute;
  inset: 18px 26px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(247, 250, 253, 0.78));
  filter: blur(4px);
  z-index: 0;
}

.calc-image {
  position: relative;
  z-index: 1;
  max-width: 72px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(16, 35, 51, 0.06));
  mix-blend-mode: multiply;
}

.calc-image-wide { max-width: 94px; }

/* ── Controls ────────────────────────────────────────────────────────────── */

.calc-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.45rem;
  align-items: center;
}

.calc-btn {
  min-height: 40px;
  min-width: 40px;
  border: 1px solid rgba(20, 163, 199, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237,246,251,0.96));
  color: var(--primary-dark);
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(16, 35, 51, 0.05);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.calc-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 163, 199, 0.24);
  box-shadow: 0 12px 24px rgba(20, 163, 199, 0.10);
}

.calc-btn:active { transform: scale(0.97); }

.calc-value {
  min-height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,35,51,0.03), rgba(16,35,51,0.05));
  border: 1px solid rgba(16, 35, 51, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ── Summary ─────────────────────────────────────────────────────────────── */

.calculator-summary {
  position: sticky;
  top: 100px;
  padding-left: 0.25rem;
}

/* Desktop: nosta summary togglen tasolle */


.summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,255,0.93));
  border: 1px solid rgba(16, 35, 51, 0.08);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgba(16, 35, 51, 0.08);
  display: grid;
  gap: 0.9rem;
  will-change: height;
}

.summary-label {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.summary-price {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
}

.summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.summary-breakdown {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(16, 35, 51, 0.04);

  max-height: 600px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.summary-breakdown.is-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.summary-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  color: var(--text);
}

.summary-row span:last-child { font-weight: 700; }

#totalPriceDeduction {
  max-height: 40px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

#totalPriceDeduction.is-hidden {
  max-height: 0;
  opacity: 0;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.calculator-heading {
  margin-bottom: 1.4rem;
  max-width: 100%;
}

.calculator-heading .eyebrow {
  margin-bottom: 0.55rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
}

.calculator-heading h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.calculator-heading p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.55;
}

main.section {
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}

/* ── Quick help pill ─────────────────────────────────────────────────────── */

:root { --calc-heading-gap: 0.95rem; }

.calc-quick-help {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  margin-bottom: var(--calc-heading-gap);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 163, 199, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(245, 251, 255, 0.50) 55%, rgba(237, 246, 251, 0.72) 100%),
    linear-gradient(180deg, rgba(20, 163, 199, 0.08), rgba(20, 163, 199, 0.05));
  cursor: pointer;
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 850;
  font-size: 0.95rem;
  line-height: 1.25;
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.calc-quick-help:hover {
  border-color: rgba(20, 163, 199, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(245, 251, 255, 0.56) 55%, rgba(237, 246, 251, 0.78) 100%),
    linear-gradient(180deg, rgba(20, 163, 199, 0.11), rgba(20, 163, 199, 0.07));
  box-shadow: 0 14px 28px rgba(16, 35, 51, 0.08);
  transform: translateY(-1px);
}

.calc-quick-help:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);
}

.calc-quick-help:focus-visible {
  outline: 3px solid rgba(20, 163, 199, 0.22);
  outline-offset: 3px;
  border-radius: 999px;
}

.calc-quick-help__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(20,163,199,0.16));
  border: 1px solid rgba(20, 163, 199, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 6px 12px rgba(16, 35, 51, 0.08);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.calc-quick-help__text {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── Customer type toggle ───────────────────────────────────────────────── */

.calc-customer-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;

  margin-top: 0;
  margin-bottom: var(--calc-heading-gap);
  padding: 0.35rem;

  width: 100%;
  max-width: 100%;

  border-radius: 999px;
  border: 1px solid rgba(20, 163, 199, 0.18);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);

  position: relative;
  isolation: isolate;
}

/* liukuva highlight */
.calc-customer-toggle::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 163, 199, 0.22), rgba(20, 163, 199, 0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.calc-customer-toggle.is-company::before { transform: translateX(100%); }

.calc-toggle-btn {
  border: 0;
  cursor: pointer;

  padding: 0.55rem 0.8rem;
  border-radius: 999px;

  font-family: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.01em;

  color: rgba(16, 35, 51, 0.72);
  background: transparent;

  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  touch-action: manipulation;

  flex: 1;
  text-align: center;

  position: relative;
  z-index: 1;
}

.calc-toggle-btn:hover {
  background: rgba(20, 163, 199, 0.10);
  color: rgba(16, 35, 51, 0.92);
}

.calc-toggle-btn:active { transform: scale(0.99); }

.calc-toggle-btn.is-active {
  background: transparent;
  box-shadow: none;
  color: var(--primary-dark);
}

/* ── Modal (ohjekortti) ──────────────────────────────────────────────────── */

:root { --modal-safe: 2.25rem; } /* desktop */
@media (max-width: 1100px) { :root { --modal-safe: 1.5rem; } }
@media (max-width: 760px)  { :root { --modal-safe: 0.9rem; } }

.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.calc-modal.is-open { display: block; }

.calc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.calc-modal__card {
  position: relative;

  width: min(
    1100px,
    calc(100vw - (var(--modal-safe) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right))
  );
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--modal-safe) + env(safe-area-inset-top));
  max-height: calc(
    100vh - (var(--modal-safe) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );

  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,255,0.94));
  border: 1px solid rgba(16, 35, 51, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  padding: 1.35rem 1.35rem 1.25rem;
  outline: none;

  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 0.9rem;
}

.calc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.calc-modal__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--text);
}

.calc-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(16, 35, 51, 0.10);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.16s ease;
}

.calc-modal__close:hover { border-color: rgba(20, 163, 199, 0.28); }
.calc-modal__close:active { transform: scale(0.98); }

.calc-modal__body {
  color: var(--text);
  overflow: auto;
  padding-top: 0.6rem;
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}

.calc-modal__list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  display: grid;
  gap: 0.5rem;
}

.calc-modal__list li::marker {
  font-weight: 950;
  color: var(--primary-dark);
}

.calc-modal.is-open .calc-modal__card {
  animation: modalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalPopIn {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.calc-modal.is-closing .calc-modal__card {
  animation: modalPopOut 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.calc-modal.is-closing .calc-modal__backdrop {
  animation: modalFadeOut 0.18s ease forwards;
}

@keyframes modalPopOut {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to   { transform: translateY(10px) scale(0.98); opacity: 0; }
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (min-width: 900px) {
  .calc-modal__title {
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  .calc-modal__list {
    column-count: 1;
    column-gap: 3rem;
    font-size: 1.18rem;
    line-height: 1.85;
    display: block;
  }

  .calc-modal__list li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 1.05rem;
  }
}

/* ── Floating bar ────────────────────────────────────────────────────────── */

.floating-price-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.floating-price-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-price-inner {
  width: min(100%, 900px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 35, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 35, 51, 0.12);
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.floating-price-copy { display: grid; gap: 0.15rem; }

.floating-price-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.floating-price-value {
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.floating-price-btn {
  min-height: 44px;
  white-space: nowrap;
  padding-inline: 1rem;
}

/* ── Animations ──────────────────────────────────────────────────────────── */

.price-fade {
  animation: priceFadeSwap 0.22s ease;
  will-change: opacity, transform, filter;
}

@keyframes priceFadeSwap {
  0% { opacity: 0.55; transform: translateY(2px); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Gridin vaihtoanimaatiot */
#calculatorGrid { will-change: transform, opacity; }

/* Desktop/tablet: fade + stagger (vain desktop, ettei mobiili saa delayta) */
@media (min-width: 761px) {
  #calculatorGrid.is-fading-in .calc-item {
    opacity: 0;
    transform: translate3d(0, 6px, 0) translateZ(0);
    animation: gridFadeIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
    backface-visibility: hidden;
    contain: paint;
  }

  #calculatorGrid.is-fading-in .calc-item:nth-child(1) { animation-delay: 0ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(2) { animation-delay: 40ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(3) { animation-delay: 80ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(4) { animation-delay: 120ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(5) { animation-delay: 160ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(6) { animation-delay: 160ms; }
}

@keyframes gridFadeIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ── Breakpoints ─────────────────────────────────────────────────────────── */

/* >=1024px (iso layout) */
@media (min-width: 1024px) {
  .calculator-shell {
    max-width: 1360px;
    margin-inline: auto;
    transform: translateX(-11px);
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.8rem;
  }

  .calculator-summary { padding-left: 0; }
}

/* <=1100px (2 col -> 1 col) */
@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }

  .calculator-summary {
    position: static;
    top: auto;
    padding-left: 0;
    margin-top: 0;
  }

  .calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* <=760px (mobiili) */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }

  body { padding-top: calc(env(safe-area-inset-top, 0px) + 3.2rem); }

  .calculator-layout { grid-template-columns: 1fr; gap: 1rem; }

  .calculator-summary {
    position: static;
    top: auto;
    padding-left: 0;
    margin-top: 0;
  }

  main.section { padding-top: 4rem; }

  .calculator-grid { grid-template-columns: 1fr; gap: 1rem; }

  .calc-item { width: 100%; padding: 1rem; }
  .calc-illustration { height: 118px; }
  .calc-image { max-width: 84px; max-height: 84px; }
  .calc-image-wide { max-width: 102px; }

  .calc-controls { grid-template-columns: 44px 1fr 44px; }
  .calc-btn, .calc-value { min-height: 42px; }

  .summary-card { padding: 1rem; }

  .calculator-heading h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1;
  }

  .calculator-heading p { font-size: 0.95rem; }

  .floating-price-inner {
    width: 100%;
    padding: 0.8rem 0.85rem;
    gap: 0.75rem;
  }

  .floating-price-value { font-size: 1.15rem; }

  .floating-price-btn {
    min-height: 42px;
    padding-inline: 0.9rem;
    font-size: 0.95rem;
  }

  /* Modal mobile */
  .calc-modal__header { margin-bottom: 0.85rem; }

  .calc-modal__body {
    padding-top: 0.4rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .calc-modal__card {
    margin: calc(5.5rem + env(safe-area-inset-top)) auto calc(2.25rem + env(safe-area-inset-bottom));
    max-height: calc(100vh - 10.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 22px;
    padding: 1.05rem;
  }

  .calc-modal__list li { margin-bottom: 0.85rem; }
  .calc-modal__list li:last-child { margin-bottom: 0; }

  /* Mobiili: grid-vaihto (slide out/in) */
  #calculatorGrid { will-change: transform, opacity; }

  /* OUT */
  #calculatorGrid.is-sliding-out.slide-left {
    transform: translate3d(-22px, 0, 0);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  #calculatorGrid.is-sliding-out.slide-right {
    transform: translate3d(22px, 0, 0);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  /* IN start */
  #calculatorGrid.is-sliding-in.slide-left {
    transform: translate3d(-22px, 0, 0);
    opacity: 0;
    transition: none;
  }

  #calculatorGrid.is-sliding-in.slide-right {
    transform: translate3d(22px, 0, 0);
    opacity: 0;
    transition: none;
  }

  /* IN animate */
  #calculatorGrid.is-sliding-in.is-fading-in {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }

  /* Mobiili: nollaa mahdolliset desktop-delayt (varmistus) */
  #calculatorGrid.is-fading-in .calc-item { animation-delay: 0ms !important; }
}

/* ── Desktop background + logo scaling ───────────────────────────────────── */

@media (min-width: 761px) {
  .logo-image {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    max-width: 68px;
    max-height: 68px;
    transform: translateY(-1px);
  }

  .logo-text-image {
    height: 33px;
    transform: translateY(2px);
  }

  html {
    scroll-behavior: smooth;
    background:
      radial-gradient(ellipse 140% 70% at 0% 0%, rgba(235, 240, 250, 0.98) 0%, rgba(215, 225, 242, 0.80) 20%, rgba(190, 205, 232, 0.45) 40%, transparent 62%),
      radial-gradient(ellipse 110% 60% at 100% 0%, rgba(210, 215, 242, 0.92) 0%, rgba(185, 190, 228, 0.68) 22%, rgba(158, 165, 215, 0.35) 42%, transparent 58%),
      radial-gradient(ellipse 100% 45% at 50% 0%, rgba(245, 246, 255, 0.88) 0%, rgba(228, 228, 250, 0.55) 28%, transparent 58%),
      radial-gradient(ellipse 80% 55% at 15% 45%, rgba(210, 218, 242, 0.55) 0%, rgba(188, 195, 228, 0.28) 35%, transparent 62%),
      radial-gradient(ellipse 70% 45% at 85% 40%, rgba(165, 162, 218, 0.52) 0%, rgba(140, 138, 205, 0.28) 30%, transparent 58%),
      radial-gradient(ellipse 60% 50% at 70% 60%, rgba(98, 80, 160, 0.28) 0%, rgba(118, 95, 175, 0.14) 35%, transparent 62%),
      radial-gradient(ellipse 50% 40% at 25% 75%, rgba(88, 72, 155, 0.22) 0%, rgba(108, 88, 168, 0.12) 32%, transparent 58%),
      radial-gradient(ellipse 80% 60% at 50% 100%, rgba(28, 28, 105, 0.90) 0%, rgba(52, 48, 138, 0.58) 30%, transparent 62%),
      radial-gradient(ellipse 60% 40% at 80% 70%, rgba(48, 42, 118, 0.68) 0%, rgba(70, 62, 148, 0.36) 28%, transparent 56%),
      linear-gradient(165deg,
        #e2e9f6 0%,
        #d4dff2 8%,
        #c0cfec 16%,
        #a8b8e2 26%,
        #8e9ed8 36%,
        #7484c8 46%,
        #5e6ab8 56%,
        #4c54a8 66%,
        #3a3e92 76%,
        #2a2c7e 86%,
        #1e1e6a 100%
      );
    background-attachment: fixed;
  }

  .calc-customer-toggle,
  .calc-quick-help { max-width: 100%; }

  .calc-customer-toggle {
    padding: 0.4rem;
    gap: 0.4rem;
  }

  .calc-toggle-btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  .calc-customer-toggle:has(.calc-toggle-btn:active) .calc-toggle-btn:hover {
    background: transparent;
  }

  .calc-toggle-btn:active {
    transition-duration: 0.05s;
    background: transparent;
  }
}

/* Desktop: toggle vasemman palstan levyiseksi (toggle on layoutin ulkopuolella) */
@media (min-width: 761px) {
  .calc-customer-toggle {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Toggle: icon + label */
.calc-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.calc-toggle-btn__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: currentColor; /* ikoni ottaa saman värin kuin teksti */
  opacity: 0.95;
}

/* Person icon */
.calc-toggle-btn[data-customer="private"] .calc-toggle-btn__icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.25 4.25 0 1 0-4.25-4.25A4.25 4.25 0 0 0 12 12Zm0 2.25c-4.42 0-8 2.33-8 5.2V21h16v-1.55c0-2.87-3.58-5.2-8-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.25 4.25 0 1 0-4.25-4.25A4.25 4.25 0 0 0 12 12Zm0 2.25c-4.42 0-8 2.33-8 5.2V21h16v-1.55c0-2.87-3.58-5.2-8-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Building icon */
.calc-toggle-btn[data-customer="company"] .calc-toggle-btn__icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V3h12v18h-2v-2h-2v2H10v-2H8v2H6v-2H4Zm4-4h2v-2H8v2Zm0-4h2v-2H8v2Zm0-4h2V7H8v2Zm4 8h2v-2h-2v2Zm0-4h2v-2h-2v2Zm0-4h2V7h-2v2Zm6 12v-9h2v9h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V3h12v18h-2v-2h-2v2H10v-2H8v2H6v-2H4Zm4-4h2v-2H8v2Zm0-4h2v-2H8v2Zm0-4h2V7H8v2Zm4 8h2v-2h-2v2Zm0-4h2v-2h-2v2Zm0-4h2V7h-2v2Zm6 12v-9h2v9h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ohje-modal: numeroi rivit itse ja jätä otsikot ilman numeroa */
.calc-modal__list--numbered {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.calc-modal__list--numbered > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem; /* tila numerolle */
}

.calc-modal__list--numbered > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 950;
  color: var(--primary-dark);
}

/* Otsikot: ei numeroa, ei laskurin incrementtiä, vahvempi tyyli */
.calc-modal__list--numbered > li.is-heading {
  counter-increment: none;
  padding-left: 0;
  font-weight: 950;
  color: var(--text);
  margin-top: 0.35rem;
}

.calc-modal__list--numbered > li.is-heading::before {
  content: none;
}

.calc-top-controls {
  display: grid;
  gap: 0.9rem;
  margin-bottom: var(--calc-heading-gap);
}

/* Desktop: toggle + pesunappi samalle riville, ja sama leveyslogiikka kuin ennen */
@media (min-width: 761px) {
  .calc-top-controls {
    grid-template-columns: 1fr 360px; /* default sidebar 360 */
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .calc-top-controls {
    grid-template-columns: 1fr 420px; /* iso layout sidebar 420 */
  }
}

/* Tee pesunapista nätisti täysi leveys omassa sarakkeessa */
.calc-top-controls #insideOutsideBtn {
  width: 100%;
  margin: 0;
}

/* Pesunappi: näytä desktopissa yläversio, mobiilissa layoutin väliin tuleva */
.inside-outside-btn--mobile { display: none; }

@media (max-width: 760px) {
  .inside-outside-btn--top { display: none; }
  .inside-outside-btn--mobile { display: inline-flex; width: 100%; margin: 0 0 1rem; }
}

@media (min-width: 761px) {
  /* toggle ei saa venyä yli vasemman palstan (3 kortin alueen) */
  .calc-top-controls {
    width: 100%;
    max-width: 100%;
  }

  /* koska toggle on 1fr-sarakkeessa, se on ok – mutta varmistetaan ettei mikään muu yliaja */
  .calc-top-controls .calc-customer-toggle {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

.summary-note .info-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#14A3C7;            /* sama sininen kuin teeman primary */
  color:#fff;
  font-weight:900;
  font-size:12px;
  line-height:1;
  margin-right:8px;
  transform:translateY(-1px);    /* optinen kohdistus tekstin kanssa */
  flex:0 0 auto;
}

.summary-note .info-text{
  display:inline; /* pitää saman tekstivirran */
}

.summary-note--withicon{
  display:flex;
  align-items:flex-start;  /* badge ylös, teksti alkaa samalta “yläriviltä” */
  gap:10px;
}

.summary-note--withicon .info-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#14A3C7;
  color:#fff;
  font-weight:900;
  font-size:12px;
  line-height:1;
  margin-top:2px;          /* hienosäätö: asettuu ekalle riville nätisti */
  flex:0 0 18px;           /* estää venymisen ja pitää tilan vakiona */
}

/* Pesunappien wrapper (top + mobile): 2 nappia samalle riville */
.inside-outside-btn-group{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% + 50% */
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

/* nappien leveys: täyttää oman sarakkeensa, ei enempää */
.inside-outside-btn-group .inside-outside-btn{
  width: 100%;
  max-width: none;
  justify-content: center;
}

/* jos vanha CSS pakottaa jotain outoa (block/max-width) */
.inside-outside-btn-group .time-pref-toggle{
  width: 100%;
  max-width: none;
}

/* tekstit pysyy siististi yhdellä rivillä */
.inside-outside-btn-group .time-pref-toggle-text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Mobiili: pesunapit siististi, samat leveydet + normaali gap ===== */
@media (max-width: 760px) {
  .inside-outside-btn-group--mobile { margin: 1rem 0 1rem; }
}

@media (max-width: 760px) {
  .calc-customer-toggle {
    margin-bottom: 0rem; /* säädä esim. 0.35rem–0.65rem */
  }
}

@media (max-width: 760px) {
  /* pienennä nimenomaan togglen jälkeistä väliä */
  .calc-top-controls {
    margin-bottom: 0.35rem !important; /* kokeile 0.2–0.4rem */
  }

  /* poista togglen oma mb kokonaan (varmistus) */
  .calc-customer-toggle {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 761px) {
  #calculatorGrid.is-fading-in .calc-item:nth-child(1) { animation-delay: 0ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(2) { animation-delay: 30ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(3) { animation-delay: 60ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(4) { animation-delay: 90ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(5) { animation-delay: 120ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(6) { animation-delay: 150ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(7) { animation-delay: 180ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(8) { animation-delay: 210ms; }
  #calculatorGrid.is-fading-in .calc-item:nth-child(9) { animation-delay: 240ms; }
}

/* Desktop: modal keskelle (tasainen ylä/ala gap) */
@media (min-width: 761px) {
  .calc-modal.is-open {
    display: flex;              /* override: oli display:block */
    align-items: center;
    justify-content: center;
    padding: var(--modal-safe);
  }

  .calc-modal__card {
    margin: 0;                  /* poista nykyinen margin-top */
    max-height: calc(100vh - (var(--modal-safe) * 2));
  }
}

/* Quick help: aina 1 rivi, EI ellipsiä -> pienennä fonttia tarvittaessa */
.calc-quick-help__text{
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0;
}

@media (max-width: 760px){
  .calc-quick-help{
    /* pienempi overall, auttaa iPhoneilla */
    font-size: clamp(0.78rem, 3.6vw, 0.95rem) !important;
  }

  .calc-quick-help__text{
    /* varmistus ettei alaviiva aiheuta outoa wrap */
    text-decoration-thickness: 1px;
  }
}

/* Lukitse taustasivun scroll kun modal on auki (mutta modalin sisällä voi scrollata) */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* iOS Safari: estää taustan "rubber band" -scrollausta paremmin */
body.modal-open {
  position: fixed !important;
  width: 100% !important;
}

.calc-high-question{
  position: absolute;
  inset: 0;
  z-index: 3;                    /* kuvan ja ::before-overlayn yläpuolelle */
  display: grid;
  place-items: center;
  padding: 0.55rem;              /* antaa “turva-alueen” ettei osu reunoihin */
  box-sizing: border-box;
}

/* Sisäblokki: rajoitetaan leveys jotta ei leviä oudosti */
.calc-high-question__wrap{
  width: 100%;
  max-width: 230px;              /* pitää kokonaisuuden kasassa */
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  box-sizing: border-box;
}

.calc-high-question__title{
  margin: 0;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(16,35,51,0.92);
}

/* Rivi: input + yksikkö, EI ikinä veny reunoihin */
.calc-high-question__row{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: auto;
  max-width: 100%;
}

/* Input: kevyt outline kuten kuva-alueessa */
.calc-high-question__input{
  width: 120px;                  /* lyhyempi */
  height: 34px;
  border-radius: 999px;

  border: 1px solid rgba(16, 35, 51, 0.06);
  background: rgba(255,255,255,0.78);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 10px 20px rgba(16, 35, 51, 0.07);

  padding: 0 0.65rem;
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: rgba(16,35,51,0.92);

  outline: none;
  box-sizing: border-box;
}

.calc-high-question__input::placeholder{
  color: rgba(16,35,51,0.40);
  font-weight: 800;
}

/* Focus: kevyt teeman mukainen halo */
.calc-high-question__input:focus{
  border-color: rgba(20,163,199,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 24px rgba(20,163,199,0.10),
    0 0 0 3px rgba(20,163,199,0.10);
}

/* Yksikkö: ei reunassa, hieman “sisään” */
.calc-high-question__unit{
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(16,35,51,0.58);
  padding-right: 0.25rem;        /* tuo m irti aivan oikeasta reunasta */
  line-height: 1;
}

/* Error: selkeä mutta ei “paksu” */
.calc-high-question__input.is-error{
  border-color: rgba(220,38,38,0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 3px rgba(220,38,38,0.11),
    0 10px 20px rgba(16, 35, 51, 0.07) !important;
}

/* Error-teksti: aina näkyvä, 2 riviä */
.calc-high-question__error{
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 850;
  color: rgba(220,38,38,0.92);
  max-width: 220px;
  white-space: normal;           /* saa rivittyä */
}

/* VARMA: jos input-luokka ei riitä, punainen myös riville */
.calc-high-question__row.is-error .calc-high-question__input{
  border-color: rgba(220,38,38,0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 3px rgba(220,38,38,0.12),
    0 10px 20px rgba(16, 35, 51, 0.07) !important;
}

/* Desktop: älä näytä error-tekstiä ollenkaan */
@media (min-width: 761px){
  .calc-high-question__error{ display: none !important; }
}

@media (max-width: 760px){
  .calc-high-question{
    padding: 0.7rem;
  }

  .calc-high-question__wrap{
    max-width: 280px;
    gap: 0.5rem;
  }

  .calc-high-question__title{
    font-size: 1.02rem;
    line-height: 1.15;
  }

  .calc-high-question__row{
    gap: 0.75rem;
  }

  .calc-high-question__input{
    width: 150px;
    height: 40px;
    font-size: 1.08rem;
    padding: 0 0.85rem;
  }

  .calc-high-question__unit{
    font-size: 1.02rem;
    padding-right: 0.35rem;
  }

  .calc-high-question__error{
    font-size: 0.92rem;
    line-height: 1.25;
    max-width: 260px;
    margin-top: 0.15rem;
  }
}

@media (min-width: 761px){

  /* Dock-kortti */
  #highWindowDock{
    margin-top: 18px;
    padding: 18px 8px 16px; /* lopputulos sama kuin: padding:18px 18px 16px + myöhempi padding-inline:8px */
    border-radius: 22px;

    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,251,255,0.70));
    border: 1px solid rgba(16,35,51,0.08);
    box-shadow:
      0 18px 44px rgba(16,35,51,0.10),
      inset 0 1px 0 rgba(255,255,255,0.85);

    text-align: center;
  }

  /* Dockissa highq ei saa olla overlay/absolute */
  #highWindowDock .calc-high-question{
    position: static !important;
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
    place-items: initial !important;
  }

  #highWindowDock .calc-high-question__wrap{
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto;
    gap: 10px;
  }

  #highWindowDock .calc-high-question__title{
    font-size: 1.02rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    color: rgba(16,35,51,0.92);
    margin-bottom: 2px;
  }

  /* “1 kpl” -rivi (tämä oli sun seteissä gridiksi pakotettu) */
  #highWindowDock .calc-high-question__row{
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(16,35,51,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);

    width: 100%;
    max-width: 360px;
    margin: 6px auto 0;

    grid-auto-flow: column;
    justify-content: center;
  }

  /* pseudo-label poistetaan lopullisen tilanteen mukaisesti */
  #highWindowDock .calc-high-question__row::before{
    content: none !important;
  }

  #highWindowDock .calc-high-question__input{
    width: 96px;
    height: 38px;
    justify-self: end;

    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(16,35,51,0.10);
    box-shadow:
      0 10px 22px rgba(16,35,51,0.08),
      inset 0 1px 0 rgba(255,255,255,0.85);
    font-size: 1.08rem;
  }

  #highWindowDock .calc-high-question__unit{
    font-size: 1.02rem;
    padding-right: 0 !important;

    justify-self: end;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
  }

  /* Lista (2 per rivi) */
  #highWindowDock .calc-high-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 6px;

    width: 100% !important;
    max-width: none !important;
    justify-items: stretch;
  }

  #highWindowDock .calc-high-row{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(16,35,51,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);

    width: 100% !important;
    justify-self: stretch;
  }

  #highWindowDock .calc-high-row__label{
    font-weight: 900;
    font-size: 0.95rem;
    color: rgba(16,35,51,0.82);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #highWindowDock .calc-high-row__inputwrap{
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  #highWindowDock .calc-high-row__input{
    width: 96px;
    height: 38px;
    border-radius: 999px;
    text-align: center;
    font-weight: 950;

    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(16,35,51,0.10);
    box-shadow:
      0 8px 18px rgba(16,35,51,0.08),
      inset 0 1px 0 rgba(255,255,255,0.9);
    outline: none;
  }

  #highWindowDock .calc-high-row__unit{
    font-weight: 900;
    color: rgba(16,35,51,0.60);
  }

  #highWindowDock .calc-high-sep{
    margin: 10px 0 6px;
    font-size: 0.92rem;
    font-weight: 900;
    color: rgba(16,35,51,0.65);
    text-align: center;
    letter-spacing: -0.01em;
  }

  #highWindowDock .calc-high-togglebtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 12px auto 6px;
    padding: 10px 16px;
    border-radius: 999px;

    border: 1px solid rgba(16,35,51,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(240,248,255,0.72));
    box-shadow:
      0 12px 26px rgba(16,35,51,0.10),
      inset 0 1px 0 rgba(255,255,255,0.90);

    color: rgba(13,125,153,0.95);
    font-weight: 950;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-decoration: none;

    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  #highWindowDock .calc-high-togglebtn:hover{
    transform: translateY(-1px);
    border-color: rgba(20,163,199,0.28);
    box-shadow:
      0 16px 34px rgba(16,35,51,0.12),
      inset 0 1px 0 rgba(255,255,255,0.92);
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(235,247,255,0.78));
  }

  #highWindowDock .calc-high-togglebtn:active{
    transform: translateY(0) scale(0.99);
  }

  #highWindowDock .calc-high-togglebtn:focus-visible{
    outline: none;
    box-shadow:
      0 0 0 4px rgba(20,163,199,0.16),
      0 16px 34px rgba(16,35,51,0.12),
      inset 0 1px 0 rgba(255,255,255,0.92);
  }
}

/* jos listaa on paljon, tiputa 1 sarakkeeseen ettei mene ahtaaksi */
@media (min-width: 761px) and (max-width: 1100px){
  #highWindowDock .calc-high-list{
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px){
  /* iso laatikko */
  #highWindowDock .calc-high-question__row{
    width: min(420px, 100%) !important; /* varmistus: ei yli containerin */
    overflow: hidden;                  /* estää ulos valumisen */
    box-sizing: border-box;
  }

  /* oikea puoli (input + m) ei saa venyttää laatikkoa yli */
  #highWindowDock .calc-high-question__input{
    max-width: 100%;
    box-sizing: border-box;
  }

  #highWindowDock .calc-high-question__unit{
    white-space: nowrap;
  }
}

/* Piiloon kun ei ole valittuna yhtään korkeaa ikkunaa */
#highWindowDock:has(.calc-high-list:empty):has(.calc-high-question__row:empty),
#highWindowDock:has(.calc-high-list:empty):not(:has(.calc-high-question__row)),
#highWindowDock:not(:has(.calc-high-list *)):not(:has(.calc-high-question__row *)){
  display: none !important;
}

@media (min-width: 761px){
  #highWindowDock .calc-high-row__input{
    width: 120px;       /* oli 96px */
  }
}

@media (min-width: 761px){
  /* iso laatikko keskelle ja leveämmäksi */
  #highWindowDock .calc-high-question__wrap .calc-high-question__row{
    width: min(520px, 100%) !important;  /* oli ~340/360 */
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;  /* sisältö keskelle */
  }

  /* itse kirjoituslaatikko leveämmäksi */
  #highWindowDock .calc-high-question__wrap .calc-high-question__input{
    width: 260px !important;             /* säädä 220–320 */
    max-width: 100%;
    text-align: center;
  }
}

/* Tee high-dock nappi saman tyyliseksi kuin .calc-quick-help */
@media (min-width: 761px){
  #highWindowDock .calc-high-togglebtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    padding: 0.55rem 0.85rem !important;
    border-radius: 999px !important;

    border: 1px solid rgba(20, 163, 199, 0.22) !important;
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(245, 251, 255, 0.50) 55%,
        rgba(237, 246, 251, 0.72) 100%
      ),
      linear-gradient(180deg,
        rgba(20, 163, 199, 0.08),
        rgba(20, 163, 199, 0.05)
      ) !important;

    box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06) !important;

    color: var(--primary-dark) !important;
    font-family: inherit !important;
    font-weight: 850 !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;

    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition:
      transform 0.16s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease,
      color 0.18s ease;
  }

  #highWindowDock .calc-high-togglebtn:hover{
    border-color: rgba(20, 163, 199, 0.34) !important;
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(245, 251, 255, 0.56) 55%,
        rgba(237, 246, 251, 0.78) 100%
      ),
      linear-gradient(180deg,
        rgba(20, 163, 199, 0.11),
        rgba(20, 163, 199, 0.07)
      ) !important;

    box-shadow: 0 14px 28px rgba(16, 35, 51, 0.08) !important;
    transform: translateY(-1px);
  }

  #highWindowDock .calc-high-togglebtn:active{
    transform: translateY(0) scale(0.99);
    box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06) !important;
  }

  #highWindowDock .calc-high-togglebtn:focus-visible{
    outline: 3px solid rgba(20, 163, 199, 0.22) !important;
    outline-offset: 3px !important;
  }
}


@media (max-width: 760px){
  .calc-item.has-high-2plus{
    padding-bottom: 7rem; /* tilaa että rivit ei jää nappien alle */
  }
}

@media (max-width: 760px){

  /* Kun korkeita ikkunoita on 2+ (listassa vähintään 2 riviä) => EI overlay */
  .calc-item:has(.calc-high-row:nth-child(2)) .calc-high-question{
    position: static !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
    place-items: initial !important;
    padding: 0.7rem !important;
  }

  /* samalla vapauta se kuvan laatikko ettei leikkaa */
  .calc-item:has(.calc-high-row:nth-child(2)) .calc-illustration{
    height: auto !important;
    overflow: visible !important;
  }
  
    /* 2+ => EI overlay */
  .calc-item:has(.calc-high-row:nth-child(2)) .calc-high-question{
    position: static !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
    place-items: initial !important;
    padding: 0.7rem !important;
  }

  /* ja nyt: anna illustration-alueelle lisää korkeutta portaittain */
  .calc-item:has(.calc-high-row:nth-child(2)) .calc-illustration{ height: 260px !important; overflow: visible !important; }
  .calc-item:has(.calc-high-row:nth-child(3)) .calc-illustration{ height: 340px !important; }
  .calc-item:has(.calc-high-row:nth-child(4)) .calc-illustration{ height: 420px !important; }
  .calc-item:has(.calc-high-row:nth-child(5)) .calc-illustration{ height: 500px !important; }
  .calc-item:has(.calc-high-row:nth-child(6)) .calc-illustration{ height: 580px !important; }
}

@media (max-width: 760px){

  /* VAIN korkean ikkunan kortti, ja vain kun rivejä on 2+ */
  .calc-item:has(.calc-high-row:nth-child(2)) .calc-illustration{
    height: auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px){

  /* Monen ikkunan lista: tee jokaisesta rivistä samanlainen "pill" kuin single */
  .calc-high-list .calc-high-row{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Ikkuna X -label keskelle kuten otsikko */
  .calc-high-list .calc-high-row__label{
    width: 100%;
    text-align: center !important;
    font-weight: 900;
    font-size: 0.95rem;
    color: rgba(16,35,51,0.92);
    margin: 0.35rem 0 0.35rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* Input + unit pilliksi (sama look kuin single) */
  .calc-high-list .calc-high-row__inputwrap{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(16,35,51,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);

    width: 100%;
    max-width: 360px;
    margin: 0 auto 0.25rem;
  }

  .calc-high-list .calc-high-row__input{
    width: 150px;      /* sama fiilis kuin single mobiilissa */
    height: 40px;
    border-radius: 999px;

    border: 1px solid rgba(16, 35, 51, 0.06);
    background: rgba(255,255,255,0.78);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.72),
      0 10px 20px rgba(16, 35, 51, 0.07);

    padding: 0 0.85rem;
    text-align: center;
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    color: rgba(16,35,51,0.92);
    outline: none;
    box-sizing: border-box;
  }

  .calc-high-list .calc-high-row__unit{
    font-weight: 900;
    font-size: 1.02rem;
    color: rgba(16,35,51,0.58);
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 760px){
  /* kun korkea ikkuna -kortissa on 2+ valittuna => anna tilaa myös napille */
  .calc-item:has(#highq-fixedWindow .calc-high-togglebtn),
  .calc-item:has(#highq-companyHighWindow .calc-high-togglebtn){
    /* ei pakko, mutta auttaa ettei osu controls-alueeseen */
  }

  .calc-item:has(#highq-fixedWindow .calc-high-togglebtn) .calc-high-question,
  .calc-item:has(#highq-companyHighWindow .calc-high-togglebtn) .calc-high-question{
    position: static !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
    place-items: initial !important;
    padding: 0.7rem !important;
  }

  .calc-item:has(#highq-fixedWindow .calc-high-togglebtn) .calc-illustration,
  .calc-item:has(#highq-companyHighWindow .calc-high-togglebtn) .calc-illustration{
    height: auto !important;
    overflow: visible !important;
  }
}

/* High window -toggle nappi nätimmäksi */
#highWindowDock .calc-high-togglebtn,
.calc-high-question .calc-high-togglebtn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(20, 163, 199, 0.22);
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(245, 251, 255, 0.55) 55%,
      rgba(237, 246, 251, 0.80) 100%
    ),
    linear-gradient(180deg,
      rgba(20, 163, 199, 0.08),
      rgba(20, 163, 199, 0.05)
    );

  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.01em;

  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;

  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* keskelle ja sopiva väli yläpuolelle */
.calc-high-question .calc-high-togglebtn{
  margin: 10px auto 0;
}

/* hover/active */
#highWindowDock .calc-high-togglebtn:hover,
.calc-high-question .calc-high-togglebtn:hover{
  border-color: rgba(20, 163, 199, 0.34);
  box-shadow: 0 14px 28px rgba(16, 35, 51, 0.08);
  transform: translateY(-1px);
}

#highWindowDock .calc-high-togglebtn:active,
.calc-high-question .calc-high-togglebtn:active{
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);
}

#highWindowDock .calc-high-togglebtn:focus-visible,
.calc-high-question .calc-high-togglebtn:focus-visible{
  outline: 3px solid rgba(20, 163, 199, 0.22);
  outline-offset: 3px;
}

/* Summary-box virhe: formimainen punainen ring + hehku */
#summaryBreakdown.is-error{
  position: relative;
  outline: none;
  box-shadow:
    0 0 0 2px rgba(217, 48, 37, 0.85), /* punainen reuna */
    0 0 0 6px rgba(217, 48, 37, 0.14); /* pehmeä hehku */
}

/* Pehmeä ilmestyminen error-ringille */
#summaryBreakdown{
  transition: box-shadow 180ms ease;
}

#summaryBreakdown.is-error{
  animation: summaryErrorIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes summaryErrorIn{
  from{
    box-shadow:
      0 0 0 0 rgba(217, 48, 37, 0),
      0 0 0 0 rgba(217, 48, 37, 0);
    transform: translateY(0.5px);
  }
  to{
    box-shadow:
      0 0 0 2px rgba(217, 48, 37, 0.85),
      0 0 0 6px rgba(217, 48, 37, 0.14);
    transform: translateY(0);
  }
}

/* HighWindowDock: perus */
#highWindowDock{
  transform-origin: top center;
}

/* kun ilmestyy */
#highWindowDock.is-enter{
  animation: highDockIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* kun katoaa */
#highWindowDock.is-exit{
  animation: highDockOut 200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes highDockIn{
  from{ opacity: 0; transform: translateY(10px) scale(0.985); }
  to  { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes highDockOut{
  from{ opacity: 1; transform: translateY(0) scale(1); }
  to  { opacity: 0; transform: translateY(8px) scale(0.985); }
}

@media (prefers-reduced-motion: reduce){
  #highWindowDock.is-enter,
  #highWindowDock.is-exit{ animation: none; }
}

/* punainen outline kun validointi failaa */
.calc-high-question__row.is-error input,
.calc-high-row.is-error input{
  border-color: rgba(220,38,38,0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 3px rgba(220,38,38,0.12),
    0 10px 20px rgba(16, 35, 51, 0.07) !important;
}

/* Mobiilissa ei näytetä "Anna korkeusarvio." -tekstiä */
@media (max-width: 760px){
  .calc-high-question__error{
    display: none !important;
  }
}

/* Varmistus: kun calc-high-row on error, myös sen input punaiseksi */
.calc-high-row.is-error .calc-high-row__input{
  border-color: rgba(220,38,38,0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 3px rgba(220,38,38,0.12),
    0 10px 20px rgba(16, 35, 51, 0.07) !important;
}

#highWindowDock .calc-high-togglebtn,
.calc-high-question .calc-high-togglebtn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(20, 163, 199, 0.22);
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(245, 251, 255, 0.55) 55%,
      rgba(237, 246, 251, 0.80) 100%
    ),
    linear-gradient(180deg,
      rgba(20, 163, 199, 0.08),
      rgba(20, 163, 199, 0.05)
    );

  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.01em;

  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;

  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* keskelle ja sopiva väli yläpuolelle (VANHA) */
.calc-high-question .calc-high-togglebtn{
  margin: 10px auto 0;
}

/* hover/active (VANHA) */
#highWindowDock .calc-high-togglebtn:hover,
.calc-high-question .calc-high-togglebtn:hover{
  border-color: rgba(20, 163, 199, 0.34);
  box-shadow: 0 14px 28px rgba(16, 35, 51, 0.08);
  transform: translateY(-1px);
}

#highWindowDock .calc-high-togglebtn:active,
.calc-high-question .calc-high-togglebtn:active{
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 22px rgba(16, 35, 51, 0.06);
}

#highWindowDock .calc-high-togglebtn:focus-visible,
.calc-high-question .calc-high-togglebtn:focus-visible{
  outline: 3px solid rgba(20, 163, 199, 0.22);
  outline-offset: 3px;
}

.calc-high-question{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* keskelle */
.calc-high-question .calc-high-togglebtn{
  display: flex;          /* tai inline-flex -> flex */
  width: fit-content;     /* pitää napin napakkana */
  margin: 10px auto 0;    /* keskitys */
}
/* ============================================================
   LIQUID GLASS BUTTONS (cleaned, same behavior)
   ============================================================ */

:root{
  --glass-primary-grad: linear-gradient(
    135deg,
    rgba(108, 156, 196, 0.82) 0%,
    rgba(92, 140, 185, 0.84) 55%,
    rgba(58, 92, 138, 0.86) 100%
  );

  --glass-edge-stack:
    0 22px 54px rgba(16,35,51,0.15),
    0 14px 34px rgba(20,60,95,0.14),
    0 10px 22px rgba(16,35,51,0.11),
    0 0 0 1px rgba(170, 220, 255, 0.16),
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.16);

  --glass-specular-ring:
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.20);
}

.glass-button{
  --glass-text: rgba(7,17,30,0.92);
  --glass-tint: transparent;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 0.95rem 1.55rem;

  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;

  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);

  box-shadow:
    0 18px 44px rgba(16,35,51,0.12),
    inset 0 1px 0 rgba(255,255,255,0.70);

  transition:
    transform 160ms cubic-bezier(.22,1,.36,1),
    box-shadow 220ms ease;
}

@media (hover:hover) and (pointer:fine){
  .glass-button:hover{
    transform: translateY(-1px);
    box-shadow:
      0 22px 54px rgba(16,35,51,0.14),
      inset 0 1px 0 rgba(255,255,255,0.75);
  }
}

.glass-button:active{
  transform: translateY(1px) scale(0.992);
}

.glass-button:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(20,163,199,0.14),
    0 22px 54px rgba(16,35,51,0.14),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

/* Layers */
.glass-button .glass-filter,
.glass-button .glass-overlay,
.glass-button .glass-specular{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass-button .glass-filter{
  z-index: 1;
  backdrop-filter: blur(9px) saturate(130%);
  -webkit-backdrop-filter: blur(9px) saturate(130%);
}

@media (hover:hover) and (pointer:fine){
  .glass-button .glass-filter{
    filter: url(#glass-distortion) saturate(120%) brightness(1.05);
  }
}

.glass-button .glass-overlay{
  z-index: 2;
  background:
    radial-gradient(120% 180% at 20% 0%,
      rgba(255,255,255,0.70) 0%,
      rgba(255,255,255,0.36) 36%,
      rgba(255,255,255,0.22) 62%,
      rgba(255,255,255,0.26) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.10) 100%),
    var(--glass-tint);
  opacity: 1;
}

.glass-button .glass-specular{
  z-index: 3;
  box-shadow: var(--glass-specular-ring);
  opacity: 1;
}

.glass-button .glass-content{
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  color: var(--glass-text);
  font-family: "Inter", sans-serif;
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Reduce the white hover highlight intensity (mouse-follow stays) */
@media (hover:hover) and (pointer:fine){
  .glass-button:hover .glass-specular{ opacity: 0.45; }
}

/* Secondary (default, light) */
.glass-button.is-secondary{
  --glass-tint: linear-gradient(180deg,
    rgba(66,203,232,0.10) 0%,
    rgba(20,163,199,0.05) 40%,
    rgba(24,63,134,0.04) 100%);
  --glass-text: rgba(7,17,30,0.92);

  box-shadow:
    0 18px 44px rgba(16,35,51,0.10),
    0 0 0 1px rgba(120,150,170,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.62),
    inset 0 1px 0 rgba(255,255,255,0.70),
    inset 0 -1px 0 rgba(16,35,51,0.05);
}

/* Primary base */
.glass-button.is-primary{
  --glass-text: rgba(255,255,255,0.96);
  box-shadow: var(--glass-edge-stack) !important;
}

.glass-button.is-primary .glass-overlay{
  background:
    radial-gradient(120% 140% at 22% 10%,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.06) 40%,
      rgba(255,255,255,0.00) 64%),
    var(--glass-primary-grad) !important;

  -webkit-mask-image: radial-gradient(140% 120% at 50% 20%, #000 62%, rgba(0,0,0,0.92) 78%, rgba(0,0,0,0.78) 100%);
          mask-image: radial-gradient(140% 120% at 50% 20%, #000 62%, rgba(0,0,0,0.92) 78%, rgba(0,0,0,0.78) 100%);
}

/* Primary text clarity */
.glass-button.is-primary .glass-content > span{
  -webkit-text-stroke: 0.45px rgba(0, 18, 32, 0.24);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(0, 10, 18, 0.14),
    0 2px 4px rgba(0, 10, 18, 0.10);
}

@supports not (-webkit-text-stroke: 1px black){
  .glass-button.is-primary .glass-content > span{
    text-shadow:
      0 0 0.6px rgba(0, 18, 32, 0.18),
      0 1px 0 rgba(0, 10, 18, 0.14),
      0 2px 4px rgba(0, 10, 18, 0.10);
  }
}

/* Primary hover: almost no change (keep only mouse-follow spot) */
@media (hover:hover) and (pointer:fine){
  .glass-button.is-primary:hover{
    transform: none !important;
    box-shadow: var(--glass-edge-stack) !important;
  }
}

/* Clone state (JS adds .is-primary-clone to secondary buttons) */
.glass-button.is-primary-clone{
  --glass-text: rgba(255,255,255,0.96);
  box-shadow: var(--glass-edge-stack) !important;
}

.glass-button.is-primary-clone .glass-overlay{
  background:
    radial-gradient(120% 140% at 22% 10%,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.06) 40%,
      rgba(255,255,255,0.00) 64%),
    var(--glass-primary-grad) !important;

  -webkit-mask-image: radial-gradient(140% 120% at 50% 20%, #000 62%, rgba(0,0,0,0.92) 78%, rgba(0,0,0,0.78) 100%);
          mask-image: radial-gradient(140% 120% at 50% 20%, #000 62%, rgba(0,0,0,0.92) 78%, rgba(0,0,0,0.78) 100%);
}

/* Clone text clarity */
.glass-button.is-primary-clone .glass-content > span{
  -webkit-text-stroke: 0.45px rgba(0, 18, 32, 0.24);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(0, 10, 18, 0.14),
    0 2px 4px rgba(0, 10, 18, 0.10);
}

/* Clone safety (prevents secondary styles from winning) */
.glass-button.is-secondary.is-primary-clone{
  border: none !important;
  box-shadow: var(--glass-edge-stack) !important;
}

.glass-button.is-secondary.is-primary-clone .glass-filter{
  backdrop-filter: blur(9px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(9px) saturate(130%) !important;
  filter: url(#glass-distortion) saturate(120%) brightness(1.05) !important;
}

.glass-button.is-secondary.is-primary-clone .glass-content{
  color: rgba(255,255,255,0.96) !important;
}

@media (hover:hover) and (pointer:fine){
  .glass-button.is-secondary.is-primary-clone:hover{
    transform: none !important;
    box-shadow: var(--glass-edge-stack) !important;
  }
}

/* Disabled */
.glass-button:disabled,
.glass-button[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .glass-button{ transition: none; }
  .glass-button:hover,
  .glass-button:active{ transform: none; }
}