html.volunteer-sp-blocked,
html.volunteer-sp-blocked body { overflow: hidden; }
html.volunteer-sp-blocked #root { display: none !important; }

.volunteer-sp-warning {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at 117% 64%, #5f0a19 0 40%, #a31228 41%, #cb2538 44%, transparent 45%),
    radial-gradient(ellipse at -41% 15%, #6d0d1b 0 47%, #a21229 54%, #bd2036 57%, transparent 58%),
    linear-gradient(145deg, #380810, #740d1c 50%, #460d16);
  color: #fff7f7;
  font: 400 16px/1.55 "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
.sp-access-masthead {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid #ffffff2d;
  border-radius: 0 0 20px 20px;
  background: #3f090fd9;
  box-shadow: 0 10px 26px #31030e42;
}
.sp-access-masthead img { display: block; width: 42px; height: 42px; object-fit: contain; }
.sp-access-masthead div { display: grid; gap: 1px; padding-left: 14px; border-left: 1px solid #ffffff43; }
.sp-access-masthead strong { font-size: 19px; line-height: 1.2; }
.sp-access-masthead span { color: #f2cfd3; font-size: 12px; }

.sp-access-layout {
  display: grid;
  flex: 1 0 auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(20px, 4vw, 50px) clamp(12px, 3vw, 30px);
}
.sp-access-content {
  box-sizing: border-box;
  width: min(100%, 650px);
  min-width: 0;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid #ffb5bf66;
  border-radius: clamp(18px, 4vw, 26px);
  background: linear-gradient(150deg, #a62a39f5, #690e1df5 74%);
  box-shadow: inset 0 1px #ffffff20, 0 22px 66px #31030e66;
}
.sp-access-portal {
  --ui-text: 13px;
  width: fit-content;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid #ffbdc640;
  border-radius: 999px;
  background: #ffffff12;
  color: #ffe4e8;
}
.sp-access-heading { margin: 12px 0 20px; text-align: center; }
.sp-access-emblem {
  display: grid;
  width: clamp(66px, 16vw, 88px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid #ff9aa66b;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 25%, #d23d4d, #a9172d 65%, #8a1427);
  box-shadow: 0 0 0 6px #ff6c7d1b, 0 8px 26px #4b051d4a;
}
.sp-access-shield {
  --shield-shape: polygon(50% 0, 96% 19%, 93% 50%, 81% 73%, 65% 90%, 50% 100%, 35% 90%, 19% 73%, 7% 50%, 4% 19%);
  position: relative;
  display: grid;
  width: 51%;
  height: 56%;
  place-items: center;
  background: #fff8f8;
  clip-path: var(--shield-shape);
}
.sp-access-shield::before { position: absolute; inset: 3px; background: #b12337; clip-path: var(--shield-shape); content: ""; }
.sp-access-shield::after { position: relative; margin-top: 1px; content: "!"; font-size: 25px; font-weight: 800; line-height: 1; }
.sp-access-content h1 {
  margin: 0;
  overflow-wrap: anywhere;
  --ui-page-title: clamp(26px, 5.4vw, 39px);
  text-wrap: balance;
}
.sp-access-state { margin: 8px 0 0; color: #ffdade; --ui-text: clamp(15px, 2.5vw, 18px); }

.sp-access-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(10px, 3vw, 16px);
  align-items: start;
  padding: clamp(12px, 3vw, 18px);
  overflow-wrap: anywhere;
  border: 1px solid #f37e8c86;
  border-radius: 14px;
  background: linear-gradient(120deg, #a7293bdc, #550b18d9);
}
.sp-access-document {
  display: grid;
  width: clamp(32px, 9vw, 46px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 10px;
  background: #ffc1ca29;
}
.sp-access-document > span {
  position: relative;
  width: 17px;
  height: 21px;
  border: 2px solid #fff1f3;
  border-radius: 3px;
}
.sp-access-document > span::after {
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 1px;
  background: #fff1f3;
  box-shadow: 0 4px #fff1f3, 0 8px #fff1f3;
  content: "";
}
.sp-access-letter { min-width: 0; }
.sp-access-letter p { margin: 0; }
.sp-access-letter [data-sp-number] { margin-bottom: 4px; --ui-text: clamp(15px, 2.7vw, 19px); }
.sp-access-letter [data-sp-problem] { color: #ffe0e4; --ui-text: clamp(13px, 2vw, 15px); white-space: pre-wrap; }
.sp-access-instruction { margin: 17px 0; --ui-text: clamp(14px, 2.3vw, 16px); }

.sp-access-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.sp-access-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #fff6f6;
  border-radius: 11px;
  background: #fff6f6;
  color: #8b1326;
  --ui-text: clamp(14px, 2.3vw, 16px);
  font: inherit;
  cursor: pointer;
}
.sp-access-actions button[data-sp-logout] { background: transparent; color: #fff9f9; }
.sp-access-actions button:not(:disabled):hover { background: #ffe2e7; color: #8b1326; }
.sp-access-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-access-actions button:disabled { opacity: .7; cursor: wait; }
.sp-access-status { margin: 10px 0 0; color: #ffe0e4; --ui-text: 13px; }
.sp-access-status:empty { margin: 0; }

@media (max-width: 540px) {
  .sp-access-layout { align-items: start; padding-top: clamp(24px, 7.5dvh, 66px); }
}

@media screen {
  @layer portal-typography {
    .sp-access-content h1 { font-weight: 800 !important; line-height: 1.14 !important; }
    .sp-access-portal { font-weight: 700 !important; }
    .sp-access-letter [data-sp-number], .sp-access-actions button { font-weight: 800 !important; }
  }
}
