/* Match the Mathcad entry iframe without loading the worksheet before login. */
.calc-guest-stage {
  --guest-blue: #2563eb;
  --guest-tint: #eff6ff;
  flex: 1 0 auto;
  padding: 56px 20px 48px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}
.calc-guest-card {
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  box-shadow: 0 16px 40px -16px rgb(15 23 42 / 14%);
}
.calc-guest-preview {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 150px;
  overflow: hidden;
  background: linear-gradient(var(--color-bg), var(--color-surface-alt));
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 13px;
}
.calc-guest-paper {
  position: absolute;
  inset: 20px auto auto 28px;
  color: var(--color-text-muted);
  font: 15px/2 'Cambria Math', serif;
  opacity: .45;
  filter: blur(3px);
  user-select: none;
}
.calc-guest-lock, .calc-guest-format { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--guest-blue); }
.calc-guest-lock { border-radius: 50%; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.calc-guest-card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc-guest-body { padding: 26px 28px 24px; }
.calc-guest-identity { display: flex; gap: 14px; overflow-wrap: anywhere; }
.calc-guest-format { background: var(--guest-tint); border-radius: 10px; font-size: 12px; font-weight: 700; }
.calc-guest-identity h2 { margin: 0; color: var(--color-text); font-size: 19px; line-height: 1.4; }
.calc-guest-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.calc-guest-meta span { padding: 2px 8px; border-radius: 6px; background: var(--color-surface-alt); color: var(--color-text-secondary); font-size: 12px; }
.calc-guest-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; margin-top: 24px;
  background: #2563eb; color: white; border: 0; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.calc-guest-login:hover { background: #1d4ed8; }
.calc-guest-login:focus-visible { outline: 2px solid var(--guest-blue); outline-offset: 3px; }
:root[data-color-mode="dark"] .calc-guest-stage { --guest-blue: #9bc1ff; --guest-tint: #233855; }
@media (max-width: 600px) {
  .calc-guest-stage { padding: 24px 12px; }
  .calc-guest-preview { min-height: 116px; }
  .calc-guest-body { padding: 20px 18px; }
}
