/* —— Public pre-registration — deep blue premium —— */
body.guest-body.prereg-public-body{
  align-items:stretch;justify-content:flex-start;padding:0;min-height:100dvh;height:auto;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:linear-gradient(165deg,#061430 0%,#0a2456 45%,#0c2d6b 100%);
  scrollbar-width:thin;scrollbar-color:#38bdf8 rgba(8,28,68,.55)
}
body.guest-body.prereg-public-body::-webkit-scrollbar{width:11px}
body.guest-body.prereg-public-body::-webkit-scrollbar-track{
  background:linear-gradient(180deg,rgba(6,20,48,.85),rgba(8,28,68,.55));
  border-left:1px solid rgba(96,165,250,.12)
}
body.guest-body.prereg-public-body::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#7dd3fc 0%,#38bdf8 45%,#2563eb 100%);
  border-radius:999px;border:2px solid rgba(6,20,48,.85);
  box-shadow:0 0 12px rgba(56,189,248,.35)
}
body.guest-body.prereg-public-body::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#bae6fd 0%,#60a5fa 50%,#3b82f6 100%)
}
.prereg-public,.prereg-modal-body,.prereg-public-page{
  scrollbar-width:thin;scrollbar-color:#38bdf8 rgba(8,28,68,.45)
}
.prereg-public ::-webkit-scrollbar,.prereg-modal-body::-webkit-scrollbar{width:8px;height:8px}
.prereg-public ::-webkit-scrollbar-track,.prereg-modal-body::-webkit-scrollbar-track{
  background:rgba(8,28,68,.45);border-radius:999px
}
.prereg-public ::-webkit-scrollbar-thumb,.prereg-modal-body::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#7dd3fc,#2563eb);border-radius:999px;border:1px solid rgba(6,20,48,.6)
}
body.guest-body.prereg-public-body .ambient{display:none}
body.guest-body.prereg-public-body .guest-shell{max-width:none;width:100%;flex:1;display:flex;flex-direction:column}
body.guest-body.prereg-public-body:has([data-prereg-wizard]) .guest-shell{overflow:visible}

.prereg-public{
  --pr-deep:#061430;--pr-base:#0c2452;--pr-surface:rgba(12,42,92,.88);--pr-surface-soft:rgba(18,55,115,.62);
  --pr-line:rgba(96,165,250,.24);--pr-text:#e0f2fe;--pr-muted:#93c5fd;--pr-accent:#38bdf8;--pr-accent-2:#60a5fa;
  position:relative;flex:1;display:flex;flex-direction:column;min-height:100dvh;
  color:var(--pr-text);overflow-x:hidden;overflow-y:visible;isolation:isolate
}
.prereg-canvas{position:fixed;inset:0;z-index:0;width:100%;height:100%;pointer-events:none;opacity:.55}
.prereg-public-bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:radial-gradient(900px 500px at 80% -10%,rgba(29,78,216,.28),transparent 55%),
    radial-gradient(700px 420px at 10% 100%,rgba(2,132,199,.22),transparent 52%)}
