.participant-portal-head{margin-bottom:18px}.participant-portal-grid{display:grid;gap:18px;max-width:1240px;margin:0 auto 30px}.portal-card{border:1px solid #dce8ef;border-radius:24px;padding:28px;background:rgba(255,255,255,.9);box-shadow:0 16px 40px rgba(12,63,92,.06)}.portal-identity{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#fff 0%,#f2fbfc 100%)}.portal-card h2{margin:.2rem 0 .35rem;color:#0d2035}.portal-qr{display:flex;align-items:center;gap:16px}.portal-qr img{width:116px;height:116px;border-radius:14px;padding:8px;background:#fff;box-shadow:0 5px 18px rgba(8,82,118,.1)}.portal-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.portal-stat{padding:22px 24px;border-radius:20px;background:#fff;border:1px solid #dce8ef}.portal-stat span,.portal-stat small{display:block;color:#70839a}.portal-stat strong{display:block;margin:5px 0;font-size:31px;color:#075f87}.portal-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.portal-lock-note{font-size:13px;color:#8b6a31;background:#fff4db;border-radius:99px;padding:10px 14px}.portal-session-list{display:grid;gap:8px}.portal-session{display:grid;grid-template-columns:58px 1fr auto auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e3edf2;border-radius:14px}.portal-session-date{font-weight:800;color:#087fa0}.portal-session strong,.portal-session small{display:block}.portal-session small{font-size:12px;color:#7d8fa1}.portal-session-time{min-width:90px;text-align:right}.portal-photo-count{color:#087fa0;background:#e8f7f8;padding:9px 13px;border-radius:99px;font-size:13px;font-weight:700}.portal-photo-grid,.admin-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}.portal-photo{position:relative;border:0;padding:0;background:#edf5f7;border-radius:16px;overflow:hidden;cursor:pointer;aspect-ratio:190/1080}.portal-photo img,.admin-photo-item img{display:block;width:100%;height:100%;object-fit:cover}.portal-photo span{position:absolute;left:8px;right:8px;bottom:8px;color:#fff;background:rgba(4,43,68,.76);border-radius:8px;padding:7px;font-size:12px}.portal-empty{border:1px dashed #cddfe7;border-radius:14px;padding:28px;color:#70839a;text-align:center}.feedback-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.portal-feedback-form label{display:grid;gap:7px;color:#52677d;font-size:13px;font-weight:700}.portal-feedback-form select,.portal-feedback-form textarea{width:100%;border:1px solid #d4e3eb;border-radius:12px;padding:11px;background:#fbfdfe;color:#0d2035;font:inherit}.portal-feedback-form textarea{margin:12px 0;resize:vertical}.portal-feedback-message{margin-left:12px;color:#087f60;font-weight:700}.photo-modal[hidden]{display:none}.photo-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px}.photo-modal-backdrop{position:absolute;inset:0;background:rgba(5,22,35,.72)}.photo-modal-dialog{position:relative;z-index:1;max-width:min(92vw,440px);max-height:92vh;background:#fff;border-radius:22px;padding:18px;display:grid;gap:14px;justify-items:center}.photo-modal-dialog img{max-height:72vh;max-width:100%;object-fit:contain;border-radius:12px}.photo-modal-close{position:absolute;right:12px;top:10px;border:0;background:#fff;border-radius:50%;width:34px;height:34px;font-size:25px;cursor:pointer}.photos-admin-card{max-width:1240px;margin:auto}.photos-upload-form{display:flex;align-items:center;gap:16px;padding:18px;border:1px dashed #a9c8d5;border-radius:16px;background:#f7fbfc;margin-bottom:22px}.photos-dropzone{display:grid;gap:4px;flex:1;color:#0d2035}.photos-dropzone span{font-size:12px;color:#70839a}.photos-dropzone input{margin-top:8px}.admin-photo-item{display:grid;grid-template-rows:190px auto;border:1px solid #dce8ef;border-radius:16px;overflow:hidden;background:#fff}.admin-photo-item img{object-fit:cover;background:#eef6f8}.admin-photo-item>div{padding:12px;display:grid;gap:5px}.admin-photo-item small{color:#70839a}.button-danger-soft{color:#ae344c;border-color:#f0c9d0;background:#fff5f6;padding:7px 10px!important;font-size:12px!important}
 .badge-tools-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:18px}.badge-tools-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.badge-tools-form label{display:grid;gap:6px;color:#536a7e;font-size:12px;font-weight:700}.badge-tools-form select{min-width:260px;border:1px solid #d4e3eb;border-radius:12px;padding:11px;background:#fbfdfe;color:#0d2035;font:inherit}
.advanced-dashboard{max-width:1240px;margin:18px auto}.advanced-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.advanced-kpis article{padding:16px;border:1px solid #dce8ef;border-radius:14px;background:#fbfdfe}.advanced-kpis strong{display:block;color:#075f87;font-size:25px}.advanced-kpis span{color:#70839a;font-size:12px}
@media(max-width:700px){.portal-identity,.portal-card-head,.photos-upload-form,.badge-tools-panel{display:grid}.portal-qr{justify-content:space-between}.portal-stat-row{grid-template-columns:1fr}.portal-session{grid-template-columns:46px 1fr auto}.portal-session-time{grid-column:2/3;text-align:left}.feedback-fields{grid-template-columns:1fr 1fr}.advanced-kpis{grid-template-columns:1fr 1fr}.portal-card{padding:20px;border-radius:18px}.portal-admin-preview{display:grid}.portal-admin-preview select{min-width:0;width:100%}}
.portal-admin-preview{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 auto 18px;max-width:1240px;padding:16px 22px;border:1px solid #cfe5ec;border-radius:18px;background:linear-gradient(135deg,#f5fcfd,#fff)}.portal-admin-preview strong,.portal-admin-preview small{display:block}.portal-admin-preview small{margin-top:4px;color:#70839a}.portal-admin-preview label{display:grid;gap:6px;color:#52677d;font-size:12px;font-weight:700}.portal-admin-preview select{min-width:280px;border:1px solid #cfe0e8;border-radius:10px;padding:10px;background:#fff;color:#0d2035;font:inherit}
.participant-access-page{min-height:calc(100vh - 170px);display:grid;place-items:center;padding:32px 18px}.participant-access-card{width:min(100%,520px);padding:38px;border-radius:26px;border:1px solid #d8e7ee;background:rgba(255,255,255,.96);box-shadow:0 24px 65px rgba(6,63,91,.12)}.participant-access-card h1{margin:.35rem 0 .7rem;font-size:clamp(2rem,5vw,3rem);line-height:1;color:#0d2940}.participant-access-card form{display:grid;gap:16px;margin-top:24px}.participant-access-card label{display:grid;gap:7px;color:#476176;font-size:13px;font-weight:800}.participant-access-card input{width:100%;padding:14px 16px;border:1px solid #cfe0e8;border-radius:13px;background:#f9fcfd;color:#0d2035;font:inherit;box-sizing:border-box}.participant-access-card input:focus{outline:3px solid rgba(15,164,177,.14);border-color:#0fa4b1}.participant-access-card .button{justify-content:center;min-height:50px}.participant-access-help{margin:20px 0 0;padding-top:18px;border-top:1px solid #e6eef2;text-align:center;color:#70839a;font-size:13px}


/* Portal do participante — acabamento visual 2026-09 */
body:has(.participant-portal-grid){background:radial-gradient(circle at 12% 4%,rgba(31,184,185,.09),transparent 30%),radial-gradient(circle at 88% 18%,rgba(24,103,150,.08),transparent 34%),#f4f8fb}
body:has(.participant-portal-grid) .main{padding:32px clamp(20px,4vw,64px) 64px}
.participant-portal-head{position:relative;isolation:isolate;overflow:hidden;max-width:1240px;margin:0 auto 22px;padding:34px 38px;border:1px solid rgba(195,220,231,.9);border-radius:30px;background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(239,249,251,.94));box-shadow:0 22px 60px rgba(17,63,91,.08)}
.participant-portal-head:after{content:"";position:absolute;z-index:-1;right:-80px;top:-120px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(32,184,184,.18),rgba(32,184,184,0) 68%)}
.participant-portal-head h1{margin:.28rem 0 .5rem;font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.045em;line-height:1.02;background:linear-gradient(95deg,#0d2035 5%,#075f87 58%,#10a8b2 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.participant-portal-head .muted{max-width:720px;font-size:16px;line-height:1.65;color:#70839a}
.portal-admin-preview{padding:20px 24px;border-color:rgba(190,218,229,.9);border-radius:22px;background:rgba(255,255,255,.78);backdrop-filter:blur(16px);box-shadow:0 12px 36px rgba(17,63,91,.06)}
.portal-admin-preview select{min-height:46px;border-radius:14px;box-shadow:0 6px 18px rgba(17,63,91,.05)}
.participant-portal-grid{gap:22px}
.portal-card{border-color:rgba(200,222,232,.9);border-radius:28px;padding:32px;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);box-shadow:0 20px 55px rgba(17,63,91,.075)}
.portal-identity{position:relative;align-items:flex-start;padding:36px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(237,249,250,.94));box-shadow:0 26px 70px rgba(12,72,99,.1)}
.portal-identity:before{content:"";position:absolute;inset:0 0 auto;height:4px;border-radius:28px 28px 0 0;background:linear-gradient(90deg,#075f87,#18aeb5,#70dfcc)}
.portal-identity>div:first-child{flex:1;min-width:0}
.portal-identity h2{font-size:clamp(1.75rem,3vw,2.35rem);letter-spacing:-.035em}
.portal-identity>.portal-qr{flex:0 0 220px;align-self:stretch;justify-content:center}
.portal-profile-edit{padding:22px!important;border:1px solid rgba(201,224,233,.9);border-radius:22px;background:rgba(255,255,255,.86);box-shadow:0 14px 34px rgba(18,74,99,.06)}
.portal-profile-edit form label{display:grid;gap:7px;color:#38566d;font-size:12px;font-weight:800;letter-spacing:.01em}
.portal-profile-edit form input{box-sizing:border-box;width:100%;min-height:48px;padding:12px 14px;border:1px solid #d3e3ea;border-radius:14px;background:#fbfdfe;color:#0d2035;font:inherit;transition:border-color .2s,box-shadow .2s,background .2s}
.portal-profile-edit form input:hover{border-color:#b9d3de;background:#fff}
.portal-profile-edit form input:focus{outline:0;border-color:#18a8b2;background:#fff;box-shadow:0 0 0 4px rgba(24,168,178,.12)}
.portal-profile-edit .button{min-height:46px;padding:0 20px;border-radius:14px;box-shadow:0 10px 24px rgba(7,95,135,.18)}
.portal-profile-edit .status-ok{padding:10px 14px;border:1px solid #c7eadc;background:#eefbf5;color:#087f60}
.portal-qr{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 18px;border:1px solid rgba(204,226,234,.9);border-radius:24px;background:rgba(255,255,255,.72)}
.portal-qr img{width:148px;height:148px;border-radius:20px;padding:10px;box-shadow:0 14px 32px rgba(8,82,118,.14)}
.portal-qr .button{width:100%;justify-content:center;border-radius:14px;background:#fff}
.portal-stat-row{gap:14px}
.portal-stat{position:relative;overflow:hidden;padding:24px 26px;border-radius:22px;background:linear-gradient(145deg,#fff,#f7fbfd);box-shadow:0 12px 30px rgba(17,63,91,.055);transition:transform .2s,box-shadow .2s}
.portal-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#075f87,#17afb5)}
.portal-stat:nth-child(2):before{background:linear-gradient(#17a887,#6fd6bd)}
.portal-stat:nth-child(3):before{background:linear-gradient(#7b6bc7,#b1a6ed)}
.portal-stat:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(17,63,91,.085)}
.portal-stat strong{font-size:34px;letter-spacing:-.035em}
.portal-card-head{align-items:center}
.portal-session-list{gap:10px}
.portal-session{grid-template-columns:70px 1fr auto auto;min-height:66px;padding:13px 16px;border-color:#e1ebf0;border-radius:17px;background:linear-gradient(90deg,#fff,#fbfdfe);transition:transform .18s,border-color .18s,box-shadow .18s}
.portal-session:hover{transform:translateX(3px);border-color:#c7e0e8;box-shadow:0 10px 24px rgba(17,63,91,.055)}
.portal-session-date{display:grid;place-items:center;min-height:38px;border-radius:12px;background:#eaf7f8;color:#087f9d}
.portal-lock-note,.portal-photo-count{box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.portal-gallery,.portal-feedback{background:rgba(255,255,255,.9)}
.portal-empty{padding:36px;border-radius:18px;background:linear-gradient(135deg,#fbfdfe,#f6fafc)}
.portal-photo{aspect-ratio:4/3;border-radius:18px;box-shadow:0 10px 24px rgba(17,63,91,.08);transition:transform .2s,box-shadow .2s}
.portal-photo:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(17,63,91,.13)}
.portal-feedback-form select,.portal-feedback-form textarea{min-height:46px;border-radius:14px;background:#fbfdfe}
@media(max-width:900px){.portal-identity{display:grid}.portal-identity>.portal-qr{width:100%;display:grid;grid-template-columns:auto 1fr;align-items:center}.portal-qr .button{width:auto}.portal-stat-row{grid-template-columns:1fr}.portal-profile-edit form{grid-template-columns:1fr!important}}
@media(max-width:700px){body:has(.participant-portal-grid) .main{padding:20px 14px 44px}.participant-portal-head{padding:26px 22px;border-radius:24px}.portal-card,.portal-identity{padding:22px;border-radius:22px}.portal-admin-preview{padding:18px}.portal-identity>.portal-qr{grid-template-columns:1fr;justify-items:center}.portal-qr .button{width:100%}.portal-session{grid-template-columns:58px 1fr auto}.portal-profile-edit{padding:16px!important}.feedback-fields{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.portal-stat,.portal-session,.portal-photo{transition:none}}


/* Timeline compacta por professor */
.portal-timeline .timeline-track{position:relative;padding:8px 0 8px 34px}
.portal-timeline .timeline-item{position:relative;min-height:0;padding:0 0 14px}
.portal-timeline .timeline-item:last-child{padding-bottom:0}
.portal-timeline .timeline-item-body{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-areas:"photo meta" "photo name" "photo message";column-gap:14px;align-items:center;min-height:116px;padding:12px 14px 12px 12px;border:1px solid rgba(14,143,194,.2);border-left:4px solid var(--timeline-accent,#118dcc);border-radius:18px;background:linear-gradient(135deg,var(--timeline-soft,#eefaff),#fff 72%);box-shadow:0 10px 24px rgba(12,63,92,.06);transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.portal-timeline .timeline-item-meta{grid-area:meta;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.portal-timeline .timeline-item-meta time{color:var(--timeline-accent,#118dcc);font-size:11px;font-weight:850;letter-spacing:.02em}
.portal-timeline .timeline-state{padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.78);color:var(--timeline-accent,#118dcc);font-size:10px;font-weight:850;white-space:nowrap}
.portal-timeline .timeline-teacher-photo{grid-area:photo;width:92px;height:92px;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 3px var(--timeline-accent,#118dcc),0 8px 16px rgba(12,63,92,.13)}
.portal-timeline .timeline-item-body>strong{grid-area:name;align-self:end;color:#123a58;font-size:14px;line-height:1.2;letter-spacing:.01em}
.portal-timeline .timeline-message{grid-area:message;align-self:start;color:#73859a;font-size:11px;line-height:1.35}
.portal-timeline .timeline-dot{position:absolute;z-index:2;left:-34px;top:28px;width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:var(--timeline-accent,#118dcc);box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 4px 10px rgba(12,63,92,.15);transition:transform .35s ease,box-shadow .35s ease}
.portal-timeline .timeline-item:nth-child(1){--timeline-accent:#118dcc;--timeline-soft:#eaf8fb}
.portal-timeline .timeline-item:nth-child(2){--timeline-accent:#13a7c7;--timeline-soft:#e8fbfd}
.portal-timeline .timeline-item:nth-child(3){--timeline-accent:#6655c7;--timeline-soft:#f0edff}
.portal-timeline .timeline-item:nth-child(4){--timeline-accent:#d23b98;--timeline-soft:#fff0f8}
.portal-timeline .timeline-item:nth-child(5){--timeline-accent:#ed9415;--timeline-soft:#fff6e8}
.portal-timeline .timeline-item:nth-child(6){--timeline-accent:#d8b31a;--timeline-soft:#fffbea}
.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translate3d(6px,-4px,0);border-color:var(--timeline-accent);box-shadow:0 16px 30px rgba(12,63,92,.11),0 0 0 3px color-mix(in srgb,var(--timeline-accent) 12%,transparent)}
.portal-timeline .timeline-item.is-current .timeline-dot{transform:scale(1.18);box-shadow:0 0 0 3px var(--timeline-accent),0 0 0 8px color-mix(in srgb,var(--timeline-accent) 18%,transparent);animation:timeline-dot-pulse 1.8s ease-in-out infinite}
.portal-timeline .timeline-item.is-current .timeline-teacher-photo{animation:timeline-photo-float 2.8s ease-in-out infinite}
.portal-timeline .timeline-item.is-completed .timeline-item-body{background:#fbfcfd;opacity:.78}
.portal-timeline .timeline-item.is-completed .timeline-teacher-photo{filter:grayscale(.35)}
@keyframes timeline-dot-pulse{0%,100%{box-shadow:0 0 0 3px var(--timeline-accent),0 0 0 8px color-mix(in srgb,var(--timeline-accent) 18%,transparent)}50%{box-shadow:0 0 0 3px var(--timeline-accent),0 0 0 13px color-mix(in srgb,var(--timeline-accent) 0%,transparent)}}
@keyframes timeline-photo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:640px){.portal-timeline .timeline-track{padding-left:27px}.portal-timeline .timeline-dot{left:-27px}.portal-timeline .timeline-item-body{grid-template-columns:72px minmax(0,1fr);min-height:92px;column-gap:11px;padding:10px 10px 10px 9px;border-radius:15px}.portal-timeline .timeline-teacher-photo{width:72px;height:72px;border-width:3px}.portal-timeline .timeline-item-body>strong{font-size:12px}.portal-timeline .timeline-message{font-size:10px}.portal-timeline .timeline-item-meta time{font-size:10px}.portal-timeline .timeline-state{padding:4px 7px;font-size:9px}.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translate3d(3px,-3px,0)}}
@media(prefers-reduced-motion:reduce){.portal-timeline .timeline-item-body,.portal-timeline .timeline-dot{transition:none}.portal-timeline .timeline-item.is-current .timeline-dot,.portal-timeline .timeline-item.is-current .timeline-teacher-photo{animation:none}}

/* Portal do participante — organização premium 2026-09-28 */
body:has(.participant-portal-grid){
  --portal-ink:#0b2c44;
  --portal-muted:#6d8193;
  --portal-line:rgba(177,211,224,.72);
  --portal-blue:#0877a5;
  --portal-cyan:#12a9b4;
  --portal-mint:#6bd6c2;
  background:
    radial-gradient(circle at 7% 0%,rgba(24,174,181,.13),transparent 25rem),
    radial-gradient(circle at 95% 16%,rgba(66,129,193,.10),transparent 28rem),
    linear-gradient(180deg,#f6fbfd 0%,#eef5f9 100%);
  color:var(--portal-ink)
}

/* Consentimento de imagem: manifestação única, comprovante e liberação N3 */
.image-consent-card{position:relative;overflow:hidden}
.image-consent-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#087ea1,#09a7ad 58%,#d0ad4f)}
.image-consent-heading{min-width:0;flex:1}
.image-consent-choice-note{display:flex;align-items:center;gap:14px;margin:18px 0 0;padding:15px 17px;border:1px solid #cde6eb;border-radius:16px;background:linear-gradient(135deg,#f2fbfc,#f8fcfd);color:#436477}
.image-consent-choice-note:before{content:"!";display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#e1f5f7;color:#087f9b;font-size:18px;font-weight:900}
.image-consent-choice-note strong,.image-consent-choice-note span{display:block}
.image-consent-choice-note strong{margin-bottom:2px;color:#12364e;font-size:13px}
.image-consent-choice-note span{font-size:12px;line-height:1.55}
.image-consent-lock-panel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:15px;align-items:center;margin-top:18px;padding:20px;border:1px solid #d8e8ed;border-radius:19px;background:linear-gradient(135deg,#f8fbfc,#fff);box-shadow:0 12px 30px rgba(18,65,84,.07)}
.image-consent-lock-panel.is-authorized{border-color:#bfe8dd;background:linear-gradient(135deg,#effbf7,#fff)}
.image-consent-lock-panel.is-refused{border-color:#f0cbd1;background:linear-gradient(135deg,#fff5f6,#fff)}
.image-consent-proof-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e9f4f7;color:#087e9b;font-size:22px;font-weight:900}
.image-consent-lock-panel.is-authorized .image-consent-proof-icon{background:#dff7ef;color:#078767}
.image-consent-lock-panel.is-refused .image-consent-proof-icon{background:#ffe6ea;color:#c1354d}
.image-consent-proof-copy{min-width:0}
.image-consent-proof-label{display:block;margin-bottom:4px;color:#6f8797;font-size:10px;font-weight:850;letter-spacing:.13em}
.image-consent-proof-copy>strong{display:block;color:#12364e;font-size:17px;line-height:1.3}
.image-consent-proof-copy small{display:block;margin-top:4px;color:#678194;font-size:11px;font-weight:650}
.image-consent-proof-copy p{margin:10px 0 0;color:#617b8d;font-size:12px;line-height:1.6}
.image-consent-proof-copy a{color:#087e9b;font-weight:750}
.image-consent-lock-badge{align-self:start;padding:8px 11px;border:1px solid #d5e5ea;border-radius:999px;background:#fff;color:#4e6c7c;font-size:11px;font-weight:800;white-space:nowrap}
.image-consent-admin-release{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 16px;align-items:end;margin-top:18px;padding:20px;border:1px solid #cfe3ea;border-radius:19px;background:linear-gradient(135deg,#f2f9fb,#fff);box-shadow:0 12px 30px rgba(13,76,100,.07)}
.image-consent-admin-title{display:flex;grid-column:1/-1;gap:13px;align-items:center}
.image-consent-admin-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#075e87,#0aa2aa);color:#fff;font-size:12px;font-weight:900;box-shadow:0 9px 20px rgba(7,96,136,.2)}
.image-consent-admin-title strong,.image-consent-admin-title span{display:block}
.image-consent-admin-title strong{color:#12364e;font-size:15px}
.image-consent-admin-title span{margin-top:2px;color:#658093;font-size:12px;line-height:1.5}
.image-consent-admin-release label{display:grid;gap:7px;color:#365970;font-size:11px;font-weight:800}
.image-consent-admin-release textarea{box-sizing:border-box;width:100%;min-height:74px;padding:12px 14px;border:1px solid #c9dde5;border-radius:14px;background:#fff;color:#17394f;font:600 13px/1.5 "Segoe UI Variable Text","Aptos","Inter",sans-serif;resize:vertical}
.image-consent-admin-release textarea:focus{outline:0;border-color:#0898a8;box-shadow:0 0 0 4px rgba(8,152,168,.11)}
.image-consent-admin-release .button{min-height:49px;padding-inline:18px;border-radius:14px;white-space:nowrap}
.image-consent-admin-release.is-open{display:block;border-color:#bfe8dd;background:#effaf7;color:#315e50}
.image-consent-admin-release.is-open strong,.image-consent-admin-release.is-open span,.image-consent-admin-release.is-open small{display:block}
.image-consent-admin-release.is-open strong{color:#087b61;font-size:15px}
.image-consent-admin-release.is-open span{margin-top:3px;font-size:12px;line-height:1.55}
.image-consent-admin-release.is-open small{margin-top:9px;padding-top:9px;border-top:1px solid #cfeae2;color:#557b6e;font-size:11px}
@media(max-width:760px){
  .image-consent-lock-panel{grid-template-columns:auto minmax(0,1fr);padding:16px}
  .image-consent-lock-badge{grid-column:1/-1;justify-self:start;margin-left:63px}
  .image-consent-admin-release{grid-template-columns:1fr;padding:16px}
  .image-consent-admin-release .button{width:100%;justify-content:center}
  .image-consent-choice-note{align-items:flex-start}
}
body:has(.participant-portal-grid) .main{padding:24px clamp(16px,3.2vw,52px) 72px}
.participant-portal-head{display:flex;align-items:flex-end;justify-content:space-between;min-height:0;margin-bottom:18px;padding:28px 32px;border-radius:26px;background:linear-gradient(128deg,rgba(255,255,255,.98),rgba(237,249,251,.94));box-shadow:0 18px 50px rgba(15,64,91,.075)}
.participant-portal-head h1{font-size:clamp(2.15rem,4vw,3.15rem);line-height:.98;letter-spacing:-.052em}
.participant-portal-head .muted{margin:0;max-width:680px;font-size:15px}
.participant-portal-grid{gap:18px}
.portal-card{overflow:hidden;padding:26px;border:1px solid var(--portal-line);border-radius:24px;background:rgba(255,255,255,.91);box-shadow:0 16px 44px rgba(15,63,89,.065)}
.portal-card-head{align-items:center;margin-bottom:18px}
.portal-card-head h2{margin:.15rem 0 .28rem;font-size:clamp(1.45rem,2.2vw,1.9rem);letter-spacing:-.035em;color:var(--portal-ink)}
.portal-card-head .muted{margin:0;line-height:1.55;color:var(--portal-muted)}
.portal-identity{display:grid;grid-template-columns:minmax(0,1fr) 196px;gap:26px;align-items:stretch;padding:30px;background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(236,249,251,.94))}
.portal-identity>div:first-child{display:flex;flex-direction:column}
.portal-identity h2{margin:.18rem 0 .15rem;font-size:clamp(1.8rem,3vw,2.35rem)}
.portal-identity .code-pill{align-self:flex-start;margin-top:3px}
.portal-profile-edit{margin-top:16px!important;max-width:none!important;padding:18px!important;border-radius:18px;background:rgba(255,255,255,.8)}
.portal-profile-edit>p.muted{margin-bottom:10px!important;font-size:13px;line-height:1.55}
.portal-profile-edit form{gap:9px 12px!important}
.portal-profile-edit form input{min-height:44px;padding:10px 13px;border-radius:12px}
.portal-profile-edit .button{min-height:42px;margin-top:2px;padding:0 18px}
.portal-qr{display:flex;flex-direction:column;justify-content:center;gap:13px;padding:18px;border-radius:20px;background:linear-gradient(155deg,rgba(255,255,255,.92),rgba(244,251,252,.86))}
.portal-qr img{width:132px;height:132px;border-radius:18px}
.portal-qr .button{min-height:42px;font-size:13px}
.portal-timeline{position:relative;padding:28px;background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(240,250,252,.92))}
.portal-timeline:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan),var(--portal-mint))}
.timeline-live{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #ccefe4;border-radius:999px;background:#ecfbf6;color:#087f60;font-size:12px;font-weight:850;box-shadow:0 8px 20px rgba(17,143,107,.08)}
.timeline-live i{width:8px;height:8px;border-radius:50%;background:#1fba8b;box-shadow:0 0 0 6px rgba(31,186,139,.11);animation:portal-live-pulse 2s ease-in-out infinite}
.timeline-days{display:grid;gap:18px}
.portal-timeline .timeline-day{padding:20px;border:1px solid rgba(185,215,226,.78);border-radius:20px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.portal-timeline .timeline-day-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #deebf0}
.portal-timeline .timeline-day-head strong{font-size:18px;letter-spacing:-.025em;color:var(--portal-ink)}
.portal-timeline .timeline-day-head span{padding:7px 11px;border-radius:999px;background:#eaf7f9;color:#087997;font-size:11px;font-weight:800}
.portal-timeline .timeline-track{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:24px 0 0}
.portal-timeline .timeline-track:before{content:"";position:absolute;left:8%;right:8%;top:7px;height:3px;border-radius:999px;background:linear-gradient(90deg,#168ec0,#13acc0 42%,#6655c7 72%,#d43b98);opacity:.55}
.portal-timeline .timeline-item{position:relative;min-width:0;padding:0}
.portal-timeline .timeline-item:last-child{padding:0}
.portal-timeline .timeline-dot{left:50%;top:-23px;width:12px;height:12px;border-width:3px;transform:translateX(-50%);box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 5px 12px rgba(12,63,92,.16)}
.portal-timeline .timeline-item-body{box-sizing:border-box;width:100%;min-height:126px;grid-template-columns:76px minmax(0,1fr);grid-template-areas:"photo meta" "photo name" "photo message";column-gap:13px;padding:16px;border:1px solid color-mix(in srgb,var(--timeline-accent,#118dcc) 24%,#dfeaf0);border-top:4px solid var(--timeline-accent,#118dcc);border-left-width:1px;border-radius:18px;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff));box-shadow:0 12px 28px rgba(15,63,89,.07)}
.portal-timeline .timeline-item-meta{align-self:start;justify-content:flex-start;flex-wrap:wrap;gap:7px}
.portal-timeline .timeline-item-meta time{font-size:11px}
.portal-timeline .timeline-state{padding:5px 8px;border:1px solid color-mix(in srgb,var(--timeline-accent,#118dcc) 18%,transparent);font-size:9px;letter-spacing:.02em}
.portal-timeline .timeline-teacher-photo{width:76px;height:76px;border-width:3px;box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 9px 20px rgba(12,63,92,.13)}
.portal-timeline .timeline-item-body>strong{font-size:13px;line-height:1.18;letter-spacing:.005em}
.portal-timeline .timeline-message{font-size:10.5px}
.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateY(-5px);box-shadow:0 18px 36px rgba(12,63,92,.13),0 0 0 4px color-mix(in srgb,var(--timeline-accent) 11%,transparent)}
.portal-timeline .timeline-item.is-current .timeline-dot{transform:translateX(-50%) scale(1.22)}
.portal-timeline .timeline-item.is-completed .timeline-item-body{opacity:.82;background:linear-gradient(145deg,#fff,#f7fafc)}
.portal-stat-row{gap:12px}
.portal-stat{min-height:108px;padding:20px 22px;border-color:var(--portal-line);border-radius:19px;background:linear-gradient(145deg,#fff,#f5fafc)}
.portal-stat strong{margin:3px 0;font-size:29px;letter-spacing:-.04em}
.portal-session{min-height:64px;padding:12px 15px;border-radius:13px;background:#fbfdfe}
.portal-gallery .portal-empty{padding:24px;background:linear-gradient(135deg,#fbfdfe,#f5fafc)}
.portal-feedback-form select,.portal-feedback-form textarea{transition:border-color .2s,box-shadow .2s,background .2s}
.portal-feedback-form select:focus,.portal-feedback-form textarea:focus{outline:0;border-color:var(--portal-cyan);background:#fff;box-shadow:0 0 0 4px rgba(18,169,180,.11)}
@keyframes portal-live-pulse{50%{transform:scale(.86);box-shadow:0 0 0 9px rgba(31,186,139,.06)}}
@media(max-width:980px){
  .portal-timeline .timeline-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portal-timeline .timeline-track:before{display:none}
  .portal-timeline .timeline-dot{display:none}
}
@media(max-width:700px){
  body:has(.participant-portal-grid) .main{padding:12px 12px 48px}
  .participant-portal-head{margin-bottom:12px;padding:22px 20px;border-radius:20px}
  .participant-portal-head h1{font-size:2.25rem}
  .participant-portal-head .muted{font-size:13px;line-height:1.5}
  .participant-portal-grid{gap:12px}
  .portal-card{padding:18px;border-radius:20px}
  .portal-identity{grid-template-columns:1fr;gap:16px;padding:20px}
  .portal-profile-edit{padding:15px!important}
  .portal-profile-edit form{grid-template-columns:1fr!important}
  .portal-profile-edit form .button{grid-column:1!important;width:100%;justify-content:center}
  .portal-qr{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px}
  .portal-qr img{width:96px;height:96px;padding:7px;border-radius:15px}
  .portal-qr .button{width:100%;margin:0}
  .portal-card-head{display:flex;align-items:flex-start}
  .portal-card-head h2{font-size:1.5rem}
  .timeline-live{padding:7px 10px;font-size:10px}
  .portal-timeline{padding:18px}
  .portal-timeline .timeline-day{padding:16px 14px;border-radius:17px}
  .portal-timeline .timeline-day-head{align-items:flex-start;margin-bottom:14px;padding-bottom:12px}
  .portal-timeline .timeline-day-head strong{font-size:16px}
  .portal-timeline .timeline-track{display:grid;grid-template-columns:1fr;gap:12px;padding:2px 0 2px 25px}
  .portal-timeline .timeline-track:before{display:block;left:6px;right:auto;top:8px;bottom:8px;width:3px;height:auto;background:linear-gradient(180deg,#158fbd,#10afbf 45%,#6655c7 75%,#d43b98);opacity:.55}
  .portal-timeline .timeline-item{padding:0}
  .portal-timeline .timeline-dot{display:block;left:-24px;top:35px;width:11px;height:11px;transform:none}
  .portal-timeline .timeline-item-body{min-height:106px;grid-template-columns:68px minmax(0,1fr);padding:13px;border-top-width:1px;border-left:4px solid var(--timeline-accent,#118dcc);border-radius:16px}
  .portal-timeline .timeline-teacher-photo{width:68px;height:68px}
  .portal-timeline .timeline-item-body>strong{font-size:12px}
  .portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateX(3px)}
  .portal-timeline .timeline-item.is-current .timeline-dot{transform:scale(1.18)}
  .portal-stat-row{grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x proximity}
  .portal-stat{min-height:98px;padding:17px 18px;scroll-snap-align:start}
  .portal-session{grid-template-columns:46px minmax(0,1fr) auto;gap:10px}
  .portal-lock-note{padding:8px 10px;font-size:10px}
  .feedback-fields{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .participant-portal-head h1{font-size:2rem}
  .portal-card-head{gap:10px}
  .portal-card-head h2{font-size:1.35rem}
  .portal-timeline{padding:15px}
  .portal-timeline .timeline-day{padding:14px 12px}
  .portal-qr{grid-template-columns:82px minmax(0,1fr)}
  .portal-qr img{width:82px;height:82px}
  .feedback-fields{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.timeline-live i{animation:none!important}}


/* Correção de precedência da timeline — 2026-09-28 */
.portal-timeline .timeline-item{display:block!important;grid-template-columns:none!important;min-width:0!important;padding:0!important}
.portal-timeline .timeline-item-body{display:grid!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:126px!important;grid-template-columns:76px minmax(0,1fr)!important;grid-template-areas:"photo meta" "photo name" "photo message"!important;gap:2px 13px!important;align-items:center!important;margin:0!important;padding:16px!important;border:1px solid #d9e8ee!important;border-top:4px solid var(--timeline-accent,#118dcc)!important;border-radius:18px!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 12px 28px rgba(15,63,89,.07)!important;overflow:hidden!important}
.portal-timeline .timeline-teacher-photo{position:static!important;grid-area:photo!important;width:76px!important;height:76px!important;margin:0!important;border:3px solid #fff!important;box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 9px 20px rgba(12,63,92,.13)!important;transform:none!important}
.portal-timeline .timeline-item-meta{grid-area:meta!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important}
.portal-timeline .timeline-item-body>strong{grid-area:name!important;width:auto!important;margin:0!important;font-size:13px!important;line-height:1.18!important}
.portal-timeline .timeline-message{grid-area:message!important;margin:0!important;font-size:10.5px!important;line-height:1.35!important}
.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateY(-5px)!important;border-color:var(--timeline-accent,#118dcc)!important;box-shadow:0 18px 36px rgba(12,63,92,.13),0 0 0 4px color-mix(in srgb,var(--timeline-accent,#118dcc) 11%,transparent)!important}
.portal-timeline .timeline-item.is-completed .timeline-item-body{opacity:.82!important;background:linear-gradient(145deg,#fff,#f7fafc)!important}
@media(max-width:700px){
 .portal-timeline .timeline-item{display:block!important;padding:0!important}
 .portal-timeline .timeline-item-body{min-height:106px!important;grid-template-columns:68px minmax(0,1fr)!important;padding:13px!important;border:1px solid #d9e8ee!important;border-left:4px solid var(--timeline-accent,#118dcc)!important;border-radius:16px!important}
 .portal-timeline .timeline-teacher-photo{width:68px!important;height:68px!important}
 .portal-timeline .timeline-item-body>strong{font-size:12px!important}
 .portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateX(3px)!important}
}

/* Identidade do Grupo Zênite no portal — 2026-09-28 */
.participant-portal-head{padding-right:245px}
.participant-portal-head:before{content:"";position:absolute;z-index:2;right:38px;top:50%;width:170px;height:77px;transform:translateY(-50%);background:url('/assets/zenite-logo.png?v=20260828-production-1') center/contain no-repeat;filter:drop-shadow(0 10px 18px rgba(7,95,135,.12));pointer-events:none}
.participant-portal-head>div{position:relative;z-index:3}
@media(max-width:700px){
 .participant-portal-head{padding:94px 20px 22px}
 .participant-portal-head:before{left:20px;right:auto;top:20px;width:124px;height:56px;transform:none}
}
@media(max-width:420px){
 .participant-portal-head{padding-top:88px}
 .participant-portal-head:before{width:112px;height:51px}
}

/* Ajuste de escala da logo — 2026-09-28 */
.participant-portal-head:before{width:136px;height:62px;right:32px}
@media(max-width:700px){.participant-portal-head:before{width:104px;height:47px;left:18px;top:18px}}
@media(max-width:420px){.participant-portal-head:before{width:94px;height:43px;left:18px;top:18px}}

/* Formulário premium do participante — 2026-09-28 */
.portal-profile-edit{position:relative;isolation:isolate;overflow:hidden;padding:24px!important;border:1px solid rgba(183,215,226,.92)!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(244,251,252,.94))!important;box-shadow:0 18px 42px rgba(12,67,94,.08)!important}
.portal-profile-edit:before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0877a5,#13aab5 52%,#6bd6c2)}
.portal-profile-edit>p.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 8px!important;color:#087b9d;font-size:12px;font-weight:900;letter-spacing:.11em}
.portal-profile-edit>p.eyebrow:before{content:"✓";display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:linear-gradient(145deg,#e5f8f7,#dff4fb);color:#0787a5;font-size:14px;box-shadow:inset 0 0 0 1px rgba(19,155,177,.13)}
.portal-profile-edit>p.muted{max-width:820px;margin:0 0 20px!important;color:#71869a!important;font-size:13.5px!important;line-height:1.62!important}
.portal-profile-edit form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px 18px!important;margin-top:4px}
.portal-profile-edit form label{position:relative;gap:8px!important;color:#294c65!important;font-size:11.5px!important;font-weight:850!important;letter-spacing:.035em}
.portal-profile-edit form input{width:100%!important;min-height:54px!important;padding:13px 48px 13px 16px!important;border:1px solid #cbdfe8!important;border-radius:15px!important;background-color:#f9fcfd!important;background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:19px 19px!important;color:#102d43!important;font-size:15px!important;font-weight:750!important;letter-spacing:.005em!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 7px 18px rgba(16,76,105,.035)!important;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,transform .2s ease!important}
.portal-profile-edit form input[name="name"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230877a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19c.8-3.4 3-5.2 6.5-5.2s5.7 1.8 6.5 5.2'/%3E%3C/svg%3E")!important}
.portal-profile-edit form input[name="email"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230877a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='m5 7 7 5 7-5'/%3E%3C/svg%3E")!important}
.portal-profile-edit form input[name="institution"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230877a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V7l8-3 8 3v13M8 9h1M8 13h1M8 17h1M15 9h1M15 13h1M15 17h1M2.5 20h19'/%3E%3C/svg%3E")!important}
.portal-profile-edit form input[name="uf"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230877a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6-5.4 6-11a6 6 0 1 0-12 0c0 5.6 6 11 6 11Z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E")!important}
.portal-profile-edit form input:hover{border-color:#a9cbd8!important;background-color:#fff!important;box-shadow:0 9px 22px rgba(16,76,105,.07)!important}
.portal-profile-edit form input:focus{outline:0!important;border-color:#12a3b1!important;background-color:#fff!important;box-shadow:0 0 0 4px rgba(18,163,177,.12),0 12px 26px rgba(16,76,105,.08)!important;transform:translateY(-1px)}
.portal-profile-edit form input:invalid:not(:focus):not(:placeholder-shown){border-color:#e1a6b0!important}
.portal-profile-edit form .button{grid-column:1/2!important;justify-self:start!important;display:inline-flex!important;align-items:center!important;gap:12px!important;min-height:50px!important;margin-top:2px!important;padding:0 22px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#075f87,#0798aa)!important;color:#fff!important;font-size:13px!important;font-weight:850!important;letter-spacing:.01em!important;box-shadow:0 12px 26px rgba(7,95,135,.22)!important;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important}
.portal-profile-edit form .button:after{content:"→";font-size:19px;line-height:1;transition:transform .2s ease}
.portal-profile-edit form .button:hover{filter:saturate(1.08);transform:translateY(-2px);box-shadow:0 16px 30px rgba(7,95,135,.27)!important}
.portal-profile-edit form .button:hover:after{transform:translateX(3px)}
.portal-profile-edit form .button:focus-visible{outline:3px solid rgba(18,163,177,.25);outline-offset:3px}
.portal-profile-edit form:after{content:"✓ Dados protegidos e vinculados à sua inscrição";grid-column:2/3;align-self:center;justify-self:end;color:#6a8092;font-size:11px;font-weight:700;letter-spacing:.01em}
@media(max-width:700px){
 .portal-profile-edit{padding:18px!important;border-radius:19px!important}
 .portal-profile-edit>p.eyebrow{font-size:11px}
 .portal-profile-edit>p.muted{margin-bottom:16px!important;font-size:12.5px!important}
 .portal-profile-edit form{grid-template-columns:1fr!important;gap:14px!important}
 .portal-profile-edit form input{min-height:52px!important;border-radius:14px!important}
 .portal-profile-edit form .button{grid-column:1!important;width:100%!important;justify-content:center!important}
 .portal-profile-edit form:after{grid-column:1;justify-self:center;text-align:center;font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){.portal-profile-edit form input,.portal-profile-edit form .button,.portal-profile-edit form .button:after{transition:none!important}}

/* Timeline limpa com destaque no professor atual — 2026-09-28 */
.portal-timeline .timeline-track:before{display:none!important}
.portal-timeline .timeline-dot,.portal-timeline .timeline-live-fill,.portal-timeline .timeline-live-cursor{display:none!important}
.portal-timeline .timeline-track{padding-left:0!important}
.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateY(-5px)!important;border-color:var(--timeline-accent,#118dcc)!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 18px 36px color-mix(in srgb,var(--timeline-accent,#118dcc) 20%,transparent),0 0 0 4px color-mix(in srgb,var(--timeline-accent,#118dcc) 12%,transparent)!important}
.portal-timeline .timeline-item.is-current .timeline-state{background:color-mix(in srgb,var(--timeline-accent,#118dcc) 14%,#fff)!important;color:var(--timeline-accent,#118dcc)!important;border-color:color-mix(in srgb,var(--timeline-accent,#118dcc) 28%,transparent)!important;box-shadow:0 5px 12px color-mix(in srgb,var(--timeline-accent,#118dcc) 12%,transparent)}
.portal-timeline .timeline-item.is-current .timeline-message{color:var(--timeline-accent,#118dcc)!important;font-weight:750!important}
.portal-timeline .timeline-item.is-completed .timeline-state{background:#f3f7f9;color:#708596}
@media(max-width:900px){.portal-timeline .timeline-track{padding-left:0!important}.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateX(3px)!important}}
@media(prefers-reduced-motion:reduce){.portal-timeline .timeline-item.is-current .timeline-item-body{transform:none!important}}

/* Chamada para os próximos eventos — 2026-09-28 */
.portal-next-events{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:28px;grid-column:1/-1;margin-top:2px;padding:28px 32px;overflow:hidden;border:1px solid rgba(141,225,220,.5);border-radius:24px;background:linear-gradient(135deg,#064f78 0%,#087f9f 58%,#11b7a5 100%);box-shadow:0 18px 38px rgba(8,79,105,.16)}
.portal-next-events:before{content:"";position:absolute;z-index:-1;top:-70px;right:16%;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.1);filter:blur(2px)}
.portal-next-events:after{content:"";position:absolute;z-index:-1;right:-42px;bottom:-72px;width:190px;height:190px;border:1px solid rgba(255,255,255,.16);border-radius:50%}
.portal-next-events-copy{max-width:700px}
.portal-next-events .eyebrow{margin:0 0 8px;color:#b8fff1!important;font-size:11px;letter-spacing:.13em}
.portal-next-events h2{margin:0 0 8px;color:#fff;font-size:clamp(20px,2.4vw,29px);line-height:1.1;letter-spacing:-.035em}
.portal-next-events p:not(.eyebrow){margin:0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.55}
.portal-next-events-link{display:inline-flex;align-items:center;justify-content:center;gap:11px;flex:none;min-height:50px;padding:0 20px;border:1px solid rgba(255,255,255,.75);border-radius:15px;background:#fff;color:#075f88;font-size:12px;font-weight:900;text-decoration:none;box-shadow:0 10px 22px rgba(0,47,74,.16);transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
.portal-next-events-link span{font-size:19px;line-height:1;transition:transform .2s ease}
.portal-next-events-link:hover{transform:translateY(-2px);background:#f0fffb;box-shadow:0 15px 28px rgba(0,47,74,.22)}
.portal-next-events-link:hover span{transform:translate(3px,-3px)}
.portal-next-events-link:focus-visible{outline:3px solid rgba(184,255,241,.75);outline-offset:3px}
@media(max-width:700px){.portal-next-events{align-items:flex-start;flex-direction:column;gap:18px;padding:22px 20px;border-radius:20px}.portal-next-events h2{font-size:22px}.portal-next-events p:not(.eyebrow){font-size:12.5px}.portal-next-events-link{width:100%}}
@media(prefers-reduced-motion:reduce){.portal-next-events-link,.portal-next-events-link span{transition:none}}

/* CTA exclusiva do participante autenticado — 2026-09-28 */
body:not(:has(.primary-nav a[href$="/my-qr"])) .portal-next-events{display:none!important}

/* Consentimento de imagem V2 — 2026-10-14 */
.image-consent-card{position:relative;grid-column:1/-1;padding:30px!important;overflow:hidden;border:1px solid #cfe5ed!important;background:linear-gradient(145deg,#fff 0%,#f5fbfd 100%)!important;box-shadow:0 18px 42px rgba(15,74,99,.08)!important}
.image-consent-card:before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#05709e,#0ca8b0,#67d9c4)}
.image-consent-card.is-authorized:before{background:linear-gradient(90deg,#0a8f75,#24c6a1,#8de4cf)}
.image-consent-card.is-refused:before{background:linear-gradient(90deg,#bd4960,#e27383,#f2adb8)}
.image-consent-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px}
.image-consent-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid #cce8ef;border-radius:17px;background:linear-gradient(145deg,#e9f9fc,#fff);color:#087da4;font-size:28px;font-weight:800;box-shadow:0 10px 22px rgba(8,103,139,.1)}
.image-consent-head h2{margin:2px 0 5px;font-size:clamp(20px,2vw,27px);letter-spacing:-.035em;color:#0d2d46}
.image-consent-head .muted{margin:0;font-size:13px;line-height:1.5}
.image-consent-status{display:inline-flex;align-items:center;min-height:34px;padding:7px 13px;border:1px solid #f0d7a7;border-radius:999px;background:#fff8e9;color:#9a6300;font-size:11px;font-weight:850;white-space:nowrap}
.is-authorized .image-consent-status{border-color:#bde7d9;background:#eafaf4;color:#08735d}
.is-refused .image-consent-status{border-color:#f1c8cf;background:#fff1f3;color:#ad334a}
.image-consent-text{margin:22px 0 18px;padding:18px 20px;border:1px solid #dbeaf0;border-radius:17px;background:rgba(255,255,255,.86);color:#4d6676;box-shadow:inset 0 1px 0 #fff}
.image-consent-text p{margin:0;font-size:12.5px;line-height:1.75;text-align:justify}
.image-consent-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.image-consent-actions .button{min-height:46px;padding:0 19px;border-radius:14px;font-size:12px;font-weight:850;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.image-consent-actions .button:hover{transform:translateY(-1px)}
.image-consent-authorize{border:1px solid #a9ded1;background:#f0fbf7;color:#08735d}
.image-consent-authorize:hover,.image-consent-authorize.is-selected{border-color:transparent;background:linear-gradient(135deg,#087b69,#17ae91);color:#fff;box-shadow:0 10px 22px rgba(10,133,111,.18)}
.image-consent-refuse{border:1px solid #efc5cc;background:#fff7f8;color:#ac354a}
.image-consent-refuse:hover,.image-consent-refuse.is-selected{border-color:transparent;background:linear-gradient(135deg,#ad344c,#d65e70);color:#fff;box-shadow:0 10px 22px rgba(186,59,81,.17)}
.image-consent-actions>small{margin-left:auto;color:#78909d;font-size:10.5px}
.image-consent-feedback{width:100%;margin-top:14px;padding:11px 13px;border-radius:12px;font-size:12px;font-weight:750}
.image-consent-feedback.is-success{background:#eaf9f3;color:#08725d}
.image-consent-feedback.is-error{background:#fff0f2;color:#b02e47}
@media(max-width:700px){.image-consent-card{padding:22px 18px!important;border-radius:20px!important}.image-consent-head{grid-template-columns:auto minmax(0,1fr);gap:12px}.image-consent-icon{width:44px;height:44px;border-radius:14px;font-size:23px}.image-consent-status{grid-column:1/-1;justify-self:start}.image-consent-text{margin-top:17px;padding:16px}.image-consent-text p{text-align:left;font-size:12px;line-height:1.65}.image-consent-actions{display:grid;grid-template-columns:1fr 1fr}.image-consent-actions .button{width:100%;padding:0 10px}.image-consent-actions>small,.image-consent-feedback{grid-column:1/-1;margin-left:0;text-align:center}}
@media(max-width:380px){.image-consent-actions{grid-template-columns:1fr}.image-consent-actions>small,.image-consent-feedback{grid-column:1}}
@media(prefers-reduced-motion:reduce){.image-consent-actions .button{transition:none}}

/* Portal do participante — edição luxe V3 — 2026-10-14 */
body:has(.participant-portal-grid){
  --portal-ink:#0a2940;
  --portal-ink-soft:#345369;
  --portal-muted:#708597;
  --portal-line:rgba(169,205,218,.64);
  --portal-blue:#056d98;
  --portal-cyan:#08a2af;
  --portal-mint:#57cbb8;
  --portal-gold:#b99135;
  --portal-surface:rgba(255,255,255,.94);
  font-family:"Segoe UI Variable Text","Aptos","Inter","Montserrat",ui-sans-serif,system-ui,-apple-system,sans-serif;
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:
    radial-gradient(circle at 7% -8%,rgba(13,166,176,.14),transparent 30rem),
    radial-gradient(circle at 98% 13%,rgba(73,91,192,.09),transparent 31rem),
    radial-gradient(circle at 48% 106%,rgba(185,145,53,.06),transparent 27rem),
    linear-gradient(180deg,#f8fcfd 0%,#eff6f9 52%,#f6fafb 100%);
}
body:has(.participant-portal-grid) .main{padding:30px clamp(14px,3vw,44px) 80px}
.participant-portal-head,.participant-portal-grid{width:100%;max-width:1180px;margin-inline:auto}
.participant-portal-head{
  position:relative;
  align-items:center;
  min-height:168px;
  margin-bottom:20px;
  padding:34px 218px 34px 38px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.95);
  border-radius:30px;
  background:
    radial-gradient(circle at 82% 4%,rgba(185,145,53,.12),transparent 12rem),
    linear-gradient(132deg,rgba(255,255,255,.99),rgba(239,250,251,.96));
  box-shadow:0 24px 70px rgba(12,54,78,.085),inset 0 1px 0 #fff;
}
.participant-portal-head:after{content:"";position:absolute;inset:auto -90px -140px auto;width:310px;height:310px;border:1px solid rgba(10,147,164,.11);border-radius:50%;box-shadow:0 0 0 40px rgba(10,147,164,.035),0 0 0 88px rgba(10,147,164,.022);pointer-events:none}
.participant-portal-head:before{right:40px!important;width:128px!important;height:58px!important;filter:drop-shadow(0 12px 19px rgba(5,83,119,.11))!important}
.participant-portal-head .eyebrow{margin-bottom:9px;color:#087b9d;font-size:11px;font-weight:850;letter-spacing:.17em}
.participant-portal-head h1{margin:0 0 12px;font-size:clamp(2.25rem,4.4vw,3.65rem);font-weight:760;line-height:.94;letter-spacing:-.058em;color:var(--portal-ink)}
.participant-portal-head .muted{max-width:650px;color:#71869a;font-size:15px;line-height:1.65}
.participant-portal-grid{gap:20px;margin-bottom:36px}
.portal-card{
  border:1px solid var(--portal-line);
  border-radius:28px;
  background:var(--portal-surface);
  box-shadow:0 18px 55px rgba(13,57,80,.06),inset 0 1px 0 rgba(255,255,255,.95);
}
.portal-card-head{gap:18px;margin-bottom:22px}
.portal-card-head h2{font-size:clamp(1.42rem,2.1vw,1.82rem);font-weight:750;line-height:1.1;letter-spacing:-.04em}
.portal-card-head .eyebrow{margin-bottom:7px;font-size:10.5px;letter-spacing:.15em}
.portal-card-head .muted{color:#718697;font-size:13px;line-height:1.65}

/* Identidade e dados cadastrais */
.portal-identity{grid-template-columns:minmax(0,1fr) 190px;gap:28px;padding:34px;background:linear-gradient(137deg,rgba(255,255,255,.99),rgba(242,251,252,.95))}
.portal-identity:before{height:3px;border-radius:28px 28px 0 0;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan) 58%,var(--portal-gold))}
.portal-identity h2{font-weight:760;letter-spacing:-.045em}
.portal-identity .code-pill{padding:7px 12px;border:1px solid rgba(7,129,158,.13);border-radius:999px;background:#eaf7f9;color:#08799a;font-weight:750;letter-spacing:.035em}
.portal-profile-edit{margin-top:20px!important;padding:25px!important;border-color:rgba(174,210,222,.76)!important;border-radius:23px!important;background:rgba(255,255,255,.8)!important;box-shadow:0 18px 42px rgba(12,67,94,.06)!important;backdrop-filter:blur(12px)}
.portal-profile-edit:before{height:3px;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan),var(--portal-mint))}
.portal-profile-edit>p.eyebrow{font-size:11px;font-weight:850;letter-spacing:.14em}
.portal-profile-edit>p.eyebrow:before{border-radius:10px;background:#e9f8f7;box-shadow:none}
.portal-profile-edit>p.muted{color:#718697!important;font-size:13px!important}
.portal-profile-edit form label{color:#36566c!important;font-size:11px!important;font-weight:760!important;letter-spacing:.05em}
.portal-profile-edit form input{min-height:55px!important;border-color:#ccdee6!important;border-radius:16px!important;background-color:rgba(249,252,253,.96)!important;color:#102f45!important;font-size:14.5px!important;font-weight:680!important;box-shadow:inset 0 1px 0 #fff!important}
.portal-profile-edit form input:hover{border-color:#9fc8d5!important;box-shadow:0 10px 25px rgba(17,73,98,.055)!important}
.portal-profile-edit form input:focus{border-color:#0ea0ae!important;box-shadow:0 0 0 4px rgba(14,160,174,.105),0 12px 28px rgba(17,73,98,.07)!important}
.portal-profile-edit form .button{min-height:52px!important;border-radius:16px!important;background:linear-gradient(135deg,#075f87,#0799aa)!important;font-weight:780!important;box-shadow:0 13px 28px rgba(7,95,135,.19)!important}
.portal-profile-edit form:after{color:#7b8f9d;font-weight:650}
.portal-qr{align-self:stretch;padding:20px 16px;border:1px solid rgba(177,211,222,.7);border-radius:22px;background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 #fff}
.portal-qr img{width:138px;height:138px;padding:9px;border:1px solid #e0ebef;border-radius:21px;box-shadow:0 16px 34px rgba(8,82,118,.105)}
.portal-qr .button{min-height:44px;border-color:#c6dee7;border-radius:14px;background:#fff;color:#086d93;font-weight:780;box-shadow:0 8px 18px rgba(12,67,94,.055)}

/* Autorização de imagem */
.image-consent-card{padding:32px!important;border-radius:28px!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,252,253,.97))!important;box-shadow:0 18px 55px rgba(13,57,80,.06)!important}
.image-consent-card:before{height:3px;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan),var(--portal-mint))}
.image-consent-icon{width:50px;height:50px;border:0;border-radius:16px;background:linear-gradient(145deg,#e8f8fa,#f7ffff);font-size:25px;box-shadow:inset 0 0 0 1px #cce7ee}
.image-consent-head h2{font-weight:750}
.image-consent-status{font-weight:780}
.image-consent-text{border-color:#dce9ee;border-radius:18px;background:rgba(255,255,255,.76);box-shadow:none}
.image-consent-actions .button{min-height:48px;border-radius:15px;font-weight:780}

/* Agenda: sem linha ou bolinhas, com apresentação atual em destaque */
.portal-timeline{padding:31px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(243,251,252,.94))}
.portal-timeline:before{height:3px;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan),var(--portal-gold))}
.timeline-live{padding:9px 14px;border-color:#cdebe3;background:#effbf7;font-weight:780;box-shadow:none}
.portal-timeline .timeline-day{padding:21px;border-color:rgba(181,212,222,.7);border-radius:22px;background:rgba(255,255,255,.66);box-shadow:none}
.portal-timeline .timeline-day-head{margin-bottom:18px;padding-bottom:15px}
.portal-timeline .timeline-day-head strong{font-size:19px;font-weight:760}
.portal-timeline .timeline-day-head span{font-weight:760}
.portal-timeline .timeline-track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;padding:0!important}
.portal-timeline .timeline-track:before,.portal-timeline .timeline-dot,.portal-timeline .timeline-live-fill,.portal-timeline .timeline-live-cursor{display:none!important}
.portal-timeline .timeline-item{display:block!important;padding:0!important}
.portal-timeline .timeline-item-body{min-height:132px!important;grid-template-columns:74px minmax(0,1fr)!important;gap:3px 14px!important;padding:17px!important;border:1px solid #dce9ee!important;border-top:3px solid var(--timeline-accent,#118dcc)!important;border-radius:19px!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 12px 28px rgba(15,63,89,.055)!important}
.portal-timeline .timeline-teacher-photo{width:74px!important;height:74px!important;box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 10px 22px rgba(12,63,92,.11)!important}
.portal-timeline .timeline-item-body>strong{font-size:12.5px!important;font-weight:790!important;letter-spacing:.015em!important}
.portal-timeline .timeline-message{font-size:10.5px!important;color:#728695!important}
.portal-timeline .timeline-item-meta time{font-weight:780}
.portal-timeline .timeline-state{font-weight:780}
.portal-timeline .timeline-item.is-current .timeline-item-body{transform:translateY(-5px)!important;border-color:var(--timeline-accent,#118dcc)!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 20px 42px color-mix(in srgb,var(--timeline-accent,#118dcc) 17%,transparent),0 0 0 3px color-mix(in srgb,var(--timeline-accent,#118dcc) 10%,transparent)!important}

/* Indicadores, presenças, materiais e fotos */
.portal-stat-row{gap:14px}
.portal-stat{min-height:112px;padding:22px 24px;border-radius:21px;background:linear-gradient(145deg,#fff,#f7fbfc);box-shadow:0 12px 30px rgba(17,63,91,.045)}
.portal-stat:before{width:3px}
.portal-stat strong{font-size:31px;font-weight:750}
.portal-stat span,.portal-stat small{color:#76899a}
.portal-session-list{gap:11px}
.portal-session{min-height:68px;padding:13px 16px;border-color:#e0ebef;border-radius:17px;background:linear-gradient(90deg,#fff,#fbfdfe);box-shadow:0 6px 18px rgba(14,64,87,.025)}
.portal-session-date{min-height:40px;border-radius:12px;background:#eaf7f9;font-weight:780}
.portal-lock-note,.portal-photo-count{font-weight:720}
.portal-gallery,.portal-feedback{background:rgba(255,255,255,.94)}
.portal-gallery .portal-empty,.portal-empty{padding:30px;border-color:#c9dce4;border-radius:18px;background:linear-gradient(135deg,#fbfdfe,#f5fafb)}
.portal-photo{border-radius:18px;box-shadow:0 12px 24px rgba(14,64,87,.07);transition:transform .2s ease,box-shadow .2s ease}
.portal-photo:hover{transform:translateY(-3px);box-shadow:0 17px 32px rgba(14,64,87,.11)}
.portal-feedback .portal-card-head{margin:0 0 22px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.feedback-fields{gap:14px}
.portal-feedback-form label{gap:8px;color:#49657a;font-size:12px;font-weight:720}
.portal-feedback-form select,.portal-feedback-form textarea{min-height:50px;padding:13px 14px;border-color:#d3e2e8;border-radius:15px;background:#f9fcfd;color:#14334a;box-shadow:inset 0 1px 0 #fff}
.portal-feedback-form textarea{min-height:116px;margin:15px 0}
.portal-feedback-form .button{min-height:48px;border-radius:15px;font-weight:780}

/* Chamada final */
.portal-next-events{padding:31px 34px;border-radius:28px;background:linear-gradient(132deg,#064d72 0%,#077f99 58%,#18a892 100%);box-shadow:0 22px 48px rgba(7,74,99,.17)}
.portal-next-events h2{font-weight:740;letter-spacing:-.04em}
.portal-next-events-link{min-height:52px;border-radius:16px;font-weight:780}

@media(max-width:980px){
  .portal-timeline .timeline-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body:has(.participant-portal-grid) .main{padding:12px 11px 54px}
  .participant-portal-head{min-height:0;margin-bottom:12px;padding:88px 20px 24px;border-radius:24px}
  .participant-portal-head:before{top:20px!important;left:20px!important;right:auto!important;width:98px!important;height:45px!important;transform:none!important}
  .participant-portal-head:after{right:-160px;bottom:-180px}
  .participant-portal-head h1{margin-bottom:10px;font-size:clamp(2rem,11vw,2.65rem);line-height:.98}
  .participant-portal-head .muted{font-size:13px;line-height:1.55}
  .participant-portal-grid{gap:12px}
  .portal-card{padding:20px;border-radius:22px}
  .portal-card-head{align-items:flex-start;margin-bottom:18px}
  .portal-card-head h2{font-size:1.38rem}
  .portal-card-head .muted{font-size:12px}
  .portal-identity{grid-template-columns:1fr;gap:16px;padding:21px}
  .portal-identity h2{font-size:1.85rem}
  .portal-profile-edit{padding:17px!important;border-radius:19px!important}
  .portal-profile-edit form{grid-template-columns:1fr!important;gap:14px!important}
  .portal-profile-edit form input{min-height:52px!important;border-radius:14px!important}
  .portal-profile-edit form .button{grid-column:1!important;width:100%!important;justify-content:center!important}
  .portal-profile-edit form:after{grid-column:1!important;justify-self:center!important;text-align:center}
  .portal-qr{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;padding:14px}
  .portal-qr img{width:92px;height:92px;padding:7px;border-radius:16px}
  .portal-qr .button{width:100%;margin:0}
  .image-consent-card{padding:21px 18px!important;border-radius:22px!important}
  .image-consent-head{gap:12px}
  .image-consent-text{padding:15px}
  .portal-timeline{padding:20px}
  .portal-timeline .timeline-day{padding:15px 13px;border-radius:18px}
  .portal-timeline .timeline-day-head{align-items:center;margin-bottom:13px;padding-bottom:12px}
  .portal-timeline .timeline-track{grid-template-columns:1fr!important;gap:11px!important;padding:0!important}
  .portal-timeline .timeline-item-body{min-height:104px!important;grid-template-columns:67px minmax(0,1fr)!important;padding:13px!important;border:1px solid #dce9ee!important;border-left:3px solid var(--timeline-accent,#118dcc)!important;border-radius:16px!important}
  .portal-timeline .timeline-teacher-photo{width:67px!important;height:67px!important}
  .portal-timeline .timeline-item.is-current .timeline-item-body{transform:none!important;box-shadow:0 14px 30px color-mix(in srgb,var(--timeline-accent,#118dcc) 15%,transparent),0 0 0 2px color-mix(in srgb,var(--timeline-accent,#118dcc) 10%,transparent)!important}
  .portal-stat-row{grid-template-columns:1fr;gap:9px;overflow:visible}
  .portal-stat{min-height:92px;padding:17px 19px}
  .portal-session{grid-template-columns:50px minmax(0,1fr) auto;gap:10px;padding:12px}
  .portal-next-events{gap:18px;padding:23px 20px;border-radius:22px}
  .feedback-fields{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .participant-portal-head{padding-top:84px}
  .participant-portal-head h1{font-size:2.05rem}
  .portal-card{padding:17px}
  .portal-identity{padding:18px}
  .portal-qr{grid-template-columns:82px minmax(0,1fr)}
  .portal-qr img{width:82px;height:82px}
  .image-consent-actions{grid-template-columns:1fr}
  .image-consent-actions>small,.image-consent-feedback{grid-column:1}
  .feedback-fields{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .portal-photo,.portal-stat,.portal-session,.portal-next-events-link,.portal-profile-edit form input,.portal-profile-edit form .button{transition:none!important}
  .portal-timeline .timeline-item.is-current .timeline-item-body{transform:none!important}
}

/* Compatibilidade com classes legadas fragmentadas no markup — V3.1 */
.portal-identity>.portal-qr{align-self:start}
.participant-portal-grid section.portal-card:has(.timeline-track){position:relative;padding:31px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(243,251,252,.94))}
.participant-portal-grid section.portal-card:has(.timeline-track):before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan),var(--portal-gold))}
.participant-portal-grid .timeline-track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;padding:0!important}
.participant-portal-grid .timeline-track:before,.participant-portal-grid .timeline-dot,.participant-portal-grid .timeline-live-fill,.participant-portal-grid .timeline-live-cursor{display:none!important}
.participant-portal-grid .timeline-item{display:block!important;min-width:0!important;padding:0!important}
.participant-portal-grid .timeline-item-body{display:grid!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:132px!important;grid-template-columns:74px minmax(0,1fr)!important;grid-template-areas:"photo meta" "photo name" "photo message"!important;gap:3px 14px!important;align-items:center!important;margin:0!important;padding:17px!important;border:1px solid #dce9ee!important;border-top:3px solid var(--timeline-accent,#118dcc)!important;border-radius:19px!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 12px 28px rgba(15,63,89,.055)!important;overflow:hidden!important}
.participant-portal-grid .timeline-teacher-photo{position:static!important;grid-area:photo!important;width:74px!important;height:74px!important;margin:0!important;border:3px solid #fff!important;box-shadow:0 0 0 2px var(--timeline-accent,#118dcc),0 10px 22px rgba(12,63,92,.11)!important;transform:none!important}
.participant-portal-grid .timeline-item-meta{grid-area:meta!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important}
.participant-portal-grid .timeline-item-body>strong{grid-area:name!important;width:auto!important;margin:0!important;font-size:12.5px!important;font-weight:790!important;line-height:1.18!important;letter-spacing:.015em!important}
.participant-portal-grid .timeline-message{grid-area:message!important;margin:0!important;font-size:10.5px!important;line-height:1.35!important;color:#728695!important}
.participant-portal-grid .timeline-item.is-current .timeline-item-body{transform:translateY(-5px)!important;border-color:var(--timeline-accent,#118dcc)!important;background:linear-gradient(145deg,#fff,var(--timeline-soft,#eefaff))!important;box-shadow:0 20px 42px color-mix(in srgb,var(--timeline-accent,#118dcc) 17%,transparent),0 0 0 3px color-mix(in srgb,var(--timeline-accent,#118dcc) 10%,transparent)!important}
.portal-feedback>div:first-child{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin:0 0 22px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.portal-feedback>div:first-child h2{margin:.15rem 0 .28rem;font-size:clamp(1.42rem,2.1vw,1.82rem);font-weight:750;line-height:1.1;letter-spacing:-.04em;color:var(--portal-ink)}
.portal-feedback>div:first-child .muted{margin:0;color:#718697;font-size:13px;line-height:1.65}
@media(max-width:980px){.participant-portal-grid .timeline-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
  .portal-identity>.portal-qr{align-self:stretch}
  .participant-portal-grid section.portal-card:has(.timeline-track){padding:20px}
  .participant-portal-grid .timeline-track{grid-template-columns:1fr!important;gap:11px!important}
  .participant-portal-grid .timeline-item-body{min-height:104px!important;grid-template-columns:67px minmax(0,1fr)!important;padding:13px!important;border:1px solid #dce9ee!important;border-left:3px solid var(--timeline-accent,#118dcc)!important;border-radius:16px!important}
  .participant-portal-grid .timeline-teacher-photo{width:67px!important;height:67px!important}
  .participant-portal-grid .timeline-item.is-current .timeline-item-body{transform:none!important;box-shadow:0 14px 30px color-mix(in srgb,var(--timeline-accent,#118dcc) 15%,transparent),0 0 0 2px color-mix(in srgb,var(--timeline-accent,#118dcc) 10%,transparent)!important}
  .portal-feedback>div:first-child{display:block!important;margin-bottom:18px!important}
}

/* Avaliação do participante — organização e alinhamento V3.2 */
.portal-feedback{
  position:relative;
  padding:32px!important;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(247,252,253,.97))!important;
}
.portal-feedback:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--portal-blue),var(--portal-cyan) 58%,var(--portal-gold));
}
.portal-feedback>div:first-child{
  position:relative;
  min-height:58px;
  padding-left:68px!important;
  align-items:center!important;
}
.portal-feedback>div:first-child:before{
  content:"✦";
  position:absolute;
  left:0;
  top:0;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border:1px solid #cce5ec;
  border-radius:16px;
  background:linear-gradient(145deg,#eaf8fa,#fff);
  color:#087c9e;
  font-size:21px;
  line-height:1;
  box-shadow:0 10px 22px rgba(8,92,126,.07);
}
.portal-feedback>div:first-child .eyebrow{margin:0 0 6px;color:#087c9e;font-size:10.5px;font-weight:850;letter-spacing:.16em}
.portal-feedback>div:first-child h2{margin:0 0 6px;font-size:clamp(1.48rem,2.2vw,1.9rem);line-height:1.08}
.portal-feedback>div:first-child .muted{max-width:620px;font-size:13px;line-height:1.55}
.portal-feedback-form{
  display:grid;
  gap:16px;
  padding-top:22px;
  border-top:1px solid #e0ebef;
}
.portal-feedback-form .feedback-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.portal-feedback-form .feedback-fields>label,
.portal-feedback-form>label{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:9px;
  min-width:0;
  margin:0;
  color:#35566d;
  font-size:11.5px;
  font-weight:780;
  line-height:1.35;
  letter-spacing:.025em;
}
.portal-feedback-form .feedback-fields>label{
  padding:14px;
  border:1px solid #dce9ee;
  border-radius:17px;
  background:rgba(255,255,255,.76);
  box-shadow:inset 0 1px 0 #fff;
}
.portal-feedback-form select,
.portal-feedback-form textarea{
  box-sizing:border-box;
  width:100%;
  margin:0!important;
  border:1px solid #cadde5;
  border-radius:14px;
  background:#f8fbfc;
  color:#17364c;
  font:650 13px/1.4 "Segoe UI Variable Text","Aptos","Inter","Montserrat",ui-sans-serif,system-ui,sans-serif;
  box-shadow:none;
}
.portal-feedback-form select{
  min-height:52px;
  padding:0 42px 0 15px;
  cursor:pointer;
}
.portal-feedback-form>label{
  padding:15px;
  border:1px solid #dce9ee;
  border-radius:17px;
  background:rgba(255,255,255,.76);
}
.portal-feedback-form textarea{
  min-height:124px;
  padding:15px;
  line-height:1.65;
  resize:vertical;
}
.portal-feedback-form select:hover,
.portal-feedback-form textarea:hover{border-color:#aacbd6;background:#fff}
.portal-feedback-form select:focus,
.portal-feedback-form textarea:focus{outline:0;border-color:#0b9eae;background:#fff;box-shadow:0 0 0 4px rgba(11,158,174,.1)}
.portal-feedback-form textarea::placeholder{color:#8a9ba7;font-weight:550;opacity:1}
.portal-feedback-form .button{
  justify-self:start;
  min-width:180px;
  min-height:50px;
  margin-top:0;
  padding-inline:22px;
  border-radius:15px;
  background:linear-gradient(135deg,#075f87,#0799aa);
  font-size:13px;
  font-weight:800;
  box-shadow:0 12px 26px rgba(7,95,135,.17);
}
.portal-feedback-form .button:after{content:"→";margin-left:10px;font-size:17px;line-height:1}
.portal-feedback-message{align-self:center;margin:0;color:#087f60;font-size:12px;font-weight:720}
@media(min-width:761px){
  .portal-feedback-form{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .portal-feedback-form .feedback-fields,.portal-feedback-form>label{grid-column:1/-1}
  .portal-feedback-message{grid-column:2}
}
@media(max-width:760px){
  .portal-feedback{padding:21px 18px!important}
  .portal-feedback>div:first-child{display:block!important;min-height:54px;margin-bottom:18px!important;padding-left:62px!important}
  .portal-feedback>div:first-child:before{width:46px;height:46px;border-radius:14px}
  .portal-feedback>div:first-child h2{font-size:1.45rem}
  .portal-feedback-form{gap:12px;padding-top:18px}
  .portal-feedback-form .feedback-fields{grid-template-columns:1fr;gap:11px}
  .portal-feedback-form .feedback-fields>label,.portal-feedback-form>label{padding:12px;border-radius:15px}
  .portal-feedback-form select{min-height:50px}
  .portal-feedback-form textarea{min-height:130px}
  .portal-feedback-form .button{justify-self:stretch;width:100%;min-height:52px;justify-content:center}
  .portal-feedback-message{text-align:center}
}
