/* Editores e listas; responsividade em responsive.e12.css. */
.edit-filters{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:16px 0}.edit-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650}.edit-filters label:first-child{flex:1;min-width:180px}.edit-filters input,.edit-filters select{min-height:42px;padding:9px 12px;border:1px solid #D8D1CF;border-radius:9px;background:#fff;color:#292326}.management-sections{grid-template-columns:minmax(0,1fr);gap:20px}.management-row.with-actions{grid-template-columns:minmax(180px,1fr) minmax(100px,.4fr) 80px minmax(220px,auto)}.management-row[hidden]{display:none!important}.management-actions button,.item-actions button{min-height:40px}.local-editor,.management-editor{margin:16px 0;border:2px solid #8B1C1C}#proposalEditor,#mgEditor{scroll-margin-top:24px}.editor-footer{position:sticky;bottom:0;background:#fff;padding:12px 0;border-top:1px solid #eee;z-index:2}.danger{color:#8B1C1C}.field input,.field textarea,.field select{max-width:100%;box-sizing:border-box}.management-row>div{min-width:0;overflow-wrap:anywhere}

.app-confirm{border:1px solid #D8D1CF;border-radius:18px;padding:24px;max-width:460px;width:calc(100% - 40px);box-sizing:border-box;color:inherit;background:#fff}.app-confirm::backdrop{background:rgba(0,0,0,.45)}.app-confirm h2{margin:0 0 12px}.app-confirm p{line-height:1.6}.app-confirm .item-actions{justify-content:flex-end}

#demoProposalForm{display:grid;gap:18px}#demoScope{display:grid;gap:16px}#demoScope[hidden],#demoClassGroup[hidden]{display:none}#demoClassGroup{border:1px solid #D8D1CF;border-radius:12px;padding:14px}#demoTargets{display:flex;flex-wrap:wrap;gap:12px}.demo-check{display:flex;align-items:center;gap:10px;padding:10px 0}.demo-check input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;flex:none}

.demo-text-preview{padding:16px;border:1px solid #D8D1CF;border-radius:12px;line-height:1.6;overflow-wrap:anywhere}.demo-text-preview div:empty{min-height:1em}

.demo-editor{border:1px solid #D8D1CF;border-radius:12px;overflow:hidden;margin-top:8px}.demo-editor #demoFormat{padding:10px;border-bottom:1px solid #D8D1CF;background:#faf8f7;margin:0}.demo-editor [contenteditable]{min-height:200px;padding:16px;line-height:1.6;outline:none;overflow-wrap:anywhere}.demo-editor:focus-within{outline:2px solid #8B1C1C}.demo-editor [contenteditable]:empty:before{content:attr(data-placeholder);color:#777;pointer-events:none}.demo-editor ul,.demo-text-preview ul{padding-left:24px;list-style:disc}

.generation-screen{text-align:center}.generation-screen .spin{margin:0 auto 20px}.demo-editor [contenteditable],.demo-text-preview{white-space:pre-wrap}

#demoTheme{font-weight:700} #demoMotivators fieldset{margin:12px 0;border:1px solid var(--line,#ddd);border-radius:12px;padding:16px} #demoMotivators textarea{min-height:160px} #demoUnderstand{min-height:110px}
#proposalCreation[hidden],#demoList[hidden]{display:none}
.credit-page{max-width:1040px;margin:8px auto 0}
.credit-summary{display:flex;align-items:center;gap:36px;padding:28px 32px;background:#fff;border:1px solid #e6e3e1;border-radius:16px}
.credit-balance{min-width:210px}
.credit-balance>span{font-size:14px;color:#606775}
.credit-balance>strong{display:block;font-size:36px;line-height:1.25;font-weight:600;color:#911d1b;margin-top:6px;letter-spacing:-1px}
.credit-page p{line-height:1.6}
.credit-balance p,.credit-person p{font-size:14px;color:#606775;margin:6px 0}
.credit-person{border-left:1px solid #e6e3e1;padding-left:36px;min-width:0}
.credit-person>strong{font-size:16px;font-weight:600}
.credit-person p{overflow-wrap:anywhere}
.credit-gift{display:block;font-size:14px;color:#59645b;margin-top:14px}
.credit-notice{font-size:14px;color:#606775;margin:16px 0 0;padding:0 4px}
.credit-shop{margin-top:38px}
.credit-shop-heading{margin-bottom:22px}
.credit-shop-heading h2{font-size:21px;font-weight:600;letter-spacing:-.3px;margin:0}
.credit-shop-heading p{font-size:14px;color:#606775;margin:7px 0 0}
.credit-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.credit-package{padding:26px;background:#fff;border:1px solid #e6e3e1;border-radius:14px}
.credit-package h3{font-size:22px;font-weight:600;margin:0;color:#242b36}
.credit-package h3 span{font-size:15px;font-weight:400}
.credit-package .credit-price{font-size:29px;font-weight:600;letter-spacing:-.5px;color:#242b36;margin:26px 0 0;line-height:1.3}
.credit-price>span{font-size:16px;font-weight:400;letter-spacing:0}
.credit-package .credit-unit{font-size:13px;color:#606775;margin:8px 0 24px}
.credit-buy{width:100%;min-height:44px;border:1px solid #d8aaa7;border-radius:9px;background:#fff;color:#911d1b;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.credit-buy:hover{background:#faf0ef;border-color:#911d1b}
.credit-buy:focus-visible{outline:2px solid #911d1b;outline-offset:3px}
.credit-buy:disabled{opacity:.6;cursor:wait}
.credit-page .credit-footnote{font-size:13px;color:#606775;text-align:center;margin:20px 0 0}
.credit-page .credit-footnote+.credit-footnote{margin-top:4px}
.credit-buy .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.credit-summary{align-items:flex-start;flex-direction:column;gap:20px;padding:24px}.credit-person{border-left:0;border-top:1px solid #e6e3e1;padding:20px 0 0;width:100%}.credit-packages{grid-template-columns:1fr}.credit-package{padding:24px}.credit-shop{margin-top:28px}}
.teacher-org-page{max-width:1040px;display:grid;gap:20px}.teacher-org-page .box-body{display:grid;gap:18px}.org-inline{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.org-inline>.field{flex:1;min-width:180px}.org-inline>.org-year{flex:0 1 120px;min-width:100px}.teacher-org-page textarea{width:100%;resize:vertical}.org-students{padding-left:22px;line-height:1.9}.org-students small{color:#596579}.org-review{display:grid;gap:10px;margin:18px 0}.org-review-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;border:1px solid #e6e3e1;border-radius:12px}.org-review-row small{display:block;color:#596579;margin-top:4px}.teacher-org-page [role=status]{line-height:1.6;color:#702020}.teacher-org-page #rosterInput[hidden]{display:none}@media(max-width:700px){.org-review-row{grid-template-columns:1fr}.org-inline>.btn{width:100%}.org-inline>.field{min-width:100%}}
.teacher-org-page .field>small{font-size:13px;line-height:1.5}.teacher-org-page .muted{font-size:13px;line-height:1.6}
.teacher-home{max-width:1120px;display:grid;gap:28px}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px}.home-welcome h1{font-size:30px;margin:6px 0 10px}.home-welcome p{color:#586475;line-height:1.6}.home-eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase}.home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-stat,.home-shortcut{background:#fff;border:1px solid #e7e2df;border-radius:14px;text-align:left;font:inherit;padding:22px;cursor:pointer;color:#252b34}.home-stat span{display:block;font-size:13px;color:#586475}.home-stat strong{display:block;font-size:30px;margin-top:12px}.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-shortcut{display:flex;flex-direction:column;gap:12px;min-height:175px}.home-shortcut strong{font-size:18px}.home-shortcut span{font-size:14px;color:#586475;line-height:1.6}.home-shortcut small{margin-top:auto;font-size:13px;color:#8b1c1c}.home-shortcut:hover,.home-stat:hover{border-color:#a55b55;background:#fffafa}.home-shortcut:focus-visible,.home-stat:focus-visible{outline:3px solid #a55b55;outline-offset:3px}.home-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}.home-recent{padding:14px 0;border-bottom:1px solid #eee9e6;display:flex;justify-content:space-between;gap:12px}.home-recent p,.home-recent>span{font-size:13px;line-height:1.5;color:#586475}.home-notice{padding:20px;background:#f6f2ed;border-radius:14px;line-height:1.7}.teacher-home h2{font-size:20px}.home-panels .btn{margin-top:16px}@media(max-width:760px){.home-shortcuts,.home-panels{grid-template-columns:1fr}.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.home-welcome{align-items:start;flex-direction:column}.home-stat{padding:16px}.home-shortcut{min-height:135px}}


/* Gestão: contas e formulários */
.management-page{display:grid;gap:20px;min-width:0}
.management-create>summary{padding:20px 24px;cursor:pointer;font-weight:700;color:var(--navy,#173750)}
.management-create[open]>summary{border-bottom:1px solid #e4e9ee}
.management-create .box{box-shadow:none;border:0}
.management-create .box-body .box-body{padding:0}
.account-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:16px;margin-bottom:20px}
.account-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:20px 0;border-top:1px solid #e4e9ee;overflow-wrap:anywhere}
.account-identity{flex:1 1 240px;min-width:0}
.account-row .item-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.account-row .btn{min-height:40px;padding:9px 13px}
.account-form-fields{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.account-form-fields>p,.account-form-fields>#adminAccountStudentFields{grid-column:1/-1}
.account-form-fields>.btn{justify-self:start}
.account-password-dialog{width:min(480px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #dce3e9;border-radius:20px;padding:28px;color:#173750;box-shadow:0 24px 80px #102d4540}
.account-password-dialog::backdrop{background:#10233399}
.account-password-dialog form{display:grid;gap:16px}
.account-password-dialog h2,.account-password-dialog p{margin:0;overflow-wrap:anywhere}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
@media(max-width:680px){.account-filters,.account-form-fields{grid-template-columns:1fr}.account-identity{flex-basis:100%}.account-row .item-actions{width:100%}.account-row .item-actions .btn{flex:1 1 auto}.management-page{gap:14px}.account-password-dialog{padding:20px}.dialog-actions .btn{flex:1}}

#mgOrganizations{display:flex;flex-wrap:wrap;gap:8px}
#mgOrganizations:empty{display:none}
#mgOrganizations [aria-pressed="true"]{background:#173750;color:#fff;border-color:#173750}

/* Home do professor: tarefas e próximos passos */
.task-home{gap:22px}.task-home .home-welcome p{margin:4px 0}.task-home .box-head{padding-bottom:12px}.task-home h2{margin:0 0 12px}.task-home .box-head h2{margin:0}
.home-task-list{display:grid;padding-top:0}.home-task{display:flex;width:100%;justify-content:space-between;align-items:center;gap:20px;text-align:left;background:transparent;border:0;border-bottom:1px solid #eee7e3;padding:16px 0;color:inherit;font:inherit;cursor:pointer;line-height:1.5}.home-task:last-child{border-bottom:0}.home-task>span:first-child{min-width:0;overflow-wrap:anywhere}.home-task-link{color:#8b1c1c;font-size:13px;font-weight:700;flex-shrink:0}.home-task:hover{color:#8b1c1c}.home-task:focus-visible{outline:2px solid #8b1c1c;outline-offset:3px;border-radius:4px}.home-current{margin:10px 0;color:#315440}.home-quick-actions{display:flex;gap:10px;flex-wrap:wrap}.home-quick-actions .btn{min-height:44px}.home-activity-list{list-style:none;margin:0;padding:0}.home-activity-list li{border-bottom:1px solid #eee7e3;padding:2px 0 12px}.home-activity-list .home-task{border:0;padding-bottom:4px}.home-activity-list time{font-size:12px;color:#586475}
@media(max-width:600px){.task-home{gap:18px}.task-home .home-welcome{gap:10px}.task-home .home-welcome h1{font-size:26px}.home-quick-actions .btn{flex:1 1 140px}.home-task{gap:12px;padding:14px 0}.task-home .box-body,.task-home .box-head{padding-left:16px;padding-right:16px}}

.home-compact-pending{background:#fff;border:1px solid #e7e2df;border-radius:14px;padding:0 18px}.home-compact-pending .home-current{padding:8px 0}.home-compact-pending .home-task{min-height:48px}

/* Instituições: filtros separados de criação e edição */
.org-create-panel{margin:16px 0}.org-create-panel>summary{cursor:pointer;padding:14px 18px;font-weight:700;color:#8b1c1c}.org-create-panel[open]>summary{border-bottom:1px solid #eee7e3;margin-bottom:14px}.org-create-panel>.org-inline{padding:0 16px 16px}.org-context-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}.org-context-head h2,.org-context-head h3{margin:0}.org-actions>summary{cursor:pointer;padding:9px 14px;border:1px solid #ddd3cf;border-radius:10px;font-weight:600;font-size:14px}.org-action-buttons{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}.org-students>li[hidden]{display:none}.org-students #catalogEditor,.org-context-head #catalogEditor{flex-basis:100%;width:100%}.teacher-org-page #catalogEditor:empty{display:none}.org-class-filter{margin-bottom:16px}
@media(max-width:600px){.org-context-head{align-items:flex-start}.org-context-head h2,.org-context-head h3{max-width:100%;overflow-wrap:anywhere}.org-action-buttons{flex-direction:column}.org-actions[open]{width:100%}.org-create-panel>summary{padding:13px 14px}.org-filters .box-body{padding:16px}}

.photo-confirm{display:flex;gap:10px;align-items:flex-start;margin:12px 0;line-height:1.5}.photo-confirm input{width:auto;flex:none;margin-top:5px}[data-ai-edit]{margin-bottom:16px}[data-ai-edit] summary{cursor:pointer;font-weight:700;color:var(--primary,#8b1c1c);padding:12px 0}[data-ai-edit] textarea{min-height:110px}.ai-report details summary{cursor:pointer}.ai-report .ai-section a{overflow-wrap:anywhere}

.management-page [hidden]{display:none!important}.management-page #mgOrganizations{gap:8px;flex-wrap:wrap}.management-page #mgOrganizations [aria-pressed="true"]{background:var(--crimson);color:white}.management-page .edit-filters{flex-wrap:wrap}.management-page #mgEditor:empty{display:none}
.platform-tabs{display:flex;gap:8px;flex-wrap:wrap}.platform-tabs [aria-pressed=true]{background:var(--crimson);color:#fff}.platform-report-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.platform-report-toolbar h2{flex:1}.platform-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.platform-summary article{padding:18px;border:1px solid var(--line);border-radius:14px;display:grid;gap:8px}.platform-summary strong{font-size:24px}.platform-summary span,.platform-summary small{color:var(--muted)}.platform-table{overflow-x:auto}.platform-table table{border-collapse:collapse;width:100%;text-align:left}.platform-table th,.platform-table td{padding:12px;border-bottom:1px solid var(--line)}.platform-details{margin-top:16px}.platform-details summary{cursor:pointer;font-weight:600;padding:12px 0}.platform-access{display:grid;grid-template-columns:1fr 1fr;gap:12px}.platform-access dd{margin:0}.platform-wallets{max-height:400px;overflow-y:auto}#mgAccountsPanel{display:grid;gap:18px}@media(max-width:700px){.platform-summary{grid-template-columns:1fr}.platform-tabs .btn{flex:1 1 140px}.platform-report-toolbar .field{flex:1 1 160px}.platform-access{grid-template-columns:1fr}.platform-access dd{margin-bottom:10px}}
.admin-nav-group{border-bottom:1px solid var(--line);padding:5px 0}.admin-nav-group summary{cursor:pointer;padding:12px 10px;font-size:13px;font-weight:700}.admin-nav-group button{padding-left:20px!important;font-size:14px}.account-actions-menu{margin-left:auto;min-width:120px}.account-actions-menu>summary{cursor:pointer;padding:10px 16px;border:1px solid var(--line);border-radius:10px;font-weight:600}.account-actions-options{display:grid;gap:8px;padding:12px 0}.account-actions-options .item-actions{display:grid}.account-actions-options .btn{width:100%;text-align:left}.platform-overview{display:grid;gap:8px}.platform-total{font-size:28px;font-weight:700}@media(max-width:680px){.account-actions-menu{width:100%}.account-actions-options .item-actions .btn{width:100%}}

.platform-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.platform-shortcuts .btn{white-space:normal;min-height:46px}@media(max-width:700px){.platform-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.platform-shortcuts{grid-template-columns:1fr}}

.legal-links{display:flex;justify-content:center;gap:12px 24px;flex-wrap:wrap;padding:20px 16px;font-size:13px}.legal-links a{color:var(--crimson);text-decoration:underline;text-underline-offset:3px}.legal-links a:focus-visible{outline:2px solid var(--crimson);outline-offset:4px}

/* Minhas instituições: navegação interna por cards, sem seletores. */
.teacher-org-page.org-redesign{max-width:1120px;gap:18px}
.org-redesign [hidden]{display:none!important}
.org-redesign .org-directory-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px}
.org-redesign .org-directory-toolbar .field{flex:1;max-width:520px;margin:0}
.org-redesign .org-directory-toolbar .btn{flex-shrink:0}
.org-redesign .org-directory-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 14px;color:var(--muted);font-size:13px}
.org-redesign .org-directory-meta label{display:flex;align-items:center;gap:8px;cursor:pointer}
.org-redesign input[type=checkbox],.org-redesign input[type=radio]{accent-color:var(--crimson);width:16px;height:16px;flex:none}
.org-redesign .org-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.org-redesign .org-institution-card{display:flex;flex-direction:column;gap:18px;min-width:0;padding:22px;text-align:left;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s}
.org-redesign .org-institution-card:hover{border-color:var(--crimson);box-shadow:0 6px 18px rgba(70,25,25,.06)}
.org-redesign .org-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.org-redesign .org-monogram{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--soft);color:var(--crimson);font-size:19px;font-weight:800}
.org-redesign .org-institution-card strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.org-redesign .org-card-link{display:flex;justify-content:space-between;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--crimson)}
.org-redesign .org-create-panel{margin:0}
.org-redesign #orgCreatePanel{background:transparent;border-style:dashed}
.org-redesign #orgCreatePanel:not([open]){display:none}
.org-redesign #orgStatus:empty{display:none}
.org-redesign #orgBack{min-height:40px}
.org-redesign .org-context-head h2{font-size:23px;line-height:1.3}
.org-redesign .org-class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.org-redesign .org-class-card{display:grid;gap:6px;min-width:0;padding:15px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer;font:inherit}
.org-redesign .org-class-card strong{font-size:14px;overflow-wrap:anywhere}
.org-redesign .org-class-card span{font-size:12px;color:var(--muted);line-height:1.5}
.org-redesign .org-class-card[aria-pressed=true]{border-color:var(--crimson);background:var(--soft);box-shadow:inset 3px 0 var(--crimson)}
.org-redesign .org-class-card[aria-pressed=true] strong{color:var(--crimson)}
.org-redesign button:focus-visible,.org-redesign summary:focus-visible{outline:3px solid var(--crimson);outline-offset:3px}
.org-redesign button:disabled{opacity:.6;cursor:wait}
.org-redesign .org-students{list-style:none;padding:0;margin:0;line-height:1.5}
.org-redesign .org-students>li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}
.org-redesign .org-students>li>div:first-child{flex:1;min-width:150px;overflow-wrap:anywhere}
.org-redesign .org-students>li>small{flex-basis:100%;overflow-wrap:anywhere}
.org-redesign .org-students .item-actions{margin:0}
.org-redesign #orgRoster:empty{display:none}
.org-redesign .org-roster-choices{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}
.org-redesign .org-roster-choices legend{font-size:12px;color:var(--muted)}
.org-redesign .org-roster-choices label{display:flex;align-items:flex-start;gap:8px;padding:8px 0;font-size:13px;overflow-wrap:anywhere}
@media(max-width:960px){.org-redesign .org-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.org-redesign .org-directory-toolbar{align-items:stretch;flex-direction:column;gap:12px}.org-redesign .org-directory-toolbar .field{max-width:none}.org-redesign .org-directory-toolbar .btn{align-self:flex-start;width:auto;min-height:42px}.org-redesign .org-card-grid{grid-template-columns:1fr;gap:12px}.org-redesign .org-institution-card{padding:18px;gap:14px}.org-redesign .org-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.org-redesign .org-context-head h2{font-size:20px}.org-redesign .org-students>li{align-items:flex-start}.org-redesign .org-students .item-actions{width:100%}.org-redesign .org-class-card{padding:12px}.org-redesign .org-directory-meta{font-size:12px}}
@media(prefers-reduced-motion:reduce){.org-redesign .org-institution-card{transition:none}}