.prereg-mesh{
  position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;
  animation:preregMeshDrift 18s ease-in-out infinite
}
.prereg-mesh-a{width:520px;height:520px;top:-12%;right:-8%;background:#2563eb;animation-delay:0s}
.prereg-mesh-b{width:440px;height:440px;bottom:-15%;left:-10%;background:#0284c7;animation-delay:-6s}
.prereg-mesh-c{width:360px;height:360px;top:35%;left:35%;background:#38bdf8;animation-delay:-12s;opacity:.32}
.prereg-grid-lines{
  position:absolute;inset:0;opacity:.06;
  background-image:
    linear-gradient(rgba(125,211,252,.4) 1px,transparent 1px),
    linear-gradient(90deg,rgba(125,211,252,.4) 1px,transparent 1px);
  background-size:48px 48px;
  animation:preregGridMove 24s linear infinite
}
@keyframes preregMeshDrift{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(-28px,22px) scale(1.08)}
  66%{transform:translate(20px,-18px) scale(.94)}
}
@keyframes preregGridMove{to{background-position:48px 48px}}

.prereg-float-layer{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.prereg-float-icon{
  position:absolute;left:var(--fx);top:var(--fy);font-size:var(--fsize);color:rgba(125,211,252,.28);
  animation:preregFloat var(--fd,14s) ease-in-out infinite;animation-delay:var(--fdelay,0s)
}
@keyframes preregFloat{
  0%,100%{transform:translate(0,0) rotate(0deg);opacity:.15}
  50%{transform:translate(0,-28px) rotate(12deg);opacity:.45}
}

.prereg-public-page{
  position:relative;z-index:2;width:min(1040px,100%);margin:0 auto;padding:20px 18px 40px;
  display:flex;flex-direction:column;gap:22px
}
.prereg-public-page.has-orgs{gap:10px;padding:12px 16px 20px;max-width:980px}
.prereg-public-page.has-orgs .prereg-org-section{padding:14px 14px 16px;margin:0}

/* —— Compact start bar (orgs list — desktop) —— */
.prereg-start-bar{
  display:none;grid-template-columns:auto minmax(0,1fr) 118px;align-items:center;gap:14px;
  padding:12px 14px;border-radius:20px;
  background:linear-gradient(155deg,rgba(10,36,82,.94),rgba(14,48,105,.88));
  border:1px solid var(--pr-line);box-shadow:0 16px 40px rgba(4,20,55,.28);
  position:relative;overflow:hidden
}
.prereg-start-bar:before{
  content:"";position:absolute;inset:0;border-radius:20px;pointer-events:none;
  background:radial-gradient(420px 120px at 100% 0%,rgba(96,165,250,.18),transparent 62%)
}
.prereg-start-back{
  position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;
  background:rgba(8,30,72,.72);border:1px solid var(--pr-line);color:var(--pr-muted);
  font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap;flex-shrink:0;
  transition:transform .2s,border-color .2s,background .2s
}
.prereg-start-back:hover{
  transform:translateY(-1px);border-color:rgba(125,211,252,.45);background:rgba(29,78,216,.32)
}
.prereg-start-body{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.prereg-start-copy{min-width:0}
.prereg-start-eyebrow{
  display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:3px 9px 3px 6px;border-radius:999px;
  background:rgba(37,99,235,.18);border:1px solid rgba(96,165,250,.28);color:#bfdbfe;
  font-size:10px;font-weight:800;margin-bottom:4px
}
.prereg-start-eyebrow img,.prereg-start-eyebrow > i{
  width:20px;height:20px;border-radius:7px;object-fit:contain;background:#fff;padding:2px;flex-shrink:0
}
.prereg-start-eyebrow > i{display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;font-size:10px}
.prereg-start-school{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(360px,48vw)}
.prereg-start-copy h1{
  margin:0;font-size:20px;font-weight:900;line-height:1.25;color:#f0f9ff;
  background:linear-gradient(120deg,#fff,#bae6fd,#e0f2fe);-webkit-background-clip:text;background-clip:text;color:transparent
}
.prereg-start-copy p{margin:3px 0 0;font-size:11.5px;color:#93c5fd;line-height:1.5}
.prereg-start-steps{
  display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow:hidden
}
.prereg-start-steps > span{
  display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;
  background:rgba(8,30,72,.55);border:1px solid rgba(96,165,250,.16);color:#94a3b8;
  font-size:10px;font-weight:800;white-space:nowrap;flex-shrink:0;
  transition:border-color .2s,background .2s,color .2s
}
.prereg-start-steps > span i{font-size:11px;color:#64748b;transition:color .2s}
.prereg-start-steps > span em{font-style:normal}
.prereg-start-steps > span.is-active{
  border-color:rgba(125,211,252,.45);background:rgba(29,78,216,.28);color:#e0f2fe;
  box-shadow:0 6px 16px rgba(37,99,235,.18)
}
.prereg-start-steps > span.is-active i{color:#7dd3fc}
.prereg-start-step-line{
  flex:0 0 12px;height:2px;border-radius:999px;
  background:linear-gradient(90deg,rgba(96,165,250,.15),rgba(96,165,250,.45),rgba(96,165,250,.15))
}
.prereg-start-art{
  position:relative;z-index:1;display:grid;place-items:center;align-self:stretch;
  animation:preregSceneFloat 5s ease-in-out infinite
}
.prereg-start-art .prereg-scene-svg{max-height:76px;width:auto;display:block;filter:drop-shadow(0 8px 18px rgba(4,20,55,.35))}

.prereg-public-page.has-orgs .prereg-bento-card{min-height:132px;padding:16px 14px 12px}
.prereg-public-page.has-orgs .prereg-bento-grid{gap:10px}
.prereg-public-page-narrow{width:min(680px,100%)}

/* —— Top bar —— */
.prereg-public-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 4px 10px
}
.prereg-public-back{
  display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;
  background:var(--pr-surface-soft);border:1px solid var(--pr-line);color:var(--pr-muted);
  font-size:12px;font-weight:700;text-decoration:none;backdrop-filter:blur(14px);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease
}
.prereg-public-back:hover{
  transform:translateY(-2px);border-color:rgba(125,211,252,.55);
  box-shadow:0 12px 32px rgba(37,99,235,.28);background:rgba(29,78,216,.35)
}
.prereg-brand-wrap{position:relative;display:grid;place-items:center}
.prereg-public-brand{height:46px;width:auto;max-width:150px;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.35))}
.prereg-public-brand-fallback{
  width:46px;height:46px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;font-size:20px;
  box-shadow:0 10px 28px rgba(37,99,235,.45)
}
.prereg-brand-pulse{
  position:absolute;inset:-6px;border-radius:20px;border:2px solid rgba(96,165,250,.45);
  animation:preregBrandPulse 2.4s ease-out infinite
}
@keyframes preregBrandPulse{0%{transform:scale(.92);opacity:.8}100%{transform:scale(1.15);opacity:0}}

/* —— Hero cinematic —— */
.prereg-hero-cinematic{
  position:relative;border-radius:32px;padding:2px;overflow:hidden;
  transform:translate(var(--px,0),var(--py,0));transition:transform .15s ease-out;
  background:linear-gradient(135deg,rgba(56,189,248,.55),rgba(37,99,235,.5),rgba(2,132,199,.45));
  background-size:200% 200%;animation:preregBorderFlow 6s ease infinite;
  box-shadow:0 30px 80px rgba(8,28,70,.45),0 0 0 1px rgba(186,230,253,.08) inset
}
@keyframes preregBorderFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.prereg-hero-cinematic:before{
  content:"";position:absolute;inset:0;border-radius:32px;
  background:radial-gradient(600px 220px at 50% -20%,rgba(96,165,250,.25),transparent 60%);
  pointer-events:none;z-index:0
}
.prereg-hero-ring{
  position:absolute;border-radius:50%;border:1px solid rgba(148,163,184,.12);pointer-events:none
}
.prereg-hero-ring-a{width:280px;height:280px;top:-80px;left:-60px;animation:preregRingSpin 20s linear infinite}
.prereg-hero-ring-b{width:200px;height:200px;bottom:-50px;right:-40px;animation:preregRingSpin 14s linear infinite reverse}
@keyframes preregRingSpin{to{transform:rotate(360deg)}}
@keyframes preregSceneFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.prereg-hero-content{
  position:relative;z-index:1;display:grid;
  grid-template-columns:minmax(130px,170px) minmax(0,1fr);
  grid-template-rows:auto;gap:14px 18px;align-items:center;
  padding:16px 18px;border-radius:30px;
  background:linear-gradient(155deg,rgba(10,36,82,.92) 0%,rgba(14,48,105,.85) 50%,rgba(8,30,72,.94) 100%);
  backdrop-filter:blur(20px)
}
.prereg-hero-visual{
  grid-column:2;grid-row:1;position:relative;display:grid;place-items:center;
  animation:preregSceneFloat 5s ease-in-out infinite
}
.prereg-hero-stack{
  grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:10px;min-width:0
}
.prereg-hero-copy{text-align:center;min-width:0}
.prereg-scene-svg{width:100%;height:auto;display:block;max-height:118px;filter:drop-shadow(0 10px 24px rgba(4,20,55,.35))}
.prereg-steps-track{
  display:flex;align-items:stretch;justify-content:center;gap:0;margin-top:0;
  flex-wrap:nowrap;width:100%
}

/* compact hero — empty state only */

.prereg-hero-badge{
  display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;
  background:rgba(37,99,235,.2);border:1px solid rgba(96,165,250,.35);color:#bfdbfe;
  font-size:11.5px;font-weight:800;margin-bottom:16px;position:relative;overflow:hidden
}
.prereg-hero-badge:before{
  content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
  animation:preregShine 3s ease-in-out infinite
}
@keyframes preregShine{0%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.prereg-badge-dot{
  width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 12px #22c55e;
  animation:preregDotBlink 1.4s ease-in-out infinite
}
@keyframes preregDotBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}
.prereg-hero-title{margin:0 0 8px;font-size:clamp(22px,3vw,34px);font-weight:900;letter-spacing:-.03em;line-height:1.25}
.prereg-title-shine{
  background:linear-gradient(120deg,#fff 0%,#bae6fd 30%,#7dd3fc 55%,#e0f2fe 80%,#fff 100%);
  background-size:200% auto;-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:preregTitleShine 4s linear infinite
}
@keyframes preregTitleShine{to{background-position:200% center}}
.prereg-hero-sub{
  margin:0 auto;max-width:540px;color:var(--pr-muted);font-size:14px;line-height:1.9;
  animation:preregFadeUp 1s ease .3s both
}
@keyframes preregFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* —— Steps track —— */
.prereg-step-node{
  flex:1;min-width:0;max-width:none;padding:14px 12px;border-radius:20px;text-align:center;
  background:var(--pr-surface-soft);border:1px solid var(--pr-line);
  transition:transform .35s cubic-bezier(.2,.9,.2,1.2),border-color .3s,box-shadow .3s,background .3s
}
.prereg-step-node.is-active,.prereg-step-node.is-pulse{
  border-color:rgba(125,211,252,.55);background:rgba(29,78,216,.28);
  box-shadow:0 12px 32px rgba(37,99,235,.25);transform:translateY(-4px) scale(1.02)
}
.prereg-step-icon{
  display:grid;place-items:center;width:44px;height:44px;margin:0 auto 8px;border-radius:16px;
  background:linear-gradient(135deg,rgba(37,99,235,.45),rgba(2,132,199,.35));color:#bae6fd;font-size:17px;
  animation:preregIconBob 3s ease-in-out infinite
}
.prereg-step-node:nth-child(1) .prereg-step-icon{animation-delay:0s}
.prereg-step-node:nth-child(3) .prereg-step-icon{animation-delay:.4s}
.prereg-step-node:nth-child(5) .prereg-step-icon{animation-delay:.8s}
@keyframes preregIconBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.prereg-step-node strong{display:block;font-size:12.5px;color:#f1f5f9;margin-bottom:3px}
.prereg-step-node small{font-size:10px;color:#7dd3fc}
.prereg-step-connector{
  display:flex;align-items:center;width:28px;flex:0 0 28px;position:relative
}
.prereg-step-connector i{
  display:block;width:100%;height:2px;border-radius:999px;
  background:linear-gradient(90deg,rgba(96,165,250,.15),rgba(96,165,250,.55),rgba(96,165,250,.15));
  background-size:200% 100%;animation:preregLineFlow 2s linear infinite
}
@keyframes preregLineFlow{to{background-position:200% 0}}

/* —— Section head —— */
.prereg-public-section-head{padding:4px 2px}
.prereg-section-eyebrow{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#93c5fd;
  margin-bottom:8px;animation:preregFadeUp .8s ease both
}
.prereg-public-section-head h2{
  margin:0;font-size:clamp(20px,3.5vw,26px);font-weight:900;color:#f8fafc;
  text-shadow:0 4px 24px rgba(37,99,235,.25)
}
.prereg-public-section-head p{margin:6px 0 0;color:var(--pr-muted);font-size:13px}

/* —— Org selection panel (desktop) —— */
.prereg-org-section{
  border-radius:28px;padding:20px 20px 22px;
  background:linear-gradient(165deg,rgba(12,42,92,.72),rgba(8,28,68,.55));
  border:1px solid var(--pr-line);box-shadow:0 20px 50px rgba(4,20,55,.22)
}
.prereg-org-section .prereg-public-section-head{
  margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(96,165,250,.12)
}

/* —— Bento org cards —— */
.prereg-bento-grid{
  display:grid;gap:16px;width:100%;
  grid-template-columns:repeat(var(--prereg-cols,2),minmax(0,1fr))
}
.prereg-bento-grid.prereg-bento-cols-1{
  --prereg-cols:1;max-width:380px;margin-inline:auto
}
.prereg-bento-grid.prereg-bento-cols-2{--prereg-cols:2}
.prereg-bento-grid.prereg-bento-cols-3{--prereg-cols:3}
.prereg-bento-card{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:26px 20px 20px;border:0;border-radius:26px;cursor:pointer;text-align:center;
  background:linear-gradient(165deg,rgba(16,48,102,.92),rgba(10,36,82,.88));
  box-shadow:0 16px 40px rgba(4,20,55,.35),inset 0 1px 0 rgba(186,230,253,.08);
  transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transition:transform .2s ease,box-shadow .35s ease;
  overflow:hidden;color:inherit;font:inherit;min-height:220px
}
.prereg-bento-card:hover{
  box-shadow:0 28px 60px rgba(37,99,235,.28),inset 0 1px 0 rgba(255,255,255,.1)
}
.prereg-bento-card.is-launching{animation:preregCardLaunch .55s ease forwards}
@keyframes preregCardLaunch{
  0%{transform:perspective(900px) scale(1)}
  40%{transform:perspective(900px) scale(.96)}
  100%{transform:perspective(900px) scale(1.04);opacity:.85}
}
.prereg-card-border{
  position:absolute;inset:0;border-radius:26px;padding:2px;
  background:linear-gradient(135deg,var(--org-1,#38bdf8),var(--org-2,#2563eb),#0284c7);
  background-size:200% 200%;animation:preregBorderFlow 4s ease infinite;
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.75
}
.prereg-card-shine{
  position:absolute;inset:0;background:radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%),rgba(255,255,255,.14),transparent 45%);
  opacity:0;transition:opacity .25s;pointer-events:none
}
.prereg-bento-card:hover .prereg-card-shine{opacity:1}
.prereg-card-glow{
  position:absolute;inset:auto -20% -50% -20%;height:100px;border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.35),transparent 70%);
  opacity:0;transition:opacity .35s;pointer-events:none
}
.prereg-bento-card:hover .prereg-card-glow{opacity:1}
.prereg-card-icon{
  width:80px;height:80px;border-radius:24px;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(135deg,var(--org-1,#2563eb),var(--org-2,#7c3aed));
  color:#fff;font-size:32px;box-shadow:0 14px 32px rgba(0,0,0,.25);
  animation:preregIconBob 4s ease-in-out infinite;position:relative;z-index:1
}
.prereg-card-icon img{width:100%;height:100%;object-fit:contain;background:#fff;padding:10px}
.prereg-card-body{position:relative;z-index:1}
.prereg-card-body strong{display:block;font-size:16px;color:#f8fafc;margin-bottom:4px}
.prereg-card-body small{color:#94a3b8;font-size:11px}
.prereg-card-action{
  display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding:9px 16px;border-radius:999px;
  background:rgba(37,99,235,.25);border:1px solid rgba(96,165,250,.35);color:#bfdbfe;
  font-size:11.5px;font-weight:800;position:relative;z-index:1;overflow:hidden
}
.prereg-card-action i{transition:transform .25s ease}
.prereg-bento-card:hover .prereg-card-action{background:rgba(37,99,235,.4)}
.prereg-bento-card:hover .prereg-card-action i{transform:translateX(-4px)}

/* —— Empty state —— */
.prereg-empty-cinematic{
  text-align:center;padding:48px 24px;border-radius:28px;
  background:rgba(15,23,42,.65);border:1px solid rgba(148,163,184,.15)
}
.prereg-empty-orbit{
  display:inline-grid;place-items:center;width:80px;height:80px;border-radius:50%;margin-bottom:16px;
  background:rgba(51,65,85,.6);color:#94a3b8;font-size:28px;position:relative
}
.prereg-empty-orbit:before{
  content:"";position:absolute;inset:-8px;border-radius:50%;border:2px dashed rgba(148,163,184,.25);
  animation:preregRingSpin 12s linear infinite
}

/* —— Reveal animations —— */
[data-prereg-reveal]{opacity:0;transition:opacity .7s cubic-bezier(.2,.9,.2,1),transform .7s cubic-bezier(.2,.9,.2,1)}
[data-prereg-reveal="down"]{transform:translateY(-24px)}
[data-prereg-reveal="up"]{transform:translateY(28px)}
[data-prereg-reveal="left"]{transform:translateX(28px)}
[data-prereg-reveal="scale"]{transform:scale(.94)}
[data-prereg-reveal="card"]{transform:translateY(32px) scale(.96)}
[data-prereg-reveal].is-visible{opacity:1;transform:none}

/* —— Modal —— */
.prereg-modal{border:0;padding:0;border-radius:28px;width:min(460px,calc(100% - 24px));overflow:visible;
  background:transparent;transform:translateY(24px) scale(.94);opacity:0;
  transition:transform .35s cubic-bezier(.2,.9,.2,1.1),opacity .3s ease}
.prereg-modal::backdrop{background:rgba(2,6,23,.72);backdrop-filter:blur(10px);opacity:0;transition:opacity .28s ease}
.prereg-modal.is-open{transform:none;opacity:1}
.prereg-modal.is-open::backdrop{opacity:1}
.prereg-modal-card{
  border-radius:28px;overflow:hidden;
  background:linear-gradient(165deg,rgba(12,42,92,.98),rgba(8,30,72,.96));
  border:1px solid var(--pr-line);box-shadow:0 40px 100px rgba(4,16,45,.55)
}
.prereg-modal-head{
  display:flex;justify-content:space-between;gap:12px;padding:18px 18px 14px;
  border-bottom:1px solid rgba(148,163,184,.12)
}
.prereg-modal-head small{color:#64748b;font-size:11px;display:block;margin-bottom:4px}
.prereg-modal-head h2{margin:0;font-size:17px;color:#f1f5f9}
.prereg-modal-close{
  width:40px;height:40px;border:0;border-radius:14px;cursor:pointer;
  background:rgba(51,65,85,.6);color:#cbd5e1;font-size:16px;transition:transform .2s,background .2s
}
.prereg-modal-close:hover{transform:scale(1.06);background:rgba(71,85,105,.8)}
.prereg-modal-body{display:flex;flex-direction:column;gap:10px;padding:14px;max-height:58vh;overflow:auto}
.prereg-modal-loading,.prereg-modal-empty{padding:32px 16px;text-align:center;color:#94a3b8}
.prereg-loader{
  display:inline-block;width:36px;height:36px;border:3px solid rgba(148,163,184,.25);
  border-top-color:#60a5fa;border-radius:50%;animation:preregSpin .75s linear infinite;margin-bottom:12px
}
@keyframes preregSpin{to{transform:rotate(360deg)}}

.prereg-pick-item{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;
  border:1px solid var(--pr-line);border-radius:18px;background:var(--pr-surface-soft);
  width:100%;text-align:right;color:inherit;font:inherit;cursor:pointer;text-decoration:none;
  opacity:0;transform:translateX(16px);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.9,.2,1.1),
    border-color .2s,background .2s,box-shadow .2s
}
.prereg-pick-item.is-visible{opacity:1;transform:none}
.prereg-pick-item:hover,.prereg-pick-item:focus-visible{
  border-color:rgba(96,165,250,.45);background:rgba(37,99,235,.15);
  box-shadow:0 10px 28px rgba(37,99,235,.18)
}
.prereg-pick-item.is-launching{animation:preregPickLaunch .35s ease forwards}
@keyframes preregPickLaunch{to{transform:scale(.97);opacity:.7}}
.prereg-pick-icon{
  width:44px;height:44px;border-radius:15px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(14,165,233,.25));color:#93c5fd;font-size:16px
}
.prereg-pick-icon.is-field{background:linear-gradient(135deg,rgba(22,163,74,.35),rgba(34,197,94,.2));color:#86efac}
.prereg-pick-copy strong{display:block;font-size:13.5px;color:#f1f5f9}
.prereg-pick-copy small{color:#64748b;font-size:11px}
.prereg-pick-arrow{color:#64748b;transition:transform .2s}
.prereg-pick-item:hover .prereg-pick-arrow{transform:translateX(-4px);color:#93c5fd}

/* —— Wizard —— */
.prereg-wizard-shell{
  width:min(920px,100%);margin:0 auto;padding:10px 14px 22px;gap:8px;
  display:flex;flex-direction:column;min-height:calc(100dvh - 24px)
}
.prereg-wizard-head{
  display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:16px;flex-shrink:0;
  background:linear-gradient(155deg,rgba(10,36,82,.92),rgba(14,48,105,.86));
  border:1px solid var(--pr-line);box-shadow:0 10px 28px rgba(4,20,55,.22);
  position:relative;overflow:hidden
}
.prereg-wizard-head:before{
  content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;
  background:radial-gradient(320px 80px at 100% 0%,rgba(96,165,250,.14),transparent 65%)
}
.prereg-wizard-back{
  position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;flex-shrink:0;
  background:rgba(8,30,72,.72);border:1px solid var(--pr-line);color:#93c5fd;
  font-size:10.5px;font-weight:700;text-decoration:none;white-space:nowrap;
  transition:transform .2s,background .2s,border-color .2s
}
.prereg-wizard-back:hover{transform:translateY(-1px);border-color:rgba(125,211,252,.45);background:rgba(29,78,216,.32)}
.prereg-wizard-meta{position:relative;z-index:1;flex:1;min-width:0}
.prereg-wizard-meta h1{
  margin:0;font-size:15px;font-weight:900;line-height:1.35;color:#f0f9ff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.prereg-wizard-meta p{
  margin:2px 0 0;font-size:11px;color:#93c5fd;display:flex;align-items:center;gap:6px
}
.prereg-save-status{
  margin-right:auto;font-size:10.5px;font-weight:800;padding:5px 10px;border-radius:999px;
  color:#94a3b8;min-height:28px;display:inline-flex;align-items:center;white-space:nowrap;flex-shrink:0
}
.prereg-save-status:empty{display:none}
.prereg-save-status.is-saving{color:#bae6fd;background:rgba(56,189,248,.14)}
.prereg-save-status.is-saved{color:#6ee7b7;background:rgba(16,185,129,.14)}
.prereg-save-status.is-error{color:#fca5a5;background:rgba(239,68,68,.14)}
.prereg-wizard-form{flex:1;display:flex;flex-direction:column;min-height:0}
.prereg-wizard-sheet{
  flex:1;display:flex;flex-direction:column;background:#fff;border-radius:22px;
  border:1px solid #e2e8f0;box-shadow:0 22px 50px rgba(15,23,42,.14);
  overflow:visible;color:#0f172a;position:relative;min-height:0
}
.prereg-wizard-sheet:before{
  content:"";display:block;height:3px;flex-shrink:0;
  background:linear-gradient(90deg,#2563eb,#38bdf8,#0ea5e9)
}
.prereg-wizard-steps{
  display:flex;align-items:center;justify-content:flex-start;gap:0;flex-shrink:0;
  overflow-x:auto;padding:10px 14px 8px;background:#fff;border-bottom:1px solid #eef2f7;
  scrollbar-width:none;-ms-overflow-style:none
}
.prereg-wizard-steps::-webkit-scrollbar{display:none;height:0}
.prereg-wizard-step{
  display:inline-flex;align-items:center;gap:7px;min-width:0;padding:7px 11px;border-radius:999px;
  border:1px solid #e2e8f0;background:#f8fafc;color:#64748b;
  cursor:pointer;font:inherit;transition:border-color .25s,background .25s,transform .25s,box-shadow .25s,color .25s;
  flex-shrink:0
}
.prereg-wizard-step:disabled{cursor:default;opacity:.5}
.prereg-wizard-step-badge{
  display:grid;place-items:center;width:22px;height:22px;border-radius:999px;font-size:10px;font-weight:900;
  background:#e2e8f0;color:#64748b;transition:background .25s,color .25s,transform .25s
}
.prereg-wizard-step-icon{
  display:grid;place-items:center;width:26px;height:26px;border-radius:10px;
  background:#eef2f7;color:#94a3b8;font-size:12px;transition:background .25s,color .25s,transform .25s
}
.prereg-wizard-step strong{font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap}
.prereg-wizard-step.is-active{
  border-color:#93c5fd;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1e40af;
  box-shadow:0 8px 20px rgba(37,99,235,.14);transform:translateY(-1px)
}
.prereg-wizard-step.is-active .prereg-wizard-step-badge{background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;transform:scale(1.05)}
.prereg-wizard-step.is-active .prereg-wizard-step-icon{background:rgba(37,99,235,.12);color:#2563eb}
.prereg-wizard-step.is-done{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}
.prereg-wizard-step.is-done .prereg-wizard-step-badge{background:#16a34a;color:#fff}
.prereg-wizard-step.is-done .prereg-wizard-step-icon{background:rgba(34,197,94,.15);color:#16a34a}
.prereg-wizard-step-line{
  flex:0 0 14px;height:2px;border-radius:999px;margin:0 2px;
  background:linear-gradient(90deg,#e2e8f0,#cbd5e1,#e2e8f0)
}
.prereg-wizard-step.is-done + .prereg-wizard-step-line{
  background:linear-gradient(90deg,#86efac,#22c55e,#cbd5e1)
}
.prereg-wizard-body{flex:1;min-height:0;overflow:visible;background:#fff;position:relative}
.prereg-wizard-body.is-driving{overflow:hidden}
.prereg-drive-layer{
  position:absolute;inset:auto 0 0 0;height:48px;pointer-events:none;z-index:8;
  opacity:0;visibility:hidden;transition:opacity .2s ease
}
.prereg-wizard-body.is-driving .prereg-drive-layer{opacity:1;visibility:visible}
.prereg-drive-track{
  position:absolute;inset:auto 16px 14px 16px;height:4px;border-radius:999px;
  background:linear-gradient(90deg,#e2e8f0,#cbd5e1);overflow:hidden
}
.prereg-drive-track-fill{
  display:block;height:100%;width:0;border-radius:inherit;
  background:linear-gradient(90deg,#38bdf8,#2563eb,#0ea5e9)
}
.prereg-wizard-body.is-driving .prereg-drive-track-fill{
  animation:preregDriveTrack 1.5s cubic-bezier(.45,0,.15,1) forwards
}
.prereg-drive-shuttle{
  position:absolute;bottom:6px;left:58%;z-index:2;
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;font-size:14px;color:#fff;
  background:linear-gradient(145deg,#2563eb,#0ea5e9);
  box-shadow:0 6px 20px rgba(37,99,235,.35);
  will-change:left,transform,opacity
}
.prereg-wizard-body.is-driving .prereg-drive-shuttle{
  animation:preregShuttleGlide 1.5s cubic-bezier(.45,0,.15,1) forwards
}
.prereg-public-wizard .prereg-step-panel.is-exiting{
  display:block!important;position:absolute;inset:0;z-index:4;background:#fff;
  animation:preregDriveExit 1.5s cubic-bezier(.45,0,.15,1) forwards;
  pointer-events:none
}
.prereg-public-wizard .prereg-step-panel.is-entering{
  display:block!important;position:relative;z-index:3;background:#fff;
  animation:preregDriveEnter .6s cubic-bezier(.25,.8,.25,1) .88s both
}
@keyframes preregShuttleGlide{
  0%{left:58%;opacity:0;transform:scale(.88)}
  12%{opacity:1;transform:scale(1)}
  30%{left:52%;transform:scale(1)}
  100%{left:6%;opacity:0;transform:scale(.96)}
}
@keyframes preregDriveTrack{
  0%{width:0}
  30%{width:18%}
  100%{width:100%}
}
@keyframes preregDriveExit{
  0%{transform:translateX(0);opacity:1;filter:blur(0)}
  30%{transform:translateX(-6%);opacity:1}
  100%{transform:translateX(-108%);opacity:0;filter:blur(2px)}
}
@keyframes preregDriveEnter{
  from{transform:translateX(18%);opacity:0}
  to{transform:translateX(0);opacity:1}
}
.prereg-wizard-sheet.is-driving-next .prereg-wizard-nav .primary-btn[data-prereg-next]{
  animation:preregNextGas .4s cubic-bezier(.45,0,.15,1) .12s 1
}
@keyframes preregNextGas{
  0%{transform:scale(1)}
  45%{transform:scale(.97)}
  100%{transform:scale(1)}
}
.prereg-family-step-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  min-height:220px;text-align:center;color:#64748b;padding:24px 16px
}
.prereg-family-step-placeholder i{font-size:32px;color:#93c5fd}
.prereg-family-step-placeholder p{margin:0;font-size:13px;line-height:1.7;max-width:320px}
.prereg-family-dialog .prereg-modal-card{max-width:520px}
.prereg-family-grid-modal{grid-template-columns:1fr;gap:10px;margin-top:4px}
.prereg-family-dialog-foot{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0}
.prereg-family-dialog-foot .primary-btn{width:100%;min-height:48px}
.prereg-family-dialog .prereg-family-card.active{
  border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#dbeafe);
  box-shadow:0 10px 24px rgba(37,99,235,.12)
}
.prereg-public-wizard input[data-mobile].is-invalid,
.prereg-public-wizard input[data-home-phone].is-invalid{border-color:#f87171;box-shadow:0 0 0 3px rgba(248,113,113,.15)}
.prereg-public-wizard .field-hint-error{font-size:11px;color:#dc2626;margin-top:4px}
.prereg-public-wizard .pretty-select-menu.portal-open{z-index:6000}
.prereg-public-wizard .location-panel.portal-open{z-index:6000}
.prereg-public-wizard{position:relative;z-index:2;padding-top:0;flex:1;display:flex;flex-direction:column;min-height:0}
.prereg-public-wizard .prereg-step-panel{
  display:none;padding:20px 20px 10px;border:0;border-radius:0;background:#fff;color:inherit
}
.prereg-public-wizard .prereg-step-panel.active{display:block;animation:preregWizardFade .4s cubic-bezier(.2,.9,.2,1)}
@keyframes preregWizardFade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes preregWizardPop{0%{transform:scale(.92)}60%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes preregWizardShimmer{0%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@keyframes preregGenderBurst{0%{transform:scale(1)}40%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes preregIdReveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes preregBtnPulse{0%,100%{box-shadow:0 10px 24px rgba(37,99,235,.22)}50%{box-shadow:0 14px 32px rgba(37,99,235,.35)}}
.prereg-public-wizard .prereg-step-panel h2{
  margin:0 0 16px;font-size:17px;font-weight:900;color:#0f172a;
  display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #e2e8f0
}
.prereg-public-wizard .prereg-step-panel h2:before{
  content:"";width:4px;height:22px;border-radius:999px;
  background:linear-gradient(180deg,#38bdf8,#2563eb);flex-shrink:0
}
.prereg-public-wizard .prereg-hint,.prereg-public-wizard .form-note{color:#64748b}
.prereg-public-wizard label span{color:#334155;font-weight:700;font-size:12px}
.prereg-public-wizard input:not([type=checkbox]):not([type=radio]),
.prereg-public-wizard select,.prereg-public-wizard textarea{
  background:#fff;border:1px solid #dbeafe;color:#0f172a;border-radius:13px;
  transition:border-color .2s,box-shadow .2s
}
.prereg-public-wizard input:not([type=checkbox]):not([type=radio]):focus,
.prereg-public-wizard select:focus,.prereg-public-wizard textarea:focus{
  border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.1);outline:0;transform:translateY(-1px)
}
.prereg-field-block{display:flex;flex-direction:column;gap:6px}
.prereg-id-place{
  display:flex;align-items:center;gap:7px;min-height:1.4rem;margin:0;padding:6px 10px;border-radius:12px;
  background:linear-gradient(135deg,#eff6ff,#f0f9ff);border:1px dashed #93c5fd;color:#1d4ed8;
  font-size:11.5px;font-weight:800
}
.prereg-id-place:empty{display:none}
.prereg-id-place:not(:empty){animation:preregIdReveal .45s ease}
.prereg-id-place.is-loading{color:#64748b;border-color:#cbd5e1;background:#f8fafc}
.prereg-id-place.is-loading:before{
  content:"";width:14px;height:14px;border:2px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;
  animation:preregSpin .7s linear infinite
}
.prereg-id-place:not(:empty):not(.is-loading):before{
  content:"\f3c5";font-family:"Font Awesome 6 Free";font-weight:900;font-size:11px;color:#2563eb
}
.prereg-choice-field{width:100%}
.prereg-public-wizard .prereg-choice-radios{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%
}
.prereg-public-wizard .prereg-choice-radios label{display:flex;width:100%;min-width:0}
.prereg-public-wizard .prereg-choice-radios b{
  width:100%;min-height:50px;padding:12px 14px;border-radius:14px;font-size:12.5px;font-weight:800;
  background:#f8fafc;border-color:#e2e8f0;color:#64748b;
  transition:transform .25s cubic-bezier(.2,.9,.2,1.2),border-color .25s,background .25s,box-shadow .25s,color .25s
}
.prereg-public-wizard .prereg-choice-radios label:active b{transform:scale(.97)}
.prereg-public-wizard .prereg-choice-radios input:checked+b{
  border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;
  box-shadow:0 8px 22px rgba(37,99,235,.14);animation:preregWizardPop .35s ease
}
.prereg-public-wizard .prereg-gender-picker input[value="male"]:checked+b{
  border-color:#3b82f6;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8
}
.prereg-public-wizard .prereg-gender-picker input[value="female"]:checked+b{
  border-color:#ec4899;background:linear-gradient(135deg,#fdf2f8,#fce7f3);color:#be185d;
  box-shadow:0 8px 22px rgba(236,72,153,.14)
}
.prereg-public-wizard .prereg-gender-picker input:checked+b i{animation:preregGenderBurst .5s ease}
.prereg-public-wizard .prereg-family-grid{grid-template-columns:1fr;gap:10px}
.prereg-public-wizard .prereg-family-card{
  width:100%;background:#fff;border-color:#e2e8f0;color:#0f172a;text-align:right;
  transition:border-color .2s,background .2s,transform .2s,box-shadow .2s
}
.prereg-public-wizard .prereg-family-card:hover{
  border-color:#93c5fd;background:#f0f9ff;transform:translateY(-2px);box-shadow:0 10px 22px rgba(37,99,235,.08)
}
.prereg-public-wizard .prereg-family-card.active{
  border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#dbeafe);
  box-shadow:0 12px 28px rgba(37,99,235,.12);animation:preregWizardPop .35s ease
}
.prereg-public-wizard .prereg-family-card strong{color:#0f172a}
.prereg-public-wizard .prereg-family-card small{color:#64748b}
.prereg-public-wizard .check-label{color:#334155;font-size:12.5px}
.prereg-name-row{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;grid-column:1/-1
}
.prereg-name-row > label{display:flex;flex-direction:column;gap:6px;min-width:0}
.prereg-public-wizard .prereg-review.prereg-dossier{
  display:grid;gap:12px;margin-bottom:16px
}
.prereg-dossier-card{
  border:1px solid #e2e8f0;border-radius:18px;background:#fff;overflow:hidden;
  box-shadow:0 8px 24px rgba(15,23,42,.04);animation:preregWizardFade .35s ease both
}
.prereg-dossier-card header{
  display:flex;align-items:center;gap:10px;padding:12px 14px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);border-bottom:1px solid #e2e8f0
}
.prereg-dossier-card header i{
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;font-size:14px;flex-shrink:0
}
.prereg-dossier-card header h3{margin:0;font-size:13.5px;font-weight:900;color:#0f172a}
.prereg-dossier-body{display:grid;gap:0}
.prereg-dossier-row{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:10px 14px;border-bottom:1px solid #f1f5f9
}
.prereg-dossier-row:last-child{border-bottom:0}
.prereg-dossier-row dt{color:#64748b;font-size:11.5px;font-weight:700;flex:0 0 42%;min-width:0}
.prereg-dossier-row dd{margin:0;color:#0f172a;font-size:12.5px;font-weight:800;text-align:left;word-break:break-word;flex:1}
.prereg-confirm-card{
  display:block;margin-top:4px;cursor:pointer;user-select:none
}
.prereg-confirm-card > input{
  position:absolute;opacity:0;width:1px;height:1px;pointer-events:none
}
.prereg-confirm-card-inner{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  padding:14px 16px;border-radius:18px;border:2px solid #e2e8f0;background:#f8fafc;
  transition:border-color .25s,background .25s,box-shadow .25s,transform .25s
}
.prereg-confirm-card:not(.is-checked) .prereg-confirm-card-inner{
  animation:preregConfirmBlink 2.2s ease-in-out infinite
}
.prereg-confirm-card.is-attention .prereg-confirm-card-inner{
  border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fef3c7);
  box-shadow:0 0 0 4px rgba(245,158,11,.18);animation:preregConfirmPulse .85s ease-in-out 3
}
.prereg-confirm-card.is-checked .prereg-confirm-card-inner{
  border-color:#22c55e;background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  box-shadow:0 10px 28px rgba(34,197,94,.14);animation:none
}
.prereg-confirm-icon{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#2563eb;font-size:18px;flex-shrink:0;
  transition:background .25s,color .25s,transform .25s
}
.prereg-confirm-card.is-checked .prereg-confirm-icon{
  background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;transform:scale(1.04)
}
.prereg-confirm-copy strong{display:block;font-size:13.5px;font-weight:900;color:#0f172a;line-height:1.5}
.prereg-confirm-copy small{display:block;margin-top:4px;font-size:11.5px;color:#64748b;line-height:1.6}
.prereg-confirm-switch{
  width:46px;height:26px;border-radius:999px;background:#cbd5e1;padding:3px;flex-shrink:0;
  transition:background .25s;position:relative
}
.prereg-confirm-switch i{
  display:block;width:20px;height:20px;border-radius:50%;background:#fff;
  box-shadow:0 2px 6px rgba(15,23,42,.18);transition:transform .25s cubic-bezier(.2,.9,.2,1.2)
}
.prereg-confirm-card.is-checked .prereg-confirm-switch{background:#22c55e}
.prereg-confirm-card.is-checked .prereg-confirm-switch i{transform:translateX(-20px)}
@keyframes preregConfirmBlink{
  0%,100%{border-color:#e2e8f0;box-shadow:0 0 0 0 rgba(37,99,235,0)}
  50%{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
}
@keyframes preregConfirmPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.015)}
}
.prereg-returning-dialog{border:0;padding:0;border-radius:22px;width:min(440px,calc(100% - 24px));box-shadow:0 30px 80px rgba(15,23,42,.35)}
.prereg-returning-dialog::backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.prereg-returning-card{padding:0;background:#fff;border-radius:22px;overflow:hidden}
.prereg-returning-card header{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:16px 16px 12px;
  background:linear-gradient(135deg,#eff6ff,#f0fdf4);border-bottom:1px solid #e2e8f0
}
.prereg-returning-icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#16a34a);color:#fff;font-size:18px
}
.prereg-returning-card header strong{display:block;font-size:14px;color:#0f172a}
.prereg-returning-card header small{display:block;margin-top:4px;font-size:11.5px;color:#64748b;line-height:1.6}
.prereg-returning-card > p{margin:0;padding:16px;font-size:13px;line-height:1.85;color:#334155}
.prereg-returning-card footer{padding:0 16px 16px;display:flex;justify-content:flex-end}
.prereg-returning-card footer .primary-btn{min-height:46px;border-radius:14px;padding:0 18px}
.prereg-public-wizard .prereg-review>div{
  background:#f8fafc;border-color:#e2e8f0;border-radius:14px;animation:preregWizardFade .35s ease both
}
.prereg-public-wizard .prereg-review dt{color:#64748b}
.prereg-public-wizard .prereg-review dd{color:#0f172a}
.prereg-wizard-nav{
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;
  padding:14px 16px;background:#fff;border-top:1px solid #e2e8f0;
  position:sticky;bottom:0;z-index:6;box-shadow:0 -8px 24px rgba(15,23,42,.04)
}
.prereg-wizard-nav .primary-btn,.prereg-wizard-nav .secondary-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:14px;padding:12px 20px;font-weight:800;font-size:13px;border:0;cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.9,.2,1.2),box-shadow .25s,background .25s
}
.prereg-wizard-nav .primary-btn{
  min-width:148px;color:#fff;
  background:linear-gradient(135deg,#2563eb 0%,#0284c7 100%);
  box-shadow:0 10px 24px rgba(37,99,235,.28);position:relative;overflow:hidden;
  animation:preregBtnPulse 3s ease-in-out infinite
}
.prereg-wizard-nav .primary-btn:before{
  content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);
  transform:translateX(-120%);animation:preregWizardShimmer 3.5s ease-in-out infinite
}
.prereg-wizard-nav .primary-btn:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(37,99,235,.35)}
.prereg-wizard-nav .primary-btn:active{transform:translateY(0) scale(.98)}
.prereg-wizard-nav .secondary-btn{
  min-width:110px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569
}
.prereg-wizard-nav .secondary-btn:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;transform:translateY(-1px)}
.prereg-wizard-btn-submit{background:linear-gradient(135deg,#16a34a,#059669)!important;box-shadow:0 10px 24px rgba(22,163,74,.28)!important}
.prereg-wizard-sheet.is-driving-next{pointer-events:none}
.prereg-wizard-sheet.is-driving-next .prereg-wizard-nav{pointer-events:auto}
.prereg-burst-layer{
  position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);display:grid;place-items:center
}
.prereg-burst-layer i{
  position:absolute;width:7px;height:7px;border-radius:999px;background:#38bdf8;
  animation:preregBurstDot .65s ease-out forwards
}
.prereg-burst-layer.is-female i{background:#f472b6}
.prereg-burst-layer.is-male i{background:#60a5fa}
@keyframes preregBurstDot{
  from{opacity:1;transform:translate(0,0) scale(1)}
  to{opacity:0;transform:translate(var(--bx,0),var(--by,0)) scale(.2)}
}

.prereg-success{
  text-align:center;padding:32px 24px;border-radius:28px;
  background:linear-gradient(165deg,rgba(12,55,110,.55),rgba(8,30,72,.9));
  border:1px solid rgba(56,189,248,.35);position:relative;overflow:hidden
}
.prereg-success-icon{
  display:inline-grid;place-items:center;width:76px;height:76px;border-radius:50%;margin-bottom:14px;
  background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:34px;
  animation:preregPop .6s cubic-bezier(.2,.9,.2,1.2)
}
@keyframes preregPop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
.prereg-success h1{margin:0 0 8px;font-size:clamp(20px,3.5vw,26px);color:#f0fdf4}
.prereg-success-lead{margin:0;color:#94a3b8;font-size:13px}
.prereg-success-code{
  margin:14px auto 0;padding:14px 18px;border-radius:16px;background:rgba(15,23,42,.6);
  border:1px dashed rgba(134,239,172,.45);font-size:22px;font-weight:800;letter-spacing:.08em;max-width:320px;color:#bbf7d0
}
.prereg-success.is-celebrating .prereg-success-icon{
  animation:preregPop .6s cubic-bezier(.2,.9,.2,1.2),preregPulse 2.4s ease-in-out .6s infinite
}
@keyframes preregPulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}50%{box-shadow:0 0 0 16px rgba(34,197,94,0)}}
.prereg-confetti{
  position:absolute;top:-8px;left:var(--x);width:8px;height:8px;border-radius:2px;opacity:0;
  animation:preregConfetti var(--d,2s) ease-out forwards;pointer-events:none
}
@keyframes preregConfetti{
  0%{opacity:1;transform:translateY(0) rotate(0)}
  100%{opacity:0;transform:translateY(140px) rotate(var(--r,180deg))}
}
.prereg-public-btn{
  min-width:220px;padding:14px 24px;border-radius:16px;font-size:14px;
  box-shadow:0 16px 40px rgba(37,99,235,.35);animation:preregBtnGlow 3s ease-in-out infinite
}
@keyframes preregBtnGlow{
  0%,100%{box-shadow:0 16px 40px rgba(37,99,235,.35)}
  50%{box-shadow:0 20px 48px rgba(124,58,237,.4)}
}
.prereg-credentials,.prereg-tips,.prereg-public-video{
  background:var(--pr-surface-soft)!important;border:1px solid var(--pr-line)!important;color:var(--pr-text)
}
.prereg-credentials-head h2,.prereg-tips-head h2{color:#f1f5f9}
.prereg-credential-card{background:rgba(30,41,59,.65)!important;border-color:rgba(148,163,184,.2)!important}
.prereg-credential-card strong{color:#f8fafc}
.prereg-tips{background:linear-gradient(165deg,rgba(12,48,105,.55),rgba(8,30,72,.88))!important}
.prereg-tips-head h2{color:#bae6fd!important}
.prereg-tips-list{color:#dbeafe!important}
.prereg-finish-actions{display:flex;flex-direction:column;align-items:center;justify-content:center}
.prereg-credentials{padding:20px;border-radius:24px}
.prereg-credentials-head h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.prereg-credentials-head p{margin:6px 0 0;color:#94a3b8;font-size:12px}
.prereg-credentials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:14px}
.prereg-credential-card{
  border:1px solid rgba(148,163,184,.2);border-radius:18px;padding:14px;
  background:rgba(30,41,59,.65);display:flex;flex-direction:column;gap:6px;text-align:center
}
.prereg-credential-card.is-student{border-color:rgba(96,165,250,.45);background:rgba(37,99,235,.15)}
.prereg-credential-role{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:800;color:#94a3b8
}
.prereg-credential-card strong{font-size:13px;color:#f8fafc}
.prereg-credential-code{
  margin:4px auto 0;padding:10px 12px;border-radius:14px;background:rgba(15,23,42,.6);
  border:1px dashed rgba(148,163,184,.35);font-size:18px;font-weight:800;letter-spacing:.06em;color:#e2e8f0
}
.prereg-credential-card small{color:#64748b;font-size:10px}
.prereg-tips{padding:20px;border-radius:24px}
.prereg-tips-head h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.prereg-tips-list{margin:14px 0 0;padding:0 18px 0 0;display:grid;gap:10px;font-size:12.5px;line-height:1.85}
.prereg-tips-list li{padding-right:4px}
.prereg-finish-hint{margin:10px 0 0;text-align:center;color:#94a3b8;font-size:12px}
.prereg-public-video{border-radius:22px}

.prereg-mobile-head{display:none}

@media(max-width:760px){
  .prereg-canvas,.prereg-float-layer,.prereg-hero-ring{display:none!important}
  .prereg-mesh{filter:blur(60px);opacity:.38}

  .prereg-public-page{
    padding:0 12px max(24px,env(safe-area-inset-bottom));
    gap:14px;min-height:0
  }

  .prereg-public-page:has(.prereg-bento-grid) .prereg-start-bar{display:none}
  .prereg-public-page:has(.prereg-bento-grid) .prereg-public-top{display:none}
  .prereg-public-page:has(.prereg-bento-grid) .prereg-org-section{
    padding:0;background:transparent;border:0;box-shadow:none;border-radius:0
  }

  /* unified mobile header */
  .prereg-mobile-head{display:block;margin:0 -4px 2px}
  .prereg-mobile-head-shell{
    position:relative;border-radius:24px;padding:2px;overflow:hidden;
    background:linear-gradient(135deg,rgba(56,189,248,.55),rgba(37,99,235,.45),rgba(2,132,199,.4));
    background-size:200% 200%;animation:preregBorderFlow 7s ease infinite;
    box-shadow:0 18px 44px rgba(4,20,55,.35)
  }
  .prereg-mobile-head-shell:before{
    content:"";position:absolute;inset:0;border-radius:24px;
    background:radial-gradient(280px 120px at 15% 0%,rgba(125,211,252,.2),transparent 70%);
    pointer-events:none
  }
  .prereg-mobile-head-top{
    position:relative;z-index:1;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;
    padding:12px 12px 0
  }
  .prereg-mobile-back{
    width:40px;height:40px;border-radius:14px;display:grid;place-items:center;
    background:rgba(8,30,72,.55);border:1px solid var(--pr-line);color:#bae6fd;text-decoration:none;
    font-size:15px;transition:transform .2s,background .2s
  }
  .prereg-mobile-back:active{transform:scale(.94);background:rgba(29,78,216,.45)}
  .prereg-mobile-brand{
    justify-self:center;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
    background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;overflow:hidden;
    box-shadow:0 8px 22px rgba(37,99,235,.4)
  }
  .prereg-mobile-brand img{width:100%;height:100%;object-fit:contain;background:#fff;padding:6px}
  .prereg-mobile-head-spacer{width:40px;height:40px}
  .prereg-mobile-head-main{
    position:relative;z-index:1;display:grid;grid-template-columns:1fr 108px;gap:8px;align-items:center;
    padding:10px 14px 12px;border-radius:0 0 22px 22px;
    background:linear-gradient(165deg,rgba(10,36,82,.94),rgba(8,28,68,.9))
  }
  .prereg-mobile-chip{
    display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;
    background:rgba(37,99,235,.22);border:1px solid rgba(125,211,252,.28);color:#bae6fd;
    font-size:10px;font-weight:800;margin-bottom:8px
  }
  .prereg-mobile-head-copy h2{
    margin:0;font-size:18px;line-height:1.45;font-weight:900;color:#f0f9ff;
    text-shadow:0 4px 18px rgba(37,99,235,.25)
  }
  .prereg-mobile-head-copy p{margin:6px 0 0;font-size:11.5px;line-height:1.6;color:#93c5fd}
.prereg-mobile-head-art .prereg-scene-svg{max-width:108px;max-height:82px;margin:0 auto}
  .prereg-mobile-steps{
    position:relative;z-index:1;display:flex;justify-content:center;gap:7px;
    padding:0 14px 12px;background:linear-gradient(165deg,rgba(8,28,68,.9),rgba(8,28,68,.82));
    border-radius:0 0 22px 22px;margin-top:-1px
  }
  .prereg-mobile-steps span{
    width:28px;height:4px;border-radius:999px;background:rgba(125,211,252,.22);transition:width .25s,background .25s
  }
  .prereg-mobile-steps span.is-active{width:42px;background:linear-gradient(90deg,#38bdf8,#2563eb)}

  /* default top bar when no org list */
  .prereg-public-top{
    margin:0 -4px;padding:8px 4px 4px;background:transparent;border:0;position:static
  }
  .prereg-public-back{padding:8px 12px;font-size:11px;min-height:40px}
  .prereg-public-brand,.prereg-public-brand-fallback{height:36px;width:36px;max-width:36px;border-radius:12px;font-size:16px}
  .prereg-brand-pulse{display:none}

  /* hide heavy hero when org cards exist — org selection first */
  .prereg-hero-cinematic{border-radius:20px;margin-top:4px}
  .prereg-hero-content{padding:18px 14px 16px;grid-template-columns:1fr}
  .prereg-hero-sub{font-size:12.5px;line-height:1.7;margin-top:0}
  .prereg-hero-title{font-size:21px}
  .prereg-hero-badge{font-size:10px;padding:6px 10px;margin-bottom:10px}
  .prereg-steps-track{display:none}

  .prereg-public-section-head{padding:8px 2px 4px}
  .prereg-section-eyebrow{display:none}
  .prereg-public-section-head h2{margin:0;font-size:17px;line-height:1.4}
  .prereg-public-section-head p{margin:4px 0 0;font-size:11.5px;color:#64748b}

  .prereg-bento-grid{--prereg-cols:1!important;max-width:none;gap:12px}

  /* horizontal tap-friendly org rows */
  .prereg-bento-card{
    flex-direction:row;align-items:center;text-align:right;justify-content:flex-start;
    min-height:76px;padding:13px 14px;gap:13px;border-radius:20px;
    transform:none!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
    box-shadow:0 10px 26px rgba(4,20,55,.28),inset 0 1px 0 rgba(186,230,253,.06)
  }
  .prereg-bento-card:active{transform:scale(.985)!important;background:rgba(29,78,216,.28)}
  .prereg-card-border{opacity:.65}
  .prereg-card-shine,.prereg-card-glow{display:none}
  .prereg-card-icon{
    width:54px;height:54px;min-width:54px;border-radius:16px;font-size:22px;
    animation:none;margin:0;box-shadow:0 8px 18px rgba(4,20,55,.25)
  }
  .prereg-card-body{flex:1;min-width:0;text-align:right}
  .prereg-card-body strong{display:block;font-size:14.5px;line-height:1.35;font-weight:800;color:#f0f9ff}
  .prereg-card-body small{font-size:10.5px;color:#93c5fd;margin-top:2px;display:block}
  .prereg-card-action{margin:0;padding:0;background:transparent;border:0;flex:0 0 auto}
  .prereg-card-action span{display:none}
  .prereg-card-action i{
    display:grid;place-items:center;width:40px;height:40px;border-radius:14px;
    background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(2,132,199,.28));color:#e0f2fe;font-size:14px;
    box-shadow:0 6px 14px rgba(4,20,55,.22)
  }

  /* bottom-sheet modal */
  .prereg-modal{
    position:fixed;inset:auto 0 0 0;width:100%;max-width:100%;margin:0;
    border-radius:22px 22px 0 0;transform:translateY(100%);opacity:1;max-height:88dvh
  }
  .prereg-modal.is-open{transform:translateY(0)}
  .prereg-modal::backdrop{background:rgba(2,6,23,.78)}
  .prereg-modal-card{border-radius:22px 22px 0 0;max-height:88dvh;display:flex;flex-direction:column}
  .prereg-modal-body{max-height:none;flex:1;overflow:auto;padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .prereg-pick-item{
    min-height:56px;padding:12px;touch-action:manipulation;
    transform:none;opacity:1
  }
  .prereg-pick-item.is-visible{transform:none}

  .prereg-steps-track{flex-direction:column;align-items:stretch}
  .prereg-step-connector{width:100%;height:24px;flex:0 0 24px;justify-content:center}
  .prereg-step-connector i{width:2px;height:100%;background:linear-gradient(180deg,rgba(96,165,250,.15),rgba(96,165,250,.55),rgba(96,165,250,.15))}
  .prereg-step-node{max-width:none}

  .prereg-wizard-shell{padding:0 10px calc(84px + env(safe-area-inset-bottom));gap:8px;min-height:100dvh}
  .prereg-wizard-head{
    position:sticky;top:0;z-index:45;margin:0 -2px 6px;padding:8px 10px;padding-top:max(8px,env(safe-area-inset-top));
    border-radius:0 0 16px 16px;
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)
  }
  .prereg-wizard-back{min-height:40px;padding:8px 10px;touch-action:manipulation}
  .prereg-wizard-meta h1{font-size:14px;white-space:normal;line-height:1.4}
  .prereg-wizard-meta p{font-size:10.5px}
  .prereg-save-status{max-width:38vw;overflow:hidden;text-overflow:ellipsis;font-size:10px;padding:4px 8px}
  .prereg-wizard-sheet{
    border-radius:18px;margin:0;
    padding-bottom:calc(72px + env(safe-area-inset-bottom))
  }
  .prereg-wizard-steps{
    position:sticky;top:calc(54px + env(safe-area-inset-top,0px));z-index:30;padding:8px 10px 6px;
    scroll-snap-type:x proximity;scroll-padding-inline:10px;
    -webkit-overflow-scrolling:touch;background:#fff
  }
  .prereg-wizard-step{
    scroll-snap-align:center;padding:8px 10px;min-height:44px;touch-action:manipulation
  }
  .prereg-wizard-step:not(.is-active) strong{display:none}
  .prereg-wizard-step.is-active{padding-inline:12px}
  .prereg-wizard-step-line{flex-basis:8px}
  .prereg-wizard-body{padding:0}
  .prereg-public-wizard .prereg-step-panel{padding:14px 12px 10px}
  .prereg-public-wizard .prereg-step-panel h2{font-size:15px;margin-bottom:12px;padding-bottom:10px}
  .prereg-public-wizard .form-grid{grid-template-columns:1fr!important;gap:14px}
  .prereg-name-row{grid-template-columns:1fr;gap:14px}
  .prereg-public-wizard label span{font-size:12.5px}
  .prereg-public-wizard input:not([type=checkbox]):not([type=radio]),
  .prereg-public-wizard select,.prereg-public-wizard textarea,
  .prereg-public-wizard .pretty-select-trigger{
    min-height:48px;font-size:16px;padding:12px 14px;border-radius:14px;touch-action:manipulation
  }
  .prereg-public-wizard .pretty-select-trigger{font-size:15px}
  .prereg-public-wizard .prereg-choice-radios{grid-template-columns:1fr;gap:10px}
  .prereg-public-wizard .prereg-choice-radios b{min-height:52px;font-size:14px}
  .prereg-public-wizard .prereg-family-card{
    min-height:56px;padding:16px;border-radius:16px;touch-action:manipulation
  }
  .prereg-public-wizard .prereg-family-card strong{font-size:14px}
  .prereg-public-wizard .prereg-family-card small{font-size:11.5px;line-height:1.5}
  .prereg-public-wizard .prereg-gender-picker .prereg-choice-radios{grid-template-columns:1fr 1fr;gap:10px}
  .prereg-public-wizard .prereg-review>div{padding:12px 14px}
  .prereg-public-wizard .prereg-review dt,.prereg-public-wizard .prereg-review dd{font-size:13px}
  .prereg-dossier-row{flex-direction:column;gap:4px}
  .prereg-dossier-row dt,.prereg-dossier-row dd{text-align:right;width:100%}
  .prereg-confirm-card-inner{grid-template-columns:auto 1fr;padding:14px}
  .prereg-confirm-switch{display:none}
  .prereg-confirm-card:not(.is-checked) .prereg-confirm-card-inner{animation:preregConfirmBlink 2.4s ease-in-out infinite}
  .prereg-id-place{font-size:12px;padding:8px 10px}
  .prereg-wizard-nav{
    position:fixed;left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));z-index:50;
    padding:10px 12px;border-radius:18px;
    box-shadow:0 -10px 40px rgba(15,23,42,.16),0 0 0 1px rgba(226,232,240,.9);
    gap:10px
  }
  .prereg-wizard-nav .primary-btn,.prereg-wizard-nav .secondary-btn{
    flex:1;min-width:0;min-height:48px;font-size:14px;border-radius:14px
  }
  .prereg-wizard-nav .primary-btn{animation:none}
  .prereg-wizard-nav .primary-btn:before{display:none}

  /* done page mobile */
  .prereg-public-page-narrow{padding:0 10px max(20px,env(safe-area-inset-bottom));gap:12px}
  .prereg-success{padding:22px 16px;border-radius:18px}
  .prereg-success h1{font-size:18px;line-height:1.5}
  .prereg-success-lead{font-size:12.5px;line-height:1.75}
  .prereg-success-code{font-size:18px;padding:12px 14px}
  .prereg-credentials,.prereg-tips,.prereg-video-card{padding:16px;border-radius:18px}
  .prereg-credentials-grid{grid-template-columns:1fr;gap:10px}
  .prereg-credential-card{padding:16px;border-radius:16px}
  .prereg-credential-code{font-size:20px;padding:12px}
  .prereg-tips-list{font-size:12px;line-height:1.8;padding-right:16px}
  .prereg-public-btn{width:100%;min-width:0;min-height:50px;font-size:14px;touch-action:manipulation}
  .prereg-finish-hint{font-size:11px;line-height:1.6;padding:0 4px}

  /* start / org list polish */
  .prereg-public-page.has-orgs{padding:0 10px max(16px,env(safe-area-inset-bottom))}
  .prereg-mobile-head{margin:0 0 4px}
  .prereg-mobile-head-main{grid-template-columns:1fr 88px;padding:10px 12px}
  .prereg-mobile-head-copy h2{font-size:16px}
  .prereg-mobile-head-art .prereg-scene-svg{max-width:88px;max-height:72px}
  .prereg-card-action i{width:44px;height:44px;min-width:44px;border-radius:13px}

  /* global touch polish */
  .prereg-public a,.prereg-public button,.prereg-public [role=button]{-webkit-tap-highlight-color:transparent}
  .prereg-public input,.prereg-public select,.prereg-public textarea,.prereg-public .pretty-select-trigger{
    -webkit-appearance:none;appearance:none
  }
}
@media(max-width:420px){
  .prereg-wizard-back span{display:none}
  .prereg-wizard-back{width:40px;height:40px;padding:0;justify-content:center;border-radius:12px}
  .prereg-wizard-step{padding:7px 8px}
  .prereg-wizard-step-icon{width:24px;height:24px;font-size:11px;border-radius:9px}
  .prereg-wizard-step-badge{width:20px;height:20px;font-size:9px}
  .prereg-mobile-head-main{grid-template-columns:1fr}
  .prereg-mobile-head-art{display:none}
}
@media(min-width:761px){
  .prereg-mobile-head{display:none!important}
  .prereg-start-bar{display:grid}
}
@media(min-width:761px) and (max-width:980px){
  .prereg-bento-grid.prereg-bento-cols-3{--prereg-cols:2}
  .prereg-start-bar{grid-template-columns:auto minmax(0,1fr) 96px;gap:10px;padding:10px 12px}
  .prereg-start-art .prereg-scene-svg{max-height:68px}
  .prereg-start-copy h1{font-size:18px}
  .prereg-start-steps > span em{display:none}
}
@media(min-width:981px){
  .prereg-start-bar{grid-template-columns:auto minmax(0,1fr) 128px}
}
@media(prefers-reduced-motion:reduce){
  .prereg-canvas,.prereg-float-layer{display:none}
  .prereg-mesh,.prereg-grid-lines,[data-prereg-reveal],.prereg-modal,.prereg-hero-badge:before,
  .prereg-title-shine,.prereg-step-icon,.prereg-card-border,.prereg-public-btn,.prereg-mobile-head-art img,
  .prereg-wizard-nav .primary-btn,.prereg-gender-picker input:checked+b i,.prereg-id-place,
  .prereg-confirm-card:not(.is-checked) .prereg-confirm-card-inner,.prereg-confirm-card.is-attention .prereg-confirm-card-inner,
  .prereg-drive-car,.prereg-drive-road span,.prereg-drive-wind,.prereg-drive-shuttle,.prereg-drive-track-fill,
  .prereg-step-panel.is-exiting,.prereg-step-panel.is-entering{animation:none!important}
  [data-prereg-reveal],.prereg-pick-item{opacity:1;transform:none;transition:none}
}

.prereg-shell{width:min(920px,100%);margin:0 auto;display:flex;flex-direction:column;gap:16px;padding:12px}
.prereg-hero{padding:22px;text-align:center;position:relative}
.prereg-hero h1{margin:8px 0 4px;font-size:22px}
.prereg-hero p{margin:0;color:var(--muted);font-size:13px}
.prereg-back{position:absolute;right:16px;top:16px;font-size:12px;color:var(--primary);display:inline-flex;align-items:center;gap:6px}
.prereg-org-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.prereg-org-card{
  border:1px solid var(--line);border-radius:22px;padding:22px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;
  cursor:pointer;background:#fff;transition:.2s;text-align:center
}
.prereg-org-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(37,99,235,.12);border-color:#bfdbfe}
.prereg-org-icon{
  width:72px;height:72px;border-radius:22px;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(135deg,var(--org-1,var(--primary)),var(--org-2,#4f46e5));color:#fff;font-size:28px
}
.prereg-org-icon img{width:100%;height:100%;object-fit:contain;background:#fff;padding:8px}
.prereg-org-card strong{font-size:15px}
.prereg-org-card small{color:var(--muted);font-size:11px}
.prereg-grade-dialog{border:0;padding:0;border-radius:22px;width:min(420px,calc(100% - 24px));box-shadow:0 30px 80px rgba(15,23,42,.35)}
.prereg-grade-dialog::backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.prereg-grade-card{padding:0}
.prereg-grade-card header{display:flex;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line)}
.prereg-grade-card header small{color:var(--muted);font-size:11px}
.prereg-grade-card header h2{margin:4px 0 0;font-size:16px}
.prereg-grade-card header button{border:0;background:#f1f5f9;width:36px;height:36px;border-radius:12px;cursor:pointer}
.prereg-grade-list{display:flex;flex-direction:column;gap:8px;padding:14px;max-height:60vh;overflow:auto}
.prereg-grade-item{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);
  border-radius:16px;background:#fff;width:100%;text-align:right;color:inherit;font:inherit;cursor:pointer;text-decoration:none
}
button.prereg-grade-item{border:1px solid var(--line)}
button.prereg-grade-item:hover{border-color:#bfdbfe;background:var(--primary-soft)}
.prereg-grade-item:hover{border-color:#bfdbfe;background:var(--primary-soft)}
.prereg-grade-item strong{display:block;font-size:13px}
.prereg-grade-item small{color:var(--muted);font-size:11px}
.prereg-steps{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:14px}
.prereg-steps button{
  border:0;background:#f1f5f9;color:#64748b;border-radius:999px;padding:6px 10px;font-size:11px;cursor:pointer
}
.prereg-steps button.active{background:var(--primary);color:#fff;font-weight:700}
.prereg-steps button.done{background:#dbeafe;color:#1d4ed8}
.prereg-step-panel{display:none;padding:18px}
.prereg-step-panel.active{display:block}
.prereg-step-panel h2{margin:0 0 14px;font-size:16px}
.prereg-hint{color:var(--muted);font-size:12px;margin:0 0 12px}
.prereg-family-grid{display:grid;grid-template-columns:1fr;gap:10px}
.prereg-family-card{
  text-align:right;border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;cursor:pointer
}
.prereg-family-card.active,.prereg-family-card:hover{border-color:var(--primary);background:var(--primary-soft)}
.prereg-family-card strong{display:block;font-size:13px}
.prereg-family-card small{color:var(--muted);font-size:11px}
.prereg-nav{display:flex;justify-content:space-between;gap:10px;padding:14px;position:sticky;bottom:10px}
.prereg-review{display:grid;gap:8px;margin-bottom:14px}
.prereg-review>div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid var(--line)}
.prereg-review dt{color:var(--muted);font-size:11px}
.prereg-review dd{margin:0;font-weight:700;font-size:12px}
.prereg-confirm{margin-top:8px}
.prereg-video-card{padding:18px}
.prereg-video-frame{position:relative;padding-top:56.25%;border-radius:16px;overflow:hidden;background:#0f172a}
.prereg-video-frame iframe,.prereg-video{position:absolute;inset:0;width:100%;height:100%;border:0}
.prereg-video{position:static;min-height:220px;border-radius:16px;width:100%}
.prereg-finish-actions{display:flex;flex-direction:column;align-items:center;justify-content:center}
.prereg-loading{padding:20px;text-align:center;color:var(--muted)}

/* Messenger tour */
.msg-tour-overlay{position:fixed;inset:0;z-index:9998;pointer-events:none}
.msg-tour-overlay::before{
  content:"";position:fixed;inset:0;background:rgba(15,23,42,.72);pointer-events:auto
}
.msg-tour-spot{
  position:fixed;z-index:9999;border-radius:14px;box-shadow:0 0 0 9999px rgba(15,23,42,.72);
  outline:2px solid #fff;pointer-events:none;transition:all .25s ease
}
.msg-tour-tip{
  position:fixed;z-index:10000;width:min(320px,calc(100vw - 24px));background:#fff;border-radius:18px;
  padding:16px;box-shadow:0 20px 50px rgba(15,23,42,.35);pointer-events:auto
}
.msg-tour-tip strong{display:block;font-size:14px;margin-bottom:6px}
.msg-tour-tip p{margin:0 0 12px;font-size:12px;color:#475569;line-height:1.7}
.msg-tour-tip .msg-tour-actions{display:flex;gap:8px;justify-content:flex-end}
.msg-tour-tip button{border:0;border-radius:12px;padding:8px 12px;cursor:pointer;font-weight:700}
.msg-tour-tip .msg-tour-next{background:var(--primary);color:#fff}
.msg-tour-tip .msg-tour-skip{background:#f1f5f9;color:#475569}

@media(max-width:680px){
  .prereg-org-grid{grid-template-columns:1fr}
  .prereg-back{position:static;margin-bottom:8px;justify-content:center}
  .prereg-steps{gap:4px}
  .prereg-steps button{font-size:10px;padding:5px 8px}
}

/* —— Admin settings page —— */
.prereg-admin-page{gap:16px}
.prereg-admin-hero{
  display:flex;align-items:stretch;justify-content:space-between;gap:18px;padding:0;overflow:hidden;
  background:
    radial-gradient(520px 180px at 100% 0%,rgba(14,165,233,.16),transparent 60%),
    radial-gradient(420px 160px at 0% 100%,rgba(37,99,235,.12),transparent 55%),
    linear-gradient(135deg,#fff 30%,#f0f9ff 100%)
}
.prereg-admin-hero-copy{padding:22px 24px;min-width:0;flex:1}
.prereg-admin-hero-side{
  display:flex;flex-direction:column;align-items:stretch;gap:12px;border-right:1px solid #e2e8f0;min-width:220px
}
.prereg-admin-new-form{margin:0;display:block}
.prereg-admin-new-btn{
  margin:0 14px 14px;justify-content:center;white-space:nowrap;width:calc(100% - 28px);
  box-shadow:0 12px 28px rgba(37,99,235,.24)
}
.prereg-admin-eyebrow{
  display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:800;color:#0284c7;
  background:#e0f2fe;border-radius:999px;padding:5px 10px;margin-bottom:10px
}
.prereg-admin-hero h2{margin:0;font-size:20px;letter-spacing:-.02em}
.prereg-admin-hero p{margin:6px 0 0;color:var(--muted);font-size:12.5px}
.prereg-admin-stats{
  display:grid;grid-template-columns:repeat(2,minmax(88px,1fr));gap:1px;background:rgba(226,232,240,.8);
  min-width:0
}
.prereg-admin-stats>div{
  background:rgba(255,255,255,.72);padding:16px 14px;display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center
}
.prereg-admin-stats strong{font-size:22px;color:#0f172a;line-height:1}
.prereg-admin-stats small{font-size:10px;color:#64748b;font-weight:700}

.prereg-admin-login-link-card{
  padding:0;margin-bottom:12px;border:1px solid #bfdbfe;background:#fff;overflow:hidden;
  box-shadow:0 14px 34px rgba(37,99,235,.08)
}
.prereg-admin-login-link-card.is-inactive{border-color:#e2e8f0;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.prereg-login-sync-layout{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:0;min-height:100%
}
.prereg-login-sync-main{padding:20px 22px}
.prereg-login-sync-head{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;margin-bottom:18px
}
.prereg-login-sync-icon{
  width:46px;height:46px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;font-size:18px;
  box-shadow:0 10px 22px rgba(37,99,235,.24)
}
.prereg-admin-login-link-card.is-inactive .prereg-login-sync-icon{
  background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:none
}
.prereg-login-sync-head h3{margin:0;font-size:16px;letter-spacing:-.02em;color:#0f172a}
.prereg-login-sync-head p{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.75;max-width:46ch}
.prereg-login-sync-head a{color:#2563eb;font-weight:800;text-decoration:none}
.prereg-login-sync-head a:hover{text-decoration:underline}
.prereg-login-sync-badge{
  display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;font-size:11px;font-weight:800;
  background:#f8fafc;color:#64748b;border:1px solid #e2e8f0;white-space:nowrap;transition:.2s
}
.prereg-login-sync-badge i{font-size:7px;opacity:.85}
.prereg-login-sync-badge.is-on{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.prereg-login-sync-badge.is-on i{color:#22c55e}
.prereg-login-sync-control{
  display:grid;gap:14px;padding:16px;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#fff);
  border:1px solid #e2e8f0
}
.prereg-login-sync-toggle-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding-bottom:14px;border-bottom:1px dashed #e2e8f0
}
.prereg-login-sync-toggle-copy strong{display:block;font-size:13.5px;color:#0f172a;margin-bottom:3px}
.prereg-login-sync-toggle-copy small{display:block;font-size:11.5px;color:#64748b;line-height:1.6}
.prereg-switch-lg{width:54px;height:32px}
.prereg-switch-lg span:before{width:26px;height:26px;top:3px;right:3px}
.prereg-switch-lg input:checked+span:before{right:25px}
.prereg-login-sync-field{display:grid;gap:8px;margin:0}
.prereg-login-sync-field>span{
  display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#475569
}
.prereg-login-sync-field>span i{color:#2563eb;font-size:11px}
.prereg-login-sync-field input{
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid #dbeafe;background:#fff;
  font-size:13px;font-weight:700;color:#0f172a;transition:border-color .2s,box-shadow .2s
}
.prereg-admin-login-link-card.is-inactive .prereg-login-sync-field input{
  background:#f8fafc;border-color:#e2e8f0;color:#64748b
}
.prereg-login-sync-field input:focus{
  outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.18)
}
.prereg-login-sync-preview{
  padding:18px;border-right:1px solid #e2e8f0;
  background:linear-gradient(165deg,#eff6ff 0%,#f8fafc 52%,#fff 100%);
  display:flex;flex-direction:column;gap:10px;min-height:100%
}
.prereg-login-preview-label{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#64748b
}
.prereg-login-preview-frame{flex:1;display:grid;place-items:center;padding:8px 0}
.prereg-login-preview-card{
  width:min(100%,260px);padding:16px 14px;border-radius:20px;background:#fff;border:1px solid #e2e8f0;
  box-shadow:0 16px 36px rgba(15,23,42,.08);display:grid;justify-items:center;gap:8px;text-align:center
}
.prereg-login-preview-logo{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#2563eb;font-size:17px
}
.prereg-login-preview-card>strong{font-size:13px;color:#0f172a}
.prereg-login-preview-card>small{font-size:10px;color:#94a3b8;margin-bottom:2px}
.prereg-login-preview-input{
  width:100%;height:30px;border-radius:10px;background:#f1f5f9;border:1px solid #e2e8f0
}
.prereg-login-preview-submit{
  width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 10px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#fff;font-size:11px;font-weight:800
}
.prereg-login-preview-btn{
  width:100%;margin-top:4px;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;
  background:linear-gradient(135deg,#ecfeff,#eff6ff);border:1px solid #bae6fd;color:#0369a1;
  font-size:11px;font-weight:800;transition:opacity .2s,transform .2s
}
.prereg-login-preview-btn>i:last-child{margin-right:auto;font-size:10px;opacity:.75}
.prereg-login-preview-btn.is-hidden{display:none}
.prereg-login-preview-off{
  width:100%;margin-top:4px;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px dashed #cbd5e1;
  color:#94a3b8;font-size:10.5px;font-style:normal;font-weight:700
}
.prereg-login-preview-off.is-hidden{display:none}

@media (max-width:900px){
  .prereg-login-sync-layout{grid-template-columns:1fr}
  .prereg-login-sync-preview{border-right:0;border-top:1px solid #e2e8f0}
  .prereg-login-sync-head{grid-template-columns:auto 1fr;grid-template-areas:"icon title" "badge badge"}
  .prereg-login-sync-icon{grid-area:icon}
  .prereg-login-sync-head>div{grid-area:title}
  .prereg-login-sync-badge{grid-area:badge;justify-self:start;margin-top:4px}
}

.prereg-admin-tabs-card{padding:12px}
.prereg-admin-tabs{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%
}
.prereg-admin-tab{
  display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;
  border:1px solid var(--line);background:#fff;text-align:right;cursor:pointer;transition:.22s;
  min-height:74px;color:inherit;font:inherit;width:100%
}
.prereg-admin-tab>i{
  width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  background:#f1f5f9;color:#64748b;flex:0 0 auto;font-size:15px
}
.prereg-admin-tab span{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;text-align:right}
.prereg-admin-tab strong{font-size:12.5px;color:#1e293b;font-weight:700}
.prereg-admin-tab small{font-size:10px;color:var(--muted)}
.prereg-admin-tab:hover{border-color:#bfdbfe;background:var(--primary-soft);transform:translateY(-1px)}
.prereg-admin-tab.active{
  border-color:transparent;background:linear-gradient(135deg,var(--primary),#0ea5e9);color:#fff;
  box-shadow:0 12px 26px rgba(37,99,235,.22)
}
.prereg-admin-tab.active>i{background:rgba(255,255,255,.18);color:#fff}
.prereg-admin-tab.active strong,.prereg-admin-tab.active small{color:#fff}
.prereg-admin-tab.active small{opacity:.85}
.prereg-admin-tab:active{transform:scale(.98)}

.prereg-admin-panel{display:none;padding:18px 18px 10px}
.prereg-admin-panel.active{display:block;animation:preregFade .28s ease}
@keyframes preregFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.prereg-admin-panel-head{margin-bottom:16px}
.prereg-admin-panel-head h3{margin:0;font-size:15px}
.prereg-admin-panel-head p{margin:4px 0 0;color:var(--muted);font-size:11.5px}

.prereg-org-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.prereg-org-admin-card{
  border:1px solid var(--line);border-radius:20px;padding:14px;background:#fff;transition:.22s
}
.prereg-org-admin-card.is-open{border-color:#7dd3fc;box-shadow:0 12px 28px rgba(14,165,233,.1)}
.prereg-org-admin-card.is-closed{background:#f8fafc}
.prereg-org-admin-card>header{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-bottom:12px
}
.prereg-org-admin-mark{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;font-size:18px
}
.prereg-org-admin-card.is-closed .prereg-org-admin-mark{background:#cbd5e1}
.prereg-org-admin-card strong{display:block;font-size:13.5px}
.prereg-org-admin-card small{color:var(--muted);font-size:11px}

.prereg-switch{position:relative;width:46px;height:28px;flex:0 0 auto}
.prereg-switch input{position:absolute;opacity:0}
.prereg-switch span{
  position:absolute;inset:0;border-radius:999px;background:#cbd5e1;cursor:pointer;transition:.2s
}
.prereg-switch span:before{
  content:"";position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;
  background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.2);transition:.2s
}
.prereg-switch input:checked+span{background:linear-gradient(135deg,#22c55e,#16a34a)}
.prereg-switch input:checked+span:before{right:21px}

.prereg-grade-chips{display:flex;flex-wrap:wrap;gap:8px;min-height:36px}
.prereg-grade-chips[inert]{opacity:.4;filter:grayscale(.3)}
.prereg-grade-chip{
  display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;
  padding:7px 11px;font-size:11.5px;font-weight:700;color:#64748b;background:#fff;cursor:pointer;transition:.18s
}
.prereg-grade-chip input{position:absolute;opacity:0;pointer-events:none}
.prereg-grade-chip i{font-size:11px}
.prereg-grade-chip.is-on,.prereg-grade-chip:has(input:checked){
  background:#ecfeff;border-color:#67e8f9;color:#0e7490
}
.prereg-empty-hint{font-size:11px;color:#94a3b8;font-style:normal}

.prereg-field-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.prereg-field-group{
  border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff
}
.prereg-field-group>header{
  display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(180deg,#f8fafc,#fff);
  border-bottom:1px solid #eef2f7
}
.prereg-field-group>header>span{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  background:var(--primary-soft);color:var(--primary);font-size:14px
}
.prereg-field-group>header strong{flex:1;font-size:13px}
.prereg-field-group>header small{color:var(--muted);font-size:10.5px}
.prereg-field-rows{display:flex;flex-direction:column}
.prereg-field-row{
  display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;
  padding:10px 12px;border-bottom:1px solid #f1f5f9;transition:.15s
}
.prereg-field-row:last-child{border-bottom:0}
.prereg-field-row.is-enabled{background:#f0fdf4}
.prereg-field-name{font-size:12px;font-weight:600;color:#334155}
.prereg-mini-toggle{
  display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:800;color:#64748b;
  background:#f1f5f9;border-radius:999px;padding:5px 9px;cursor:pointer;user-select:none
}
.prereg-mini-toggle input{accent-color:var(--primary)}
.prereg-mini-toggle.is-required{background:#fff7ed;color:#c2410c}
.prereg-mini-toggle:has(input:checked){background:#dcfce7;color:#15803d}
.prereg-mini-toggle.is-required:has(input:checked){background:#ffedd5;color:#c2410c}
.prereg-mini-toggle:has(input:disabled){opacity:.45;cursor:not-allowed}

.prereg-finish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.prereg-option-card{position:relative;cursor:pointer}
.prereg-option-card>input{position:absolute;opacity:0}
.prereg-option-ui{
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 12px;align-items:center;
  border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff;transition:.2s;min-height:88px
}
.prereg-option-ui>i{
  grid-row:1/3;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:#f1f5f9;color:#64748b;font-size:18px
}
.prereg-option-ui strong{font-size:13px}
.prereg-option-ui em{font-style:normal;font-size:11px;color:var(--muted)}
.prereg-option-card:has(input:checked) .prereg-option-ui{
  border-color:#86efac;background:#f0fdf4;box-shadow:0 10px 24px rgba(22,163,74,.08)
}
.prereg-option-card:has(input:checked) .prereg-option-ui>i{background:#dcfce7;color:#16a34a}
.prereg-input-card{
  display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff
}
.prereg-input-card.full{grid-column:1/-1}
.prereg-input-card>span{font-size:11px;font-weight:800;color:#64748b}
.prereg-input-card input{
  border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px;background:#f8fafc
}
.prereg-input-card input:focus{outline:0;border-color:#93c5fd;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.12)}

.prereg-msg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.prereg-msg-card{
  position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff;cursor:pointer;transition:.18s
}
.prereg-msg-card>input{position:absolute;opacity:0}
.prereg-msg-icon{
  width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  background:#eff6ff;color:#2563eb;font-size:16px
}
.prereg-msg-icon.is-channel{background:#fff7ed;color:#ea580c}
.prereg-msg-card strong{display:block;font-size:12.5px}
.prereg-msg-card small{color:var(--muted);font-size:10.5px}
.prereg-msg-check{opacity:0;color:#16a34a;font-size:14px;transition:.15s}
.prereg-msg-card.is-on,.prereg-msg-card:has(input:checked){
  border-color:#86efac;background:#f0fdf4
}
.prereg-msg-card.is-on .prereg-msg-check,.prereg-msg-card:has(input:checked) .prereg-msg-check{opacity:1}

.prereg-admin-save{
  display:flex;justify-content:flex-end;padding:12px 0 4px;position:sticky;bottom:12px;z-index:6
}
.prereg-admin-save .primary-btn{
  box-shadow:0 14px 34px rgba(37,99,235,.28);padding:12px 22px
}
.empty-state.compact{padding:28px 16px}

@media(max-width:980px){
  .prereg-admin-hero{flex-direction:column}
  .prereg-admin-hero-side{border-right:0;border-top:1px solid #e2e8f0;min-width:0}
  .prereg-admin-stats{grid-template-columns:repeat(4,1fr)}
  .prereg-admin-new-btn{margin:0 14px 14px}
  .prereg-org-admin-grid,.prereg-field-groups,.prereg-msg-grid,.prereg-finish-grid{grid-template-columns:1fr}
  .prereg-admin-tabs-card{
    padding:8px 14px;border-radius:22px;overflow:hidden;
    background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,250,252,.96));
    box-shadow:0 10px 28px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9)
  }
  .prereg-admin-tabs{
    display:flex;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:14px;
    overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none
  }
  .prereg-admin-tabs::-webkit-scrollbar{display:none;height:0}
  .prereg-admin-tab{
    flex:0 0 auto;width:auto;min-width:max-content;min-height:44px;padding:10px 14px;gap:8px;
    border-radius:16px;white-space:nowrap;background:rgba(241,245,249,.78);
    border:1px solid rgba(226,232,240,.65);box-shadow:none;scroll-snap-align:center
  }
  .prereg-admin-tab>i{width:auto;height:auto;background:transparent;font-size:13px;opacity:.92}
  .prereg-admin-tab span{flex-direction:row;align-items:center;gap:6px}
  .prereg-admin-tab strong{font-size:11.5px;color:#475569}
  .prereg-admin-tab small{display:none}
  .prereg-admin-tab:hover{transform:none;background:rgba(241,245,249,.78);border-color:rgba(226,232,240,.65)}
  .prereg-admin-tab.active{
    color:#fff;background:linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%);
    border-color:transparent;box-shadow:0 8px 16px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.22)
  }
  .prereg-admin-tab.active>i{background:transparent;color:#fff;opacity:1}
  .prereg-admin-tab.active strong{color:#fff}
}
@media(max-width:680px){
  .prereg-admin-stats{grid-template-columns:repeat(2,1fr)}
  .prereg-admin-hero-copy{padding:16px}
  .prereg-admin-new-btn{margin:0 12px 12px}
  .prereg-admin-tabs-card{padding:7px 9px;border-radius:20px}
  .prereg-admin-tab{min-height:42px;padding:9px 13px}
  .prereg-field-row{grid-template-columns:1fr;gap:8px}
}
