:root{
  --primary:#061A40; --secondary:#0B2D5C; --accent:#D4AF37; --bg:#F4F7FB; --card:#FFFFFF; --text:#172033; --muted:#6B7280; --border:#E5EAF2; --success:#16A34A; --danger:#DC2626; --warning:#F59E0B; --shadow:0 24px 70px rgba(6,26,64,.12); --radius:24px;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text)} a{color:inherit;text-decoration:none} button,input,select,textarea{font:inherit} input,select,textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:13px 14px;background:#fff;color:var(--text);outline:none;transition:.2s} textarea{min-height:110px;resize:vertical} input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(212,175,55,.14)}
.app-shell{display:flex;min-height:100vh}.sidebar{width:292px;background:linear-gradient(180deg,var(--primary),#031029);color:#fff;padding:24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:10}.brand{display:flex;gap:14px;align-items:center;margin-bottom:28px}.brand-mark{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--accent),#fff2b8);color:var(--primary);display:grid;place-items:center;font-weight:900;box-shadow:0 16px 32px rgba(212,175,55,.25)}.brand-mark.large{width:64px;height:64px;border-radius:22px;font-size:22px}.brand strong{display:block;font-size:20px}.brand small{color:#cbd5e1}.side-nav{display:grid;gap:8px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:16px;color:#dbeafe;transition:.2s}.nav-link i{font-size:20px}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.11);color:#fff;transform:translateX(4px)}.nav-link.active{box-shadow:inset 3px 0 0 var(--accent)}.nav-link.danger{color:#fecaca}.sidebar-footer{margin-top:auto;display:grid;gap:8px}
.main{margin-left:292px;width:calc(100% - 292px)}.topbar{height:96px;padding:24px 36px;display:flex;align-items:center;justify-content:space-between;background:rgba(244,247,251,.78);backdrop-filter:blur(18px);position:sticky;top:0;z-index:5;border-bottom:1px solid rgba(229,234,242,.72)}.topbar h1{font-size:26px;margin:4px 0 0}.eyebrow{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:var(--accent)}.user-chip{display:flex;gap:12px;align-items:center;background:#fff;padding:10px 12px;border-radius:18px;box-shadow:0 12px 30px rgba(6,26,64,.08)}.user-chip small{display:block;color:var(--muted)}.avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--secondary),var(--primary));color:#fff;display:grid;place-items:center;font-weight:900}.content{padding:30px 36px 60px}.mobile-only{display:none}.icon-btn{border:0;background:#fff;border-radius:14px;width:42px;height:42px;box-shadow:var(--shadow)}
.hero-card{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 10%,rgba(212,175,55,.26),transparent 34%),linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;border-radius:32px;padding:34px;display:flex;justify-content:space-between;gap:22px;align-items:center;box-shadow:var(--shadow);margin-bottom:24px}.hero-card h2{font-size:31px;margin:8px 0}.hero-card p{color:#dbeafe;max-width:720px}.hero-card.teacher{background:radial-gradient(circle at 88% 8%,rgba(212,175,55,.3),transparent 32%),linear-gradient(135deg,#0B2D5C,#061A40)}.hero-card.student{background:radial-gradient(circle at 88% 8%,rgba(22,163,74,.28),transparent 32%),linear-gradient(135deg,#0B2D5C,#061A40)}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px;margin:22px 0}.stat-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;box-shadow:0 14px 40px rgba(6,26,64,.07);position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-30px;top:-30px;width:98px;height:98px;background:rgba(212,175,55,.12);border-radius:50%}.stat-card i{font-size:27px;color:var(--accent)}.stat-card span{display:block;color:var(--muted);margin-top:12px}.stat-card strong{font-size:32px;display:block;margin-top:5px}.stat-card.danger i{color:var(--danger)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.align-start{align-items:start}.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:0 14px 40px rgba(6,26,64,.07);margin-bottom:22px}.panel.narrow{max-width:980px}.panel-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.panel-title h3{margin:0;font-size:19px}.panel-title span{color:var(--muted);font-size:13px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.single{grid-template-columns:1fr}.full-span{grid-column:1/-1}.check{display:flex;gap:10px;align-items:center}.check input{width:auto}.btn{border:0;border-radius:15px;padding:12px 16px;display:inline-flex;align-items:center;gap:8px;font-weight:800;cursor:pointer;justify-content:center;transition:.2s}.btn:hover{transform:translateY(-2px)}.btn.primary{background:linear-gradient(135deg,var(--accent),#f3d675);color:var(--primary);box-shadow:0 12px 24px rgba(212,175,55,.24)}.btn.secondary{background:#eef3fb;color:var(--secondary)}.btn.light{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.25)}.btn.danger{background:#fee2e2;color:#991b1b}.btn.full{width:100%}.btn.tiny{font-size:12px;padding:8px 10px;border-radius:11px}.hint{font-size:13px;color:var(--muted);margin:0}.search-row{display:flex;gap:12px}.inline-form{display:flex;gap:6px;align-items:center}.inline-form select{min-width:110px;padding:8px;border-radius:10px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0 10px}th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;padding:0 12px}td{background:#f8fafc;padding:13px 12px;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7}td:first-child{border-left:1px solid #edf2f7;border-radius:14px 0 0 14px}td:last-child{border-right:1px solid #edf2f7;border-radius:0 14px 14px 0}.badge{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}.badge.success{background:#dcfce7;color:#166534}.badge.warning{background:#fef3c7;color:#92400e}.badge.danger{background:#fee2e2;color:#991b1b}.badge.muted{background:#e5e7eb;color:#374151}code{font-size:12px;background:#e2e8f0;border-radius:8px;padding:4px 6px}
.alert{padding:15px 16px;border-radius:18px;margin-bottom:18px;display:flex;gap:10px;align-items:center;font-weight:700}.alert.success{background:#dcfce7;color:#166534}.alert.error,.alert.danger{background:#fee2e2;color:#991b1b}.alert.warning{background:#fef3c7;color:#92400e}.alert.floating{max-width:540px;margin:0 auto 16px}.celebration-card{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#fff7d6,#fff);border:1px solid #f5d76e;border-radius:24px;padding:18px;margin-bottom:22px;box-shadow:0 14px 40px rgba(212,175,55,.16)}.celebration-icon{font-size:34px}.celebration-card p{margin:5px 0 0;color:#6b5b1d}.material-grid{display:grid;gap:14px}.material-card{display:flex;gap:14px;background:#f8fafc;border:1px solid #edf2f7;border-radius:20px;padding:16px}.material-icon{width:46px;height:46px;border-radius:16px;background:#eef3fb;color:var(--secondary);display:grid;place-items:center;font-size:22px}.material-card p{color:var(--muted);font-size:13px;margin:6px 0}.material-card small{color:var(--accent);font-weight:900}.material-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.attendance-shell{display:grid;grid-template-columns:1.4fr .8fr;gap:22px;align-items:start}.camera-card{position:relative;background:#020617;border-radius:30px;overflow:hidden;min-height:520px;box-shadow:var(--shadow)}.camera-card video{width:100%;height:100%;min-height:520px;object-fit:cover;display:block}.camera-overlay{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(6,26,64,.7);color:#fff;border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(16px);border-radius:20px;padding:16px;display:flex;align-items:center;gap:12px}.camera-overlay i{font-size:24px;color:var(--accent)}.hidden{display:none!important}
.login-body{min-height:100vh;background:#061A40;overflow:auto}.login-bg{position:fixed;inset:0;background:radial-gradient(circle at 20% 10%,rgba(212,175,55,.34),transparent 28%),radial-gradient(circle at 84% 80%,rgba(11,45,92,.9),transparent 33%),linear-gradient(135deg,#061A40,#020617);}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative}.login-card{width:min(520px,100%);background:rgba(255,255,255,.94);backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.6);border-radius:32px;padding:34px;box-shadow:0 34px 100px rgba(0,0,0,.34)}.login-brand{display:flex;gap:18px;align-items:center;margin-bottom:26px}.login-brand h1{margin:4px 0;font-size:34px}.login-brand p{margin:0;color:var(--muted)}.demo-box{display:grid;gap:7px;background:#f8fafc;border:1px dashed #d8e1ee;border-radius:18px;padding:14px;margin-top:18px;color:var(--muted);font-size:13px}.demo-box strong{color:var(--text)}
@media(max-width:1050px){.grid-2,.grid-3,.attendance-shell{grid-template-columns:1fr}.sidebar{transform:translateX(-105%);transition:.25s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.mobile-only{display:grid}.topbar{padding:18px}.content{padding:22px}.user-chip small{display:none}.hero-card{flex-direction:column;align-items:flex-start}.form-grid{grid-template-columns:1fr}.camera-card,.camera-card video{min-height:390px}}
@media(max-width:620px){.topbar h1{font-size:20px}.hero-card h2{font-size:24px}.login-card{padding:24px}.search-row{flex-direction:column}.stats-grid{grid-template-columns:1fr}.panel{padding:18px;border-radius:20px}.content{padding:16px}.user-chip div:not(.avatar){display:none}}

/* Ajustes v1.1 - navbar corrigida e experiência mobile dedicada */
html{scroll-behavior:smooth}
.sidebar{height:100dvh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;padding-bottom:calc(18px + env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:rgba(212,175,55,.55) rgba(255,255,255,.06)}
.sidebar::-webkit-scrollbar{width:7px}.sidebar::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:99px}.sidebar::-webkit-scrollbar-thumb{background:rgba(212,175,55,.55);border-radius:99px}.side-nav{padding-bottom:14px}.sidebar-footer{padding-top:10px}
.mobile-backdrop,.mobile-tabbar{display:none}

@media(max-width:1050px){
  body{padding-bottom:calc(94px + env(safe-area-inset-bottom))}.nav-open{overflow:hidden}.app-shell{display:block;min-height:100dvh}.sidebar{width:min(86vw,330px);height:100dvh;max-height:100dvh;padding:18px;z-index:40;box-shadow:26px 0 70px rgba(2,6,23,.38)}.sidebar.open{transform:translateX(0)}.sidebar .brand{margin-bottom:18px}.sidebar .brand-mark{width:42px;height:42px;border-radius:15px}.sidebar .brand strong{font-size:18px}.nav-link{padding:12px 13px;border-radius:15px}.mobile-backdrop{display:block;position:fixed;inset:0;background:rgba(2,6,23,.48);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:.22s;z-index:30}.sidebar.open + .mobile-backdrop{opacity:1;pointer-events:auto}.main{min-height:100dvh}.topbar{height:auto;min-height:76px;padding:14px 16px;gap:12px;align-items:center}.topbar>div:nth-of-type(1){min-width:0;flex:1}.topbar h1{font-size:clamp(19px,4.8vw,24px);line-height:1.15;white-space:normal}.eyebrow{font-size:10px;letter-spacing:.11em}.icon-btn.mobile-only{display:grid;place-items:center;flex:0 0 42px}.user-chip{padding:8px;border-radius:16px;flex:0 0 auto}.user-chip .avatar{width:38px;height:38px;border-radius:13px}.content{padding:18px 16px 116px}.hero-card{border-radius:26px;padding:26px;min-height:auto}.hero-card h2{font-size:clamp(25px,6vw,32px);line-height:1.1}.hero-card p{font-size:15px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{border-radius:20px;padding:17px;min-height:132px}.stat-card strong{font-size:28px}.grid-2,.grid-3,.attendance-shell{grid-template-columns:1fr!important;gap:16px}.panel{border-radius:22px;padding:20px;margin-bottom:16px}.panel-title{gap:8px}.panel-title h3{font-size:18px}.form-grid{grid-template-columns:1fr!important;gap:13px}.search-row,.inline-form{width:100%;align-items:stretch}.inline-form{flex-wrap:wrap}.inline-form select{min-width:150px;flex:1}.btn{min-height:44px}.material-card{border-radius:18px;align-items:flex-start}.attendance-shell{display:grid}.camera-card{border-radius:24px;min-height:430px}.camera-card video{min-height:430px}.camera-overlay{left:14px;right:14px;bottom:14px;border-radius:18px;padding:13px}.mobile-tabbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));height:74px;z-index:25;background:rgba(255,255,255,.88);backdrop-filter:blur(24px);border:1px solid rgba(229,234,242,.92);border-radius:26px;box-shadow:0 22px 60px rgba(6,26,64,.2);padding:8px;gap:5px}.mobile-tabbar a,.mobile-tabbar button{appearance:none;border:0;background:transparent;color:#526179;border-radius:18px;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;flex-direction:column;font-weight:900;cursor:pointer;transition:.2s}.mobile-tabbar i{font-size:22px;line-height:1}.mobile-tabbar span{font-size:10.5px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.mobile-tabbar a.active{background:linear-gradient(135deg,#ffe98c,#d4af37);color:var(--primary);box-shadow:0 10px 24px rgba(212,175,55,.28)}.mobile-tabbar button{color:var(--secondary)}
}

@media(max-width:760px){
  .table-wrap{overflow:visible}.table-wrap table{display:block;width:100%;border-spacing:0}.table-wrap thead{display:none}.table-wrap tbody{display:grid;gap:12px}.table-wrap tr{display:block;background:#fff;border:1px solid var(--border);border-radius:20px;padding:8px;box-shadow:0 12px 32px rgba(6,26,64,.07)}.table-wrap td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;width:100%;background:transparent!important;border:0!important;border-bottom:1px solid #edf2f7!important;border-radius:0!important;padding:11px 6px;text-align:right;word-break:break-word}.table-wrap td::before{content:attr(data-label);font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;flex:0 0 42%;max-width:42%}.table-wrap td:last-child{border-bottom:0!important}.table-wrap td[colspan]{display:block;text-align:center}.table-wrap td[colspan]::before{content:none}.table-wrap .inline-form{justify-content:flex-end}.table-wrap .btn.tiny{min-height:38px}.panel-title{flex-direction:column;align-items:flex-start}.panel-title .btn{width:100%}
}

@media(max-width:620px){
  body{background:linear-gradient(180deg,#eef3fb 0,#f8fafc 38%,#f4f7fb 100%)}.topbar{position:sticky;top:0;background:rgba(244,247,251,.92);box-shadow:0 12px 30px rgba(6,26,64,.06)}.topbar .user-chip div:not(.avatar){display:none}.content{padding:14px 12px 112px}.hero-card{padding:23px 20px;border-radius:24px;margin-bottom:16px}.hero-card .btn{width:100%}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stat-card{padding:15px;border-radius:19px;min-height:124px}.stat-card i{font-size:23px}.stat-card span{font-size:13px}.stat-card strong{font-size:27px}.panel{padding:17px;border-radius:20px}.login-wrap{padding:18px}.login-card{border-radius:26px;padding:24px 20px}.login-brand h1{font-size:29px}.material-card{flex-direction:column}.material-icon{width:42px;height:42px}.camera-card,.camera-card video{min-height:390px}.camera-overlay{font-size:13px}.alert{border-radius:16px;padding:13px}.celebration-card{border-radius:20px;align-items:flex-start}.mobile-tabbar{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));height:72px;border-radius:24px}.mobile-tabbar span{font-size:10px}.mobile-tabbar i{font-size:21px}
}

@media(max-width:380px){
  .stats-grid{grid-template-columns:1fr!important}.mobile-tabbar{gap:2px;padding:7px}.mobile-tabbar span{font-size:9.5px}.topbar{padding:12px}.content{padding-left:10px;padding-right:10px}.hero-card{padding:20px 16px}
}


/* Ajustes v1.2 - link externo individual do aluno */
.info-strip,.portal-redirect-card{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#fff,#fff8e1);border:1px solid rgba(212,175,55,.35);border-radius:24px;padding:18px 20px;margin-bottom:20px;box-shadow:0 16px 42px rgba(6,26,64,.08)}
.info-strip i{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#fff0a8,#d4af37);color:var(--primary);display:grid;place-items:center;font-size:24px;flex:0 0 auto}.info-strip strong,.portal-redirect-card strong{display:block;margin-bottom:5px}.info-strip p,.portal-redirect-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}.portal-redirect-card{justify-content:space-between;background:linear-gradient(135deg,#061A40,#0B2D5C);border-color:rgba(255,255,255,.12);color:#fff}.portal-redirect-card p{color:rgba(255,255,255,.78)}.portal-link-form{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;align-items:center;min-width:420px}.portal-link-form input{min-height:38px;padding:9px 10px;border-radius:12px}.field-hint{display:block;margin-top:7px;color:var(--muted);font-size:12px;font-weight:700}
@media(max-width:1050px){.info-strip,.portal-redirect-card{border-radius:20px;align-items:flex-start}.portal-redirect-card{flex-direction:column}.portal-redirect-card .btn{width:100%}.portal-link-form{min-width:0;grid-template-columns:1fr;gap:9px}.portal-link-form .btn,.portal-link-form a{width:100%;justify-content:center}}

/* v1.3 - acesso público do aluno e redirecionamento externo */
.public-access-box,
.portal-link-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.public-access-box input,
.portal-link-form input{
  min-width:260px;
  max-width:100%;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(8,24,56,.12);
  background:#f8fafc;
  padding:0 12px;
  font-size:12px;
  color:#172033;
}
.pin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  letter-spacing:3px;
  color:#061A40;
  background:linear-gradient(135deg,#fff7d6,#f3d36b);
  box-shadow:0 8px 22px rgba(212,175,55,.2);
}
.portal-empty-state{
  min-height:420px;
  border:1px solid rgba(8,24,56,.08);
  border-radius:30px;
  background:linear-gradient(135deg,#ffffff,#f7f9fd);
  box-shadow:0 24px 60px rgba(15,23,42,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:42px 24px;
}
.portal-empty-state i{
  width:78px;
  height:78px;
  border-radius:24px;
  display:grid;
  place-items:center;
  font-size:34px;
  color:#061A40;
  background:linear-gradient(135deg,#f5df8b,#fff7dc);
  margin-bottom:18px;
}
.portal-empty-state h2{
  font-size:clamp(24px,4vw,36px);
  margin:0 0 10px;
  color:#172033;
}
.portal-empty-state p{
  max-width:640px;
  color:#64748b;
  line-height:1.65;
  margin:0 0 22px;
}
.public-card{max-width:560px;}
.pin-form .pin-input{
  text-align:center;
  font-size:32px;
  font-weight:900;
  letter-spacing:10px;
  color:#061A40;
  padding-left:22px;
}
.public-attendance-page{
  width:min(1120px,96vw);
  margin:0 auto;
}
.public-student-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin:0 0 22px;
  padding:26px;
  border-radius:30px;
  background:linear-gradient(135deg,#061A40,#0B2D5C);
  color:#fff;
  box-shadow:0 24px 60px rgba(6,26,64,.25);
}
.public-student-hero h1{margin:4px 0;font-size:clamp(28px,5vw,48px)}
.public-student-hero p{margin:0;color:rgba(255,255,255,.82)}
.public-attendance-shell{align-items:stretch;}
@media (max-width: 760px){
  .public-access-box input,
  .portal-link-form input{min-width:100%;width:100%;}
  .public-access-box .btn,
  .portal-link-form .btn{flex:1;}
  .pin-form .pin-input{font-size:28px;letter-spacing:7px;}
  .public-student-hero{align-items:flex-start;flex-direction:column;border-radius:24px;padding:22px;}
  .public-attendance-page{width:100%;}
  .login-wrap{padding:18px;}
}

/* v1.4 - cadastro de aluno sem senha inicial e ponto do aluno mobile-first */
.auto-pin-note{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid rgba(212,175,55,.28);
  background:linear-gradient(135deg,#fffdf2,#ffffff);
  border-radius:18px;
  color:#172033;
}
.auto-pin-note i{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  color:#061A40;
  font-size:20px;
  flex:0 0 auto;
}
.auto-pin-note strong{display:block;margin-bottom:3px;}
.auto-pin-note span{display:block;color:#64748b;font-size:13px;line-height:1.45;}

.student-point-app{
  width:min(520px,100%);
  margin:0 auto;
  padding:14px;
  border-radius:34px;
  background:linear-gradient(180deg,#061A40 0%,#0B2D5C 44%,#F4F7FB 44%,#F4F7FB 100%);
  box-shadow:0 34px 110px rgba(2,6,23,.32);
  min-height:min(860px,calc(100dvh - 34px));
}
.student-point-app.in-panel{
  min-height:auto;
  background:linear-gradient(180deg,#061A40 0%,#0B2D5C 42%,#F4F7FB 42%,#F4F7FB 100%);
}
.login-body .student-point-app{margin-top:0;margin-bottom:0;}
.student-point-header{
  color:#fff;
  padding:10px 8px 16px;
}
.student-mini-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.student-mini-brand .brand-mark{
  width:46px;
  height:46px;
  border-radius:17px;
  flex:0 0 auto;
}
.student-point-header h1{
  margin:2px 0 0;
  font-size:clamp(24px,7vw,34px);
  line-height:1.05;
}
.student-point-header p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.45;
}
.student-point-header .badge{
  margin-bottom:12px;
}
.student-status-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:0 0 12px;
}
.status-pill{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 12px;
  border-radius:17px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(229,234,242,.78);
  color:#334155;
  font-weight:800;
  font-size:12.5px;
  box-shadow:0 10px 24px rgba(6,26,64,.09);
}
.status-pill i{font-size:18px;color:#0B2D5C;}
.status-pill.ok{border-color:rgba(22,163,74,.28);background:#f0fdf4;color:#166534;}
.status-pill.ok i{color:#16A34A;}
.status-pill.warn{border-color:rgba(245,158,11,.26);background:#fffbeb;color:#92400e;}
.status-pill.warn i{color:#F59E0B;}
.status-pill.error{border-color:rgba(220,38,38,.25);background:#fef2f2;color:#991b1b;}
.status-pill.error i{color:#DC2626;}
.status-pill.loading{border-color:rgba(11,45,92,.24);background:#eff6ff;color:#0B2D5C;}
.student-camera-card{
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:3/4;
  min-height:360px;
  border-radius:30px;
  background:#020617;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 24px 72px rgba(2,6,23,.36);
}
.student-camera-card video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#020617;
}
.camera-empty-state{
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  padding:28px;
  background:radial-gradient(circle at 50% 20%,rgba(212,175,55,.20),transparent 34%),linear-gradient(180deg,rgba(2,6,23,.68),rgba(2,6,23,.92));
  color:#fff;
}
.camera-empty-state i{
  width:74px;
  height:74px;
  border-radius:26px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  color:#061A40;
  font-size:36px;
  margin-bottom:12px;
}
.camera-empty-state strong{font-size:21px;margin-bottom:6px;}
.camera-empty-state span{max-width:280px;color:rgba(255,255,255,.72);line-height:1.45;}
.camera-start-btn{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:3;
  border:0;
  min-height:50px;
  border-radius:18px;
  background:rgba(255,255,255,.94);
  color:#061A40;
  font-weight:900;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}
.student-point-form{
  margin-top:12px;
  padding:14px;
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(229,234,242,.9);
  box-shadow:0 18px 50px rgba(6,26,64,.12);
  display:grid;
  gap:12px;
}
.student-point-form label{font-weight:800;color:#334155;}
.student-capture-btn{
  min-height:58px;
  border-radius:20px;
  font-size:16px;
}
.hint.center{text-align:center;margin:0;color:#64748b;font-size:12.5px;line-height:1.45;}

@media(min-width:900px){
  .login-body .student-point-app{width:520px;}
  .student-point-app.in-panel{width:min(560px,100%);}
}
@media(max-width:620px){
  .login-body{background:#061A40;}
  .login-wrap{
    display:block;
    min-height:100dvh;
    padding:10px;
  }
  .login-wrap:has(.student-point-app){padding:8px;background:#061A40;}
  .student-point-app{
    width:100%;
    min-height:calc(100dvh - 16px);
    border-radius:28px;
    padding:12px;
    box-shadow:none;
  }
  .student-point-header{padding:8px 6px 13px;}
  .student-status-grid{gap:7px;}
  .status-pill{min-height:41px;font-size:12px;border-radius:15px;}
  .student-camera-card{border-radius:26px;min-height:360px;aspect-ratio:3/4;}
  .camera-start-btn{left:12px;right:12px;bottom:12px;border-radius:17px;}
  .student-point-form{border-radius:24px;padding:12px;}
}
@media(max-width:390px){
  .student-camera-card{min-height:330px;}
  .student-point-header h1{font-size:25px;}
  .student-mini-brand .brand-mark{width:42px;height:42px;border-radius:15px;}
  .student-capture-btn{font-size:15px;}
}

/* v1.5 - painel público do aluno premium, mobile-first */
.student-pin-gate{
  width:min(500px,100%);
  margin:0 auto;
  position:relative;
}
.student-pin-gate:before{
  content:"";
  position:absolute;
  inset:-80px -55px auto;
  height:250px;
  background:radial-gradient(circle,rgba(212,175,55,.32),transparent 62%);
  filter:blur(6px);
  pointer-events:none;
}
.pin-card-premium{
  position:relative;
  overflow:hidden;
  width:100%;
  border-radius:34px;
  padding:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,247,251,.96));
  border:1px solid rgba(255,255,255,.74);
  box-shadow:0 36px 100px rgba(2,6,23,.38);
}
.pin-card-premium:after{
  content:"";
  position:absolute;
  top:-90px;
  right:-80px;
  width:210px;
  height:210px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(212,175,55,.22),rgba(255,255,255,.12));
}
.pin-brand-row{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}
.pin-security-chip,
.student-secure-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#166534;
  background:rgba(220,252,231,.95);
  border:1px solid rgba(22,163,74,.16);
  white-space:nowrap;
}
.pin-security-chip.error{color:#991b1b;background:#fee2e2;border-color:rgba(220,38,38,.18)}
.pin-hero-copy{
  position:relative;
  z-index:1;
}
.pin-hero-copy h1{
  margin:6px 0 8px;
  font-size:clamp(34px,9vw,48px);
  line-height:1;
  letter-spacing:-.05em;
  color:#061A40;
}
.pin-hero-copy p{
  margin:0;
  color:#64748b;
  font-weight:600;
  line-height:1.55;
}
.pin-student-preview{
  position:relative;
  z-index:1;
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:24px 0 18px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(135deg,#061A40,#0B2D5C);
  color:#fff;
  box-shadow:0 18px 42px rgba(6,26,64,.22);
}
.pin-student-preview i{
  width:46px;
  height:46px;
  flex:0 0 auto;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  color:#061A40;
  font-size:23px;
}
.pin-student-preview strong{display:block;margin-bottom:4px;font-size:15px;}
.pin-student-preview span{display:block;color:rgba(255,255,255,.74);font-size:13px;line-height:1.45;}
.premium-pin-form{
  position:relative;
  z-index:1;
  gap:14px;
}
.premium-pin-form label{
  color:#334155;
  font-weight:900;
}
.pin-form .pin-input{
  height:68px;
  margin-top:8px;
  border-radius:22px;
  border:1px solid rgba(6,26,64,.12);
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:inset 0 2px 8px rgba(15,23,42,.04),0 12px 30px rgba(6,26,64,.07);
  text-align:center;
  font-size:34px;
  font-weight:900;
  letter-spacing:11px;
  color:#061A40;
  padding-left:24px;
}
.pin-submit{
  min-height:58px;
  border-radius:20px;
  font-size:15px;
}
.pin-footer-note{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:18px;
  padding:13px 14px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(229,234,242,.9);
  color:#64748b;
  font-size:12.5px;
  font-weight:700;
  line-height:1.45;
}
.pin-footer-note i{color:#0B2D5C;font-size:18px;flex:0 0 auto;}

.premium-student-app{
  width:min(540px,100%);
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,#061A40 0%,#082653 47%,#F4F7FB 47%,#F4F7FB 100%);
  box-shadow:0 38px 120px rgba(2,6,23,.36);
}
.premium-student-app .student-point-header{
  padding:22px 22px 15px;
}
.student-header-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.student-header-top .student-mini-brand{margin-bottom:0;min-width:0;}
.student-header-top .student-mini-brand h1{
  font-size:clamp(28px,7.2vw,38px);
  letter-spacing:-.045em;
}
.student-course-card{
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px;
  border-radius:24px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
}
.student-course-card i{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#061A40;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  font-size:22px;
}
.student-course-card strong{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.2;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.student-course-card span{
  display:block;
  color:rgba(255,255,255,.70);
  font-size:12px;
  font-weight:700;
  margin-top:3px;
}
.premium-status-grid,
.student-status-grid.premium-status-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:0 14px;
  margin:0 0 14px;
}
.premium-status-grid .status-pill{
  min-width:0;
  min-height:82px;
  padding:10px 6px;
  border-radius:22px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  text-align:center;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.68);
  box-shadow:0 14px 30px rgba(2,6,23,.12);
}
.premium-status-grid .status-pill i{
  width:30px;
  height:30px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#eef3fb;
  font-size:17px;
  margin-bottom:2px;
}
.premium-status-grid .status-pill small{
  display:block;
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#64748b;
  font-weight:900;
}
.premium-status-grid .status-pill span{
  display:block;
  width:100%;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#172033;
  font-size:11.2px;
  font-weight:900;
  line-height:1.1;
}
.premium-status-grid .status-pill.ok i{background:#dcfce7;color:#16A34A;}
.premium-status-grid .status-pill.warn i{background:#fef3c7;color:#F59E0B;}
.premium-status-grid .status-pill.error i{background:#fee2e2;color:#DC2626;}
.premium-status-grid .status-pill.loading i{background:#dbeafe;color:#0B2D5C;}
.premium-status-grid .status-pill.ok span{color:#166534;}
.premium-status-grid .status-pill.warn span{color:#92400e;}
.premium-status-grid .status-pill.error span{color:#991b1b;}

.premium-camera-card{
  margin:0 14px;
  width:calc(100% - 28px);
  border-radius:34px;
  min-height:430px;
  aspect-ratio:3/4;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 26px 72px rgba(2,6,23,.38);
}
.premium-camera-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:linear-gradient(180deg,rgba(2,6,23,.10),transparent 30%,rgba(2,6,23,.18));
}
.camera-start-btn.is-active{
  background:rgba(240,253,244,.92);
  color:#166534;
}
.premium-point-form{
  margin:14px;
  padding:15px;
  border-radius:28px;
  box-shadow:0 20px 60px rgba(6,26,64,.15);
}
.premium-point-form select{
  min-height:56px;
  border-radius:20px;
  font-weight:800;
}
.premium-point-form .student-capture-btn{
  min-height:62px;
  border-radius:22px;
  font-size:17px;
  letter-spacing:-.02em;
}

@media(max-width:620px){
  .login-wrap{padding:12px;}
  .login-wrap:has(.student-pin-gate){display:grid;place-items:center;padding:16px 14px;}
  .pin-card-premium{border-radius:32px;padding:24px 20px;}
  .pin-brand-row{margin-bottom:22px;}
  .pin-security-chip{font-size:11px;padding:7px 10px;}
  .pin-student-preview{border-radius:22px;padding:14px;}
  .pin-form .pin-input{height:66px;font-size:31px;letter-spacing:9px;border-radius:21px;}
  .premium-student-app{
    width:100%;
    min-height:calc(100dvh - 16px);
    border-radius:30px;
    box-shadow:none;
  }
  .premium-student-app .student-point-header{padding:20px 14px 14px;}
  .student-header-top{align-items:flex-start;gap:10px;margin-bottom:14px;}
  .student-secure-chip{font-size:0;padding:8px;width:38px;height:38px;flex:0 0 auto;}
  .student-secure-chip i{font-size:18px;}
  .student-course-card{border-radius:22px;padding:12px;}
  .premium-status-grid,.student-status-grid.premium-status-grid{padding:0 10px;gap:7px;margin-bottom:12px;}
  .premium-status-grid .status-pill{min-height:76px;border-radius:19px;padding:9px 4px;}
  .premium-status-grid .status-pill i{width:28px;height:28px;border-radius:11px;font-size:16px;}
  .premium-status-grid .status-pill small{font-size:9.5px;}
  .premium-status-grid .status-pill span{font-size:10.8px;}
  .premium-camera-card{margin:0 10px;width:calc(100% - 20px);border-radius:30px;min-height:390px;}
  .premium-point-form{margin:12px 10px 10px;padding:13px;border-radius:26px;}
}
@media(max-width:390px){
  .student-header-top .student-mini-brand h1{font-size:27px;}
  .premium-status-grid,.student-status-grid.premium-status-grid{gap:6px;}
  .premium-status-grid .status-pill{min-height:72px;border-radius:17px;}
  .premium-status-grid .status-pill span{font-size:10px;}
  .premium-camera-card{min-height:350px;}
  .pin-form .pin-input{font-size:28px;letter-spacing:7px;}
}

/* v1.6 - ponto do aluno: entrada/saída, confirmação visual e foto sem sobreposição bugada */
.point-action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.point-action-grid .student-capture-btn{
  min-width:0;
  padding-inline:10px;
}
.point-action-grid .student-capture-btn.exit{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  color:#061A40;
  border:1px solid rgba(6,26,64,.12);
  box-shadow:0 14px 36px rgba(6,26,64,.08);
}
.point-action-grid .student-capture-btn.exit:hover{
  transform:translateY(-2px);
  border-color:rgba(212,175,55,.45);
}
.point-action-grid .student-capture-btn:disabled{
  opacity:.78;
  cursor:not-allowed;
  transform:none;
}
.point-success-card{
  position:relative;
  z-index:4;
  display:flex;
  align-items:center;
  gap:12px;
  margin:14px 14px 0;
  padding:14px;
  border-radius:24px;
  background:linear-gradient(135deg,#dcfce7,#ffffff);
  color:#14532d;
  border:1px solid rgba(22,163,74,.18);
  box-shadow:0 18px 55px rgba(22,163,74,.18);
  animation:pointPop .38s ease both;
}
.point-success-card strong{display:block;font-size:14px;font-weight:900;margin-bottom:2px;}
.point-success-card span{display:block;font-size:12px;font-weight:700;line-height:1.35;color:#166534;}
.point-success-icon{
  width:46px;
  height:46px;
  border-radius:18px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#16A34A;
  color:#fff;
  font-size:25px;
  box-shadow:0 14px 32px rgba(22,163,74,.28);
}
.point-saving-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(2,6,23,.58);
  backdrop-filter:blur(12px);
}
.point-saving-card{
  width:min(340px,100%);
  padding:26px 22px;
  border-radius:30px;
  text-align:center;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 28px 90px rgba(2,6,23,.40);
  border:1px solid rgba(255,255,255,.72);
}
.point-saving-card strong{display:block;font-size:21px;font-weight:900;color:#061A40;letter-spacing:-.04em;margin:12px 0 6px;}
.point-saving-card span{display:block;color:#64748b;font-weight:700;font-size:13px;line-height:1.45;}
.point-saving-icon{
  width:64px;
  height:64px;
  border-radius:24px;
  display:grid;
  place-items:center;
  margin:0 auto;
  color:#061A40;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  font-size:32px;
}
.spin{animation:spin .85s linear infinite;display:inline-block;}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pointPop{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}

@media(max-width:620px){
  .premium-status-grid,
  .student-status-grid.premium-status-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .premium-status-grid .status-pill{
    min-height:70px;
    padding:8px 3px;
  }
  .premium-status-grid .status-pill span{font-size:10.4px;}
  .point-action-grid{gap:8px;}
  .point-action-grid .student-capture-btn{min-height:58px;font-size:13.5px;border-radius:20px;}
  .point-success-card{margin:10px 10px 0;border-radius:22px;padding:12px;}
}

@media(max-width:360px){
  .point-action-grid{grid-template-columns:1fr;}
}

/* v2.7 - botão único do Portal do Aluno */
.student-external-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}
.student-external-btn{
  position:relative;
  overflow:hidden;
  min-height:82px;
  padding:14px 12px;
  border-radius:24px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 18px 42px rgba(2,6,23,.16);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  backdrop-filter:blur(14px);
  -webkit-tap-highlight-color:transparent;
}
.student-external-btn:before{
  content:"";
  position:absolute;
  top:-35px;
  right:-28px;
  width:86px;
  height:86px;
  border-radius:999px;
  background:rgba(212,175,55,.18);
}
.student-external-btn i{
  width:36px;
  height:36px;
  border-radius:15px;
  display:grid;
  place-items:center;
  margin-bottom:5px;
  color:#061A40;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  font-size:20px;
  box-shadow:0 10px 24px rgba(212,175,55,.18);
}
.student-external-btn span{
  position:relative;
  z-index:1;
  font-size:15px;
  font-weight:950;
  letter-spacing:-.03em;
  line-height:1.05;
}
.student-external-btn small{
  position:relative;
  z-index:1;
  color:rgba(255,255,255,.66);
  font-size:11.2px;
  font-weight:800;
  line-height:1.1;
}
.student-external-btn:active{transform:scale(.985)}
.student-external-btn.portal{
  min-height:88px;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  padding:16px;
  background:linear-gradient(135deg,rgba(212,175,55,.20),rgba(255,255,255,.08));
}
.student-external-btn.portal i{
  margin-bottom:0;
  flex:0 0 auto;
}
.student-external-btn.portal small{
  display:block;
  margin-top:4px;
}
.student-external-empty{
  grid-column:1/-1;
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:22px;
  background:rgba(255,255,255,.10);
  border:1px dashed rgba(255,255,255,.20);
  color:#fff;
}
.student-external-empty i{
  width:40px;
  height:40px;
  border-radius:15px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:rgba(255,255,255,.12);
  color:#f7e18a;
  font-size:21px;
}
.student-external-empty strong{
  display:block;
  font-size:13.5px;
  font-weight:950;
  margin-bottom:3px;
}
.student-external-empty span{
  display:block;
  color:rgba(255,255,255,.68);
  font-size:11.7px;
  font-weight:700;
  line-height:1.38;
}
@media(max-width:390px){
  .student-external-actions{gap:8px;margin-top:12px;}
  .student-external-btn{min-height:76px;border-radius:21px;padding:12px 10px;}
  .student-external-btn i{width:32px;height:32px;border-radius:13px;font-size:18px;margin-bottom:4px;}
  .student-external-btn span{font-size:13.5px;}
  .student-external-btn small{font-size:10.5px;}
}

/* v1.8 - refinamento premium da tela de PIN do aluno no mobile */
html,body{max-width:100%;overflow-x:hidden;}
.login-wrap:has(.student-pin-gate){padding:24px 16px;}
.student-pin-gate{
  width:min(430px,100%);
}
.pin-card-premium{
  border-radius:32px;
  padding:24px;
}
.pin-brand-row{
  margin-bottom:18px;
}
.pin-hero-copy h1{
  font-size:clamp(30px,9vw,44px);
  line-height:.98;
}
.pin-hero-copy p{
  font-size:15px;
}
.pin-student-preview{
  margin:20px 0 14px;
  border-radius:24px;
  padding:16px;
}
.pin-benefits-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.pin-benefit-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(229,234,242,.92);
  box-shadow:0 10px 24px rgba(6,26,64,.06);
}
.pin-benefit-item i{
  width:34px;
  height:34px;
  flex:0 0 auto;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#eef3fb;
  color:#0B2D5C;
  font-size:18px;
}
.pin-benefit-item strong{
  display:block;
  font-size:12.5px;
  line-height:1.2;
  color:#172033;
}
.pin-benefit-item span{
  display:block;
  margin-top:3px;
  font-size:11.5px;
  line-height:1.4;
  color:#64748b;
}
.premium-pin-form{
  gap:12px;
}
.pin-input-card{
  position:relative;
  z-index:1;
  padding:15px;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid rgba(229,234,242,.95);
  box-shadow:0 14px 34px rgba(6,26,64,.07);
}
.pin-input-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.pin-input-head span{
  font-size:15px;
  font-weight:900;
  color:#172033;
}
.pin-input-head small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eef3fb;
  color:#0B2D5C;
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.pin-form .pin-input{
  margin-top:0;
  height:74px;
  padding:0 18px;
  border-radius:22px;
  border:1px solid rgba(6,26,64,.08);
  background:#fff;
  box-shadow:inset 0 1px 6px rgba(15,23,42,.03);
  font-size:30px;
  font-weight:900;
  letter-spacing:.34em;
  padding-left:.45em;
}
.pin-form .pin-input::placeholder{
  color:#b8c1cf;
  letter-spacing:.34em;
}
.pin-submit{
  min-height:60px;
  border-radius:20px;
  font-size:16px;
}
.pin-footer-note{
  margin-top:16px;
  border-radius:18px;
  padding:14px;
}

@media(max-width:620px){
  .login-wrap:has(.student-pin-gate){
    min-height:100dvh;
    align-items:center;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
  }
  .student-pin-gate{
    width:100%;
    max-width:420px;
  }
  .student-pin-gate:before{
    inset:-60px -30px auto;
    height:180px;
  }
  .pin-card-premium{
    border-radius:30px;
    padding:20px 18px 18px;
  }
  .pin-brand-row{
    align-items:center;
    gap:10px;
    margin-bottom:16px;
  }
  .pin-card-premium .brand-mark.large{
    width:56px;
    height:56px;
    border-radius:18px;
    font-size:21px;
  }
  .pin-security-chip{
    min-height:32px;
    padding:7px 11px;
    font-size:11px;
  }
  .pin-hero-copy h1{
    margin:6px 0 8px;
    font-size:clamp(28px,10vw,40px);
  }
  .pin-hero-copy p{
    font-size:14px;
    line-height:1.5;
  }
  .pin-student-preview{
    padding:14px;
    border-radius:22px;
  }
  .pin-student-preview i{
    width:42px;
    height:42px;
    border-radius:14px;
    font-size:21px;
  }
  .pin-benefits-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:14px;
  }
  .pin-benefit-item{
    padding:11px;
    border-radius:16px;
  }
  .pin-benefit-item i{
    width:30px;
    height:30px;
    border-radius:10px;
    font-size:16px;
  }
  .pin-benefit-item strong{
    font-size:12px;
  }
  .pin-benefit-item span{
    font-size:11px;
  }
  .pin-input-card{
    padding:14px;
    border-radius:22px;
  }
  .pin-input-head{
    margin-bottom:10px;
  }
  .pin-input-head span{
    font-size:14px;
  }
  .pin-form .pin-input{
    height:68px;
    border-radius:20px;
    font-size:28px;
    letter-spacing:.30em;
    padding-left:.30em;
  }
  .pin-submit{
    min-height:56px;
    border-radius:18px;
    font-size:15px;
  }
}

@media(max-width:390px){
  .login-wrap:has(.student-pin-gate){padding:14px 12px calc(16px + env(safe-area-inset-bottom));}
  .pin-card-premium{padding:18px 16px 16px;border-radius:26px;}
  .pin-hero-copy h1{font-size:clamp(27px,9.8vw,34px);}
  .pin-benefits-grid{grid-template-columns:1fr;}
  .pin-form .pin-input{height:64px;font-size:24px;letter-spacing:.22em;padding-left:.22em;}
}

/* v1.9 - PIN em 6 caixas premium estilo app bancário */
.bank-pin-card{
  padding:16px;
  border-radius:26px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 16px 40px rgba(6,26,64,.08);
}
.bank-pin-boxes{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:9px;
}
.bank-pin-box{
  width:100%;
  height:58px;
  padding:0;
  border-radius:18px;
  border:1px solid rgba(6,26,64,.10);
  background:linear-gradient(180deg,#ffffff,#f9fbff);
  box-shadow:inset 0 1px 8px rgba(15,23,42,.035),0 10px 18px rgba(6,26,64,.05);
  text-align:center;
  font-size:25px;
  font-weight:950;
  color:#061A40;
  caret-color:#D4AF37;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.bank-pin-box:focus,
.bank-pin-box.active{
  border-color:#D4AF37;
  background:#fffdf3;
  box-shadow:0 0 0 4px rgba(212,175,55,.16),0 14px 24px rgba(212,175,55,.12);
  transform:translateY(-2px);
}
.bank-pin-box.filled{
  border-color:rgba(22,163,74,.34);
  background:linear-gradient(180deg,#f0fdf4,#ffffff);
}
.bank-pin-box.filled:not(:focus){
  box-shadow:0 10px 22px rgba(22,163,74,.08);
}
.bank-pin-feedback{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:16px;
  background:#eef3fb;
  color:#64748b;
  font-size:12px;
  font-weight:850;
  text-align:center;
  line-height:1.35;
}
.bank-pin-feedback i{
  font-size:17px;
  color:#0B2D5C;
}
.bank-pin-feedback.ready{
  background:#dcfce7;
  color:#166534;
}
.bank-pin-feedback.ready i{
  color:#16A34A;
}
.bank-pin-feedback.error{
  background:#fee2e2;
  color:#991b1b;
}
.bank-pin-feedback.error i{
  color:#DC2626;
}
.bank-pin-card.pin-complete{
  border-color:rgba(22,163,74,.2);
}
.pin-submit:disabled{
  opacity:.58;
  filter:saturate(.75);
  cursor:not-allowed;
  transform:none!important;
}
.pin-submit:not(:disabled){
  animation:pinReadyPulse 1.8s ease-in-out infinite;
}
.pin-shake{
  animation:pinShake .36s ease-in-out;
}
@keyframes pinShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}
@keyframes pinReadyPulse{
  0%,100%{box-shadow:0 12px 24px rgba(212,175,55,.24)}
  50%{box-shadow:0 18px 34px rgba(212,175,55,.38)}
}

@media(max-width:620px){
  .bank-pin-card{
    padding:14px;
    border-radius:23px;
  }
  .bank-pin-boxes{
    gap:7px;
  }
  .bank-pin-box{
    height:54px;
    border-radius:16px;
    font-size:23px;
  }
  .bank-pin-feedback{
    margin-top:10px;
    padding:9px 10px;
    font-size:11.5px;
  }
}
@media(max-width:390px){
  .bank-pin-boxes{
    gap:6px;
  }
  .bank-pin-box{
    height:48px;
    border-radius:14px;
    font-size:21px;
  }
  .bank-pin-feedback{
    font-size:11px;
  }
}
@media(max-width:340px){
  .bank-pin-boxes{
    gap:5px;
  }
  .bank-pin-box{
    height:44px;
    border-radius:13px;
    font-size:19px;
  }
}

/* v2.0 - portal público do professor: relatório obrigatório + ponto mobile igual aluno */
.teacher-pin-gate .pin-student-preview{
  background:linear-gradient(135deg,#082653,#061A40);
}
.public-teacher-report-app{
  width:min(540px,100%);
  margin:0 auto;
  border-radius:34px;
  overflow:hidden;
  background:linear-gradient(180deg,#061A40 0%,#0B2D5C 30%,#F4F7FB 30%,#F4F7FB 100%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 38px 120px rgba(2,6,23,.36);
}
.teacher-report-hero{
  padding:22px 22px 18px;
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.teacher-report-hero .student-mini-brand{
  align-items:flex-start;
  margin:0;
}
.teacher-report-hero h1{
  margin:2px 0 6px;
  font-size:clamp(28px,7vw,38px);
  line-height:1;
  letter-spacing:-.045em;
}
.teacher-report-hero p{
  margin:0;
  color:rgba(255,255,255,.74);
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}
.teacher-report-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 14px 14px;
  padding:16px;
  border-radius:30px;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:0 22px 70px rgba(6,26,64,.16);
}
.teacher-report-form label{
  color:#334155;
  font-weight:900;
  font-size:13px;
}
.teacher-report-form input,
.teacher-report-form select,
.teacher-report-form textarea{
  margin-top:7px;
  border-radius:18px;
  min-height:52px;
  font-weight:700;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.teacher-report-form textarea{
  min-height:96px;
}
.teacher-report-summary{
  margin-bottom:12px;
}
.teacher-change-report-form{
  margin-top:12px;
}
.teacher-point-app .premium-point-form{
  padding-top:18px;
}
@media(max-width:620px){
  .public-teacher-report-app{
    width:100%;
    min-height:calc(100dvh - 16px);
    border-radius:30px;
    box-shadow:none;
  }
  .teacher-report-hero{
    padding:20px 14px 16px;
  }
  .teacher-report-hero .student-secure-chip{
    font-size:0;
    width:38px;
    height:38px;
    flex:0 0 auto;
  }
  .teacher-report-hero .student-secure-chip i{font-size:18px;}
  .teacher-report-form{
    grid-template-columns:1fr;
    margin:0 10px 10px;
    padding:14px;
    border-radius:26px;
  }
}

/* v2.2 - painel público sem senha, navegação e logout com sessão temporária */
.public-session-nav{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:8px;
  margin:14px 0 0;
}
.public-session-nav .public-logout-form{display:flex;margin:0;min-width:0;}
.public-nav-btn{
  min-height:48px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  transition:.2s ease;
  white-space:nowrap;
}
.public-nav-btn i{font-size:18px;}
.public-nav-btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.18);}
.public-nav-btn.active{
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  color:#061A40;
  border-color:rgba(212,175,55,.42);
  box-shadow:0 12px 28px rgba(212,175,55,.24);
}
.public-nav-btn.logout{
  width:52px;
  padding:0;
  color:#fecaca;
  background:rgba(220,38,38,.12);
  border-color:rgba(254,202,202,.24);
}
.public-nav-btn.logout span{display:none;}
.public-dashboard-app{
  width:min(1120px,96vw);
  margin:0 auto;
  display:grid;
  gap:16px;
}
.public-dashboard-hero{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  color:#fff;
  background:radial-gradient(circle at 88% 10%,rgba(212,175,55,.32),transparent 33%),linear-gradient(135deg,#061A40,#0B2D5C);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 32px 90px rgba(2,6,23,.32);
}
.public-dashboard-hero h1{margin:4px 0;font-size:clamp(30px,6vw,48px);line-height:1;letter-spacing:-.045em;}
.public-dashboard-hero p{margin:0;color:rgba(255,255,255,.78);font-weight:650;line-height:1.45;}
.public-dashboard-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.public-action-card{
  min-height:102px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(229,234,242,.85);
  box-shadow:0 18px 48px rgba(6,26,64,.10);
  transition:.2s ease;
}
.public-action-card:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(6,26,64,.14);}
.public-action-card i{
  width:48px;
  height:48px;
  flex:0 0 auto;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:#eef3fb;
  color:#0B2D5C;
  font-size:24px;
}
.public-action-card.primary{
  color:#fff;
  background:linear-gradient(135deg,#061A40,#0B2D5C);
  border-color:rgba(255,255,255,.10);
}
.public-action-card.primary i{background:linear-gradient(135deg,#f7e18a,#d4af37);color:#061A40;}
.public-action-card.muted{background:#f8fafc;color:#64748b;}
.public-action-card strong{display:block;font-size:16px;color:inherit;}
.public-action-card span{display:block;margin-top:4px;color:inherit;opacity:.72;font-size:13px;line-height:1.35;font-weight:700;}
.public-stats-grid{margin:0;}
.public-dashboard-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
.public-panel{margin:0;border-radius:26px;}
.student-public-dashboard .public-session-nav,
.teacher-public-dashboard .public-session-nav{
  margin:0;
  padding:10px;
  border-radius:26px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 20px 60px rgba(2,6,23,.20);
  backdrop-filter:blur(16px);
}
.student-point-header .public-session-nav,
.teacher-report-hero + .public-session-nav,
.teacher-point-app .public-session-nav{
  margin-top:14px;
}
.teacher-report-hero + .public-session-nav{
  width:min(860px,100%);
  margin-left:auto;
  margin-right:auto;
  background:linear-gradient(135deg,#061A40,#0B2D5C);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:10px;
}
.teacher-public-dashboard .public-dashboard-hero{background:radial-gradient(circle at 88% 10%,rgba(212,175,55,.28),transparent 33%),linear-gradient(135deg,#0B2D5C,#061A40);}

@media(max-width:760px){
  .public-dashboard-app{width:100%;gap:12px;}
  .public-dashboard-hero{border-radius:30px;padding:20px;display:grid;}
  .public-dashboard-hero .student-secure-chip{justify-self:start;font-size:12px;width:auto;height:auto;padding:8px 12px;}
  .public-session-nav{grid-template-columns:1fr 1fr 50px;gap:7px;}
  .public-nav-btn{min-height:46px;border-radius:16px;font-size:12px;padding:0 8px;}
  .public-nav-btn i{font-size:17px;}
  .public-nav-btn.logout{width:50px;}
  .public-dashboard-actions{grid-template-columns:1fr;gap:10px;}
  .public-action-card{min-height:86px;border-radius:22px;padding:15px;}
  .public-action-card i{width:44px;height:44px;border-radius:15px;font-size:22px;}
  .public-dashboard-grid{grid-template-columns:1fr;gap:12px;}
  .public-panel{border-radius:22px;padding:16px;}
  .public-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .student-public-dashboard .public-session-nav,
  .teacher-public-dashboard .public-session-nav{border-radius:22px;padding:8px;}
}
@media(max-width:390px){
  .public-nav-btn span{font-size:11px;}
  .public-stats-grid{grid-template-columns:1fr!important;}
  .public-dashboard-hero h1{font-size:31px;}
}

/* v2.5.0 - avaliação pública do aluno e materiais públicos do professor */
.public-form-app{
  width:min(980px,100%);
}
.public-form-app .public-dashboard-grid{
  align-items:start;
}
.public-privacy-note{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:15px 16px;
  margin:14px 0;
  border-radius:22px;
  background:linear-gradient(135deg,#fff8dc,#ffffff);
  border:1px solid rgba(212,175,55,.28);
  box-shadow:0 14px 36px rgba(6,26,64,.08);
}
.public-privacy-note i{
  width:44px;
  height:44px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  color:#061A40;
  font-size:22px;
}
.public-privacy-note strong{display:block;color:#061A40;margin-bottom:4px;}
.public-privacy-note span{display:block;color:#64748b;font-size:13px;line-height:1.45;font-weight:700;}
.public-premium-form label{
  font-weight:900;
  color:#334155;
}
.public-premium-form input,
.public-premium-form select,
.public-premium-form textarea{
  margin-top:8px;
  border-radius:18px;
  min-height:50px;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.public-premium-form textarea{min-height:112px;}
.public-session-nav{
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
}
.public-session-nav .public-nav-btn span{white-space:normal;}
@media(max-width:620px){
  .public-form-app{width:100%;}
  .public-privacy-note{margin:12px 0;border-radius:20px;padding:13px;}
  .public-privacy-note i{width:40px;height:40px;border-radius:14px;font-size:20px;}
  .public-dashboard-actions{grid-template-columns:1fr;}
  .public-premium-form{grid-template-columns:1fr!important;}
  .public-session-nav{gap:7px;}
  .public-session-nav .public-nav-btn{min-height:58px;padding:8px 6px;}
  .public-session-nav .public-nav-btn i{font-size:20px;}
  .public-session-nav .public-nav-btn span{font-size:10.5px;line-height:1.15;}
}


/* v2.8 - PWA instalável */
.pwa-install-card{
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  margin:0 0 18px;
  padding:14px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(6,26,64,.98),rgba(11,45,92,.96));
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 46px rgba(6,26,64,.20);
}
.pwa-install-card[hidden]{display:none!important;}
.pwa-install-card-login{
  width:min(520px,100%);
  margin:0 auto 14px;
  border-radius:26px;
}
.pwa-install-icon{
  width:46px;
  height:46px;
  flex:0 0 auto;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#061A40;
  background:linear-gradient(135deg,#f7e18a,#d4af37);
  box-shadow:0 14px 28px rgba(212,175,55,.25);
}
.pwa-install-card strong{
  display:block;
  font-size:14px;
  line-height:1.2;
}
.pwa-install-card span{
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.76);
  font-size:12.5px;
  line-height:1.35;
}
.pwa-install-card .btn{
  margin-left:auto;
  white-space:nowrap;
}
.pwa-close{
  width:32px;
  height:32px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:0;
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.12);
  cursor:pointer;
}
.pwa-close:hover{background:rgba(255,255,255,.2);}
@media(max-width:620px){
  .pwa-install-card{
    align-items:flex-start;
    gap:10px;
    padding:12px;
    border-radius:20px;
  }
  .pwa-install-card-login{
    width:100%;
    max-width:420px;
    margin-bottom:12px;
  }
  .pwa-install-icon{
    width:40px;
    height:40px;
    border-radius:14px;
  }
  .pwa-install-card strong{font-size:13px;}
  .pwa-install-card span{font-size:11.5px;}
  .pwa-install-card .btn{
    position:absolute;
    right:44px;
    bottom:10px;
    min-height:34px;
    padding:7px 10px;
    border-radius:12px;
    font-size:12px;
  }
  .pwa-close{
    width:30px;
    height:30px;
    border-radius:11px;
  }
}

/* v3.1.0 - aplicação da nova logo no sistema, favicon e PWA */
.brand-mark,
.pwa-install-icon,
.logo{
  background-image:url('../branding/logo-mark.png');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  color:transparent !important;
  font-size:0 !important;
  text-indent:-9999px;
  overflow:hidden;
}

.brand-mark{
  background-color:#fff;
  box-shadow:0 12px 28px rgba(255,255,255,.08), 0 14px 36px rgba(3,16,41,.28);
  border:1px solid rgba(255,255,255,.18);
}

.brand-mark.large{
  width:74px;
  height:74px;
  border-radius:22px;
  box-shadow:0 16px 40px rgba(6,26,64,.18);
}

.brand .brand-mark,
.student-mini-brand .brand-mark{
  flex:0 0 auto;
}

.pwa-install-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  background-color:#fff;
  box-shadow:0 12px 30px rgba(6,26,64,.12);
}

@media(max-width:620px){
  .brand-mark.large{width:68px;height:68px;border-radius:20px;}
}
