/* Shared result share sheet for calcdot calculators */
.cs-root[hidden] { display: none !important; }
.cs-root {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.cs-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 46%, transparent);
  backdrop-filter: blur(4px);
}
.cs-sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92dvh, 720px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow);
  padding: 18px 18px 28px;
  word-break: keep-all;
}
.cs-handle {
  width: 42px; height: 5px; border-radius: 99px;
  background: var(--line); margin: 0 auto 12px;
}
.cs-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--chip); color: var(--ink);
  font-size: 1.35rem; line-height: 1; font-weight: 800;
  box-shadow: none;
}
.cs-kicker {
  margin: 0 0 10px; color: var(--accent); font-weight: 800;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.cs-preview {
  background: var(--score-bg);
  color: var(--score-ink);
  border-radius: 22px;
  padding: 16px 16px 18px;
  margin: 0 0 16px;
  box-shadow: var(--score-shadow);
}
.cs-headline {
  margin: 0; font-size: .8rem; font-weight: 700;
  color: var(--score-muted); letter-spacing: .04em;
}
.cs-amount {
  margin: 6px 0 8px;
  font-size: clamp(1.45rem, 7vw, 1.9rem);
  font-weight: 900; letter-spacing: -0.05em; line-height: 1.2;
  color: var(--score-num);
}
.cs-line {
  margin: 0; font-weight: 700; font-size: .92rem;
  line-height: 1.45; letter-spacing: -0.03em;
}
.cs-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cs-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 8px;
  border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--chip); color: var(--ink);
  font-weight: 800; font-size: .88rem; letter-spacing: -0.03em;
  box-shadow: none; text-align: center; word-break: keep-all; line-height: 1.3;
}
.cs-btn:hover, .cs-btn:focus-visible { filter: brightness(1.03); }
.cs-btn-wide { grid-column: 1 / -1; }
.cs-btn-accent {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.cs-btn-sticker {
  background: var(--sticker); color: var(--sticker-ink); border-color: transparent;
}
.cs-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: .9rem;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.cs-toast[hidden] { display: none !important; }
body.cs-lock { overflow: hidden; }
@media (min-width: 720px) {
  .cs-root { align-items: center; }
  .cs-sheet {
    border-radius: 28px;
    padding: 22px 22px 24px;
  }
  .cs-handle { display: none; }
}
