:root{--navy:#15334f;--green:#007b60;--mint:#eaf5f0;--ink:#172d43;--muted:#526477;--line:#d8e3e8;--bg:#f7f9fb;--white:#fff;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.6 "Segoe UI",Arial,sans-serif}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid var(--green);border-radius:8px;padding:.65rem 1.1rem;background:var(--green);color:#fff;font-weight:650;cursor:pointer;min-height:44px;text-decoration:none}button:hover,.button:hover{background:#00634e;text-decoration:none}.outline{background:transparent;color:var(--navy);border-color:#b1c4cf}.outline:hover{background:#edf3f5;color:var(--navy)}.small{font-size:.875rem;padding:.45rem .8rem}.danger{color:#9c2837;border-color:#deb3ba;background:#fff}.danger:hover{color:#fff;background:#9c2837}.full{width:100%}:focus-visible{outline:3px solid #246ed9;outline-offset:4px}.skip{position:absolute;left:1rem;top:-80px;background:#fff;padding:1rem;z-index:20}.skip:focus{top:.5rem}.wrap{width:min(1160px,calc(100% - 48px));margin:auto}.site-header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:100px;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);flex-shrink:0}.brand:hover{text-decoration:none}.brand img{width:49px;height:49px}.brand strong{display:block;font-size:1.8rem;letter-spacing:-1px;line-height:1.1}.brand em{font-style:normal;color:var(--green)}.brand small{font-size:.78rem;color:var(--muted);letter-spacing:.01em}.nav{display:flex;align-items:center;gap:25px;font-size:.9rem;font-weight:600}.nav a{color:var(--navy)}.nav .button{color:#fff}.nav form{margin:0}.hero{background:linear-gradient(105deg,#eef7f3,#e4f2ee);border-bottom:1px solid #d9e9e2}.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:60px;align-items:center;padding-top:56px;padding-bottom:56px}.eyebrow{font-size:.85rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--green);margin:0 0 16px}h1,h2,h3{color:var(--navy);line-height:1.2;letter-spacing:-.03em}h1{font-size:2.4rem;margin:0 0 18px}h2{font-size:1.6rem;margin:0 0 14px}h3{font-size:1.15rem;margin:0 0 10px}.hero h1{font-size:clamp(2.4rem,4.4vw,3.7rem);letter-spacing:-.045em;line-height:1.08;max-width:580px}.hero p{max-width:500px}.lead{font-size:1.1rem;color:var(--muted);margin:0}.subtle{color:var(--muted)}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}.access-card{box-shadow:0 9px 25px #113c3220}.access-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}.access-title svg{width:30px;height:30px;color:var(--green)}.access-title h2{margin:0;font-size:1.4rem}.access-card small{display:block;color:var(--muted);margin-top:14px;font-size:.85rem}.section{padding:40px 0}.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.section-top h2{margin:0}.tag{display:inline-flex;border-radius:999px;padding:3px 11px;background:#e8f4ee;color:#00674e;font-size:.8rem;font-weight:650;white-space:nowrap}.tag.draft{background:#edf1f5;color:#526477}.tag.closed,.tag.archived{background:#f0edf5;color:#5b4c73}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.category{display:flex;gap:18px;padding:25px}.category p{font-size:.9rem;margin:6px 0 0;color:var(--muted)}.icon-box{width:52px;height:52px;flex:0 0 52px;border-radius:12px;background:#edf8f2;color:var(--green);display:grid;place-items:center}.icon-box svg{width:29px;height:29px}.callout{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--mint);border-radius:12px;padding:25px 30px;margin-top:28px}.callout h2{font-size:1.35rem;margin:0 0 5px}.callout p{margin:0;font-size:.9rem;color:var(--muted)}.callout a{font-weight:700;white-space:nowrap}.how{border-top:1px solid var(--line);background:#fff}.how h3{margin-top:12px}.how .grid3 p{color:var(--muted);font-size:.95rem}.site-footer{border-top:1px solid var(--line);padding:24px 0;color:var(--muted);font-size:.85rem;background:#fff}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-links{display:flex;gap:24px}.main{padding:35px 0 60px;min-height:60vh}.narrow{max-width:780px;margin:auto}.login-layout{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start;max-width:1000px;margin:30px auto}.login-copy{padding-top:35px}.login-copy h1{font-size:2.8rem}.login-copy .icon-box{margin-bottom:25px}label,.label{display:block;font-weight:600;font-size:.95rem;margin-bottom:6px}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select{width:100%;padding:11px 13px;border:1px solid #b9cbd4;border-radius:7px;background:#fff;color:var(--ink);min-height:46px}textarea{resize:vertical;min-height:100px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2315334f' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}input[type=checkbox],input[type=radio]{width:19px;height:19px;accent-color:var(--green);flex:0 0 19px}.field{margin-bottom:20px}.hint{font-size:.85rem;color:var(--muted);margin:5px 0 0}.error,.notice{border:1px solid #f0c7cb;background:#fff0f1;color:#8d2333;border-radius:10px;padding:16px 20px;margin:20px 0;overflow-wrap:anywhere}.notice{border-color:#b6dfcb;background:#ecf8f1;color:#13553f}.breadcrumbs{font-size:.85rem;margin:0 0 20px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:26px}.page-head h1{font-size:2rem}.page-head p{margin:5px 0 0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0 35px}.stat{padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px}.stat strong{display:block;font-size:2rem;color:var(--navy)}.stat span{color:var(--muted);font-size:.9rem}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;padding:15px 18px;border-bottom:1px solid var(--line)}th{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#f1f5f7}td small{display:block;color:var(--muted)}tr:last-child td{border-bottom:none}.empty{padding:28px;border:1px dashed #b8cbd5;border-radius:12px;background:#fff;color:var(--muted);text-align:center}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.actions form{margin:0}.stack{display:grid;gap:20px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.question-editor{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:16px}.question-editor header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.question-editor header strong{font-size:.9rem}.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;cursor:pointer}.check input{margin-top:4px}.check span{flex:1}.survey-header{background:var(--mint);border-radius:16px;padding:32px;margin-bottom:24px}.survey-header .meta{display:flex;gap:25px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}.question{margin:0 0 20px;border:1px solid var(--line);padding:26px;border-radius:12px;background:#fff;min-width:0}.question legend{padding:0 8px;font-weight:650;max-width:100%}.question .required{color:#96600b;font-size:.85rem}.option{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:8px;font-weight:400;cursor:pointer;margin-bottom:8px}.option:has(input:checked){border-color:var(--green);background:var(--mint)}.scale{display:flex;gap:10px;flex-wrap:wrap}.scale .option{justify-content:center;min-width:65px;flex:1;gap:8px}.scale-note{display:flex;justify-content:space-between;font-size:.85rem;color:var(--muted);margin:4px 0 12px}.sticky-actions{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff}.prose p,.prose li{color:var(--muted)}.prose h2{margin-top:30px}.prose h2:first-child{margin-top:0}.prose details{border-bottom:1px solid var(--line);padding:18px 0}.prose summary{font-weight:650;cursor:pointer;color:var(--navy)}.code{font-family:Consolas,monospace;font-weight:650;letter-spacing:.06em;overflow-wrap:anywhere}.big-code{font-size:1.6rem;padding:16px;background:var(--mint);border-radius:8px;display:block;text-align:center;margin:20px 0}.result-card{margin-bottom:24px;break-inside:avoid}.result-meta{display:flex;gap:20px;color:var(--muted);font-size:.85rem;margin:10px 0 20px;flex-wrap:wrap}.bar-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 70px;gap:15px;align-items:center;margin:12px 0;font-size:.9rem}meter{width:100%;height:22px;accent-color:var(--green)}meter::-webkit-meter-bar{background:#edf2f5;border:0;border-radius:4px}meter::-webkit-meter-optimum-value{background:var(--green)}.mean{font-size:1.5rem;font-weight:700;color:var(--green)}.success{text-align:center;padding:45px}.success .icon-box{margin:0 auto 20px;width:70px;height:70px}.mobile-menu{display:none}.mobile-menu summary{cursor:pointer;font-weight:650}.mobile-menu[open] .mobile-links{display:grid;gap:14px;padding:18px;position:absolute;right:20px;top:85px;background:#fff;box-shadow:0 5px 24px #16355225;border:1px solid var(--line);border-radius:12px;z-index:10}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}@media(max-width:900px){.nav{gap:14px}.nav .secondary{display:none}.hero-grid{gap:30px}.grid3{gap:14px}.category{display:block}.category .icon-box{margin-bottom:15px}.login-layout{gap:30px}}@media(max-width:680px){.wrap{width:calc(100% - 32px)}.header-inner{min-height:86px}.brand strong{font-size:1.5rem}.brand img{width:42px;height:42px}.brand small{font-size:.7rem}.nav{display:none}.mobile-menu{display:block}.hero-grid{grid-template-columns:1fr;gap:28px;padding-top:32px;padding-bottom:32px}.hero h1{font-size:2.5rem}.hero p{font-size:1rem}.card{padding:22px}.grid3,.two-col,.login-layout{grid-template-columns:1fr}.category{display:flex}.category .icon-box{margin-bottom:0}.callout{display:block;padding:22px}.callout a{display:inline-block;margin-top:14px}.footer-inner{align-items:start;flex-direction:column}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:1.6rem}.stat span{font-size:.8rem}.page-head{flex-direction:column}.page-head h1{font-size:1.8rem}.section{padding:30px 0}.section-top{align-items:start}.login-copy{padding-top:0}.login-copy h1{font-size:2rem}.login-layout{margin-top:0}.survey-header{padding:24px}.question{padding:18px}.bar-row{grid-template-columns:1fr 1fr 50px;gap:8px}.scale .option{min-width:48px;padding:10px 6px}.scale .option input{position:absolute;opacity:0}.scale .option:focus-within{outline:3px solid #246ed9}.success{padding:28px}}
@media print{@page{size:A4;margin:18mm}body{background:white;font-size:10pt}.site-header,.site-footer,.no-print,.breadcrumbs,.page-head .actions,.notice,.error{display:none!important}.wrap,.narrow{width:100%;max-width:none}.main{padding:0}.card{box-shadow:none;border:1px solid #ccc;padding:15px}.result-card{break-inside:avoid}.print-brand{display:block!important;margin-bottom:18px}.stats{margin:15px 0}.stat{padding:10px}.bar-row{font-size:10pt}h1{font-size:22pt}h2{font-size:16pt}a{color:inherit}meter{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Editor e instrumentos — v0.2 */
button:disabled{opacity:.5;cursor:not-allowed}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:26px;align-items:start}.builder-layout>div{min-width:0}.builder-intro h2{font-size:1.35rem}.builder-guide{position:sticky;top:20px;padding:22px;font-size:.9rem}.builder-guide .eyebrow{font-size:.75rem}.builder-guide hr{border:0;border-top:1px solid var(--line);margin:22px 0}.builder-count{font-weight:650}.builder-guide nav{display:grid;gap:10px;overflow-wrap:anywhere}.builder-toolbar{margin-top:28px}.builder-toolbar h2{font-size:1.35rem}.section-editor{border:1px solid #b9cbd4;border-left:4px solid var(--green);border-radius:12px;padding:24px;background:#eef4f5;margin-bottom:28px;scroll-margin-top:20px}.section-editor-head,.option-editor-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.section-editor-head h3{margin:0;white-space:nowrap}.section-editor-head .small{font-size:.77rem;padding:.35rem .6rem}.section-editor-head .actions{gap:6px}.section-editor textarea{min-height:70px}.question-editor>summary{font-weight:650;color:var(--navy);cursor:pointer;overflow-wrap:anywhere}.question-editor[open]>summary{margin-bottom:22px}.condition-editor{margin:20px 0;padding:15px 18px;background:#f5faf7;border:1px solid #cfdfd5;border-radius:8px}.condition-editor>summary{cursor:pointer;font-size:.9rem;color:#13553f;font-weight:600}.condition-editor[open]>summary{margin-bottom:18px}.condition-editor .field{margin-bottom:12px}.question-actions{border-top:1px solid var(--line);padding-top:18px;margin:20px 0}.question-actions .small{font-size:.8rem}.options-editor{display:grid;gap:14px;margin-bottom:20px}.options-editor>button{justify-self:start}.option-editor{border:1px solid var(--line);border-radius:8px;padding:18px;background:#f9fbfc}.option-editor-head{font-size:.85rem;margin-bottom:14px}.option-editor-head button{font-size:.75rem;min-height:36px}.option-editor input[type=file]{font-size:.8rem;padding:8px}.editor-image{display:block;max-width:100%;width:220px;height:140px;object-fit:contain;background:#edf2f5;border:1px solid var(--line);border-radius:8px;margin:14px 0}.builder-save{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.builder-save .hint{flex-basis:100%}.application-builder{margin-top:32px;max-width:874px}.application-builder input{max-width:360px}.survey-section{margin:30px 0}.survey-section>h2{border-bottom:2px solid #dcece4;padding-bottom:14px;margin-bottom:22px}.visual-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}.visual-options .option{margin:0;align-items:flex-start;min-width:0}.visual-options input{margin-top:5px}.option-content{display:grid;gap:12px;min-width:0;flex:1;overflow-wrap:anywhere}.option-content img{display:block;width:100%;height:180px;object-fit:contain;background:#f4f7f9;border-radius:6px}.preview-dialog{padding:0;border:1px solid var(--line);border-radius:16px;width:min(1020px,calc(100% - 32px));max-height:92vh;color:var(--ink);background:var(--bg);box-shadow:0 25px 90px #132d4940}.preview-dialog::backdrop{background:#102c4977}.preview-toolbar{position:sticky;top:0;z-index:2;padding:18px 24px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.preview-toolbar .hint{margin:0}.preview-toolbar .actions{gap:8px}.preview-shell{max-width:780px;margin:24px auto;transition:max-width .15s}.preview-dialog .preview-shell{padding:12px 28px 32px}.preview-shell.preview-phone{max-width:390px;padding:20px 16px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 4px 20px #15334f12}.preview-phone .visual-options{grid-template-columns:1fr}.preview-phone .question{padding:16px}.preview-phone .scale{gap:6px}.preview-phone .scale .option{min-width:48px;padding:9px 5px}.preview-phone h1{font-size:1.7rem}.preview-controls{margin:20px 0}.instrument>p:empty{display:none}
@media(max-width:1000px){.builder-layout{grid-template-columns:1fr}.builder-guide{position:static;grid-row:1}.builder-guide nav{display:flex;flex-wrap:wrap;gap:8px 20px}.builder-guide hr,.builder-guide h3,.builder-guide .hint{display:none}.builder-guide .eyebrow{margin-bottom:6px}.builder-count{margin:6px 0 12px}}
@media(max-width:680px){.builder-toolbar{align-items:center;gap:10px}.builder-toolbar h2{font-size:1.15rem}.builder-toolbar button{font-size:.8rem}.section-editor{padding:16px 12px}.section-editor-head{align-items:start;flex-direction:column}.question-editor{padding:18px 14px}.question-actions{gap:6px}.question-actions .small{font-size:.75rem;padding:8px}.option-editor{padding:14px}.visual-options{grid-template-columns:1fr}.preview-toolbar{position:static;display:block;padding:16px}.preview-toolbar .actions{margin-top:12px}.preview-dialog .preview-shell{padding:12px 16px}.preview-dialog h1{font-size:1.7rem}.builder-save>button{flex:1}.builder-save>a{flex-basis:100%}.option-editor-head{align-items:start}.option-editor-head strong{padding-top:6px}}

/* Publicação e jornada de participação v0.3 */
.collection-page h1,.receipt-card h2{overflow-wrap:anywhere}.collection-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.collection-meta dt{font-size:.875rem;color:var(--muted)}.collection-meta dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}.collection-page>.card.section{padding:28px;margin:24px 0}.share-card{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px}.share-card .actions{margin-top:16px}.qr-block{text-align:center}.qr-block canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff}.qr-block .actions{justify-content:center}.survey-progress{position:sticky;top:0;z-index:3;background:var(--bg);padding:12px 0;margin-top:18px;border-bottom:1px solid var(--line)}.survey-progress p{margin:0 0 8px;font-weight:600;font-size:.9rem}.survey-progress progress{width:100%;height:10px;accent-color:var(--green)}.survey-navigation{justify-content:space-between;margin:22px 0}.step-away{display:none}.survey-section h2{scroll-margin-top:100px}.tag.scheduled{background:#eaf0fc;color:#284d83}.tag.expired,.tag.closed,.tag.archived{background:#edf1f5;color:#526477}.receipt-card .code{overflow-wrap:anywhere}.collection-settings textarea{min-height:100px}.collection-page [hidden]{display:none!important}
@media(max-width:680px){.collection-meta{grid-template-columns:1fr;gap:14px}.share-card{grid-template-columns:1fr}.qr-block{max-width:300px;margin:auto}.collection-page>.card.section{padding:20px}.survey-navigation button{font-size:.9rem;padding:10px}.survey-form .sticky-actions button{width:100%}.collection-page h1{font-size:1.8rem}.big-code{overflow-wrap:anywhere}}

/* Cards keep their inner spacing even when used as a page section. */
.card.section{padding:28px;margin:24px 0}.card h2,.card h3{overflow-wrap:anywhere}.card>p:last-child{margin-bottom:0}details form{margin-top:1rem}details.card>summary{font-weight:700;cursor:pointer;color:var(--navy)}label>input,label>textarea,label>select{margin-top:.4rem;margin-bottom:1rem}.check{margin-bottom:18px}.check>input{margin-bottom:0}.institution-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:26px;align-items:start}.context-content{min-width:0}.context-list{display:grid;gap:14px}.context-list .section-top{margin:0 0 4px}.context-list h2{font-size:1.2rem}.context-item{display:block;padding:22px;color:var(--ink);transition:border-color .15s}.context-item:hover{border-color:var(--green);text-decoration:none}.context-item.selected{border-color:var(--green);box-shadow:inset 4px 0 var(--green)}.context-item h3{margin:10px 0}.context-state{display:block;margin-top:12px;font-size:.85rem;font-weight:600;color:var(--green)}.member-list{list-style:none;padding:0;margin:20px 0}.member-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.member-list form{margin:0;flex-shrink:0}.history-panel{margin-top:24px}.context-content .history-panel{margin:0}.history-panel>summary{font-size:1.1rem}.history-panel[open]>summary{margin-bottom:18px}.history-panel .table-wrap{margin-top:18px}.history-panel .actions{margin-top:18px}.audit-table td{vertical-align:top}.audit-detail{max-width:38rem;font-size:.85rem;overflow-wrap:anywhere}.audit-detail dt{font-weight:650;margin-top:12px}.audit-detail dd{margin:2px 0 10px;white-space:pre-wrap}.template-card h3{margin-top:10px}.template-card .actions{margin-top:18px;gap:10px}.trash-item{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:20px}.trash-item h3{margin-bottom:4px}.trash-item form{margin:0;flex-shrink:0}
.emoji-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start;min-width:0}.emoji-trigger{padding:0;min-height:46px;font-size:1.25rem;background:#fff}.emoji-dialog{width:min(440px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;color:var(--ink);box-shadow:0 18px 70px #15334f40}.emoji-dialog::backdrop{background:#15334f66}.emoji-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.emoji-heading h2{font-size:1.3rem;margin:0}.emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:18px 0}.emoji-choice{background:#f5f8fa;border-color:var(--line);font-size:1.6rem;padding:4px;min-width:0;min-height:46px}.emoji-choice:hover{background:var(--mint);border-color:var(--green)}.emoji-dialog .hint{overflow-wrap:anywhere}
@media(max-width:900px){.institution-layout{grid-template-columns:1fr}.context-list{grid-template-columns:repeat(2,minmax(0,1fr))}.context-list>.section-top,.context-list>.hint,.context-list>.empty{grid-column:1/-1}}
@media(max-width:680px){.card.section{padding:22px;margin:20px 0}.context-list{grid-template-columns:1fr}.member-list li,.trash-item{align-items:start;flex-direction:column}.institution-layout{gap:20px}.emoji-dialog{padding:18px}.emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.audit-table table{min-width:560px}.footer-links{flex-wrap:wrap;gap:12px 20px}}
@media print{.emoji-trigger,.emoji-dialog,.history-panel{display:none!important}.emoji-field{display:block}}

/* v0.6: equal actions and aligned card bottoms. */
.template-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.template-card .template-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:auto;padding-top:16px;align-items:stretch}
.template-actions form{display:flex;margin:0;min-width:0}.template-actions .button,.template-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0;padding:10px 8px;text-align:center;white-space:normal;line-height:1.3}
.operation-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;margin-top:24px}.operation-grid>*{min-width:0}.import-mapping{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.import-review{max-height:420px;overflow:auto}.import-confirm{margin-top:24px}.operation-grid li{margin-bottom:10px}.operation-grid code{overflow-wrap:anywhere}
@media(max-width:700px){.operation-grid,.import-mapping{grid-template-columns:1fr}.template-card .template-actions{gap:8px}}

/* Institutional pilot: readable progress, evidence and a compact companion panel. */
.pilot-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.pilot-layout>*{min-width:0}.pilot-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.pilot-steps>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 12px;align-items:center;background:#fff;padding:18px;border:1px solid var(--line);border-radius:12px}.pilot-steps span{grid-row:1/3;width:34px;height:34px;border-radius:50%;background:#edf1f5;display:grid;place-items:center;font-weight:700}.pilot-steps .ready span{background:var(--green);color:#fff}.pilot-steps small{color:var(--muted)}.pilot-notes{margin:20px 0}.pilot-notes dt{font-weight:700;font-size:.9rem;margin-top:16px}.pilot-notes dd{margin:4px 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.pilot-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.pilot-edit{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.pilot-edit>summary,.pilot-issue>summary{cursor:pointer;font-weight:650}.pilot-issues{margin-top:18px}.pilot-issue{border-top:1px solid var(--line);padding:18px 0}.pilot-issue small{display:block;font-weight:400;color:var(--muted);margin-top:6px}.pilot-issue:last-child{padding-bottom:0}.priority-critical,.priority-high{background:#fff0f1;color:#8d2333}.priority-medium{background:#fff6e2;color:#795313}.pilot-review-area{padding:20px;margin:22px 0;border:1px solid var(--line);border-radius:10px;min-width:0}.pilot-review-area legend{font-weight:700;padding:0 7px}.pilot-review-area .check{margin:16px 0 0}.pilot-text{white-space:pre-wrap;overflow-wrap:anywhere}.pilot-checklist{padding-left:22px}.pilot-checklist li{margin:9px 0}.pilot-heading{margin-top:14px}.pilot-report-date{display:block;margin-top:6px;color:var(--muted)}.pilot-layout button:disabled{opacity:.55;cursor:not-allowed}.pilot-layout .section-top{flex-wrap:wrap}
@media(max-width:900px){.pilot-layout{grid-template-columns:1fr}.pilot-layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pilot-steps{gap:10px}.pilot-steps>div{padding:14px;grid-template-columns:1fr}.pilot-steps span{grid-row:auto;margin-bottom:10px}}
@media(max-width:600px){.pilot-steps,.pilot-selects,.pilot-layout>aside{grid-template-columns:1fr}.pilot-steps>div{grid-template-columns:36px minmax(0,1fr)}.pilot-steps span{grid-row:1/3;margin:0}.pilot-review-area{padding:15px}.pilot-layout .card{padding:22px}.pilot-layout .actions>*{width:100%}}

/* v0.8: readable validation, keyboard navigation and small screens. */
.field-error{color:#a01932;font-size:.9rem;font-weight:600;margin:8px 0 0;overflow-wrap:anywhere}
[aria-invalid="true"]{border-color:#a01932}.error p{margin:8px 0 0}
.table-wrap:focus-visible{outline:3px solid #246ed9;outline-offset:4px}
main:focus{outline:none}section[id]{scroll-margin-top:24px}
.guide-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 28px}.guide-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:600}
.guide-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.guide-layout .stack{gap:24px}.guide-layout .card{min-width:0;overflow-wrap:anywhere}.guide-layout h2{margin-top:14px}.guide-layout li{margin:10px 0}.guide-layout ol,.guide-layout ul{padding-left:24px}.guide-layout details{padding:14px 0;border-top:1px solid var(--line)}.guide-layout summary{cursor:pointer;font-weight:600;min-height:28px}.guide-aside{position:sticky;top:20px}
.grid3>*{min-width:0}.card h2,.card h3,.page-head h1,.section-top h2{overflow-wrap:anywhere}.preview-controls [aria-pressed="true"],.preview-toolbar [aria-pressed="true"]{background:var(--navy);color:#fff}.mobile-menu>summary{min-height:44px;display:flex;align-items:center;padding:0 12px}.mobile-menu>summary::after{content:' ▾';margin-left:6px}
@media(max-width:900px){.guide-layout{grid-template-columns:1fr}.guide-aside{position:static}}
@media(max-width:420px){.stats{gap:8px}.stat{padding:12px 8px}.stat span{font-size:.75rem;overflow-wrap:anywhere}.guide-layout .card{padding:22px}.guide-nav a{flex:1 1 40%;justify-content:center}.scale{gap:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.scale .option:has(input:checked){outline:3px solid Highlight}.tag{border:1px solid CanvasText}}

/* Manual e suporte: leitura em tela estreita e impressão por perfil. */
.support-address{overflow-wrap:anywhere}.guide-tools{flex-shrink:0}.guide-aside .tag{white-space:normal}.guide-layout>div,.guide-aside{min-width:0}
@media(max-width:700px){.page-head:has(.guide-tools){flex-direction:column}.guide-tools{width:100%}.guide-tools>*{flex:1}.guide-nav{gap:8px 16px}}
@media print{.guide-nav,.guide-tools,.guide-aside,.guide-layout .button{display:none!important}.guide-layout{display:block!important}.guide-layout .stack{display:block}.guide-layout .card{border:0;border-radius:0;padding:0;margin:0 0 20px;break-inside:auto}.guide-layout h2,.guide-layout h3{break-after:avoid}.guide-layout details>*{display:block!important}.guide-layout details::details-content{content-visibility:visible}.guide-layout p,.guide-layout li{orphans:3;widows:3}}

.google-formats{border:1px solid var(--line,#cad9e4);border-radius:12px;padding:20px;margin:0 0 24px;min-width:0}.google-formats legend{font-weight:700;padding:0 8px}.google-formats .field{min-width:0}

/* Questionnaire authoring and safe introductory content. */
.introduction-editor {margin: 1.5rem 0;}
.intro-block-editor {border: 1px solid var(--line,#cedde5); border-radius: .7rem; padding: 1rem; margin: 1rem 0; min-width: 0;}
.intro-block-editor .section-top {align-items: flex-start; gap: .75rem; flex-wrap: wrap;}
.intro-block-editor h3 {margin: 0;}
.intro-block-editor .actions {flex-wrap: wrap;}
.intro-table-editor {overflow-x: auto; padding-bottom: .5rem;}
.intro-table-row {display: flex; gap: .6rem; min-width: min-content;}
.intro-table-row > .field {flex: 1 0 150px; min-width: 150px;}
.intro-table-row .field label {font-size: .8rem;}
.number-editor {background: #f2f7f6; border: 1px solid #cde2dc; border-radius: .7rem; padding: 1rem; margin-bottom: 1rem;}
.number-editor .two-col {align-items: start;}
.question-description,.intro-text {white-space: pre-line; overflow-wrap: anywhere;}
.question-description {margin-top: .5rem; color: #435d73;}
.survey-introduction {margin-bottom: 1.5rem;}
.intro-image {margin: 1.25rem 0;}
.intro-image img {display: block; max-width: 100%; height: auto; border-radius: .5rem;}
.intro-image figcaption {font-size: .9rem; margin-top: .5rem; color: #435d73;}
.intro-table {max-width: 100%; overflow-x: auto; margin: 1rem 0; border: 1px solid #cedde5; border-radius: .5rem;}
.intro-table table {width: 100%; border-collapse: collapse;}
.intro-table caption {text-align: left; font-weight: 700; padding: .85rem;}
.intro-table th,.intro-table td {padding: .8rem; text-align: left; border-top: 1px solid #cedde5; min-width: 6rem; overflow-wrap: anywhere;}
.intro-table th {background: #edf5f3;}
.intro-pending > [data-section],.intro-pending > [data-visible-count] {display: none;}
@media(max-width: 650px){.intro-block-editor {padding: .8rem;}.intro-block-editor .actions {width: 100%;}.number-editor .two-col {display: block;}}

/* Account, collaboration and help layouts share the institutional form rhythm. */
.login-choice{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.login-choice summary{font-weight:700;cursor:pointer}.login-divider{text-align:center;margin:24px 0;color:var(--muted)}.admin-accounts{display:grid;gap:20px}.admin-accounts article{min-width:0}.admin-accounts p{overflow-wrap:anywhere}.form-card{max-width:680px;margin:24px auto;padding:28px}.section-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.badge{display:inline-block;border-radius:999px;padding:6px 12px;background:#e7f3ee;color:#006d59;font-weight:700}.template-card h3{overflow-wrap:anywhere}#report-models{display:block}#report-models h2{max-width:none;word-break:normal}#report-models ol{padding-left:24px}.admin-accounts .card{padding:24px}.admin-accounts .field{min-width:0}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.section-heading{flex-direction:column}.form-card{padding:20px}.admin-accounts .card{padding:20px}}

.google-signin{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#1f1f1f;border-color:#747775;font-family:Arial,sans-serif;font-size:14px;font-weight:500;min-height:44px;padding:12px}.google-signin img{width:20px;height:20px;flex:none;object-fit:contain}.google-signin:hover{background:#f8faff}


.student-view-bar{position:sticky;top:0;z-index:50;background:#fff2ca;border-bottom:2px solid #b28300;padding:12px 0}.student-view-bar>.wrap{display:flex;align-items:center;justify-content:space-between;gap:16px}.student-view-bar small{display:block}.workspace-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.workspace-filters .field{flex:1;min-width:220px;margin:0}.workspace-pagination{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:16px}.workspace-table td{padding:14px 16px}.workspace-table small{display:block}@media(max-width:640px){.student-view-bar>.wrap{flex-direction:column;align-items:stretch}.student-view-bar button{width:100%}.workspace-pagination{flex-wrap:wrap}}
.competency-grid { overflow-x:auto; margin-block:1rem; container:competencies / inline-size; }
.competency-grid table { width:100%; border-collapse:collapse; }
.competency-grid caption { text-align:left; color:var(--muted); padding-bottom:.6rem; }
.competency-grid :is(td,th) { padding:.45rem; border-bottom:1px solid #d5e2e5; }
.competency-grid td { text-align:center; }
.competency-grid thead th:not(:first-child) { text-align:center; }
.competency-grid td label { display:flex; align-items:center; justify-content:center; min-height:44px; margin:0; cursor:pointer; }
.competency-grid input[type=radio] { width:1.2rem; height:1.2rem; margin:0; flex:none; }
.competency-grid td label span { display:none; }
@container competencies (max-width:640px) {
 .competency-grid table, .competency-grid tbody, .competency-grid caption { display:block; min-width:0; }
 .competency-grid caption { padding:.5rem; }
 .competency-grid thead { display:none; }
 .competency-grid tr { display:flex; flex-wrap:wrap; gap:.25rem .7rem; border-bottom:1px solid #d5e2e5; padding:.5rem; }
 .competency-grid th[scope=row] { flex-basis:100%; }
 .competency-grid :is(td,th) { border:0; padding:0; }
 .competency-grid td label { gap:.35rem; }
 .competency-grid td label span { display:inline; }
}
.preview-phone .competency-grid td, .preview-phone .competency-grid th { padding:.2rem; }
.dashboard-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(16rem,25rem); align-items:start; }
.dashboard-tools { margin-top:.8rem; gap:.45rem; }
.dashboard-create { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; align-items:stretch; }
.collection-tools { display:flex; flex-wrap:wrap; gap:.55rem; align-items:flex-start; margin:1rem 0; }
.collection-tools > .actions { gap:.55rem; }
.dashboard-create .button,.collection-tools .button { text-align:center; line-height:1.35; }
.more-tools > summary { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; padding:.45rem .8rem; border:1px solid #b1c4cf; border-radius:8px; color:var(--navy); font-weight:650; list-style:none; cursor:pointer; }
.more-tools > summary:hover { background:#edf3f5; }
.more-tools > summary::-webkit-details-marker { display:none; }
.more-tools > summary::after { content:""; width:.4rem; height:.4rem; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-.1rem) rotate(45deg); }
.more-tools[open] > summary::after { transform:translateY(.1rem) rotate(225deg); }
.collection-tools .more-tools[open] { flex-basis:100%; }
.collection-tool-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:1rem; padding:1rem; margin-top:.5rem; background:white; border:1px solid var(--line); border-radius:12px; }
.collection-tool-groups h2 { font-size:1rem; margin:0 0 .35rem; }
.collection-tool-groups .button { width:100%; justify-content:flex-start; margin-top:.35rem; text-align:left; }
.workspace-table table { width:100%; min-width:0; table-layout:fixed; }
.workspace-table th:nth-child(1) { width:38%; }
.workspace-table th:nth-child(2) { width:13%; }
.workspace-table th:nth-child(3) { width:10%; }
.workspace-table th:nth-child(4) { width:39%; }
.workspace-table td { white-space:normal; overflow-wrap:anywhere; }
.workspace-row-actions,.workspace-more-actions { display:flex; gap:.45rem; align-items:flex-start; flex-wrap:wrap; }
.workspace-row-actions .button,.workspace-row-actions button { line-height:1.3; text-align:center; white-space:normal; }
.workspace-more > summary { font-size:.875rem; }
.workspace-more[open] { flex-basis:100%; }
.workspace-more-actions { padding:.65rem 0 0; }
.workspace-mobile-label { display:none; }
.workspace-confirm { min-width:0; }
.workspace-confirm > summary { list-style:none; cursor:pointer; }
.workspace-confirm > summary::-webkit-details-marker { display:none; }
.workspace-confirm-body { padding:.75rem; margin-top:.4rem; border:1px solid var(--line); border-radius:8px; background:#fff; }
.workspace-confirm-body p { margin:.35rem 0 .65rem; white-space:normal; }
.workspace-confirm-body,.workspace-dialog { overflow-wrap:anywhere; }
.workspace-dialog { width:min(28rem,calc(100% - 2rem)); max-height:calc(100% - 2rem); overflow:auto; padding:clamp(1rem,4vw,1.75rem); border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); background:#fff; box-shadow:0 1.5rem 4rem #15334f33; }
.workspace-dialog:not([open]) { display:none; }
.workspace-dialog::backdrop { background:rgba(21,51,79,.55); }
.workspace-dialog h2 { font-size:1.4rem; }
.workspace-dialog p { margin:.65rem 0; }
#workspace-confirm-item { font-weight:650; }
.workspace-dialog .actions { justify-content:flex-end; margin-top:1.25rem; }
.workspace-templates { margin-top:1.25rem; }
.workspace-templates .section-top { flex-wrap:wrap; }
@media(max-width:860px) {
  .dashboard-head { grid-template-columns:minmax(0,1fr); }
  .dashboard-create { max-width:32rem; }
  .workspace-filters .field { min-width:min(100%,14rem); }
  .workspace-table.table-wrap { overflow:visible; border:0; border-radius:0; background:transparent; }
  .workspace-table table,.workspace-table tbody { display:block; width:100%; }
  .workspace-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
  .workspace-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:.75rem; padding:1rem; border:1px solid var(--line); border-radius:var(--radius); background:white; }
  .workspace-table tbody td { display:block; min-width:0; border:0; padding:0; }
  .workspace-table td:first-child,.workspace-table td:last-child { grid-column:1/-1; }
  .workspace-table td:last-child { padding-top:.75rem; border-top:1px solid var(--line); }
  .workspace-mobile-label { display:block; margin-bottom:.18rem; color:var(--muted); font-size:.8rem; }
  #avaliacoes .section-top { flex-wrap:wrap; }
}
@media(max-width:440px) {
  .workspace-dialog .actions { display:grid; }
  .trash-item { flex-wrap:wrap; }
  .dashboard-create .button,.workspace-row-actions .button { padding:.45rem .5rem; }
}

.guide-screenshot { margin: 1.25rem 0; }
.demo-picker { position:relative; }
.demo-picker summary { cursor:pointer; }
.demo-picker[open] { z-index:55; }
.demo-picker form { position:absolute; top:calc(100% + 6px); right:0; display:grid; gap:.65rem; width:min(18rem,calc(100vw - 2rem)); padding:1rem; border:1px solid #bfd0dc; border-radius:.6rem; background:#fff; box-shadow:0 .45rem 1.3rem #14324c20; }
.demo-picker label,.demo-picker select,.demo-picker .hint { margin:0; }
.demo-picker select { width:100%; }
.student-view-bar .actions { align-items:center; }
@media (max-width:760px) {
  .student-view-bar { position:relative; }
  .student-view-bar>.wrap,.demo-nav { flex-wrap:wrap; }
  .nav.demo-nav { display:flex; gap:.6rem; }
  .demo-picker form { position:static; margin-top:.5rem; }
  .student-view-bar .actions,.admin-toolbar { align-items:flex-start; flex-wrap:wrap; }
}
@media print { .student-view-bar,.demo-picker { display:none; } }
.guide-screenshot a { display: block; width: fit-content; max-width: 100%; border: 1px solid #cddde3; border-radius: .65rem; overflow: hidden; }
.guide-screenshot img { display: block; max-width: 100%; width: auto; height: auto; }
.guide-screenshot figcaption { margin-top: .45rem; color: #415b71; font-size: .92rem; }
@media print { .guide-screenshot { break-inside: avoid; } .guide-screenshot img { max-height: 65mm; object-fit: contain; } }

.list-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:20px 0 8px; }
.list-pagination .hint { margin:0; }
.page-controls, .page-controls form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; }
.page-controls label { font-size:.875rem; margin:0; }
.page-controls input[type=number] { width:4.6rem; min-width:0; min-height:42px; margin:0; padding:6px 8px; }
@media (max-width:680px) {
  .page-controls { width:100%; }
  .page-controls form { order:1; width:100%; }
}

.receipt-fields{max-width:38rem;margin:1.5rem auto;text-align:start}
.receipt-fields dt{margin-top:.9rem;color:var(--muted);font-size:.9rem}
.receipt-fields dd{margin:.2rem 0;font-weight:600;overflow-wrap:anywhere}
.receipt-card .actions{justify-content:center;flex-wrap:wrap}
.receipt-card form{margin:0}
