.project-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px;background:white;border:1px solid #e4e7ef;border-radius:12px;margin-bottom:16px;font-size:13px}.project-toolbar button,.project-dialog button,.project-page button{padding:9px 13px;border:1px solid #d8dfeb;border-radius:8px;background:#fff;color:#334155}.project-toolbar a,.project-page a,.project-dialog a{color:#3b5bdb}.project-check{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#f8f9fc;border-top:1px solid #e4e7ef;cursor:pointer;font-size:12px}.project-check input{accent-color:#3b5bdb}.project-dialog{padding:24px;border:1px solid #e4e7ef;border-radius:14px;width:min(520px,90vw)}.project-dialog::backdrop{background:#0f172a80}.project-dialog h2{font-weight:700;font-size:18px}.project-dialog label{display:block;margin:15px 0}.project-dialog select,.project-page input{display:block;width:100%;border:1px solid #d8dfeb;border-radius:8px;padding:10px;margin-top:6px}.project-dialog p{margin:15px 0}.project-dialog button{margin-right:8px}.project-page{padding:24px;max-width:1300px}.project-page h1{font-size:24px;font-weight:700}.project-page h2{font-size:18px;font-weight:600;margin-bottom:12px}.project-panel{padding:22px;border:1px solid #e4e7ef;border-radius:12px;background:white;margin:18px 0}.project-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.project-media{padding:18px;background:white;border:1px solid #e4e7ef;border-radius:12px;overflow-wrap:anywhere}.project-media p{font-size:13px;margin:10px 0;color:#64748b}.project-page button:disabled,.project-toolbar button:disabled,.project-dialog button:disabled{opacity:.5;cursor:not-allowed}.project-page button:focus-visible,.project-toolbar button:focus-visible,.project-dialog button:focus-visible{outline:2px solid #3b5bdb;outline-offset:2px}.project-page code{font-size:12px}.project-note{color:#64748b;font-size:13px;margin:12px 0}.project-page [hidden]{display:none!important}

