:root{font-family:"Segoe UI",Arial,sans-serif;color:#292a25;background:#f6f4ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2{font-family:"Bodoni MT",Didot,Georgia,serif;font-weight:400}h1{font-size:clamp(34px,4vw,54px);line-height:1.12}h2{font-size:32px}h3{font-weight:400;font-size:21px}.eyebrow{font-size:10px;letter-spacing:2px;display:block}.muted{color:#73746b;line-height:1.6;font-size:14px}.primary,.secondary{border:0;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.primary{background:#30362d;color:#fff}.secondary{background:#e9e5dc;color:#30362d}.compact{font-size:12px;padding:13px 20px;white-space:nowrap}.login-layout{min-height:100svh;display:grid;grid-template-columns:1fr 1fr}.brand-panel{background:linear-gradient(#171d1759,#171d17bd),url('../assets/interior-03-1920.webp') center/cover;color:#fff;padding:50px 9%;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.brand-panel img{width:min(320px,90%);filter:brightness(0) invert(1)}.brand-panel .eyebrow{margin-bottom:22px}.brand-panel p{max-width:350px;font-size:14px;line-height:1.8;margin-top:22px;color:#fffc}.brand-panel small{font-family:Georgia,serif;font-size:17px}.login-panel{padding:40px 13%;display:flex;flex-direction:column;justify-content:space-between;gap:50px}.back{border:0;background:none;padding:0;font-size:12px;text-align:left;color:#77776d}.login-panel form{width:100%;max-width:380px;margin:auto}.login-panel h2{margin:18px 0}.login-panel form>p{margin-bottom:26px}label{display:flex;flex-direction:column;gap:9px;font-size:12px;margin:20px 0}input,select,textarea{width:100%;padding:13px 12px;border:1px solid #d6d3c9;background:#fff;color:#30332b;border-radius:0}form>.primary{width:100%;margin-top:25px}.help{font-size:12px;text-decoration:underline}.login-panel small{font-size:10px;color:#777}.message{font-size:13px;line-height:1.5;color:#8a3b2b;margin:16px 0}.message:empty{display:none}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:#e9e5dc;border-right:1px solid #d9d5cb;padding:36px 26px;display:flex;flex-direction:column;gap:24px}.sidebar img{width:100%;margin-bottom:20px}.nav-item{background:transparent;border:0;border-bottom:1px solid #d3d0c5;padding:16px 0;display:flex;justify-content:space-between;text-align:left;font-size:13px}.nav-item.active{font-weight:600}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}.sidebar-bottom small{color:#73746b;font-size:11px}.sidebar-bottom button{padding:0;background:none;border:0;text-align:left;font-size:11px;line-height:1.8}.workspace{margin-left:240px;padding:50px clamp(24px,4vw,70px);max-width:1600px}.workspace header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.workspace h1{margin-top:14px}.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;margin-top:30px}.project-card{max-width:480px;background:#eeebe3;border:1px solid #dedbd1;padding:28px;text-align:left;display:flex;flex-direction:column;gap:20px;min-height:230px}.project-card:hover{background:#e7e4da}.project-card .number{font-family:Georgia,serif;font-size:38px;color:#a5aa98}.project-card h3{font-family:Georgia,serif}.project-card .muted{font-size:12px}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:11px}.project-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:32px 0}.project-heading h2{margin:14px 0}.upload-panel{padding:28px;background:#eeebe3;border:1px dashed #b8bdac;display:flex;justify-content:space-between;gap:30px;align-items:center}.upload-panel h3{margin:12px 0}.upload-panel form{max-width:310px}.file-picker{margin:0 0 10px}.file-picker input{font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:36px 0 20px}.file-row,.client-row{padding:22px 0;border-bottom:1px solid #ddd9cf;display:flex;align-items:center;justify-content:space-between;gap:22px}.file-info{display:flex;flex-direction:column;gap:8px;min-width:0;overflow-wrap:anywhere}.file-info strong{font-size:14px;font-weight:500}.file-info small{font-size:11px;color:#73746b}.file-actions{display:flex;gap:18px;flex-shrink:0;align-items:center}.file-actions a,.file-actions button{font-size:11px;border:0;background:none;padding:8px 0}.file-actions button{color:#9b4b39}.empty{padding:40px 20px;border:1px solid #dedbd1;text-align:center;color:#73746b;line-height:1.7;font-size:14px;margin-top:20px}dialog{border:1px solid #d6d3c9;padding:30px;background:#f6f4ef;max-width:500px;width:calc(100% - 32px)}dialog::backdrop{background:#171c17a6}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading button{border:0;background:none;font-size:27px}dialog h2{font-size:28px}@media(max-width:900px){.sidebar{width:190px;padding:28px 18px}.workspace{margin-left:190px;padding:32px 24px}.upload-panel{align-items:stretch;flex-direction:column}.upload-panel form{max-width:none}.brand-panel{padding:35px 8%}.login-panel{padding:35px 9%}}@media(max-width:640px){.login-layout{grid-template-columns:1fr}.brand-panel{min-height:270px;padding:28px;gap:30px}.brand-panel img{width:200px}.brand-panel h1{font-size:32px}.brand-panel p,.brand-panel small{display:none}.login-panel{min-height:480px;padding:28px}.sidebar{position:static;width:100%;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.sidebar>a{grid-column:1/-1;max-width:190px}.sidebar img{margin:0}.sidebar>.eyebrow{grid-column:1/-1}.sidebar-bottom{grid-column:1/-1;border-top:1px solid #d3d0c5;padding-top:16px;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.sidebar-bottom small{display:none}.sidebar-bottom>span{width:100%}.workspace{margin:0;padding:30px 20px}.workspace header,.project-heading{align-items:flex-start;flex-direction:column}.workspace h1{font-size:36px}.file-row{align-items:flex-start;flex-direction:column}.upload-panel{padding:20px}.project-card{max-width:none}}

.login-options{display:flex;justify-content:space-between;gap:15px}.login-options button{border:0;background:none;padding:0;color:inherit;font-size:12px;text-align:left}.login-panel form{margin:40px auto}.message{overflow-wrap:anywhere}
.billing-section{margin-top:44px;padding-top:12px;border-top:1px solid #d6d3c9}.billing-section .upload-panel{margin-top:22px;flex-wrap:wrap}.billing-section label{margin:0}.billing-section form>.primary{width:auto;margin-top:0}.file-actions button{color:#30362d}

.billing-upload-heading{flex-basis:100%}.billing-upload-heading h3{margin:12px 0}.billing-section form>.message{flex-basis:100%}

.notes-section{margin-top:36px;padding-top:4px;border-top:1px solid #d6d3c9}.notes-section form{background:#eeebe3;border:1px solid #dedbd1;margin-top:22px;padding:22px}.notes-section label{margin:0 0 16px}.note-submit{display:flex;justify-content:space-between;align-items:center;gap:20px}.note-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:22px 0;border-bottom:1px solid #ddd9cf}.note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px;margin-top:12px}.note-meta{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:16px}.note-meta time{font-size:12px;color:#73746b;white-space:nowrap;font-variant-numeric:tabular-nums}.note-meta button{background:none;border:0;padding:0;font-size:11px;color:#9b4b39}.note-content{min-width:0}@media(max-width:640px){.note-row{gap:12px;grid-template-columns:minmax(0,1fr) 116px}.note-meta time{font-size:10px}.note-submit{align-items:flex-start;flex-direction:column}.notes-section form{padding:18px}.note-submit>.primary{align-self:flex-end}.note-text{font-size:13px}}

.portal-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}.portal-shortcuts button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d6d3c9;background:#eeebe3;padding:20px;text-align:left;color:#30362d}.portal-shortcuts button.active{border-color:#30362d}.document-section>.upload-panel{margin-top:22px;flex-wrap:wrap}.document-section form.upload-panel>.primary{width:auto;margin-top:0}.document-section>.upload-panel label{margin:0}.document-section .billing-upload-heading{flex-basis:100%}.sidebar{overflow-y:auto}.billing-section{margin-top:0;padding-top:0;border-top:0}.document-section>.notes-section,.billing-section>.notes-section{margin-top:36px}@media(max-width:640px){.portal-shortcuts{grid-template-columns:1fr;gap:8px}.portal-shortcuts button{padding:14px}.sidebar{overflow-y:visible}}

/* Uma única linha entre os documentos e as notas partilhadas. */
.files-list>.file-row:last-child{border-bottom:0}

.project-heading>div{min-width:0}.project-status-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;background:#347448;color:#fff;padding:13px 22px;font-size:11px;letter-spacing:1.4px;white-space:nowrap;flex-shrink:0}.project-status-badge.archived{background:#77776d}@media(max-width:640px){.project-heading{flex-direction:row;flex-wrap:wrap;align-items:center}.project-heading>div{flex:1 1 150px}.project-status-badge{padding:12px 16px}.project-heading>#archive-project{margin-left:auto}}

.project-status-badge{align-self:stretch;min-width:156px;min-height:82px;border:2px solid #347448;background:#dcebdc;color:#285c38;padding:20px 28px;font-size:12px;font-weight:600}.project-status-badge.archived{border-color:#77776d;background:#e6e5df;color:#55564e}@media(max-width:640px){.project-status-badge{min-width:120px;min-height:82px;padding:16px 20px}}

.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:34px 0}.summary-card{background:#eeebe3;border:1px solid #d6d3c9;padding:28px;text-align:left;color:#30362d;display:flex;flex-direction:column;gap:18px;min-height:280px}.summary-card:hover{background:#e7e4da;border-color:#a8af9c}.summary-card .number{font:36px Georgia,serif;color:#939d85}.summary-card h3{font:25px Georgia,serif}.summary-counts{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}.summary-counts span{border:1px solid #d6d3c9;background:#f6f4ef;padding:8px 12px;font-size:12px}.summary-open{font-size:12px;padding-top:6px}#back-overview{margin-bottom:4px}@media(max-width:900px){.summary-grid{grid-template-columns:1fr}.summary-card{min-height:220px}}

.file-row .file-info strong{font-size:16px;line-height:1.5}

.project-heading{background:#eeefe7;border:1px solid #cdd3c2;padding:26px 30px}.project-heading h2{margin-bottom:0}.project-heading #project-description:empty{display:none}@media(max-width:640px){.project-heading{padding:20px;gap:18px}}

.project-heading{flex-wrap:wrap}.project-heading>div:first-child{flex:1 1 200px}.project-details{flex:0 0 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:4px 0 0;padding-top:24px;border-top:1px solid #cdd3c2}.project-details>div{padding:0 24px;border-left:1px solid #cdd3c2;min-width:0}.project-details>div:first-child{padding-left:0;border-left:0}.project-details dt{font-size:12px;color:#73746b;margin-bottom:10px}.project-details dd{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}@media(max-width:640px){.project-details{grid-template-columns:1fr;gap:18px}.project-details>div{padding:18px 0 0;border-left:0;border-top:1px solid #cdd3c2}.project-details>div:first-child{padding-top:0;border-top:0}}

.project-heading{padding:18px 22px;gap:18px}.project-details{grid-template-columns:repeat(4,minmax(0,1fr));border-top:0;margin-top:0;padding-top:0}.project-details>div{padding:0 16px}.project-details dt{margin-bottom:4px}.project-details dd{line-height:1.4}@media(max-width:900px){.project-details{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}.project-details>div:nth-child(3){border-left:0;padding-left:0}}@media(max-width:640px){.project-heading{padding:16px;gap:16px}.project-details{grid-template-columns:1fr;gap:12px}.project-details>div{border:0;padding:0}.project-details dt{margin-bottom:3px}}

.project-field{margin:20px 0}.project-field>label:first-child{margin:0 0 8px}.na-option{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;color:#73746b}.na-option input{width:auto;margin:0}.project-field input:disabled{background:#e9e5dc;color:#73746b}#project-dialog{max-height:90svh;overflow-y:auto}

.project-details{grid-template-columns:repeat(5,minmax(0,1fr))}@media(min-width:641px) and (max-width:1100px){.project-details{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}.project-details>div:nth-child(odd){border-left:0;padding-left:0}}@media(max-width:640px){.project-details{grid-template-columns:1fr}}

.file-actions a,.file-actions button:first-child:not(:last-child){display:inline-flex;align-items:center;justify-content:center;background:#eeebe3;border:1px solid #dedbd1;padding:11px 15px;color:#30362d;font-size:12px;line-height:1.3}.file-actions a:hover,.file-actions button:first-child:not(:last-child):hover{background:#e5e1d7;border-color:#c9c5b9}.file-actions{flex-wrap:wrap;gap:10px}

.pdf-open{overflow:hidden}.pdf-lightbox{max-width:none;width:calc(100vw - 36px);max-height:none;height:calc(100dvh - 36px);padding:0;background:#f6f4ef;border:1px solid #c9c5b9;overflow:hidden;color:#30362d}.pdf-lightbox[open]{display:flex;flex-direction:column}.pdf-lightbox::backdrop{background:#171c17cc}.pdf-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-bottom:1px solid #d6d3c9}.pdf-header strong{min-width:0;overflow-wrap:anywhere;font-size:15px;font-weight:500}.pdf-header>div{display:flex;gap:10px;flex-shrink:0}.pdf-lightbox button{padding:10px 14px;background:#eeebe3;border:1px solid #d6d3c9;color:#30362d;font-size:12px}.pdf-lightbox button:disabled{opacity:.4;cursor:default}.pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px}.pdf-toolbar-gap{width:20px}#pdf-pages{font-size:13px;min-width:110px;text-align:center}.pdf-stage{flex:1;min-height:0;overflow:auto;background:#555953;padding:20px;display:grid;align-items:start;justify-items:center}.pdf-stage canvas{display:block;box-shadow:0 2px 16px #0005;max-width:none}.pdf-lightbox #pdf-message{margin:0;padding:8px 16px;font-size:13px}.pdf-lightbox #pdf-message:empty{display:none}@media(max-width:640px){.pdf-lightbox{width:100vw;height:100dvh;border:0}.pdf-header{padding:12px;flex-wrap:wrap;gap:10px}.pdf-header strong{width:100%;font-size:13px}.pdf-header>div{margin-left:auto}.pdf-toolbar{gap:6px;padding:8px}.pdf-toolbar-gap{width:0}.pdf-lightbox button{padding:9px 11px}.pdf-stage{padding:12px}}

#project-process{font-size:14px}.project-heading>div:first-child{align-self:flex-start}.project-heading h2{margin-top:0}

.pdf-header{background:#242424;color:#f5f5f5;border-bottom-color:#444}.pdf-toolbar{background:#303030;color:#f5f5f5}.pdf-header button,.pdf-toolbar button{background:#3b3b3b;border-color:#555;color:#f5f5f5}.pdf-header button:hover,.pdf-toolbar button:hover{background:#505050}.pdf-header button:focus-visible,.pdf-toolbar button:focus-visible{outline:2px solid #fff;outline-offset:-2px}.pdf-stage{background:#454545}

.project-heading{background:#eeebe3;border-color:#dedbd1}.project-details{grid-template-columns:repeat(6,minmax(0,1fr))}.project-details>div{border-left-color:#dedbd1}@media(min-width:641px) and (max-width:1100px){.project-details{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.project-details{grid-template-columns:1fr}}

@media(max-width:640px){.sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.sidebar>.nav-item{grid-column:auto;min-width:0;padding:12px 0;font-size:12px;gap:8px}.sidebar>.nav-item span{flex-shrink:0}.sidebar>.sidebar-bottom{grid-column:1/-1}}

.project-details dd{font-size:14px}#project-process{font-size:13px}.project-details dt{font-size:11px}

.projects-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),360px));justify-content:start;gap:24px}.project-card{width:100%;max-width:none}.mobile-menu-toggle{display:none}button{color:inherit;-webkit-appearance:none;appearance:none}input::file-selector-button{color:#30362d;background:#eeebe3;border:1px solid #d6d3c9;padding:6px 9px}a{color:inherit;-webkit-text-fill-color:currentColor}@media(max-width:640px){.sidebar{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:16px 20px;gap:12px}.sidebar>a{grid-column:1;max-width:170px}.sidebar>.mobile-menu-toggle{display:flex;grid-column:2;align-items:center;gap:8px;border:1px solid #d6d3c9;background:#f6f4ef;padding:10px 12px;font-size:12px;color:#30362d}.mobile-menu-toggle>span:first-child{font-size:23px;line-height:1}.sidebar:not(.menu-open)>.nav-item,.sidebar:not(.menu-open)>.sidebar-bottom,.sidebar:not(.menu-open)>.eyebrow{display:none}.sidebar.menu-open>.nav-item{grid-column:auto}.sidebar.menu-open>.eyebrow,.sidebar.menu-open>.sidebar-bottom{grid-column:1/-1}.sidebar.menu-open{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar.menu-open>.mobile-menu-toggle{justify-self:end}.projects-grid{grid-template-columns:1fr}}

#login-message.confirmation-message{background:#dcebdc;border:2px solid #347448;color:#285c38;padding:16px 18px;margin:20px 0;font-size:14px;line-height:1.6}

.login-options{margin-top:26px}

.image-lightbox .image-stage{display:flex;align-items:center;justify-content:center;overflow:auto;flex:1;min-height:0;padding:20px;background:#454545}.image-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain}.image-stage img.image-expanded{max-width:none;max-height:none;object-fit:initial}.image-lightbox .pdf-header{flex-shrink:0}

#image-counter{min-width:110px;text-align:center;font-size:13px}.image-lightbox #image-message{margin:0;padding:10px 16px;font-size:13px}.image-lightbox #image-message:empty{display:none}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.workspace,.projects-grid,.summary-grid,.project-card,.summary-card{min-width:0}.project-card,.summary-card{overflow-wrap:anywhere}.card-bottom{flex-wrap:wrap;gap:12px}@media(max-width:640px){input,select,textarea{font-size:16px}.workspace{width:100%;max-width:100%;min-width:0}.projects-grid,.summary-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}.project-card,.summary-card{width:100%;min-width:0;max-width:100%;padding:22px}.project-card>*{min-width:0;max-width:100%}.project-heading{min-width:0}.sidebar{width:100%;min-width:0}.login-panel,.login-panel form{min-width:0}.file-info{max-width:100%}.file-actions{max-width:100%;flex-wrap:wrap}input[type=file]{max-width:100%}}

.project-heading h2,.project-heading p{overflow-wrap:anywhere}

.brand-panel{position:relative;isolation:isolate;background-image:url('../assets/interior-03-1920.webp')}.brand-panel::before{content:'';position:absolute;inset:0;z-index:-1;background-color:rgba(0,0,0,.8);background-image:radial-gradient(circle,rgba(255,255,255,.075) .55px,transparent .8px);background-size:4px 4px;pointer-events:none}@media(max-width:640px){.brand-panel::before{background-color:rgba(0,0,0,.55)}}


/* v1.13.6 — consistent icons and compact login */
.ui-arrow{display:inline-block;width:1em;height:1em;vertical-align:-.1em;flex-shrink:0}
.login-panel{justify-content:flex-start;gap:24px}
.login-panel form{margin:0 auto}
.login-panel .access-note{display:block;margin-top:12px;line-height:1.5}
.login-copyright{margin-top:auto;padding-top:20px;text-align:center;font-size:10px;line-height:1.5;color:#77776d}
@media(max-width:640px){
 .brand-panel{min-height:0;padding:20px 28px;gap:20px}
 .brand-panel img{width:170px}
 .brand-panel .eyebrow{margin-bottom:10px}
 .brand-panel h1{font-size:28px;line-height:1.1}
 .login-panel{min-height:0;padding:20px 28px 16px;gap:20px}
 .login-panel form{margin:0 auto;max-width:420px}
 .login-panel h2{font-size:30px;margin:10px 0}
 .login-panel form>p.muted{margin-bottom:16px;font-size:13px;line-height:1.5}
 .login-panel label{margin:12px 0;gap:6px}
 .login-panel input{padding:11px 12px;min-height:44px}
 .login-panel form>.primary{margin-top:12px;padding:13px 18px;min-height:44px}
 .login-options{margin-top:12px;gap:12px}
 .login-options button{min-height:36px;line-height:1.4}
 .login-panel .access-note{margin-top:6px}
 .login-copyright{padding-top:0}
}

/* v1.13.7 — centered mobile menu and shared project status */
.mobile-menu-toggle .menu-icon{display:flex;flex-direction:column;justify-content:center;gap:4px;width:18px;height:20px;flex:0 0 18px;font-size:0;line-height:0}
.menu-icon i{display:block;width:18px;height:2px;background:currentColor}
.mobile-menu-toggle>span:last-child{display:flex;align-items:center;line-height:20px}
.card-bottom .card-status{margin-left:0;align-self:center;min-width:0;min-height:0;padding:10px 14px;font-size:11px;line-height:1.2;text-transform:uppercase}

/* v1.13.8 — project card header and explicit open action */
.card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}
.card-top .card-status{margin:0;align-self:center;min-width:0;min-height:0;padding:10px 14px;font-size:11px;line-height:1.2;text-transform:uppercase}
.card-top .number{line-height:1}
.card-open{min-height:44px;gap:16px}
.card-open-arrow{display:inline-block;position:relative;width:14px;height:14px;flex:0 0 14px}
.card-open-arrow::before{content:'';position:absolute;top:1px;right:1px;width:10px;height:10px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.card-open-arrow::after{content:'';position:absolute;top:7px;left:0;width:16px;height:1.5px;background:currentColor;transform:rotate(-45deg)}


/* v1.13.9 — login arrow and project card action alignment */
.login-panel form>.primary .card-open-arrow{width:14px;height:14px;flex:0 0 14px}
.project-card .card-bottom{width:100%;justify-content:flex-end;align-items:flex-end;margin-top:auto}
.project-card .card-open{margin-left:auto}

/* v1.13.10 — open project button matches status badge scale */
.project-card .card-open{min-width:0;min-height:0;padding:10px 14px;font-size:11px;line-height:1.2;gap:8px}
.project-card .card-open-arrow{width:12px;height:12px;flex-basis:12px}
.project-card .card-open-arrow::before{width:8px;height:8px}
.project-card .card-open-arrow::after{top:6px;width:14px}

/* v1.13.11 — detalhes do projeto em grelha no mobile */
@media(max-width:640px){
  .project-details{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px 12px;
    width:100%;
  }
  .project-details>div,
  .project-details>div:nth-child(odd),
  .project-details>div:nth-child(3){
    min-width:0;
    padding:0;
    border:0;
  }
  .project-details dt{
    margin-bottom:4px;
    font-size:10px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .project-details dd,
  #project-process{
    margin:0;
    font-size:12px;
    line-height:1.35;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}


/* v1.13.12 — estados de projeto editáveis pela administração */
.project-status-badge.status-active,
.project-status-badge.status-completed,
.project-status-control.status-active,
.project-status-control.status-completed{border-color:#347448;background:#dcebdc;color:#285c38}
.project-status-badge.status-standby,
.project-status-control.status-standby{border-color:#c89d22;background:#f5e8ad;color:#765b0b}
.project-status-badge.status-cancelled,
.project-status-control.status-cancelled{border-color:#a74436;background:#f1d7d1;color:#7e2f25}
.project-status-badge.status-archived,
.project-status-control.status-archived{border-color:#77776d;background:#e6e5df;color:#55564e}
.project-status-control{margin-left:auto;align-self:stretch;min-width:156px;min-height:82px;border:2px solid #347448;border-radius:0;padding:20px 38px 20px 20px;font-size:12px;font-weight:600;letter-spacing:1.4px;white-space:nowrap;flex-shrink:0;text-align:center;text-align-last:center;cursor:pointer}
.project-status-control:disabled{opacity:.65;cursor:wait}
@media(max-width:640px){
  .project-status-control{min-width:120px;min-height:82px;padding:16px 30px 16px 14px;font-size:11px}
}


/* v1.13.12 — compact project status; clients read-only */
.project-heading .project-status-badge,
.project-heading .project-status-control{
  align-self:flex-start;
  min-width:0;
  min-height:0;
  width:auto;
  height:auto;
  margin-left:auto;
  padding:10px 14px;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:1.2px;
  white-space:nowrap;
}
.project-heading .project-status-control{padding-right:32px}
@media(max-width:640px){
  .project-heading .project-status-badge,
  .project-heading .project-status-control{
    min-width:0;
    min-height:0;
    padding:9px 12px;
    font-size:10px;
  }
  .project-heading .project-status-control{padding-right:28px}
}


/* Safari/iPhone: use the brand palette for native interaction states. */
:root{color-scheme:light;accent-color:#30362d}
body{-webkit-tap-highlight-color:rgba(48,54,45,.16)}
button,input,select,textarea{-webkit-text-fill-color:currentColor}
.primary{color:#fff}
input,textarea{caret-color:#30362d}
input:not([type=checkbox]):not([type=radio]),textarea{-webkit-appearance:none;appearance:none}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #59634d;outline-offset:-2px}
input:focus,select:focus,textarea:focus{outline:none;border-color:#59634d;box-shadow:inset 0 0 0 1px #59634d}
.pdf-header button:focus,.pdf-toolbar button:focus{outline-color:#f5f5f5}
::selection{background:#dce1d2;color:#292a25}

/* Mobile: project title and status share the top row. */
@media(max-width:640px){
  .project-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:16px 12px;
  }
  .project-heading>div:first-child{grid-column:1;grid-row:1;min-width:0}
  .project-heading h2{font-size:24px;line-height:1.2;margin:0}
  .project-heading .project-status-badge,
  .project-heading .project-status-control{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    align-self:start;
    max-width:100%;
    margin:0;
  }
  .project-heading .project-details{grid-column:1 / -1}
}


/* Shared footer across all authenticated views. */
.workspace{min-height:100svh;display:flex;flex-direction:column}
.workspace-copyright{flex-shrink:0;padding-top:32px}
@media(max-width:640px){.workspace{min-height:calc(100svh - 100px)}.workspace-copyright{padding-top:28px}}


/* v1.13.16 — compact status and mobile heading separator. */
.project-heading .project-status-badge{padding-left:8px;padding-right:8px}
.project-heading .project-status-control{padding-left:8px;padding-right:18px}
@media(max-width:640px){
  .project-heading .project-status-badge{padding-left:7px;padding-right:7px}
  .project-heading .project-status-control{padding-left:7px;padding-right:16px}
  .project-heading .project-details{
    border-top:1px solid #d6d3c9;
    padding-top:16px;
    margin-top:0;
  }
}


/* v1.15.1: pointer clicks do not display keyboard focus rings. */
button:focus:not(:focus-visible),a:focus:not(:focus-visible),summary:focus:not(:focus-visible){outline:none}

/* v1.15.3: um único rebordo de foco, sem anel exterior. */
.primary:focus-visible{outline-color:#fff}

#upload-form>.primary{margin-top:10px}#upload-form .file-picker{margin-bottom:0}#finance-tab{font-weight:700}.rename-project{display:inline-block;margin-top:10px;font-size:12px;text-decoration:underline}@media(max-width:640px){#project-upload-panel{gap:18px}#upload-form{width:100%;min-width:0;max-width:100%}#upload-form input[type=file]{width:100%;min-width:0;max-width:100%}#upload-form>.primary{width:100%;margin-top:10px}}

.rename-project{margin-top:3px;line-height:1.3}.project-heading h2{margin-bottom:0}.project-status-badge.status-active,.project-status-control.status-active{border-color:#c5a137;background:#fff2b8;color:#755d0a}.project-heading .project-status-control{appearance:none;-webkit-appearance:none;width:126px;padding:10px 26px 10px 10px;text-align:center;text-align-last:center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23615b39' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:10px 7px;background-position:right 10px center}.project-status-control option{text-align:center}.sidebar>.nav-item{align-items:center;min-height:46px}.sidebar>.nav-item>span{display:inline-flex;align-items:center;justify-content:center}.followup-panel>.eyebrow{margin-bottom:10px}.followup-panel>.eyebrow+h2{margin-top:0}@media(max-width:640px){.project-heading .project-status-control{width:118px;padding:9px 24px 9px 8px}.rename-project{margin-top:3px}.sidebar>.nav-item{min-height:42px}}

.project-status-badge.status-active,.project-status-control.status-active{border-color:#347448;background-color:#dcebdc;color:#285c38}.project-status-badge.status-completed,.project-status-control.status-completed{border-color:#b7b8b3;background-color:#eceee9;color:#555a51}

.client-actions{display:flex;flex-wrap:wrap;gap:10px}.client-actions button.client-action{display:inline-flex;align-items:center;justify-content:center;background:#eceee9;border:1px solid #cfd2ca;color:#30362d;padding:11px 15px;font-size:12px;line-height:1.4}.client-actions button.client-action:hover{background:#e1e4dd}.client-actions button.client-delete-action{color:#963b30}.client-delete-dialog{background:#faece9;border:2px solid #b64b3d;color:#71372e}.client-delete-dialog p{font-size:14px;line-height:1.6;margin-top:16px}.delete-client-name{font-weight:600;overflow-wrap:anywhere}.delete-client-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}.delete-client-actions .secondary{background:#eceee9;border:1px solid #cfd2ca;justify-content:center;font-size:13px}.delete-client-actions .delete-client-confirm{color:#963b30}@media(max-width:640px){.client-row{align-items:flex-start;flex-direction:column}.client-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.client-actions button.client-action{padding:10px 12px;text-align:center}}

.client-row .client-actions button.client-action{background:#eceee9;border:1px solid #cfd2ca;color:#30362d;padding:11px 15px}.client-row .client-actions button.client-delete-action{color:#963b30}

/* 1.24.37: center login within the available panel, including WebView2. */
#login-view .login-panel{display:grid;grid-template-rows:minmax(32px,1fr) auto minmax(32px,1fr);align-items:center;gap:24px;min-height:100svh;min-width:0;padding:40px clamp(24px,6vw,100px)}
#login-view .login-panel>.back{grid-row:1;align-self:start;justify-self:start}
#login-view .login-panel>#login-form{grid-row:2;width:100%;max-width:380px;min-width:0;margin:0 auto}
#login-view .login-panel>.login-copyright{grid-row:3;align-self:end;margin:0;padding:0}
@media(max-width:640px){#login-view .brand-panel{display:none}#login-view{grid-template-columns:minmax(0,1fr)}#login-view .login-panel{padding:24px;gap:20px}}
/* 1.24.39: center within the original right-hand panel. */
#login-view>.login-panel{grid-template-columns:minmax(0,1fr)}
@media(min-width:641px){#login-view{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#login-view>.brand-panel{display:flex}}