/* XII Seminário Estadual de Direito Previdenciário — identidade revisada.
   Arte: predios.svg, textura.svg, faixas.svg, selos.svg. Sem fontes ou serviços externos (CSP). */
:root{
  --navy:#002F74;--navy-deep:#001E4D;--cyan:#00AFEC;--cyan-btn:#2EC4F1;--yellow:#FFCB05;--orange:#FB9A1B;
  --on-navy:#D3E1F7;--on-navy-muted:#A9C0E4;--faint:#7F9CCB;
  --ink:#0E2A4F;--muted:#4F6279;--line:#DFE6EF;--surface:#F3F6FA;--white:#FFFFFF;
  --ok-bg:#E3F4EA;--ok:#13703F;--info-bg:#E0F3FC;--info:#00658F;--warn-bg:#FFF3D1;--warn:#7A5600;--danger:#A3262E;
  --display:"Montserrat","Segoe UI",system-ui,Arial,sans-serif;
  --text:"Inter","Segoe UI",system-ui,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--text);color:var(--ink);background:var(--navy);-webkit-font-smoothing:antialiased}
body.admin{background:var(--surface)}
h1,h2,h3,p{margin:0}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
button,a,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- fundo do evento e arte ---------- */
.bg-event{position:relative;overflow:hidden;color:var(--white);background:var(--navy) url("/textura.svg") center/cover}
.bg-event>*{position:relative;z-index:2}
.bg-event>.art{position:absolute;z-index:1;pointer-events:none;display:block}
.art-faixas{right:0;bottom:0}
.art-predios{opacity:.9}

/* ---------- marca ---------- */
.brand{display:flex;align-items:center;gap:16px;color:var(--white)}
.brand .selos{display:block;height:44px;width:auto}
.brand .xii{font-family:var(--display);font-weight:900;font-size:58px;line-height:.82;letter-spacing:-2px}
.brand .nome{display:flex;flex-direction:column;font-family:var(--display);line-height:1.05}
.brand .nome small{font-size:11px;font-weight:500;letter-spacing:.3px}
.brand .nome span{font-size:13px;font-weight:800}
.brand .nome strong{font-size:17px;font-weight:900;color:var(--yellow);letter-spacing:.2px}
.brand.lg{gap:26px}.brand.lg .selos{height:72px}.brand.lg .xii{font-size:104px;letter-spacing:-4px}
.brand.lg .nome small{font-size:18px}.brand.lg .nome span{font-size:22px}.brand.lg .nome strong{font-size:29px}
.brand.sm{gap:10px}.brand.sm .selos{height:30px}.brand.sm .xii{font-size:40px;letter-spacing:-1.5px}
.brand.sm .nome small{font-size:8px}.brand.sm .nome span{font-size:9.5px}.brand.sm .nome strong{font-size:12px}
.brand.mini{gap:7px}.brand.mini .selos{height:20px}.brand.mini .xii{font-size:27px;letter-spacing:-1px}
.brand.mini .nome small{font-size:6px}.brand.mini .nome span{font-size:7px}.brand.mini .nome strong{font-size:8.5px}

/* ---------- tipografia ---------- */
.eyebrow{display:block;font-family:var(--display);font-size:12px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}
.bg-event .eyebrow{color:var(--cyan-btn)}
.card .eyebrow{color:var(--info)}
.bg-event .card .eyebrow{color:var(--info)}
.draw-card .eyebrow{color:var(--cyan-btn)}
.display{font-family:var(--display);font-weight:800;letter-spacing:-1px;line-height:1.08}
.hl{color:var(--yellow)}
.accent-bar{border-left:5px solid var(--yellow);padding-left:20px}
.lead{color:var(--on-navy);line-height:1.55}

