:root {
  --ssg-paper: #f6f1e7;
  --ssg-card: #fffcf5;
  --ssg-ink: #34352f;
  --ssg-muted: #706b60;
  --ssg-accent: #856738;
  --ssg-line: #d9cdb5;
  --ssg-radius: 8px;
  --ssg-font: Tahoma, Arial, sans-serif;
  --ssg-heading-font: var(--ssg-font);
}
* { box-sizing: border-box; }
.ssg-document { min-height: 100%; }
.ssg-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ssg-ink);
  font-family: var(--ssg-font);
  background-color: var(--ssg-paper);
  background-image: radial-gradient(ellipse at 5% 10%, #b99a6020, transparent 55%), radial-gradient(ellipse at 95% 90%, #b99a6018, transparent 55%), url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.025' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.ssg-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 32px) 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.ssg-fit { width: 100%; display: flex; align-items: center; flex-direction: column; gap: 18px; flex-shrink: 0; min-width: 0; }
/* Lock only after JS measures the actual text, font and logo. No-JS stays accessible. */
.ssg-fitted, .ssg-fitted .ssg-page { height: 100%; min-height: 0; overflow: hidden; }
.ssg-fitted .ssg-shell { height: 100vh; height: 100dvh; min-height: 0; }
.ssg-card {
  position: relative; width: 100%; max-width: 660px; padding: 30px 40px 24px;
  text-align: center; background: var(--ssg-card); border: 1px solid var(--ssg-line);
  border-radius: var(--ssg-radius); box-shadow: 0 24px 75px #5343290d;
}
.ssg-card:before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid #d9cdb559; border-radius: 3px; }
.ssg-brand { display: flex; align-items: center; flex-direction: column; gap: 8px; }
.ssg-logo { display: block; width: auto; max-width: 150px; height: auto; max-height: 80px; object-fit: contain; }
.ssg-emblem { font-family: Georgia, serif; font-size: 40px; line-height: 1.1; color: var(--ssg-accent); }
.ssg-brand-name { font-family: var(--ssg-heading-font); font-size: 22px; font-weight: 700; line-height: 1.7; }
.ssg-eyebrow { font-size: 12px; color: var(--ssg-muted); line-height: 1.7; }
.ssg-divider { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 18px auto; color: var(--ssg-accent); max-width: 190px; }
.ssg-divider:before, .ssg-divider:after { content: ""; height: 1px; flex: 1; background: var(--ssg-line); }
.ssg-title { font-family: var(--ssg-heading-font); font-size: clamp(21px, 4vw, 28px); line-height: 1.8; margin: 0 0 12px; font-weight: 700; overflow-wrap: anywhere; }
.ssg-message { font-size: 15px; line-height: 2; color: var(--ssg-muted); max-width: 440px; margin: 0 auto 22px; overflow-wrap: anywhere; }
.ssg-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ssg-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 10px 22px; border: 1px solid var(--ssg-line); border-radius: 4px; text-decoration: none; font-size: 14px; line-height: 1.8; transition: background .18s, transform .18s; }
.ssg-button--yes { color: #fffdf8; background: var(--ssg-accent); border-color: var(--ssg-accent); }
.ssg-button--no { color: var(--ssg-muted); background: transparent; }
.ssg-button:hover { transform: translateY(-2px); }
.ssg-button--yes:hover { filter: brightness(.92); }
.ssg-button--no:hover { background: var(--ssg-paper); }
.ssg-login { margin: 16px 0 0; font-size: 13px; color: var(--ssg-muted); line-height: 2; }
.ssg-login a { display: inline-block; padding: 6px 3px; color: var(--ssg-accent); text-underline-offset: 5px; margin-inline-start: 5px; }
.ssg-footnote { border-top: 1px solid var(--ssg-line); padding-top: 14px; margin-top: 18px; font-size: 11px; line-height: 2; color: var(--ssg-muted); }
.ssg-footer { font-size: 11px; text-align: center; line-height: 2; color: var(--ssg-muted); }
.ssg-footer span { margin: 0 10px; }
.ssg-page a:focus-visible { outline: 3px solid var(--ssg-ink); outline-offset: 4px; }
@media (max-width: 480px) {
  .ssg-shell { padding-inline: 14px; }
  .ssg-card { padding: 24px 22px 20px; }
  .ssg-actions { gap: 8px; }
  .ssg-button { flex: 1 1 auto; padding: 10px 14px; gap: 8px; }
  .ssg-message { font-size: 14px; }
}
/* Compact levels reduce decoration first, never truncate titles or hide actions. */
.ssg-document[data-ssg-compact="1"] .ssg-card,
.ssg-document[data-ssg-compact="2"] .ssg-card { padding-block: 18px; }
.ssg-document[data-ssg-compact] .ssg-brand { gap: 4px; }
.ssg-document[data-ssg-compact] .ssg-logo { max-height: 52px; }
.ssg-document[data-ssg-compact] .ssg-emblem { font-size: 28px; }
.ssg-document[data-ssg-compact] .ssg-divider { margin-block: 10px; }
.ssg-document[data-ssg-compact] .ssg-title { font-size: 22px; line-height: 1.6; margin-bottom: 8px; }
.ssg-document[data-ssg-compact] .ssg-message { margin-bottom: 14px; line-height: 1.8; }
.ssg-document[data-ssg-compact] .ssg-login { margin-top: 8px; }
.ssg-document[data-ssg-compact] .ssg-footnote { margin-top: 10px; padding-top: 10px; }
.ssg-document[data-ssg-compact] .ssg-fit { gap: 10px; }
.ssg-document[data-ssg-compact="2"] .ssg-eyebrow,
.ssg-document[data-ssg-compact="2"] .ssg-divider,
.ssg-document[data-ssg-compact="2"] .ssg-footnote,
.ssg-document[data-ssg-compact="2"] .ssg-footer { display: none; }
.ssg-document[data-ssg-compact="2"] .ssg-brand { flex-direction: row; justify-content: center; gap: 12px; margin-bottom: 10px; }
.ssg-document[data-ssg-compact="2"] .ssg-brand-name { font-size: 18px; }
.ssg-document[data-ssg-compact="2"] .ssg-logo { max-width: 70px; max-height: 36px; }
.ssg-document[data-ssg-compact="2"] .ssg-title { font-size: 20px; }
.ssg-document[data-ssg-compact="2"] .ssg-button { min-height: 44px; padding-block: 8px; }
@media (prefers-reduced-motion: reduce) { .ssg-button { transition: none; } .ssg-button:hover { transform: none; } }