/* A nova página mantém a navegação acessível sem comprimir o conteúdo no celular. */
.project-page{width:100%;min-width:0}.project-list{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
@media(max-width:760px){
 body.projects-layout{display:block!important}
 body.projects-layout .portal-sidebar{position:static!important;width:100%!important;height:auto!important;box-shadow:none}
 body.projects-layout .portal-content{margin-left:0!important;width:100%}
 body.projects-layout .portal-sidebar nav{flex-direction:row!important;overflow-x:auto;flex-wrap:nowrap;padding:8px!important}
 body.projects-layout .portal-sidebar .sidebar-item{width:auto!important;flex-shrink:0;white-space:nowrap}
 body.projects-layout .portal-sidebar nav>div,body.projects-layout .portal-sidebar>div:last-child{display:none}
 body.projects-layout .project-page{padding:16px}
 body.projects-layout .project-panel{padding:16px}
 body.projects-layout .portal-content>header{height:52px}
}

#project-assets{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}.project-media{padding:0;overflow:hidden}.project-thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:#edf0f6;font-size:12px;color:#64748b;overflow:hidden}.project-thumb img{width:100%;height:100%;object-fit:contain;background:#101827}.project-media-info{padding:12px}.project-media h3{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-media p{font-size:11px;margin:6px 0}.project-media-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.project-asset-select{display:flex;gap:6px;align-items:center;font-size:12px}.project-page .project-asset-select input{width:auto;margin:0;accent-color:#3b5bdb}.project-media-actions button{font-size:12px;padding:6px 10px}#project-downloads progress{width:100%;height:12px;accent-color:#3b5bdb}#project-downloads [role=status]{font-size:13px;overflow-wrap:anywhere;margin:12px 0}

/* Projetos: preparação, documentos e seleção. */
.project-heading{margin:8px 0 24px}.project-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:700;color:#7c879a;margin-bottom:8px}.project-page h1{font-size:30px;letter-spacing:-.035em}.project-panel{border-color:#e7eaf0;box-shadow:0 2px 4px #172b4d03}.project-page summary{cursor:pointer;font-weight:600;font-size:14px}.project-page details[open]>summary{margin-bottom:20px}.project-page form label{display:block;font-size:13px;color:#475569;margin:16px 0}.project-page form{max-width:780px}.project-page .project-primary{background:#3457d5;border-color:#3457d5;color:#fff}.project-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.project-link-button{display:inline-flex;align-items:center;padding:9px 13px;border-radius:8px;background:#f0f3fc;font-size:13px;font-weight:500}.project-overview #project-title{font-size:23px;letter-spacing:-.025em}.project-overview details{border-top:1px solid #edf0f4;margin-top:20px;padding-top:16px}.project-section-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;flex-wrap:wrap}.project-section-heading h2{margin:0}.project-section-heading p{margin:5px 0 0}.project-section-heading>a{margin-left:auto}.project-step{border:1px solid #e4e9f3;border-radius:9px;padding:8px 10px;font-size:11px;color:#8491a8}.project-document-list li{border-bottom:1px solid #eef0f5;padding:12px 0;font-size:13px;overflow-wrap:anywhere}.project-document-list a:hover{text-decoration:underline}#project-documents progress{width:100%;accent-color:#3457d5}#project-documents [role=status],#project-info-status{font-size:13px;overflow-wrap:anywhere}.project-card{margin:0;display:block;transition:border-color .15s}.project-card:hover{border-color:#8ba2ee}.project-card>span{font-size:10px;letter-spacing:.14em;color:#8491a8}.project-card h2{margin:12px 0;color:#243047;font-size:17px}.project-card p{font-size:12px;color:#64748b}.project-setup>ul{font-size:13px;line-height:1.9;color:#64748b}.project-footer-note{max-width:760px;margin:24px 0}.project-new form{margin-top:18px}#project-local{border-top:1px solid #e7eaf0;padding-top:20px;margin-top:20px}#project-local li{font-size:13px;line-height:1.8}#project-local details{margin-top:12px}
@media(max-width:760px){.project-overview #project-title{font-size:20px}.project-section-heading>a{margin-left:0}.project-page h1{font-size:26px}.project-step{display:none}}

.project-page .project-secondary{background:#f0f3fc;color:#2f4fc6;border-color:#cdd7fb}.project-generated-folder{display:grid;gap:6px;margin:16px 0;font-size:13px;color:#475569}.project-generated-folder a{display:inline-flex;width:fit-content;max-width:100%;overflow-wrap:anywhere}.project-locked{padding:14px;border:1px dashed #cfd7e6;border-radius:10px;background:#f8f9fc}

.project-page .project-delete{color:#a32626;border-color:#e7cccc;margin-top:20px}

.project-import-progress{display:block;width:100%;height:20px;margin:14px 0;accent-color:#426c55}.project-import-progress[hidden]{display:none}.project-panel[data-state="error"]{border-color:#c99b51}

.project-panel[data-state="completed"]{background:#f1f8f3;border-color:#b5d3be}.project-panel[data-state="completed"] h2{color:#285b3a}

.project-drive-list{max-height:420px;overflow:auto}.project-drive-path{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.project-drive-path button{font-size:12px}.project-drive-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f4;padding:10px 0}.project-drive-row>span{color:#8592a8}.project-drive-row>button,.project-drive-row>a:not(:last-child){flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;font-size:13px;background:none;border:0;padding:4px}.project-drive-row>a:last-child{padding:8px}.project-section-heading>button{margin-left:auto}

.project-drive-path{align-items:center}.project-drive-current{font-size:12px;font-weight:600;color:#475569;padding:9px 0;overflow-wrap:anywhere}

.project-card{position:relative;padding:0}.project-card-link{display:block;padding:22px;padding-right:54px;height:100%}.project-card-link>span{font-size:10px;letter-spacing:.14em;color:#8491a8}.project-page .project-card-delete{position:absolute;top:10px;right:10px;border:0;background:transparent;padding:7px;color:#8793a5;line-height:1}.project-page .project-card-delete:hover{background:#fff1f1;color:#a32626}.project-dialog .project-delete{background:#a32626;color:white;border-color:#a32626}.project-dialog [role=alert]{color:#a32626}

.project-page select{display:block;width:100%;border:1px solid #d8dfeb;border-radius:8px;padding:10px;margin-top:6px;background:white}.project-existing-settings{margin-top:18px}

.project-media-actions{flex-wrap:wrap}.project-media-actions .project-note{flex-basis:100%;font-size:11px}
.thumb-project-btn{top:5rem;right:.5rem}.thumb-project-btn:hover{background:rgba(59,91,219,.92);border-color:rgba(255,255,255,.5)}.project-membership-tags{display:flex;flex-wrap:wrap;gap:5px;padding:8px 12px 0}.project-membership-tags[hidden]{display:none}.project-membership-tag{display:inline-flex;align-items:center;gap:4px;max-width:100%;border-radius:6px;background:#eef2ff;color:#4357a5;padding:3px 7px;font-size:10px;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}.project-membership-tag .material-symbols-outlined{font-size:13px}.project-membership-tag:hover{background:#e0e7ff}.project-membership-tag:focus-visible{outline:2px solid #3b5bdb;outline-offset:2px}

.project-sync-dialog progress{width:100%;height:12px;accent-color:#4f46e5}.project-sync-dialog ul{list-style:none;padding:0;display:grid;gap:12px}.project-sync-error{color:#b91c1c}.project-sync-actions{margin-top:16px;align-items:center}.project-sync-dialog{max-width:580px}

.project-ai-dialog{width:min(680px,94vw);max-height:90vh;overflow:auto}.project-ai-dialog input,.project-ai-dialog textarea{width:100%;border:1px solid #d8dfeb;border-radius:8px;padding:10px;margin-top:6px}.project-ai-dialog textarea{min-height:260px;font:12px/1.5 monospace}.project-ai-dialog details{margin:18px 0}.project-ai-dialog>a{font-size:13px}

.project-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}#project-skill-download{gap:8px;white-space:nowrap;padding:12px 18px}#project-skill-download:hover{background:#e4eaff}#project-skill-download:focus-visible{outline:2px solid #3457d5;outline-offset:3px}

/* Página de projetos: materiais reunidos e duas etapas de trabalho com IA. */
.project-page{max-width:1320px;padding:32px 40px 24px;margin:0 auto;color:#263449}
.project-page button,.project-page a,.project-page summary{transition:background .15s,border-color .15s,color .15s}
.project-page button{font-size:13px;line-height:1.4;cursor:pointer}
.project-page button:hover:not(:disabled){background:#f4f6fb;border-color:#bac7df}
.project-page .project-primary:hover:not(:disabled){background:#2949bd;border-color:#2949bd}
.project-page a:focus-visible,.project-page summary:focus-visible{outline:2px solid #3457d5;outline-offset:4px;border-radius:5px}
.project-page h3{font-size:13px;font-weight:600;color:#34435a}
.project-page p:empty,.project-page [role=status]:empty,.project-last-sync:empty{display:none}
.project-heading{margin:0 0 28px}
.project-heading .project-note{margin:7px 0 0}
.project-heading .project-actions{margin:0}
#project-skill-download{font-size:12px;padding:10px 13px}
#project-skill-download .material-symbols-outlined{font-size:18px}
.project-new:not([open]){display:none}
.project-new{margin:0 0 24px}
.project-new form{max-width:650px}
#project-feedback:not(:empty){padding:12px 16px;margin-bottom:18px;background:#eef2ff;border-radius:9px;font-size:13px}
.project-back{display:inline-flex;gap:8px;align-items:center;font-size:12px;color:#718099!important;margin-bottom:18px}
.project-back:hover{color:#3457d5!important}
.project-overview{margin-bottom:24px}
.project-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.project-name{min-width:0;max-width:100%}
.project-page #project-title-edit{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:0;border:0;background:transparent;font:inherit;color:inherit;letter-spacing:inherit;text-align:left;line-height:inherit}
.project-page #project-title-edit:hover{background:transparent;color:#3457d5}
#project-title-text{min-width:0;overflow-wrap:anywhere}
#project-title-edit>.material-symbols-outlined{font-size:16px;color:#8290a6;flex:none}
.project-page .project-title-input{width:min(680px,100%);min-width:min(400px,100%);font-size:26px;font-weight:600;line-height:1.3;letter-spacing:-.035em;margin:0;padding:5px 8px;border-color:#3457d5;background:white;color:#263449}
.project-title-input[aria-invalid=true]{border-color:#b91c1c}
.project-title-status{font-size:11px;margin-top:5px;color:#68778d;max-width:680px}
.project-title-status[data-state=error]{color:#b91c1c}
.project-title-status[data-state=saved]{color:#37674b}
.project-overview #project-title{font-size:26px;line-height:1.3;font-weight:600;letter-spacing:-.035em;overflow-wrap:anywhere}
.project-location-status{font-size:10px;font-weight:500;color:#815c25;background:#fff4df;border-radius:20px;padding:5px 9px;white-space:nowrap}
.project-location-status[data-linked=true]{background:#eaf4ee;color:#37674b}
.project-command-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.project-command-bar .project-actions{margin:0;gap:10px;align-items:center}
.project-command-bar .project-link-button{background:white;border:1px solid #d8dfeb;color:#415575;padding:9px 13px;font-size:13px;line-height:1.4}
.project-command-bar .project-link-button:hover{background:#f4f6fb}
.project-page .project-settings-toggle{display:flex;align-items:center;gap:6px;margin-left:auto;background:transparent;border-color:transparent;color:#6b7b93}
.project-settings-toggle .material-symbols-outlined{font-size:17px}
.project-page .project-settings-toggle[aria-expanded=true]{background:#eaf0fa;color:#3457d5}
.project-last-sync{font-size:10px;color:#68778d}
.project-settings{padding:24px;margin:0 0 24px;background:#fafbfe}
.project-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.project-settings-grid form+form{border-left:1px solid #e2e7f0;padding-left:32px}
.project-settings-grid .project-note{font-size:12px}
.project-materials{padding:24px;margin:0 0 26px;box-shadow:none}
.project-section-heading{align-items:center;margin-bottom:20px;gap:12px}
.project-section-heading h2{font-size:16px;font-weight:600}
.project-section-heading .project-note{font-size:12px;color:#68778d;margin-top:4px}
.project-step{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border-radius:9px;border:0;background:#edf1fc;color:#5770b1;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.project-resource-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px}
.project-resource{min-width:0}
.project-documents-resource{border-left:1px solid #edf0f5;padding-left:28px}
.project-resource-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin-bottom:2px}
.project-resource-heading button{font-size:11px;padding:7px 10px;white-space:nowrap}
.project-resource .project-note{font-size:11px;margin:8px 0;color:#68778d}
.project-drive-list{max-height:242px;overflow:auto;scrollbar-width:thin}
.project-drive-row{gap:9px;padding:6px 0;border-bottom-color:#f0f2f7;min-height:39px}
.project-drive-row:last-child{border:0}
.project-drive-row>span{font-size:19px;color:#98a8c0}
.project-drive-row>button,.project-drive-row>a:not(:last-child){font-size:12px;line-height:1.5;color:#465671}
.project-drive-row>a:last-child{color:#9aa8bc;font-size:13px;padding:7px}
.project-drive-row:hover{background:#f8faff;border-radius:5px}
.project-drive-path{margin:4px 0}
.project-drive-path button,.project-drive-current{font-size:10px;padding:6px}
.project-document-list{max-height:240px;overflow:auto;scrollbar-width:thin}
.project-document-list li{font-size:12px;line-height:1.6;padding:12px 0}
.project-document-list li:last-child{border:0}
.project-document-list a{color:#456391}
.project-document-records{margin-top:12px;padding-top:12px;border-top:1px solid #edf0f5}
.project-document-records summary{font-size:11px;font-weight:400;color:#68778d}
.project-page .project-document-records[open]>summary{margin-bottom:0}
.project-archive-section{border-top:1px solid #edf0f5;margin-top:22px;padding-top:20px}
.project-archive-section .project-section-heading{margin-bottom:12px}
.project-inline-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-count{border-radius:5px;background:#edf1f7;color:#6a7b95;padding:2px 6px;font-size:10px}
.project-optional{font-size:10px;color:#8c97aa}
.project-archive-section .project-link-button{background:none;padding:4px 0;font-size:12px}
#project-assets.project-assets-empty{display:block;color:#8a96a8;font-size:12px;padding:0 0 2px}
#project-assets:not(.project-assets-empty){grid-template-columns:repeat(auto-fill,minmax(162px,1fr));max-height:390px;overflow:auto;padding:2px;scrollbar-width:thin}
.project-page .project-remove-asset{border:0;background:none;padding:8px 0 0;font-size:10px;color:#8692a5}
.project-page .project-remove-asset:hover:not(:disabled){background:none;color:#a32626}
.project-remove-error{color:#a32626!important}
.project-ai-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.project-ai-heading>span{font-size:10px;font-weight:600;letter-spacing:.1em;color:#8290a6}
.project-skill-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#6d7d99!important}
.project-skill-link .material-symbols-outlined{font-size:15px}
.project-stage-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.project-stage{display:flex;align-items:flex-start;flex-direction:column;padding:22px 24px;margin:0;box-shadow:none}
.project-stage-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:16px}
.project-stage-top>.material-symbols-outlined{color:#a8b5ce;font-size:23px}
.project-stage h2{font-size:17px;letter-spacing:-.02em;margin:0 0 8px}
.project-stage p{font-size:12px;line-height:1.75;color:#68778d;max-width:430px;margin-bottom:20px}
.project-stage .project-primary{margin-top:auto;display:flex;justify-content:space-between;gap:20px;text-align:left;font-size:12px;max-width:100%}
.project-stage-foot{font-size:10px;color:#718099;margin-top:10px;line-height:1.5}
.project-ai-caption{font-size:11px;color:#718099;margin-top:12px}
.project-footer-note{font-size:10px;color:#95a0b1;margin:22px 0 12px}
.project-connection{border-top:1px solid #e6eaf1;padding-top:14px;margin-top:22px;color:#8490a3}
.project-connection summary{font-size:11px;font-weight:400}
.project-connection[data-connected=true] summary::marker{color:#6f967f}
.project-connection p{font-size:12px;margin:12px 0;line-height:1.6}
.project-connection button{font-size:11px}
.project-page .project-connection[open]>summary{margin-bottom:10px}
.project-import-panel{padding:18px 22px;font-size:12px;margin:0 0 24px}
.project-import-panel h2{font-size:14px;margin-bottom:8px}
.project-import-panel p{line-height:1.6}
.project-import-panel[data-state=completed]{background:#f5faf7;border-color:#dcebe2}
.project-import-panel details{margin-top:8px}
.project-import-panel details>summary{font-size:11px;font-weight:400;color:#688075}
.project-page .project-import-panel details[open]>summary{margin-bottom:8px}
.project-dialog .project-primary{background:#3457d5;border-color:#3457d5;color:white}
@media(min-width:1600px){.project-page{padding-top:40px}}
@media(max-width:1100px){.project-page{padding:26px}.project-title-row{gap:10px}.project-overview #project-title{font-size:23px}.project-resource-grid{gap:20px}.project-documents-resource{padding-left:20px}.project-stage{padding:20px}.project-resource-heading{flex-wrap:wrap;gap:6px}}
@media(max-width:760px){
 .project-page{padding:22px 16px}.project-overview{margin-bottom:20px}.project-overview #project-title,.project-page .project-title-input{font-size:23px}.project-title-row{align-items:flex-start;flex-direction:column;gap:10px}
 .project-command-bar{gap:8px}.project-command-bar .project-actions{display:contents}.project-last-sync{order:4;flex-basis:100%}.project-page .project-settings-toggle{margin-left:auto}
 .project-settings-grid,.project-resource-grid,.project-stage-grid{grid-template-columns:1fr}.project-settings-grid{gap:24px}
 .project-settings-grid form+form,.project-documents-resource{border-left:0;border-top:1px solid #edf0f5;padding:20px 0 0}
 .project-resource-grid{gap:20px}.project-resource-heading{flex-wrap:nowrap}.project-materials{padding:20px}.project-step{display:inline-flex}.project-stage{padding:22px}.project-stage-top{margin-bottom:14px}
 .project-archive-section .project-section-heading{gap:8px}.project-archive-section .project-section-heading>a{margin-left:auto}.project-ai-caption{line-height:1.6}
 .project-heading .project-actions{width:100%;gap:8px}.project-heading{gap:18px}.project-back{margin-bottom:16px}
}
@media(prefers-reduced-motion:reduce){.project-page button,.project-page a,.project-page summary{transition:none}}