/* ---------- botões ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:999px;border:0;font-family:var(--display);font-weight:800;font-size:15px;letter-spacing:.2px;white-space:nowrap;text-align:center}
.btn-primary{background:var(--cyan-btn);color:var(--navy-deep)}
.btn-primary:hover:not(:disabled){background:#5AD2F5}
.btn-secondary{background:var(--white);color:var(--ink);border:1.5px solid var(--line)}
.btn-secondary:hover:not(:disabled){background:#EEF5FB}
.btn-ghost-light{background:transparent;color:var(--white);border:1.5px solid #ffffff55}
.btn-ghost-light:hover:not(:disabled){background:#ffffff14}
.btn.full{width:100%}.btn.lg{min-height:54px;font-size:16px}.btn.sm{min-height:44px;font-size:14px;padding:10px 18px}
.btn.start{align-self:flex-start}
.text-link{display:inline-flex;align-items:center;gap:6px;color:#00709E;font-weight:700;font-size:14px;background:none;border:0;padding:6px 0;word-break:break-all}
.text-link svg.i{width:18px;height:18px}

/* ---------- datas / chips ---------- */
.dates{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;font-family:var(--display);font-weight:800;color:var(--white);font-size:16px}
.dates .d{display:flex;align-items:center;gap:10px}
.dates .d svg.i{color:var(--orange);width:26px;height:26px}
.dates .sep{width:2px;align-self:stretch;background:#ffffff40}
.dates.xl{font-size:30px;margin-top:10px}.dates.xl .d svg.i{width:40px;height:40px}
.dates.md{font-size:15px;gap:10px 16px}
.dates.center{justify-content:center;font-size:17px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:6px 11px;border-radius:999px;background:#EDF1F6;color:#43566D;white-space:nowrap}
.pill.ok{background:var(--ok-bg);color:var(--ok)}.pill.info{background:var(--info-bg);color:var(--info)}.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.start{align-self:flex-start}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}

/* ---------- formulários ---------- */
.field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:700;color:var(--ink)}
.field input,.field select{min-height:50px;padding:12px 14px;border:1.5px solid #C8D3E0;border-radius:12px;background:var(--white);color:var(--ink);font-size:16px;font-weight:500;width:100%}
.field input::placeholder{color:#6C7E94}
.field small{font-weight:500;color:var(--muted)}
.form-stack{display:flex;flex-direction:column;gap:14px}
.form-error{color:var(--danger);font-size:14px;font-weight:600;min-height:1em}
.form-error:empty{display:none}

/* ---------- card ---------- */
.card{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:24px;color:var(--ink)}
.card p{color:var(--muted);font-size:14px;line-height:1.6}
.card h2{font-family:var(--display);font-size:21px;font-weight:800;letter-spacing:-.3px}
.card h3{font-size:16px;font-weight:700}
.card .gap-top{margin-top:8px}
.demo-hint{background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:10px 14px;font-size:13px;line-height:1.5}
.empty{color:var(--muted);font-size:14px;padding:14px 0}

/* =========================================================
   TELÃO — composição fixa em 1920×1080, escalada para a tela
   ========================================================= */
body.stage{background:var(--navy-deep);overflow:hidden}
.stage-viewport{position:fixed;inset:0;overflow:hidden;background:var(--navy-deep)}
.stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;display:flex;flex-direction:column;transform:translate(-50%,-50%) scale(var(--stage-scale,1));transform-origin:center}
.stage-head{display:flex;justify-content:space-between;align-items:center;padding:60px 96px 0}
.stage-tools{display:flex;align-items:center;gap:28px}
.stage-meta{text-align:right;font-family:var(--display);font-weight:600;font-size:20px;letter-spacing:2px;color:var(--on-navy-muted)}
.stage-meta strong{display:block;margin-top:6px;font-size:30px;font-weight:900;letter-spacing:1px;color:var(--white)}
.stage-fs{width:56px;height:56px;padding:0}
.stage-foot{margin-top:auto;display:flex;gap:28px;padding:0 96px 48px;font-size:16px;font-weight:600;letter-spacing:1.6px;color:var(--on-navy-muted)}
.stage-foot .faint{color:var(--faint)}
.stage-eyebrow{font-size:22px;letter-spacing:4px}
.stage-h1{font-size:104px;border-left-width:10px;padding-left:34px;letter-spacing:-2.5px}
.stage-connection{position:absolute;top:24px;left:50%;transform:translateX(-50%);z-index:5;padding:10px 20px;border-radius:999px;background:var(--danger);color:#fff;font-size:20px;font-weight:700}
.stage-connection:empty{display:none}
/* QR */
.stage-main.checkin{display:flex;justify-content:space-between;align-items:flex-start;padding:70px 96px 0}
.stage-copy{max-width:880px;display:flex;flex-direction:column;gap:30px}
.stage-lead{font-size:32px;max-width:760px}
.stage-chip{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;padding:14px 24px;border-radius:999px;background:#ffffff14;border:1.5px solid #ffffff30;font-size:21px;font-weight:600;color:var(--on-navy)}
.stage-chip svg.i{color:var(--yellow);width:26px;height:26px}
.qr-card{background:var(--white);color:var(--navy);border-radius:32px;padding:40px 40px 34px;display:flex;flex-direction:column;align-items:center;gap:18px;box-shadow:0 30px 80px #00143a66}
.qr-card img{width:460px;height:460px;display:block}
.qr-card strong{font-family:var(--display);font-size:32px;font-weight:900;letter-spacing:.5px}
.qr-card span{font-size:22px;font-weight:600;color:var(--muted);max-width:460px;text-align:center;word-break:break-all}
.p-checkin{left:560px;bottom:70px;width:640px;height:400px}
.f-checkin{width:1100px;height:358px}
/* Boas-vindas */
.stage-main.welcome{display:flex;flex-direction:column;gap:34px;padding:96px 96px 0;max-width:1080px}
.stage-h1.welcome{font-size:100px}
.p-welcome{left:960px;bottom:60px;width:880px;height:550px}
.f-welcome{width:1240px;height:403px}
/* Resultado */
.stage-main.result{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;text-align:center;padding:0 160px 120px}
.result-gift{width:112px;height:112px;border-radius:30px;background:var(--yellow);color:var(--navy-deep);display:flex;align-items:center;justify-content:center}
.result-gift svg.i{width:60px;height:60px;stroke-width:1.8}
.result-eyebrow{font-size:24px;letter-spacing:5px}
.result-name{font-size:150px;letter-spacing:-4px;line-height:1;max-width:1700px;overflow-wrap:anywhere}
.result-name.sm{font-size:112px;letter-spacing:-3px}
.result-name.xs{font-size:86px;letter-spacing:-2px}
/* sorteio em andamento */
.draw-orbit{position:relative;width:200px;height:200px;display:grid;place-items:center}
.draw-orbit::before,.draw-orbit::after{content:"";position:absolute;border-radius:50%;border:7px solid transparent}
.draw-orbit::before{inset:0;border-top-color:var(--yellow);border-right-color:var(--cyan-btn);animation:sd-spin 1.1s linear infinite}
.draw-orbit::after{inset:24px;border-bottom-color:var(--orange);border-left-color:var(--yellow);animation:sd-spin .8s linear infinite reverse}
.draw-orbit .result-gift{animation:sd-pulse .9s ease-in-out infinite}
.draw-name{color:#ffffffd9;min-height:1em;white-space:pre}
.draw-bar{width:760px;height:12px;border-radius:999px;background:#ffffff22;overflow:hidden;margin-top:10px}
.draw-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--cyan-btn),var(--yellow));transform-origin:left;transform:scaleX(0);animation:sd-fill var(--draw-ms,6500ms) linear forwards}
.stage-main.result.reveal .result-name,.stage-main.result.reveal .result-gift{animation:sd-reveal .75s cubic-bezier(.2,1.5,.4,1)}
.stage-main.result.reveal .result-call{animation:sd-rise .6s ease .35s both}
@keyframes sd-spin{to{transform:rotate(360deg)}}
@keyframes sd-pulse{50%{transform:scale(1.1)}}
@keyframes sd-fill{to{transform:scaleX(1)}}
@keyframes sd-reveal{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes sd-rise{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.result-prize{font-family:var(--display);font-size:44px;font-weight:800;color:var(--yellow)}
.result-sponsor{font-size:22px;font-weight:600;letter-spacing:2px;color:var(--on-navy-muted);text-transform:uppercase}
.result-call{margin-top:14px;display:inline-flex;align-items:center;gap:12px;padding:16px 30px;border-radius:999px;background:var(--cyan-btn);color:var(--navy-deep);font-family:var(--display);font-size:26px;font-weight:800}
.result-call svg.i{width:28px;height:28px}
.p-result{left:640px;bottom:40px;width:640px;height:400px;opacity:.4}
.f-result{width:1000px;height:325px}

/* =========================================================
   PARTICIPANTE — check-in no celular
   ========================================================= */
.checkin-page{min-height:100vh;min-height:100dvh;padding:26px 20px 290px}
.checkin-wrap{max-width:440px;margin:0 auto;display:flex;flex-direction:column;gap:26px}
.checkin-head{display:flex;justify-content:center}
.checkin-intro{display:flex;flex-direction:column;gap:16px;margin-top:8px}
.checkin-h1{font-size:32px;padding-left:14px;border-left-width:4px}
.lead.sm{font-size:15px}
.checkin-card{display:flex;flex-direction:column;gap:16px;padding:22px 20px;border:0;box-shadow:0 20px 50px #00143a55}
.card-title{font-family:var(--display);font-size:23px;font-weight:800;letter-spacing:-.4px;color:var(--ink)}
.card-title.big{font-size:27px;line-height:1.15}
.card .tight{margin-top:-6px}
.privacy-note{font-size:12.5px!important;line-height:1.55}
.perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px;font-weight:600;color:var(--on-navy)}
.perks li{display:flex;gap:10px;align-items:center}
.perks svg.i{color:var(--yellow)}
.public-foot{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;letter-spacing:1.2px;color:var(--on-navy-muted)}
.public-foot .faint{color:var(--faint)}
.p-mobile{left:50%;margin-left:-165px;bottom:52px;width:330px;height:206px}
.f-mobile{width:min(100%,560px);height:auto}
.success-mark{width:64px;height:64px;border-radius:50%;background:var(--yellow);color:var(--navy-deep);display:flex;align-items:center;justify-content:center}
.success-mark svg.i{width:34px;height:34px;stroke-width:2.6}
.success-note{background:var(--info-bg);color:var(--info);border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.55}

/* =========================================================
   ENTRADA DA ORGANIZAÇÃO
   ========================================================= */
.login-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;gap:30px;padding:48px 16px 300px}
.login-card{width:100%;max-width:460px;padding:34px 32px;border:0;display:flex;flex-direction:column;gap:18px;box-shadow:0 24px 60px #00143a66}
.login-title{font-size:32px;color:var(--navy)}
.demo-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.demo-row span{font-size:12px;font-weight:700;letter-spacing:1.2px;color:var(--muted)}
.p-login{left:50%;margin-left:-300px;bottom:36px;width:600px;height:375px;max-width:92%}
.f-login{width:min(100%,760px);height:auto}

/* =========================================================
   PAINEL DA ORGANIZAÇÃO
   ========================================================= */
.admin-shell{display:flex;flex-wrap:wrap;min-height:100vh;background:var(--surface)}
/* Menu lateral: em telas com mouse fica recolhido (só ícones) e abre ao passar o mouse ou ao navegar pelo teclado.
   Em celular/tablet fica aberto, no topo. */
.side-slot{flex:1 1 100%}
.sidebar{padding:22px 18px;display:flex;flex-direction:column;gap:18px}
.side-brand{display:flex;flex-direction:column;gap:12px;padding-left:4px}
.side-brand .selos{display:block;height:30px;width:auto;align-self:flex-start}
.sidebar .cap{font-size:11px;font-weight:700;letter-spacing:1.8px;color:var(--on-navy-muted);padding:0 16px;white-space:nowrap}
.sidebar nav{display:flex;flex-direction:column;gap:6px}
.nav-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:12px;background:none;color:var(--on-navy);font-size:15px;font-weight:600;text-align:left;white-space:nowrap}
.nav-btn svg.i{color:var(--on-navy-muted)}
.nav-btn:hover{background:#ffffff10}
.nav-btn.active{background:#ffffff18;color:var(--white);box-shadow:inset 4px 0 var(--yellow)}
.nav-btn.active svg.i{color:var(--yellow)}
.nav-btn.sep{margin-top:18px}
.side-bottom{display:none;margin-top:auto;padding:22px 16px 0;border-top:1px solid #ffffff26;font-size:12px;letter-spacing:1.6px;color:var(--on-navy-muted);white-space:nowrap}
.side-bottom strong{display:block;margin:8px 0 4px;font-family:var(--display);font-size:24px;font-weight:900;letter-spacing:.5px;color:var(--white)}
.side-bottom span{letter-spacing:0}
@media (hover:hover) and (min-width:901px){
  .admin-shell{flex-wrap:nowrap}
  .side-slot{flex:0 0 88px;position:relative;z-index:30}
  .sidebar{position:fixed;top:0;left:0;bottom:0;width:88px;padding:30px 16px;gap:26px;overflow:hidden;transition:width .22s ease .15s,box-shadow .22s ease .15s}
  .sidebar:hover,.sidebar:focus-within{width:310px;box-shadow:16px 0 48px #00143a55;transition-delay:0s}
  .side-brand{min-height:104px}
  .side-bottom{display:block}
  .side-brand .selos,.side-brand .nome,.sidebar .cap,.nav-btn .lbl,.side-bottom{opacity:0;transition:opacity .15s ease .1s}
  .sidebar:hover .side-brand .selos,.sidebar:hover .side-brand .nome,.sidebar:hover .cap,.sidebar:hover .nav-btn .lbl,.sidebar:hover .side-bottom,
  .sidebar:focus-within .side-brand .selos,.sidebar:focus-within .side-brand .nome,.sidebar:focus-within .cap,.sidebar:focus-within .nav-btn .lbl,.sidebar:focus-within .side-bottom{opacity:1}
  .side-brand .brand{margin-left:-2px}
}
.workspace{flex:999 1 640px;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:20px 36px;background:var(--white);border-bottom:1px solid var(--line)}
.topbar small{font-size:13px;color:var(--muted)}
.topbar h2{font-family:var(--display);font-size:22px;font-weight:800;margin-top:4px}
.top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;border:1.5px solid var(--line);background:var(--white);color:var(--muted)}
.content{padding:28px 36px 36px;display:flex;flex-direction:column;gap:22px;max-width:1440px;width:100%}
.demo-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.demo-banner b{font-size:11px;letter-spacing:1px;background:#E3EAF3;color:#3A4F68;border-radius:6px;padding:4px 8px}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.page-head h1{font-family:var(--display);font-size:34px;font-weight:800;letter-spacing:-.8px;margin:8px 0 6px}
.page-head p{color:var(--muted);font-size:15px}
.hero{border-radius:24px;padding:40px 44px;min-height:290px;display:flex;align-items:center}
.hero-copy{max-width:600px}
.hero-h1{font-size:40px;margin:12px 0 14px;padding-left:16px}
.hero p{color:var(--on-navy);font-size:16px;line-height:1.6;margin-bottom:22px}
.p-hero{right:70px;bottom:6px;width:430px;height:269px}
.f-hero{width:440px;height:143px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.stat{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:22px 24px}
.stat>span{font-size:14px;font-weight:600;color:var(--muted)}
.stat strong{display:block;font-family:var(--display);font-size:44px;font-weight:900;letter-spacing:-1px;margin:8px 0 4px;color:var(--navy)}
.stat small{font-size:13px;color:var(--muted)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:22px;align-items:start}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.section-head.center{align-items:center}
.section-head h2{margin-top:8px}
.section-head.center h2{margin-top:0}
.buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.mini-stage{position:relative;overflow:hidden;border-radius:16px;aspect-ratio:16/9;margin-top:16px;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between}
.mini-stage .who{font-family:var(--display);font-weight:800;font-size:20px;line-height:1.2;max-width:60%}
.mini-stage .mini-qr{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:30%;aspect-ratio:1;background:#fff;border-radius:10px;padding:6px;z-index:3}
.f-mini{width:260px;height:85px}
.draw-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:16px;border:0}
.card.draw-card{background:var(--navy) url("/textura.svg") center/cover;color:#fff}
.draw-card .gift{width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#ffffff1c;color:var(--yellow)}
.draw-card .gift.yellow{background:var(--yellow);color:var(--navy-deep)}
.draw-card .gift svg.i{width:32px;height:32px}
.draw-card h2{font-size:28px;color:var(--white)}
.draw-card h2.big-name{font-size:40px;letter-spacing:-1px}
.draw-card p{color:var(--on-navy);font-size:15px}
.draw-card p strong{color:var(--yellow)}
.draw-card .field{color:var(--white)}
.draw-actions{display:flex;flex-direction:column;gap:10px;margin:6px 0 70px}
.f-draw{width:300px;height:98px}
.eligible{display:flex;align-items:baseline;gap:8px;font-size:15px;color:var(--on-navy)}
.eligible strong{font-family:var(--display);font-size:30px;font-weight:900;color:var(--yellow)}
.hint{font-size:13px;color:var(--muted)}
.draw-card .hint{color:var(--on-navy-muted)}
.prize-list{display:flex;flex-direction:column;gap:10px;margin:14px 0 18px}
.prize{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:14px}
.prize .ico{width:44px;height:44px;border-radius:12px;background:#E6EEF8;color:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.prize>div{flex:1;min-width:0}
.prize p{font-size:13px}
details.add{border-top:1px solid var(--line);padding-top:16px}
details.add summary{cursor:pointer;font-weight:700;color:#00709E;font-size:15px;min-height:32px}
details.add .form-stack{margin-top:14px}
.search{position:relative;display:block}
.search input{min-height:46px;width:300px;max-width:100%;padding:10px 14px 10px 40px;border:1.5px solid #C8D3E0;border-radius:12px;font-size:15px}
.search svg.i{position:absolute;left:13px;top:14px;color:var(--muted);width:18px;height:18px}
.table-box{overflow-x:auto}
.card table{width:100%;border-collapse:collapse;font-size:14px;min-width:620px}
.card th{text-align:left;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:700;padding:12px 14px;border-bottom:1.5px solid var(--line)}
.card td{padding:15px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.setting-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;margin:14px 0 20px}
.setting-row .pill{margin-top:6px}
.upload{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:28px 18px;border:2px dashed #B9C8DA;border-radius:16px;background:#F8FAFD;font-weight:700;color:var(--ink);margin:14px 0;cursor:pointer}
.upload:focus-within{outline:3px solid var(--cyan);outline-offset:3px}
.upload svg.i{width:32px;height:32px;color:#00709E}
.upload span{font-weight:500;font-size:13px;color:var(--muted)}
.import-summary{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;background:var(--ok-bg);color:var(--ok);margin-bottom:14px}
.import-summary p{color:var(--ok)}
.card .notice{background:var(--info-bg);color:var(--info);border-radius:12px;padding:12px 14px;margin:10px 0 18px}
.card h3.space{margin:6px 0 10px}
.admin-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:auto;padding:16px 36px;border-top:1px solid var(--line);font-size:12px;letter-spacing:1.2px;color:var(--muted)}
.admin-foot .sync{display:flex;align-items:center;gap:6px;color:var(--ok);letter-spacing:0;font-weight:600}
.admin-foot .sync.off{color:var(--danger)}

/* ---------- diálogo, aviso e falha ---------- */
.confirm-dialog{border:0;border-radius:20px;padding:30px;width:min(460px,90vw);color:var(--ink);box-shadow:0 30px 100px #001b4450;font-family:var(--text)}
.confirm-dialog::backdrop{background:#001E4D99;backdrop-filter:blur(3px)}
.confirm-dialog h2{font-family:var(--display);font-size:23px;font-weight:800;margin:10px 0 8px}
.confirm-dialog p{color:var(--muted);line-height:1.6}
.confirm-dialog .buttons{justify-content:flex-end;margin-top:22px}
#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--navy-deep);color:#fff;border:1px solid #ffffff33;border-radius:12px;max-width:90vw;padding:15px 23px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;z-index:100;box-shadow:0 10px 30px #0003}
#toast.visible{opacity:1;transform:translate(-50%,0)}
#toast.error{background:var(--danger)}
.offline{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}
.offline h1{font-family:var(--display);font-size:30px}

@media (max-width:900px){
  .hero .art{display:none}
  .hero{padding:30px 26px;min-height:0}
  .hero-h1{font-size:30px}
  .content{padding:22px 16px 28px}
  .topbar{padding:16px}
  .admin-foot{padding:14px 16px}
  .grid2{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}.draw-orbit::before,.draw-orbit::after,.draw-orbit .result-gift{animation:none!important}}
.found-name{font-family:var(--display);font-size:26px!important;font-weight:800;line-height:1.2!important;color:var(--navy)!important;padding:14px 16px;border-radius:14px;background:var(--surface)}

/* ---------- turnos ---------- */
.turno-pill svg.i{width:14px;height:14px}
.turno-card p{margin-top:8px}
.turno-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:16px}
.turno-btn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px 18px;border-radius:14px;border:2px solid var(--line);background:var(--white);color:var(--ink);text-align:left}
.turno-btn strong{font-family:var(--display);font-size:20px;font-weight:800}
.turno-btn span{font-size:13px;color:var(--muted);font-weight:600}
.turno-btn:hover{border-color:var(--cyan)}
.turno-btn.active{background:var(--navy);border-color:var(--navy);color:var(--white)}
.turno-btn.active span{color:var(--yellow)}
.prize.other-turno{opacity:.6}
th.col-now,td.col-now{background:#F0F8FD}
.ok-mark{display:inline-flex;align-items:center;gap:4px;color:var(--ok);font-weight:700;font-size:13px}
.ok-mark svg.i{width:16px;height:16px}
.faint-cell{color:#9AA9BC}

/* ---------- inscrições de escritório ---------- */
.guest-link{margin-top:14px;font-size:14px;white-space:normal;line-height:1.35;height:auto;min-height:48px;padding:10px 16px;text-align:center}
td small.sub{display:block;margin-top:3px;font-size:12px;font-weight:600;color:var(--muted)}
.add-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-top:14px}
.add-row .grow{flex:1;min-width:240px}
