:root{--ink:#17211a;--muted:#768278;--line:#e5ebe3;--paper:#fff;--canvas:#f5f7f4;--lime:#a3df32;--green:#236b3d;--pale:#f1f9e9;--danger:#a84237}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}button,input,select{font:inherit}.portal-shell{min-height:100vh}.portal-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1120px)/2),24px);border-bottom:1px solid var(--line);background:#fff}.portal-brand img{display:block;width:138px;height:48px;object-fit:contain}.portal-top-actions{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:11px}.avatar-button{width:36px;height:36px;border:0;border-radius:50%;background:#eaf6e1;color:#397a22;font-weight:700}.portal-main{width:min(100% - 40px,1000px);margin:28px auto 50px}.portal-test-banner{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:20px;padding:11px 14px;border:1px solid #f0dda7;border-radius:9px;background:#fff9e9;color:#705b22;font-size:10px}.portal-test-banner b{color:#594613}.portal-test-banner a{margin-left:auto;color:#316d37;font-weight:700}.portal-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{margin:0 0 8px;color:#77867b;font-size:9px;font-weight:700;letter-spacing:1.3px}.portal-welcome h1{margin:0;font-size:26px;letter-spacing:-.6px}.portal-welcome p:last-child{margin:7px 0 0;color:var(--muted);font-size:12px}.profile-photo-control{display:grid;justify-items:center;gap:5px;cursor:pointer}.profile-photo-control>span{width:56px;height:56px;display:grid;place-items:center;overflow:hidden;border-radius:17px;background:#eaf6e1;color:#398525;font-size:17px;font-weight:700}.profile-photo-control img{width:100%;height:100%;object-fit:cover}.profile-photo-control input{position:absolute;width:1px;height:1px;opacity:0}.profile-photo-control small{color:#527342;font-size:9px}.portal-tabs{position:sticky;top:8px;z-index:5;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:18px;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 20px #17211a0a}.portal-tab{min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#39443b;font-size:11px;font-weight:600;cursor:pointer}.portal-tab span{color:#61a72c;font-size:17px}.portal-tab.active{border-color:#b4dd62;background:#f4faeb;color:#1d291d}.portal-tab.active span{color:#398623}.portal-panel{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 4px 16px #1b291b07}.portal-panel[hidden],#portalApp[hidden],#portalUnavailable[hidden],#portalExpired[hidden]{display:none!important}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:17px}.section-heading h2{margin:0;font-size:17px}.section-heading p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--line)}.profile-item{min-height:68px;display:grid;align-content:center;gap:5px;padding:11px;background:#fbfcfa}.profile-item small{color:var(--muted);font-size:9px}.profile-item b{font-size:12px}.info-strip{margin-top:14px;padding:13px;border-radius:9px;background:#f5f9f0;color:#4f5e4d;font-size:11px;line-height:1.5}.history-list{display:grid;gap:10px}.history-card{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.history-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:14px;cursor:pointer}.history-card summary::-webkit-details-marker{display:none}.history-card summary b{font-size:12px}.history-card summary span{color:var(--muted);font-size:10px}.history-card[open] summary{border-bottom:1px solid var(--line);background:#fbfdf9}.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.answer-item{padding:10px;border-radius:7px;background:#f7f9f6}.answer-item small{display:block;margin-bottom:5px;color:var(--muted);font-size:9px}.answer-item p{margin:0;font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid #dfe8d6;border-radius:7px;background:#fff;color:#35652c;font-size:10px;font-weight:700;text-decoration:none;cursor:pointer}.button-dark{border-color:#171a15;background:#171a15;color:#fff}.button-green{border-color:#77b73f;background:#78b83f;color:#fff}.button:disabled{opacity:.55;cursor:not-allowed}.diet-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.diet-toolbar h2{margin:0;font-size:17px}.diet-toolbar p{margin:6px 0 0;color:var(--muted);font-size:10px}.month-select{height:36px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:10px}.diet-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:17px;overflow:hidden;border:1px solid #dfe9d7;border-radius:9px;background:#dfe9d7}.diet-summary div{display:grid;gap:5px;padding:11px;background:#f8fbf5}.diet-summary small{color:var(--muted);font-size:9px}.diet-summary b{color:#295d32;font-size:12px}.meal-list{display:grid;gap:11px}.meal-card{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.meal-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:#edf6e8;color:#245d35}.meal-card header b{font-size:12px}.meal-card header span{font-size:10px}.meal-food{padding:10px 13px;border-top:1px solid #edf0eb}.meal-food-main{font-size:11px;font-weight:700}.meal-food-nutrition{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0}.meal-food-nutrition span{padding:4px 6px;border:1px solid #e5eedc;border-radius:5px;background:#f6faef;color:#477139;font-size:9px}.meal-substitutions{display:grid;gap:5px;margin:8px 0 0 12px;padding:7px 9px;border-left:3px solid #b9d94d;background:#fbfced}.meal-substitutions p{margin:0;color:#65705e;font-size:10px}.meal-substitutions small{display:block;margin-top:4px;color:#477139;font-size:9px}.daily-checkin{margin-top:18px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fbfdf9}.daily-checkin h3{margin:0 0 12px;font-size:13px}.checkin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checkin-fields label{display:grid;gap:5px;color:#687568;font-size:10px}.checkin-fields input{height:37px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}.meal-checks{display:grid;gap:8px;margin-top:13px}.meal-checks label{display:flex;align-items:center;gap:8px;color:#354236;font-size:10px}.meal-checks input{accent-color:#6da934}.checkin-actions{display:flex;justify-content:flex-end;margin-top:12px}.payment-card{display:grid;gap:11px;margin-top:16px;padding:15px;border:1px solid var(--line);border-radius:9px}.payment-options{display:flex;flex-wrap:wrap;gap:8px}.payment-note{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.portal-expired{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:16px;padding:14px;border:1px solid #f0d5d1;border-radius:9px;background:#fff7f6;color:#6c4642}.portal-expired b{font-size:12px;color:#9e3c31}.portal-expired span{flex:1 1 300px;font-size:10px;line-height:1.45}.settings-list{display:grid;gap:12px;max-width:480px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--line);border-radius:8px}.settings-row div{display:grid;gap:4px}.settings-row small{color:var(--muted);font-size:9px}.settings-row select{height:34px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:10px}.settings-row input[type=checkbox]{width:18px;height:18px;accent-color:#75b43d}.portal-empty{padding:22px;border:1px dashed #dce5d8;border-radius:9px;color:var(--muted);font-size:11px;text-align:center}.portal-locked{max-width:540px;margin:70px auto;padding:30px;text-align:center;border:1px solid var(--line);border-radius:13px;background:#fff}.portal-locked h1{font-size:20px}.portal-locked p{color:var(--muted);font-size:12px;line-height:1.6}.portal-empty-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto;border-radius:16px;background:#111813;color:#a6e628;font-size:12px;font-weight:800}.portal-footer{padding:16px;text-align:center;color:#8b968c;font-size:9px}.portal-toast{position:fixed;left:50%;bottom:24px;z-index:20;transform:translate(-50%,20px);padding:10px 15px;border-radius:8px;background:#171a15;color:#fff;font-size:11px;opacity:0;pointer-events:none;transition:.2s}.portal-toast.show{transform:translate(-50%,0);opacity:1}body.dark{--ink:#edf2ee;--muted:#a3aea5;--line:#334037;--paper:#18211b;--canvas:#101512}body.dark .portal-topbar,body.dark .portal-tabs,body.dark .portal-panel,body.dark .history-card,body.dark .meal-card{background:#18211b}body.dark .profile-item,body.dark .history-card summary,body.dark .answer-item,body.dark .daily-checkin,body.dark .settings-row{background:#1e2a22}body.dark .portal-tab{color:#dce7dd}body.dark .month-select,body.dark .checkin-fields input,body.dark .settings-row select{background:#121a15;color:#e4ebe5;border-color:#39463c}body.dark .meal-card header{background:#223725;color:#d6f2bc}body.dark .meal-substitutions{background:#262c1d}body.dark .meal-food-nutrition span{background:#202b24;border-color:#394a36;color:#d1eab6}body.dark .button{background:#202b24;border-color:#39463c;color:#cfe9b0}body.dark .button-dark{background:#080a08;color:#fff}body.dark .portal-expired{background:#2a1d1b;border-color:#543530}body.dark .portal-test-banner{background:#2b2618;border-color:#544828;color:#eadcae}body.dark .portal-expired span{color:#d4c0bc}
@media(max-width:700px){.portal-topbar{height:60px;padding:0 16px}.portal-brand img{width:118px;height:42px}.portal-main{width:min(100% - 24px,1000px);margin:18px auto 35px}.portal-test-banner{align-items:flex-start;flex-direction:column}.portal-test-banner a{margin:0}.portal-welcome h1{font-size:21px}.portal-tabs{top:4px;gap:4px;padding:6px}.portal-tab{min-height:55px;flex-direction:column;gap:3px;font-size:9px}.portal-tab span{font-size:16px}.portal-panel{padding:15px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.answer-grid{grid-template-columns:1fr}.diet-toolbar{flex-direction:column}.month-select{width:100%}.diet-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.checkin-fields{grid-template-columns:1fr}.meal-card header{align-items:flex-start;flex-direction:column;gap:4px}.section-heading{flex-direction:column}.portal-expired .button{width:100%}}
@media(max-width:360px){.portal-main{width:min(100% - 18px,1000px)}.portal-tabs{gap:2px;padding:4px}.portal-tab{font-size:8px}.portal-tab span{font-size:14px}.portal-panel{padding:12px}.profile-grid{grid-template-columns:1fr}}
@media print{.portal-topbar,.portal-test-banner,.portal-tabs,.portal-welcome,.daily-checkin,.portal-footer,.diet-toolbar button{display:none!important}body{background:white}.portal-main{width:100%;margin:0}.portal-panel{border:0;box-shadow:none;padding:0}.meal-card{break-inside:avoid}}
html.portal-mode body>.app-shell,html.portal-mode body>dialog,html.portal-mode body>.logout-screen,html.portal-mode body>#toast{display:none!important}html.portal-mode body>#studentPortalRoot:not([hidden]){display:block!important}html.portal-mode body{background:var(--canvas)}.student-portal-actions{display:flex;align-items:center;gap:12px}.student-portal-actions .student-page-avatar{overflow:hidden}.student-portal-actions .student-page-avatar img,.student-name .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.student-page-heading{gap:15px}@media(max-width:640px){.student-portal-actions{align-items:flex-end;flex-direction:column-reverse;gap:7px}.student-portal-actions .secondary-button{font-size:9px;padding:8px}}
.portal-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.portal-history-controls{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#fbfcfa}
.portal-history-controls label,.portal-evolution-controls label{display:grid;gap:6px;color:var(--muted);font-size:10px}
.demo-data-note{margin:12px 0;padding:9px 12px;border:1px solid #ead9a6;border-radius:7px;background:#fff9e8;color:#76601d;font-size:10px}
.portal-progress-row{display:flex;align-items:center;gap:14px;margin:12px 0 18px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fbfdf9}
.portal-progress-row p{margin:5px 0;color:var(--green);font-weight:700;font-size:12px}
.portal-progress-row small{color:var(--muted);font-size:10px}
.portal-calorie-ring{--progress:0%;width:70px;height:70px;flex:0 0 70px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#8bc83f var(--progress),#e7eee1 var(--progress))}
.portal-calorie-ring:before{content:'';position:absolute;width:54px;height:54px;border-radius:50%;background:var(--paper)}
.portal-calorie-ring span{position:relative;z-index:1;color:var(--green);font-size:13px;font-weight:800}
.portal-meal-check{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 13px;border-top:1px solid var(--line);background:#f5f9f0;color:var(--green);font-size:10px;font-weight:700;cursor:pointer}
.portal-meal-check input{width:17px;height:17px;accent-color:#72b339}
.portal-meal-check span{margin-left:auto;color:var(--muted);font-size:9px;font-weight:500}
.portal-water-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal-water-row .button{width:44px;height:42px;font-size:20px}
.portal-water-center{display:grid;gap:4px;text-align:center}
.portal-water-center b{font-size:15px}
.portal-water-center span{font-size:10px;color:var(--muted)}
.portal-water-track{height:12px;margin:12px 0 16px;overflow:hidden;border-radius:999px;background:#edf0ee}
.portal-water-track span{display:block;height:100%;border-radius:inherit;transition:width .2s}
.portal-water-track.incomplete span{background:#e15b5b}
.portal-water-track.complete span{background:#2998d5}
.portal-evolution-controls{display:flex;gap:12px;margin-bottom:14px}
.portal-evolution-controls label{flex:1}
.portal-evolution-month-head{display:grid;grid-template-columns:1fr 1fr;margin-bottom:8px;color:var(--green);font-size:11px;font-weight:700;text-align:center}
.portal-evolution-metrics{display:grid;gap:1px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--line)}
.portal-evolution-metrics>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px;background:var(--paper);font-size:10px}
.portal-evolution-metrics>div b{color:var(--green)}
.portal-evolution-photos{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:12px}
.portal-evolution-photos>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:5px;border:1px solid var(--line);background:#f6f8f5}
.portal-evolution-photos figure{margin:0;padding:2px}
.portal-evolution-photos img{display:block;width:100%;max-height:360px;object-fit:contain}
.portal-evolution-photos figcaption{padding:5px;color:var(--muted);font-size:9px}
.portal-anamnesis-disclosure{margin:12px 0 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.portal-anamnesis-disclosure>summary{padding:15px 18px;color:var(--ink);font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.portal-anamnesis-disclosure>summary::-webkit-details-marker{display:none}
.portal-anamnesis-disclosure>summary::after{content:'+';float:right;color:var(--green);font-size:18px;line-height:1}
.portal-anamnesis-disclosure[open]>summary::after{content:'−'}
.portal-anamnesis-disclosure .answer-grid{padding:0 14px 14px}
.portal-evolution-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}
.portal-evolution-table{width:100%;min-width:540px;border-collapse:collapse;background:var(--paper);font-size:11px}
.portal-evolution-table th,.portal-evolution-table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.portal-evolution-table thead th{background:var(--pale);color:var(--green);font-size:10px}
.portal-evolution-table tbody th{font-weight:650}
.portal-evolution-table tbody tr:last-child>*{border-bottom:0}
.portal-evolution-photos{display:grid;gap:10px;margin-top:18px}
.portal-evolution-photos>h3{margin:0;color:var(--green);font-size:14px}
.portal-evolution-photo-row{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.portal-evolution-photo-row>h3{margin:0;padding:9px 12px;background:var(--pale);font-size:12px}
.portal-evolution-photo-row>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.portal-evolution-photo-row figure{min-width:0;margin:0;border-right:1px solid var(--line)}
.portal-evolution-photo-row figure:last-child{border-right:0}
.portal-evolution-photo-row img{display:block;width:100%;height:clamp(190px,40vw,460px);object-fit:contain;background:#edf1ed}
.portal-evolution-photo-row figcaption{padding:6px 9px;color:var(--muted);font-size:9px}
.portal-evolution-photo-empty{display:grid;place-items:center;min-height:150px;padding:12px;color:var(--muted);font-size:10px;text-align:center}
body.dark .portal-anamnesis-disclosure,body.dark .portal-evolution-table,body.dark .portal-evolution-photo-row{background:#17211b;color:#e7eee8}
body.dark .portal-evolution-table thead th,body.dark .portal-evolution-photo-row>h3{background:#243528}
.evolution-publication-control{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:14px;border:1px solid #dfe8d6;border-radius:9px;background:#f5f9f0}
.evolution-publication-control>div{display:grid;gap:4px}
.evolution-publication-control span{color:var(--muted);font-size:10px}
@media(max-width:700px){.portal-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-history-controls{align-items:stretch;flex-direction:column}.portal-evolution-controls{flex-direction:column}.portal-evolution-photos{grid-template-columns:1fr}.portal-evolution-metrics>div{grid-template-columns:1fr 1fr 1fr}.portal-evolution-photo-row img{height:clamp(160px,58vw,320px)}}

/* Navegação e início do aluno. */
#studentPortalRoot .portal-topbar{position:sticky;top:0;z-index:20;gap:16px}
.portal-topbar-start{display:flex;align-items:center;gap:20px}
.portal-menu-toggle{width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);cursor:pointer}
.portal-menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:currentColor}
.portal-menu-toggle:hover{border-color:#82be34;background:var(--pale)}
#studentPortalRoot .portal-tabs{grid-template-columns:repeat(7,minmax(0,1fr));top:76px}
#studentPortalRoot button:focus-visible,#studentPortalRoot textarea:focus-visible{outline:3px solid #83bb3c;outline-offset:3px}
#studentPortalRoot button:disabled{opacity:.5;cursor:not-allowed}
.portal-drawer{position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh;max-height:100dvh;max-width:88vw;margin:0;padding:26px 20px;border:0;border-right:1px solid var(--line);border-radius:0 20px 20px 0;background:var(--paper);color:var(--ink);box-shadow:12px 0 70px #0003;overflow-y:auto}
.portal-drawer::backdrop{background:#0a1710a6;backdrop-filter:blur(3px)}
.portal-drawer-heading{display:flex;justify-content:space-between;align-items:center;padding:0 3px 24px;border-bottom:1px solid var(--line)}
.portal-drawer-heading h2{margin:0;font-size:23px;letter-spacing:-.5px}
.portal-drawer-close{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);color:var(--ink);font-size:24px;cursor:pointer}
.portal-drawer nav{display:grid;gap:8px;margin-top:22px}
.portal-drawer nav button{display:flex;align-items:center;gap:13px;padding:13px 14px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);font-size:13px;font-weight:600;text-align:left;cursor:pointer}
.portal-drawer nav button span{width:27px;text-align:center;font-size:21px;color:#64a72d}
.portal-drawer nav button:hover,.portal-drawer nav button[aria-current=page]{background:var(--pale);border-color:#b7d99b;color:#27502f}
.portal-drawer-footnote{margin-top:32px;padding:15px 4px;color:var(--muted);font-size:11px;line-height:1.6}
#portalPanel-home{padding:0;border:0;box-shadow:none;background:transparent;outline:none}
.portal-home-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 225px;align-items:center;gap:28px;padding:36px;border-radius:23px;overflow:hidden;background:linear-gradient(125deg,#132e20 5%,#225e39 70%,#426f32);color:#fff}
.portal-home-hero::after{content:'';position:absolute;z-index:-1;right:-110px;top:-170px;width:490px;height:490px;border:1px solid #b8ef5e30;border-radius:50%;box-shadow:0 0 0 44px #c7ed6b09,0 0 0 90px #c7ed6b07;pointer-events:none}
.portal-hero-kicker{font-size:10px;font-weight:700;letter-spacing:2px;color:#c5eb8c}
.portal-hero-copy h2{margin:15px 0 12px;font-size:clamp(24px,3vw,34px);letter-spacing:-1px;line-height:1.2;color:#fff}
.portal-hero-copy p{max-width:410px;margin:0 0 22px;line-height:1.7;color:#d2e4d6;font-size:12px}
.portal-hero-copy .button{gap:22px;padding:12px 16px;background:#c2ed75;border-color:#c2ed75;color:#183622;font-size:11px}
.portal-home-ring{--progress:0%;justify-self:center;display:grid;place-items:center;width:185px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#c2ef75 var(--progress),#ffffff24 var(--progress));box-shadow:0 0 0 9px #ffffff05}
.portal-home-ring>div{display:grid;align-content:center;justify-items:center;gap:8px;width:163px;aspect-ratio:1;border-radius:50%;background:#255438}
.portal-home-ring strong{font-size:40px;font-weight:700;line-height:1}
.portal-home-ring strong small{font-size:20px;color:#d7e3d7}
.portal-home-ring span{font-size:10px;color:#dde9d9}
.portal-home-ring b{font-size:9px;color:#cef69c;font-weight:500}
.portal-home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 30px}
.portal-stat-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;padding:21px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);text-align:left}
button.portal-stat-card{cursor:pointer;transition:transform .18s,border-color .18s}
button.portal-stat-card:hover{transform:translateY(-3px);border-color:#aed27d}
.portal-stat-card>.portal-stat-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#eef6e5;color:#4c892b;font-size:18px}
.portal-stat-card>span:not(.portal-stat-icon){font-size:11px;color:var(--muted)}
.portal-stat-card strong{font-size:23px;letter-spacing:-.7px}
.portal-stat-card strong small{font-size:13px;letter-spacing:0;color:var(--muted)}
.portal-stat-card>small{color:var(--muted);font-size:10px;line-height:1.5}
.portal-stat-water .portal-water-track{width:100%;height:6px;margin:0}
.portal-stat-water .button{padding:5px 10px;min-height:29px;font-size:10px}
.portal-home-section-title h2{font-size:18px;margin:0 0 6px;letter-spacing:-.4px}
.portal-home-section-title p{font-size:11px;color:var(--muted);margin:0 0 16px}
.portal-home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.portal-home-shortcuts button{position:relative;display:grid;gap:8px;min-width:0;padding:20px;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);text-align:left;cursor:pointer;transition:transform .18s,border-color .18s}
.portal-home-shortcuts button:hover{transform:translateY(-3px);border-color:#aed27d}
.portal-shortcut-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:3px;border-radius:12px;background:#eff8e4;color:#5c9b2b;font-size:22px}
.portal-home-shortcuts b{font-size:13px}
.portal-home-shortcuts small{color:var(--muted);font-size:10px;line-height:1.5}
.evolution-nav-icon{display:block;width:1em;height:1em;flex:none}
.portal-macro-progress{display:block;margin-top:7px;line-height:1.6}

/* Confirmação das refeições: estados distintos e relato obrigatório. */
#portalPanel-diet .meal-card{transition:background .2s,border-color .2s,box-shadow .2s}
#portalPanel-diet .meal-card.is-complete{background:#f0f8e8;border-color:#97bf76;box-shadow:inset 4px 0 #75a84e}
#portalPanel-diet .meal-card.is-complete header,#portalPanel-diet .meal-card.is-complete .portal-meal-check{background:#e0efd4}
#portalPanel-diet .meal-card.is-complete .meal-substitutions{background:#eaf3df}
#portalPanel-diet .meal-card.is-off-diet{background:#fff9ec;border-color:#d9ba76;box-shadow:inset 4px 0 #c69c41}
#portalPanel-diet .meal-card.is-off-diet header,#portalPanel-diet .meal-card.is-off-diet .portal-meal-check{background:#f6eacd;color:#75571b}
.portal-off-diet{padding:13px;border-top:1px solid var(--line)}
.portal-off-diet-option{display:flex;align-items:center;gap:8px;font-size:11px;cursor:pointer}
.portal-off-diet-option input{width:17px;height:17px;accent-color:#b48429}
.portal-off-diet-form{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:start;gap:10px;margin-top:13px}
.portal-off-diet-form>label{display:grid;gap:5px;font-size:11px;line-height:1.5;padding-top:8px}
.portal-off-diet-form>label span{font-size:9px;color:var(--muted)}
.portal-off-diet-form textarea{width:100%;min-height:68px;padding:10px 12px;resize:vertical;border:1px solid #cfcebb;border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;line-height:1.6}
.portal-off-diet-form-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.portal-off-diet-form-actions small{flex:1 1 180px;color:var(--muted);font-size:10px;line-height:1.5}
body.dark .portal-menu-toggle:hover,body.dark .portal-drawer nav button[aria-current=page],body.dark .portal-drawer nav button:hover{background:#283b25;border-color:#5b773e;color:#d5edbd}
body.dark .portal-shortcut-icon,body.dark .portal-stat-icon{background:#2d4026;color:#b1db83}
body.dark #portalPanel-diet .meal-card.is-complete{background:#233421;border-color:#527240}
body.dark #portalPanel-diet .meal-card.is-complete header,body.dark #portalPanel-diet .meal-card.is-complete .portal-meal-check{background:#304728;color:#d7eebc}
body.dark #portalPanel-diet .meal-card.is-complete .meal-substitutions{background:#293c23}
body.dark #portalPanel-diet .meal-card.is-off-diet{background:#352e1c;border-color:#79612f}
body.dark #portalPanel-diet .meal-card.is-off-diet header,body.dark #portalPanel-diet .meal-card.is-off-diet .portal-meal-check{background:#493d23;color:#f0d394}
body.dark .portal-off-diet-form textarea{border-color:#655d41}
@media(max-width:700px){.portal-topbar-start{gap:12px}.portal-top-actions>span{display:none}#studentPortalRoot .portal-tabs{top:66px;grid-template-columns:repeat(7,minmax(68px,1fr));overflow-x:auto}.portal-home-hero{grid-template-columns:1fr;padding:25px;gap:28px}.portal-hero-copy h2{font-size:28px}.portal-home-ring{width:152px}.portal-home-ring>div{width:132px}.portal-home-ring strong{font-size:32px}.portal-home-stats{grid-template-columns:1fr;gap:10px;margin-bottom:24px}.portal-stat-card{padding:18px}.portal-stat-card>.portal-stat-icon{position:absolute;top:18px;right:18px}.portal-stat-card strong{font-size:22px}.portal-home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-home-shortcuts button{padding:17px}.portal-off-diet-form{grid-template-columns:1fr}.portal-off-diet-form>label{display:flex;gap:5px;padding-top:0}.portal-meal-check span{width:100%;margin-left:25px}.portal-main{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.portal-home-shortcuts button,button.portal-stat-card,#portalPanel-diet .meal-card{transition:none}}
@media print{.portal-menu-toggle,.portal-drawer,.portal-meal-actions,.portal-progress-row{display:none!important}#portalPanel-diet .meal-card.is-complete,#portalPanel-diet .meal-card.is-off-diet{background:#fff;border-color:#ddd;box-shadow:none}}
  .portal-top-actions{position:relative}.portal-account-menu{position:absolute;z-index:30;top:calc(100% + 12px);right:0;width:190px;padding:6px;border:1px solid var(--line);border-radius:11px;background:var(--paper);box-shadow:0 12px 32px #17211a24}.portal-account-menu[hidden]{display:none}.portal-account-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:11px;border:0;border-radius:7px;background:transparent;color:var(--ink);text-align:left;font-size:12px;cursor:pointer}.portal-account-menu button svg{width:17px;height:17px;flex:none}.portal-account-menu button:hover,.portal-account-menu button:focus-visible{background:var(--pale);outline:0}.portal-account-menu button:last-child{color:#a84237}.portal-account-menu button span{font-weight:600}.avatar-button{display:grid;place-items:center;overflow:hidden;padding:0;cursor:pointer}.avatar-button img{width:100%;height:100%;object-fit:cover}.home-avatar-button{padding:0;border:0;background:transparent;color:inherit}.home-avatar-button>span{width:72px;height:72px;border-radius:50%;font-size:22px}.home-avatar-button small{font-size:10px}.portal-profile-heading{align-items:center}.profile-photo-control-large>span{width:112px;height:112px;border-radius:50%;font-size:30px}.profile-photo-control-large small{font-size:10px;font-weight:700}.profile-photo-control-large input{cursor:pointer}body.dark .portal-account-menu button:hover,body.dark .portal-account-menu button:focus-visible{background:#263529}
@media(max-width:700px){.home-avatar-button>span{width:60px;height:60px;font-size:19px}.profile-photo-control-large>span{width:92px;height:92px;font-size:26px}.portal-profile-heading{flex-direction:row;align-items:center}.portal-account-menu{right:0}}
.portal-diet-calendar{min-width:0;margin:18px 0 22px;padding:14px 12px 10px;border:1px solid var(--line);border-radius:14px;background:var(--paper);scroll-margin-top:80px}
.portal-calendar-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;margin-bottom:18px}
.portal-calendar-heading h3{margin:0;text-align:center;color:var(--ink);font-size:19px;font-weight:700;text-transform:capitalize}
.calendar-step{display:grid;place-items:center;border:0;background:transparent;color:#64a821;font-size:36px;line-height:1;min-height:44px;cursor:pointer}
.calendar-step:disabled{opacity:.25;cursor:default}
.portal-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;min-width:0}
.portal-calendar-day{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;border:0;padding:4px 0;background:transparent;color:var(--muted);cursor:pointer}
.portal-calendar-day small{text-transform:uppercase;font-size:11px;line-height:1.4;font-weight:600}
.portal-calendar-day b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:17px;font-weight:700;color:var(--ink)}
.portal-calendar-day.selected small{color:#538e21}
.portal-calendar-day.selected b{background:#9fe52b;color:#172310}
.portal-calendar-day:disabled{opacity:.3;cursor:default}
.calendar-day-status{height:20px;line-height:20px;color:#568a2c;font-size:22px;font-weight:700}
.calendar-day-status.complete{color:#3caa43}
.portal-calendar-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:8px;padding-top:10px;color:var(--muted)}
.portal-calendar-caption small{font-size:10px;line-height:1.5}
.portal-calendar-caption button{border:0;background:var(--pale);color:var(--ink);border-radius:7px;padding:8px 12px;min-height:36px;cursor:pointer}
.portal-calendar-day:focus-visible,.calendar-step:focus-visible{outline:2px solid #74b82e;outline-offset:1px}
body.dark .portal-calendar-day.selected small{color:#b7ed78}
@media(max-width:400px){.portal-diet-calendar{padding:12px 6px 8px}.portal-calendar-heading h3{font-size:16px}.portal-calendar-days{gap:1px}.portal-calendar-day b{width:32px;height:36px;font-size:16px}.portal-calendar-day small{font-size:9px}}
@media print{.portal-diet-calendar{display:none!important}}
.portal-tracking-sync{font-size:11px;line-height:1.5;color:var(--muted);padding:10px;border:1px solid var(--line);border-radius:8px}
@media print{.portal-tracking-sync{display:none!important}}
/* Draggable water goal slider, usable with touch and mouse. */
.portal-water-track{position:relative;overflow:visible;touch-action:pan-y}
.portal-water-track>span{width:var(--water-progress,0%);pointer-events:none}
.portal-water-slider{position:absolute;z-index:2;top:50%;left:0;width:100%;height:30px;margin:0;transform:translateY(-50%);appearance:none;-webkit-appearance:none;background:transparent;cursor:grab;touch-action:pan-y}
.portal-water-slider:active{cursor:grabbing}
.portal-water-slider::-webkit-slider-runnable-track{height:100%;background:transparent}
.portal-water-slider::-moz-range-track{height:100%;background:transparent}
.portal-water-slider::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:4px;border:3px solid #fff;border-radius:50%;background:#e15b5b;box-shadow:0 1px 6px #10231b55}
.portal-water-track.complete .portal-water-slider::-webkit-slider-thumb{background:#2998d5}
.portal-water-slider::-moz-range-thumb{width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:#e15b5b;box-shadow:0 1px 6px #10231b55}
.portal-water-track.complete .portal-water-slider::-moz-range-thumb{background:#2998d5}
.portal-stat-water .portal-water-track{margin:4px 0 12px}
@media(max-width:700px){.portal-water-slider{height:38px}}

/* Refeições substitutas recolhidas por padrão no portal do aluno. */
.meal-substitutions{margin-top:9px;padding:8px 10px;border-radius:7px;background:#f8f8ed}
.meal-substitutions summary{color:#496b31;font-size:11px;font-weight:700;cursor:pointer;list-style:none}
.meal-substitutions summary::-webkit-details-marker{display:none}
.meal-substitutions summary::after{content:'＋';float:right;color:#6d9d3d}
.meal-substitutions[open] summary::after{content:'−'}
.meal-substitutions p{margin:8px 0 0;padding-left:9px;border-left:2px solid #a2c94d;color:var(--muted);font-size:10px;line-height:1.5}
.meal-substitutions p small{display:block;margin-top:2px}
#portalDietPrintRoot{display:none}
@media print{
  @page{size:A4;margin:0}
  body.printing-student-diet #studentPortalRoot,body.printing-student-diet .portal-footer,body.printing-student-diet .portal-toast{display:none!important}
  body.printing-student-diet #portalDietPrintRoot{display:block!important}
  .diet-pdf-export{display:block;width:210mm;min-height:0;margin:0;padding:7mm;background:#f5f8f5;color:#152119;font-family:Arial,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .diet-pdf-brand{height:15mm;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:2mm}
  .diet-pdf-brand:before{content:'';position:absolute;left:0;right:0;top:10mm;border-top:0.7mm solid #167b38}
  .diet-pdf-brand img{position:relative;width:31mm;height:15mm;object-fit:contain;background:#f5f8f5}
  .diet-pdf-title{min-height:30mm;display:flex;align-items:center;justify-content:space-between;gap:5mm;padding:4mm 5mm;border-radius:9mm;background:linear-gradient(110deg,#075b2b,#2db34b);color:#fff}
  .diet-pdf-title h1{margin:0 0 1mm;font-size:19pt}.diet-pdf-title b{font-size:9pt}
  .diet-pdf-title aside{display:grid;gap:1mm;justify-items:end;text-align:right;color:#e0f3e3;font-size:7pt}
  .diet-pdf-student{display:grid;grid-template-columns:1.15fr .75fr 1fr;gap:3mm;align-items:center;margin:2mm 0;padding:2.5mm 3mm;border-radius:5mm;background:#fff;box-shadow:inset 1mm 0 #238c43}
  .diet-pdf-student>div{display:grid;gap:1mm}.diet-pdf-student>div:nth-child(2){height:100%;align-content:center;padding-left:3mm;border-left:.5mm solid #16803b}
  .diet-pdf-student>div:nth-child(3){text-align:right;padding-right:2mm}
  .diet-pdf-student p{margin:0;color:#1b7540;font-size:6.7pt;line-height:1.25}.diet-pdf-student p b{color:#14592f}
  .diet-pdf-meals{display:block}.diet-pdf-meal{margin:0 0 2mm;background:#fff;break-inside:avoid;page-break-inside:avoid}
  .diet-pdf-meal h2{margin:0;padding:2.5mm;background:#b6eab9;border-radius:5mm 5mm 0 0;color:#145d2e;font-size:9pt}
  .diet-pdf-columns{display:grid;grid-template-columns:44% 56%;align-items:center;min-height:5mm;padding:0 2.5mm;background:#f5f6f5;color:#47825a;font-size:5.2pt}
  .diet-pdf-meal table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}
  .diet-pdf-meal td{height:auto;padding:1mm 2.5mm;border-bottom:1mm solid #f2f5f2;vertical-align:middle;font-size:7.2pt}
  .diet-pdf-meal td:first-child{width:44%}.diet-pdf-meal td:nth-child(2){width:56%}
  .diet-pdf-substitutions{display:flex;flex-wrap:wrap;gap:1mm}.diet-pdf-substitutions span{display:inline-block;padding:.5mm 1mm;border-radius:1mm;background:#d7f1d9;color:#17632f;font-size:5.8pt;font-weight:700}
  .diet-pdf-recommendations{margin-top:2mm;padding:2mm;border-radius:2mm;background:#fff;break-inside:avoid}
  .diet-pdf-recommendations h2{margin:0 0 1mm;text-align:center;color:#167637;font-size:8.5pt}
  .diet-pdf-recommendations>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2mm}
  .diet-pdf-recommendations article{padding:1.5mm;border-left:1mm solid #16863c;border-radius:1mm;background:#f4f8f4}
  .diet-pdf-recommendations article>b{display:block;margin-bottom:.5mm;text-align:center;color:#126730;font-size:6.4pt}
  .diet-pdf-recommendations p{margin:0;color:#356043;font-size:5.8pt;line-height:1.3}
}
@media print{
  .diet-pdf-tip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2mm}
  .diet-pdf-tip-grid article{min-height:14mm;padding:1.5mm;border-left:1mm solid #16863c;border-radius:1mm;background:#f4f8f4}
  .diet-pdf-tip-grid article>b{display:block;margin-bottom:.5mm;text-align:center;color:#126730;font-size:6.4pt}
  .diet-pdf-tip-grid p,.diet-pdf-final-tips p{margin:0;color:#356043;font-size:5.8pt;line-height:1.3}
  .diet-pdf-final-tips{display:grid;grid-template-columns:1fr 1fr;gap:4mm;margin-top:3mm}
  .diet-pdf-final-tips h3{margin:0 0 1.5mm;color:#155c2e;font-size:7.5pt}
  .diet-pdf-final-tips p{display:flex;gap:1mm;margin:.8mm 0}
  .diet-pdf-final-tips p i{color:#73bd4f;font-size:9pt;font-style:normal;font-weight:bold}
}

@media print{body.printing-student-diet #portalDietPrintRoot,body.printing-student-diet #portalDietPrintRoot *{visibility:visible!important}}

@media print{html,body{height:auto!important;min-height:0!important;margin:0!important}body.printing-student-diet> :not(#portalDietPrintRoot){display:none!important}body.printing-student-diet #portalDietPrintRoot{position:static!important;width:210mm!important;margin:0!important;padding:0!important;break-before:auto!important;page-break-before:auto!important}body.printing-student-diet .diet-pdf-export{margin:0!important;break-before:auto!important;page-break-before:auto!important}}

/* Perfil do aluno: resumo editorial e dados sem blocos encaixados. */
.profile-showcase{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;margin-bottom:24px;padding:25px 28px;border-radius:16px;background:radial-gradient(circle at 85% 15%,#d9efc7 0,transparent 29%),linear-gradient(115deg,#f1f7eb,#f9fbf7 64%)}
.profile-showcase:after{content:'';position:absolute;right:145px;bottom:-68px;width:200px;height:200px;border:1px solid #dbe9d2;border-radius:50%;pointer-events:none}
.profile-showcase-copy{position:relative;z-index:1}.profile-showcase-copy .eyebrow{margin-bottom:8px;color:#5d8a47}.profile-showcase-copy h2{margin:0 0 12px;font-size:clamp(23px,3vw,31px);font-weight:750;letter-spacing:-.8px;color:var(--ink)}
.profile-goal-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#e3f2d9;color:#3d762e;font-size:10px;font-weight:700}
.profile-goal-pill:before{content:'';width:7px;height:7px;border-radius:50%;background:#78b83f}
.profile-photo-control-large{position:relative;z-index:1;flex:none}.profile-photo-control-large>span{width:86px;height:86px;border:3px solid #fff;box-shadow:0 5px 18px #31552220;background:#dcefd2;color:#39772f;font-size:25px}.profile-photo-control-large small{margin-top:3px;color:#507c3a;font-size:9px}
.profile-vitals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:26px;padding:17px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-vitals>div{display:grid;gap:5px;padding:2px 18px;border-right:1px solid var(--line)}.profile-vitals>div:first-child{padding-left:12px}.profile-vitals>div:last-child{border:0}
.profile-vitals small,.profile-details small{color:var(--muted);font-size:9px}.profile-vitals b{font-size:15px;font-weight:700;letter-spacing:-.2px;color:var(--ink)}
.profile-details h3{margin:0 0 12px;font-size:13px;color:var(--ink)}.profile-details>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:38px;row-gap:0}
.profile-details>div>div{display:grid;gap:5px;min-width:0;padding:12px 2px;border-bottom:1px solid #edf0eb}.profile-details>div>div:nth-last-child(-n+2){border-bottom:0}.profile-details b{overflow-wrap:anywhere;font-size:11px;font-weight:600;color:var(--ink)}
body.dark .profile-showcase{background:radial-gradient(circle at 85% 15%,#30442a 0,transparent 30%),linear-gradient(115deg,#1d2a1e,#18211b 65%)}body.dark .profile-showcase:after{border-color:#344630}body.dark .profile-goal-pill{background:#2b3d26;color:#cbe7ad}body.dark .profile-photo-control-large>span{border-color:#263329;background:#2e4028;color:#c9e7ab}
@media(max-width:700px){.profile-showcase{align-items:center;margin-bottom:20px;padding:20px 17px;border-radius:14px}.profile-showcase-copy h2{max-width:220px;font-size:22px;line-height:1.2;overflow-wrap:anywhere}.profile-photo-control-large>span{width:72px;height:72px;font-size:21px}.profile-vitals{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:15px;padding:15px 0;margin-bottom:21px}.profile-vitals>div{padding:2px 12px}.profile-vitals>div:nth-child(2){border-right:0}.profile-vitals>div:nth-child(3){padding-left:12px}.profile-vitals b{font-size:14px}.profile-details>div{column-gap:16px}.profile-details>div>div{padding:11px 1px}}
@media(max-width:380px){.profile-showcase{padding:17px 13px}.profile-showcase-copy h2{max-width:185px;font-size:20px}.profile-photo-control-large>span{width:64px;height:64px}}

/* Perfil financeiro no mesmo sistema visual do perfil pessoal. */
.finance-showcase{position:relative;isolation:isolate;display:flex;align-items:center;min-height:170px;overflow:hidden;margin:0 0 18px;padding:28px;border-radius:17px;background:radial-gradient(circle at 82% 12%,#d5ecc1 0,transparent 30%),linear-gradient(115deg,#eaf5e3,#f9fbf7 72%)}
.finance-showcase:after{content:'';position:absolute;z-index:0;right:5%;top:50%;width:min(260px,36%);height:135%;transform:translateY(-50%);background:url("irg-fitt-logo.png") center/contain no-repeat;opacity:.085;pointer-events:none}
.finance-showcase-copy{position:relative;z-index:1}
.finance-showcase-copy h2{max-width:520px;margin:0 0 8px;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:clamp(27px,3.5vw,38px);font-weight:850;letter-spacing:-1.25px;line-height:1.08;color:#145d2c;text-wrap:balance}
.finance-plan-caption{color:#567b52}
.finance-vitals{margin-bottom:12px}
.finance-status-row{display:flex;align-items:center;gap:10px;margin:0 0 22px;padding:11px 13px;border-radius:10px;background:#f4f8f0}
.finance-status-row>small{color:var(--muted);font-size:10px}
.finance-status{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#e4f2da;color:#39712d;font-size:10px;font-weight:700}
.finance-status i{width:7px;height:7px;border-radius:50%;background:#6fb43b}.finance-status.expired{background:#fff0ed;color:#a84237}.finance-status.expired i{background:#c75043}.finance-status.unknown{background:#f1f2ef;color:#71796f}.finance-status.unknown i{background:#9aa095}
.finance-price{display:none}
.finance-term-progress{display:grid;gap:8px;margin:0 0 25px;padding:0 5px}.finance-term-progress>div:first-child{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.finance-term-progress b{color:#477b35}.finance-progress-track{height:7px;overflow:hidden;border-radius:99px;background:#e9eee6}.finance-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#71ae43,#a8d86d);transition:width .25s}
.finance-contract{padding:18px 19px;border-radius:13px;background:#f7faf4}.finance-contract h3{margin-bottom:5px}.finance-contract>p{margin:0 0 15px;color:var(--muted);font-size:10px;line-height:1.5}.finance-contract .payment-options{align-items:center}.finance-contract>small{display:block;margin-top:12px;color:var(--muted);font-size:9px}
body.dark .finance-showcase{background:radial-gradient(circle at 82% 12%,#33472a 0,transparent 30%),linear-gradient(115deg,#1d2a1e,#18211b 66%)}body.dark .finance-showcase:after{opacity:.12}body.dark .finance-showcase-copy h2{color:#b8ed91}body.dark .finance-plan-caption{color:#a4bc9b}body.dark .finance-status-row{background:#1e2a22}body.dark .finance-status{background:#2b3d26;color:#cbe7ad}body.dark .finance-status.expired{background:#3a2522;color:#f0c0b8}body.dark .finance-contract{background:#1e2a22}body.dark .finance-progress-track{background:#303c31}
.photo-crop-dialog{width:min(430px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid var(--line);border-radius:17px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #10181038}
.photo-crop-dialog::backdrop{background:#12181299;backdrop-filter:blur(3px)}.photo-crop-card{display:grid;gap:16px;padding:21px}.photo-crop-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.photo-crop-card>header h2{margin:0;font-size:17px}.photo-crop-card>header p:last-child{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.5}.photo-crop-close{width:31px;height:31px;border:0;border-radius:50%;background:#f0f3ed;color:#55634f;font-size:20px;cursor:pointer}
.photo-crop-stage{position:relative;width:min(280px,72vw);height:min(280px,72vw);justify-self:center;overflow:hidden;border:3px solid #fff;border-radius:50%;background:#e8eee5;box-shadow:0 0 0 1px var(--line),0 8px 24px #17211a1a;touch-action:none;cursor:grab}.photo-crop-stage:active{cursor:grabbing}.photo-crop-stage img{position:absolute;top:50%;left:50%;max-width:none!important;max-height:none!important;border-radius:0!important;object-fit:fill;transform-origin:center;user-select:none;-webkit-user-drag:none;pointer-events:none}
.photo-crop-zoom{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:13px;color:var(--muted);font-size:10px;font-weight:600}.photo-crop-zoom input{width:100%;accent-color:#70aa3c}.photo-crop-card>footer{display:flex;justify-content:flex-end;gap:8px}.photo-crop-card>footer .button{min-width:105px}
@media(max-width:700px){.finance-showcase{align-items:flex-start;min-height:145px;margin-bottom:15px;padding:22px 18px;border-radius:14px}.finance-showcase:after{right:1%;width:42%;height:115%;opacity:.07}.finance-showcase-copy h2{max-width:78%;font-size:clamp(24px,7vw,31px)}.finance-vitals{row-gap:15px}.finance-status-row{margin-bottom:18px}.finance-contract{padding:15px}.photo-crop-card{padding:17px}.photo-crop-card>footer{display:grid;grid-template-columns:1fr 1fr}.photo-crop-card>footer .button{min-width:0;width:100%}}
@media(max-width:380px){.finance-showcase{flex-direction:column}.finance-showcase-copy h2{max-width:78%}}

/* Recortador em overlay próprio para compatibilidade do seletor de imagem. */
.photo-crop-dialog{position:fixed;inset:0;z-index:10000;display:none;place-items:center;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:12px;border:0;border-radius:0;background:#121812a8;backdrop-filter:blur(3px)}
.photo-crop-dialog.is-open{display:grid}
.photo-crop-dialog .photo-crop-card{width:min(430px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--line);border-radius:17px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #10181038}

/* Dieta do aluno: cartões compactos e controles rápidos no cabeçalho. */
#portalPanel-diet .meal-list{gap:8px}
#portalPanel-diet .meal-card{border:0;border-radius:13px;background:#f0f2f1;box-shadow:none}
#portalPanel-diet .portal-meal-heading{display:flex;align-items:center;gap:8px;padding:7px;background:#eef0ef}
#portalPanel-diet .portal-meal-toggle{min-width:0;flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
#portalPanel-diet .portal-meal-heading-copy{display:grid;gap:4px;min-width:0}
#portalPanel-diet .portal-meal-heading-copy b{font-size:12px;font-weight:700}
#portalPanel-diet .portal-meal-heading-copy small{color:var(--muted);font-size:9px}
#portalPanel-diet .portal-meal-chevron{flex:none;color:#68776d;font-size:20px;line-height:1;transition:transform .18s}
#portalPanel-diet .portal-meal-toggle[aria-expanded="true"] .portal-meal-chevron{transform:rotate(180deg)}
#portalPanel-diet .portal-meal-quick-check{flex:none;display:flex;align-items:center;gap:4px;padding:7px 9px;border:1px solid #dce7d7;border-radius:9px;background:var(--paper);color:#39713a;font-size:9px;font-weight:700;cursor:pointer}
#portalPanel-diet .portal-meal-quick-check input{position:absolute;width:1px;height:1px;opacity:0}
#portalPanel-diet .portal-meal-quick-check span{display:grid;place-items:center;width:17px;height:17px;border:1px solid #bdcabb;border-radius:50%;color:transparent;font-size:11px}
#portalPanel-diet .portal-meal-quick-check input:checked+span{border-color:#6eaf45;background:#78b83f;color:#fff}
#portalPanel-diet .portal-meal-quick-check input:focus-visible+span{outline:3px solid #83bb3c;outline-offset:2px}
#portalPanel-diet .portal-meal-body{padding:3px 9px 9px}
#portalPanel-diet .portal-meal-body[hidden],#portalPanel-diet .meal-substitutions[hidden]{display:none!important}
#portalPanel-diet .meal-food{padding:9px 7px;border-top:1px solid #dfe4e1}
#portalPanel-diet .portal-food-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
#portalPanel-diet .portal-food-copy{display:grid;gap:3px;min-width:0}
#portalPanel-diet .portal-food-copy b{font-size:11px;line-height:1.3}
#portalPanel-diet .portal-food-copy small{color:var(--muted);font-size:9px}
#portalPanel-diet .portal-food-side{display:flex;align-items:center;gap:8px;flex:none}
#portalPanel-diet .portal-food-kcal{color:#365d3b;font-size:10px;white-space:nowrap}
#portalPanel-diet .portal-substitution-toggle{width:29px;height:29px;display:grid;place-items:center;border:1px solid #d4e6ef;border-radius:50%;background:#f7fcff;color:#398dc1;font-size:17px;line-height:1;cursor:pointer}
#portalPanel-diet .portal-substitution-toggle[aria-expanded="true"]{background:#e4f4fc;border-color:#81c3e5}
#portalPanel-diet .meal-food-nutrition{gap:8px;margin-top:4px}
#portalPanel-diet .meal-food-nutrition span{padding:0;border:0;background:transparent;color:var(--muted);font-size:9px}
#portalPanel-diet .meal-substitutions{gap:4px;margin:7px 0 0;padding:8px 10px;border:0;border-left:2px solid #77bd4a;border-radius:0 8px 8px 0;background:#f8fbf5}
#portalPanel-diet .meal-substitutions p{margin:0;padding:5px 0;border:0;border-bottom:1px solid #e5ece1;font-size:10px}
#portalPanel-diet .meal-substitutions p:last-child{border-bottom:0}
#portalPanel-diet .portal-meal-actions{padding:8px 7px 2px;border-top:1px solid #dfe4e1}
#portalPanel-diet .portal-meal-total{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin-bottom:8px;color:var(--muted);font-size:9px}
#portalPanel-diet .portal-meal-total b{color:#365d3b;font-size:10px}
#portalPanel-diet .portal-meal-total span{margin-left:auto}
#portalPanel-diet .portal-off-diet{padding:8px 0 0;border-top:0}
#portalPanel-diet .portal-off-diet-option{font-size:10px}
#portalPanel-diet .meal-card.is-complete .portal-meal-heading{background:#e5f1dd}
#portalPanel-diet .meal-card.is-off-diet .portal-meal-heading{background:#f6eacd}
body.dark #portalPanel-diet .meal-card{background:#1e2822}
body.dark #portalPanel-diet .portal-meal-heading{background:#222d26}
body.dark #portalPanel-diet .portal-meal-quick-check{background:#17211b;border-color:#39463c;color:#cfe9b0}
body.dark #portalPanel-diet .portal-food-kcal,body.dark #portalPanel-diet .portal-meal-total b{color:#cbe7ad}
body.dark #portalPanel-diet .portal-substitution-toggle{background:#182a31;border-color:#315360;color:#82c8e9}
body.dark #portalPanel-diet .meal-substitutions{background:#202b24}
body.dark #portalPanel-diet .meal-food{border-color:#334037}
@media(max-width:700px){#portalPanel-diet .meal-list{gap:7px}#portalPanel-diet .portal-meal-heading{flex-direction:row;align-items:center;gap:5px;padding:6px}#portalPanel-diet .portal-meal-toggle{gap:5px;padding:6px 7px}#portalPanel-diet .portal-meal-heading-copy b{font-size:11px}#portalPanel-diet .portal-meal-heading-copy small{font-size:8px}#portalPanel-diet .portal-meal-quick-check{gap:3px;padding:6px;font-size:8px}#portalPanel-diet .portal-meal-body{padding:2px 7px 7px}#portalPanel-diet .meal-food{padding:8px 5px}#portalPanel-diet .portal-food-copy b{font-size:10px}#portalPanel-diet .portal-food-side{gap:5px}#portalPanel-diet .portal-substitution-toggle{width:27px;height:27px}#portalPanel-diet .portal-meal-total span{margin-left:0}}
@media print{#portalPanel-diet .portal-meal-body[hidden]{display:block!important}#portalPanel-diet .portal-meal-toggle{color:#17211a}}

  /* Barra inferior translúcida disponível no portal em computador e celular. */
  #studentPortalRoot .portal-main{padding-bottom:112px}
  #studentPortalRoot .portal-bottom-nav{position:fixed;left:50%;bottom:18px;z-index:50;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;gap:4px;width:min(620px,calc(100% - 36px));padding:8px 10px;border:1px solid #ffffffbd;border-radius:999px;background:rgba(250,252,249,.76);box-shadow:0 10px 35px #16221826,0 2px 8px #16221810,inset 0 1px #ffffffd9;backdrop-filter:blur(24px) saturate(1.65);-webkit-backdrop-filter:blur(24px) saturate(1.65);transform:translateX(-50%);isolation:isolate}
  #studentPortalRoot .portal-bottom-nav button{position:relative;min-width:0;min-height:58px;display:grid;align-content:center;justify-items:center;gap:3px;padding:4px 3px;border:0;border-radius:999px;background:transparent;color:#68736a;cursor:pointer;transition:background .18s,color .18s,transform .18s}
  #studentPortalRoot .portal-bottom-nav button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#4f8b34;font-size:18px;line-height:1}
  #studentPortalRoot .portal-bottom-nav button>span svg{width:18px;height:18px}
  #studentPortalRoot .portal-bottom-nav button small{display:block;max-width:100%;overflow:hidden;color:inherit;font-size:9px;font-weight:650;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
  #studentPortalRoot .portal-bottom-nav button.active{background:rgba(224,242,208,.76);color:#245d35}
  #studentPortalRoot .portal-bottom-nav button.active>span{background:rgba(255,255,255,.78);box-shadow:0 1px 5px #18331c15;color:#38852b}
  #studentPortalRoot .portal-bottom-nav button:active{transform:scale(.94)}
  #studentPortalRoot .portal-bottom-nav button:focus-visible{outline:2px solid #77b83f;outline-offset:1px}
  body.dark #studentPortalRoot .portal-bottom-nav{border-color:#ffffff25;background:rgba(24,33,27,.78);box-shadow:0 10px 35px #0006,inset 0 1px #ffffff1b}
  body.dark #studentPortalRoot .portal-bottom-nav button{color:#a4b0a6}
  body.dark #studentPortalRoot .portal-bottom-nav button>span{color:#9bd86a}
  body.dark #studentPortalRoot .portal-bottom-nav button.active{background:rgba(68,97,54,.78);color:#e0f4d1}
  body.dark #studentPortalRoot .portal-bottom-nav button.active>span{background:rgba(255,255,255,.12);color:#bcf47c}
@media(max-width:700px){
    #studentPortalRoot .portal-main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
    #studentPortalRoot .portal-bottom-nav{bottom:calc(9px + env(safe-area-inset-bottom));gap:2px;width:min(520px,calc(100% - 20px));padding:7px 6px}
    #studentPortalRoot .portal-bottom-nav button{min-height:53px;gap:2px;padding:3px 1px;-webkit-tap-highlight-color:transparent}
    #studentPortalRoot .portal-bottom-nav button>span{width:29px;height:29px;font-size:17px}
    #studentPortalRoot .portal-bottom-nav button>span svg{width:17px;height:17px}
    #studentPortalRoot .portal-bottom-nav button small{font-size:7px}
}
