.calc-guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.calc-guide-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: auto;
  /* App tokens.ts color.ink, guide.dim and guide.scrim.blur.
     GuideShade.tsx provides the cutout. GuideBlurScrim.tsx supplies the app blur. */
  background: rgba(16, 20, 24, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .calc-guide-shade {
  background: rgba(16, 20, 24, .8);
}

.calc-guide-card {
  top: 0;
  position: absolute;
  left: 50%;
  width: min(310px, 100% - 32px);
  opacity: 0;
  pointer-events: auto;
  /* App onboard.cardWidthMax, radius.lg, space.md and GuideLayer.tsx. */
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  font: 400 17px/24px Inter, system-ui, sans-serif;
}

.calc-guide-card:focus {
  outline: none;
}

.calc-guide-card::before {
  content: "";
  position: absolute;
  left: var(--calc-guide-tail-x);
  bottom: 100%;
  transform: translateX(-50%);
  border-inline: 10px solid transparent;
  /* App GuideLayer.tsx and tokens.ts guide.tail. */
  border-bottom: 10px solid var(--surface);
}

.calc-guide-card[data-above]::before {
  top: 100%;
  bottom: auto;
  border-top: 10px solid var(--surface);
  border-bottom: 0;
}

.calc-guide-inner {
  padding: 16px;
  max-height: var(--calc-guide-card-limit, 100vh);
  overflow: auto;
}

.calc-guide-copy {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: start;
}

.calc-guide-copy img {
  width: 44px;
  height: auto;
}

.calc-guide-copy p {
  margin: 0;
}

.calc-guide-card button {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: none;
  transform: none;
}

.calc-guide-card button[hidden] {
  display: none;
}

.calc-guide-copy button {
  min-width: 56px;
  min-height: 56px;
}

.calc-guide-footer {
  /* App GuideLayer.tsx footer and tokens.ts guide.footer, space.sm and radius.pill. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  height: 56px;
  margin-top: 8px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--raised);
}

.calc-guide-footer button {
  min-height: 44px;
}

.calc-guide-back {
  grid-column: 1;
  justify-self: start;
}

.calc-guide-progress {
  grid-column: 2;
  display: flex;
  gap: 8px;
}

.calc-guide-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.calc-guide-progress [data-done],
.calc-guide-progress [data-current] {
  background: var(--accent);
}

.calc-guide-progress [data-current] {
  width: 24px;
}

.calc-guide-footer .calc-guide-next {
  grid-column: 3;
  justify-self: end;
  padding-inline: 16px;
  background: var(--tint);
  color: #101418;
}

.calc-guide[data-busy] .calc-guide-card,
.calc-guide[data-closing] .calc-guide-card,
.calc-guide[data-closing] .calc-guide-shade {
  pointer-events: none;
}

/* App motion.easing.easeOut. Spotlight standard sets the 1 s movement floor. */
.calc-guide[data-moving] .calc-guide-shade {
  transition: clip-path var(--calc-guide-move) cubic-bezier(.23, 1, .32, 1);
}

.calc-guide[data-moving] .calc-guide-card {
  transition: transform var(--calc-guide-move) cubic-bezier(.23, 1, .32, 1);
}
