@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
/* Production layout taken from the supplied 375px prototype. */
body[data-portal]{--forest:#0c2e20;--mint:#83ffb9;--paper:#fbfbf9;--ink:#121212;--app-height:100dvh;background:#f3f2f0;color:var(--ink);margin:0;overflow:hidden}
body[data-portal],body[data-portal] *{font-family:Ubuntu,Arial,sans-serif!important;box-sizing:border-box}
body[data-portal] [hidden]{display:none!important}
body[data-portal] button,body[data-portal] a{touch-action:manipulation}
body[data-portal] button:focus-visible,body[data-portal] a:focus-visible{outline:2px solid #02c157;outline-offset:2px}
body[data-portal] .portal{position:relative;display:flex;flex-direction:column;width:min(375px,100%);max-width:375px;height:var(--app-height);min-height:0;margin:0 auto;overflow:hidden;background:var(--paper);font-size:13px}
body[data-portal] .portal-top{position:relative;display:flex;flex:0 0 48px;height:48px;align-items:center;justify-content:space-between;padding:0 12px;background:#fff;border:0;border-bottom:1px solid #0000000f;gap:8px}
body[data-portal] .portal-top img{display:block;visibility:visible;width:114px;max-width:60%;height:auto}
body[data-portal] .portal-back{display:none}
body[data-portal] .portal-home{display:grid;place-items:center;padding:6px;margin:0;width:28px;height:28px;border:0;border-radius:50%;background:#121212;color:#fff}
body[data-portal] .portal-home svg{width:16px;height:16px}.portal-home:before{display:none!important}
body[data-portal] #portalStatus{flex:none;margin:0;padding:4px 12px;font-size:12px;line-height:1.3;background:#fff}
body[data-portal]:has(#dashboard:not([hidden])) #portalStatus:not(.error){display:none}
body[data-portal] #portalStatus.error{color:#a32323;background:#fff0f0;max-height:90px;overflow:auto}
body[data-portal] .staff-dashboard{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px 12px 14px;overflow-y:auto;overscroll-behavior:contain}
body[data-portal] .staff-head{display:flex;flex:none;min-height:32px;gap:8px;align-items:center;justify-content:space-between;margin:0;padding:0}
body[data-portal] .staff-head>div:first-child{min-width:0}
body[data-portal] .staff-head small,body[data-portal] .staff-head p{display:none}
body[data-portal] .staff-head h1{font-size:18px;font-weight:700;line-height:1.15;letter-spacing:-.5px;margin:0;color:var(--ink)}
body[data-portal] .profile-header-actions{display:flex;gap:8px;flex-wrap:nowrap;flex:none}
body[data-portal] .profile-menu-button{display:grid;place-items:center;border:1px solid #0000001a;border-radius:50%;width:32px;min-width:32px;height:32px;padding:0;background:#e8f5ed;color:var(--forest);overflow:hidden;font-size:10px}
body[data-portal] .profile-menu-button img{width:100%;height:100%;object-fit:cover}
body[data-portal] .profile-menu-button>span:last-child{display:none}
body[data-portal] .profile-menu-button>span:first-child:not(:last-child){display:block}
body[data-portal] .overview-task-bell{display:grid;place-items:center;width:32px;height:32px;padding:0;background:#f1f1f1;color:#121212;border:0;border-radius:50%}
.overview-task-bell svg{width:14px;height:14px;fill:currentColor}
body[data-portal] .overview-create-task{display:flex;flex:none;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:10px 12px;margin:0;background:#121212;color:#fff;border:0;border-radius:12px;font-size:13px;font-weight:500;text-align:left;box-shadow:none}
.overview-create-task>span:last-child{display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:50%;background:#fff;color:#000;font-size:18px;line-height:1}
body[data-portal] .portal-main-nav{display:flex;flex:none;gap:6px;overflow-x:auto;padding:0 0 4px;margin:0;background:transparent;scrollbar-width:thin;min-height:32px}
body[data-portal] .portal-main-nav button{flex:0 0 auto;min-height:28px;padding:5px 10px;border:1px solid #0000001a;border-radius:24px;background:#fff;color:#6b7280;font-size:12px;font-weight:500;white-space:nowrap}
body[data-portal] .portal-main-nav button[aria-pressed=true]{background:var(--mint);border-color:transparent;color:#121212}
/* Full dashboard, at the same small scale as the reference. */
body[data-portal] .overview-cards{display:flex;flex:none;flex-direction:column;gap:10px;min-height:0;margin:0}
.overview-project-wrap{position:relative}
body[data-portal] .overview-project{position:relative;display:flex;flex-direction:column;gap:4px;align-items:flex-start;justify-content:flex-start;width:100%;height:90px;padding:12px;border:0;border-radius:14px;background:var(--forest);color:#fff;text-align:left;overflow:hidden}
.overview-project:after{content:'';position:absolute;right:0;top:0;bottom:0;width:46%;background:#02c157;opacity:.16;clip-path:polygon(20% 0,100% 0,100% 100%,0 100%)}
.overview-project:before{content:'';position:absolute;left:12px;bottom:12px;width:18px;height:4px;border-radius:4px;background:var(--mint);box-shadow:23px 0 #ffffff33,46px 0 #ffffff33,69px 0 #ffffff33}
.overview-project strong{font-size:18px;line-height:1.15;letter-spacing:-.3px;font-weight:700}
.overview-date{font-size:11px;color:#ffffff99}
.overview-plus{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#fff;color:#121212;font-size:22px;line-height:1;cursor:pointer}
.overview-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
.overview-people-column{min-width:0}.overview-people-column>h2{display:none}
.overview-login-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:110px;height:100%;padding:10px;border:1px solid #0000001a;border-radius:14px;background:#fff}
.overview-login-card .overview-plus{width:18px;height:18px;top:10px;right:10px;background:#121212;color:#fff;font-size:16px}
.overview-staff-count{display:flex;flex-direction:column;gap:17px;width:100%;padding:0;border:0;background:none;text-align:left;color:var(--ink)}
.overview-staff-count>span{padding-right:20px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#777}
.overview-staff-count strong{font-size:15px;line-height:1}
.overview-client-count{display:flex;gap:5px;align-items:center;min-height:24px;margin-top:8px;padding:4px 8px;border:0;border-radius:24px;background:var(--forest);color:#fff}
.overview-client-count strong{font-size:10px}.overview-client-count>span{display:grid;place-items:center;width:14px;height:14px;background:var(--mint);color:var(--forest);border-radius:50%;font-size:12px}
.overview-finance{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:110px;padding:10px;border-radius:14px;background:#202020;color:#fff}
.overview-target-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:0;border:0;background:none;color:var(--mint);text-align:left;cursor:pointer}
.overview-target-card>span:first-child{font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:#ffffff88}
.overview-target-card strong{font-size:20px;line-height:1.15;overflow-wrap:anywhere}
.overview-target-card .target-month{font-size:10px;color:#ffffff99}.target-edit{display:none}
.overview-sales{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:4px;font-size:11px;line-height:1.2}.overview-sales strong{font-size:11px}.overview-sales span{font-size:10px;color:#ffffff99}
.overview-dashboard-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
.overview-dashboard-tabs button{flex:none;min-height:26px;padding:5px 10px;border:1px solid #0000001a;border-radius:24px;background:#fff;color:#666;font-size:11px;font-weight:500}
.overview-dashboard-tabs button:first-child{background:#121212;color:white;border-color:#121212}
.overview-shortcuts{display:flex;flex-direction:column;border:1px solid #0000001a;border-radius:14px;overflow:hidden}
.overview-account-row{display:flex;align-items:center;justify-content:space-between;min-height:38px;width:100%;border:0;border-top:1px solid #0000001a;padding:10px 12px;text-align:left;font-size:12px;color:#121212;background:#f5f5f3}
.overview-account-row:first-child{border-top:0;background:white;font-weight:700}.overview-account-row:nth-child(2){background:var(--mint);font-weight:700}.overview-account-row:nth-child(4){background:#d9f0e3}
.overview-purchase{padding:10px 12px;background:#edebe7;border-radius:10px;font-size:11px}.overview-purchase summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer}.overview-purchase strong{font-size:11px}.overview-purchase button{background:var(--forest);color:white;border:0;border-radius:8px;padding:8px;font-size:12px}
/* Bottom navigation remains reachable independently of page content. */
.portal-bottom-nav{display:flex;flex:0 0 64px;min-height:64px;align-items:center;justify-content:space-between;gap:8px;padding:6px 20px;background:#fff;border-top:1px solid #0000001a;z-index:3}
.portal-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px 8px;border:0;border-radius:10px;background:none;color:#858585;font-size:10px;font-weight:500;cursor:pointer}
.portal-bottom-nav svg{width:28px;height:28px;padding:4px;border-radius:50%}.portal-bottom-nav button[aria-current=page]{color:#121212}.portal-bottom-nav button[aria-current=page] svg{background:var(--forest);color:#fff}
body[data-portal]:not(:has(#dashboard:not([hidden]))) .portal>.portal-bottom-nav{display:none}
/* Login. */
body[data-portal] #loginView{display:flex;flex:1;min-height:0;flex-direction:column;padding:0;overflow:auto;background:#fff}
body[data-portal]:has(#loginView:not([hidden])) .portal-top{background:var(--forest);border:0}
body[data-portal]:has(#loginView:not([hidden])) .portal-top img{filter:brightness(0) invert(1)}
.login-hero{position:relative;display:flex;flex:none;height:220px;align-items:center;justify-content:center;flex-direction:column;gap:12px;overflow:hidden;background:var(--forest)}
.login-hero:before{content:'';position:absolute;inset:0;background:#02c157;opacity:.13;clip-path:polygon(0 26%,100% 0,100% 42%,0 70%)}
.login-worker{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#102e22;border:1px solid #ffffff1a;box-shadow:0 12px 24px #00000055;font-size:36px;z-index:1}
.login-hero>span{z-index:1;color:#ffffff99;font-size:9px;text-transform:uppercase;letter-spacing:1.6px}
.login-brand-mark{position:absolute;bottom:22px;right:16px;width:32px;height:32px;border-radius:50%}
body[data-portal] #loginForm{display:flex;flex:1;flex-direction:column;position:relative;width:100%;max-width:none;min-height:375px;margin:-14px 0 0;padding:16px 16px 12px;border:0;border-radius:20px 20px 0 0;background:white;box-shadow:none;text-align:left}
#loginForm>small{display:none}
body[data-portal] #loginForm h1{order:0;font-size:20px;letter-spacing:-.6px;line-height:1.1;margin:0 0 14px;color:#121212;font-weight:700}
body[data-portal] #loginForm label{font-size:10px;letter-spacing:.8px;text-transform:uppercase;line-height:1.2;margin:0 2px 5px;color:#777;font-weight:700}
body[data-portal] #loginForm input{flex:none;min-height:40px;height:40px;border:1px solid transparent;border-radius:12px;padding:0 12px;font-size:13px;background:#ededed;color:#121212;margin-bottom:12px}
body[data-portal] #loginForm #loginPassword{background:#e8f5ed}
body[data-portal] #loginSubmit{order:6;flex:none;width:128px;min-height:38px;margin:4px auto 0;padding:8px;border:0;border-radius:24px;background:var(--mint);color:#121212;font-size:13px;font-weight:700}
body[data-portal] #loginForm>p{order:7;margin:12px 0;font-size:11px;text-align:center;line-height:1.4;color:#6b7280}
body[data-portal] #resetPassword{order:8;min-height:28px;background:none;border:0;color:#666;width:auto;margin:0 auto;padding:5px;font-size:11px}
body[data-portal] #loginForm .support{order:9;display:block;text-align:center;align-self:center;padding-top:28px;margin:auto auto 0;background:url('/assets/customer-connect-logo.webp') center top/110px auto no-repeat;color:#777;font-size:10px;text-decoration:none;min-height:42px}
body[data-portal] #confirmHelp{margin:8px 12px;min-height:200px;flex:none}
/* Projects: fixed tools, scrolling list, compact cards. */
.project-scroll{display:none}
body[data-portal][data-view=projects] .portal-top{background:var(--mint);border:0}
body[data-portal][data-view=projects] .staff-dashboard{padding:0 12px;gap:0;overflow:hidden;background:#fdfcfb}
body[data-portal][data-view=projects] .staff-head{padding:10px 12px;margin:0 -12px;background:var(--mint);min-height:42px}
body[data-portal][data-view=projects] .staff-head h1{font-size:20px}
body[data-portal][data-view=projects] .profile-header-actions{display:none}
body[data-portal][data-view=projects] .overview-create-task{border:10px solid var(--mint);border-top:0;box-sizing:content-box;width:calc(100% - 24px);margin:0 -12px;padding:10px 12px;min-height:20px;border-radius:0 0 16px 16px}
body[data-portal][data-view=projects] .portal-main-nav{display:none}
body[data-portal][data-view=projects] .project-status-tabs{display:none}
.project-tools{flex:none;display:flex;flex-direction:column;gap:10px;padding:10px 0 12px}
.project-tools input{width:100%;min-height:36px;border:0;border-radius:24px;padding:8px 12px;font-size:13px;background:#f0f0f0;color:#121212}
.project-date-filters{display:flex;gap:6px}.project-date-filters select{min-width:0;flex:1;min-height:28px;padding:4px 8px;border:1px solid #00000026;border-radius:24px;background:#fff;color:#555;font-size:11px}.project-date-filters select:first-child{flex:1.25;background:var(--forest);color:#fff}
body[data-portal][data-view=projects] .project-scroll{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:14px}
body[data-portal] .project-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
body[data-portal] .project-card{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:10px;align-items:center;padding:10px;border:1px solid #0000001a;border-radius:14px;background:#fff;box-shadow:none;min-height:0}
body[data-portal] .project-folder{display:grid;grid-template-columns:44px minmax(0,1fr);grid-column:1;gap:10px;width:100%;height:auto;min-height:44px;padding:0;background:none;border:0;border-radius:0;text-align:left;align-items:center;color:#121212}
body[data-portal] .project-folder b{font-size:14px;line-height:1.15;font-weight:700;overflow-wrap:anywhere}
body[data-portal] .project-folder small{font-size:12px;color:#6b7280;line-height:1.25;text-transform:none;letter-spacing:0;margin:2px 0 0;font-weight:400;overflow-wrap:anywhere}
body[data-portal] .project-folder i{display:none}
body[data-portal] .project-cover,body[data-portal] .folder-icon{width:44px;height:44px;min-width:44px;border-radius:50%;object-fit:cover;background:#e8f5ed}
body[data-portal] .project-call{position:static;grid-column:2;grid-row:1;width:28px;height:28px;min-width:28px;padding:6px;transform:none;background:#02c157;box-shadow:none;border-radius:50%}
body[data-portal] .project-call svg{width:14px;height:14px}
.project-quick-actions{grid-column:1/-1;display:flex;gap:6px;margin:0;flex-wrap:wrap}
.project-quick-actions button{min-height:28px;flex:1;padding:5px 8px;border:1px solid var(--mint);border-radius:24px;background:var(--forest);color:#fff;font-size:11px;font-weight:500;white-space:nowrap}
.project-quick-actions button:first-child{border-color:#00000026;background:white;color:#121212}
/* Profile uses the same shell and navigation. */
body[data-portal] .profile-dialog{width:min(375px,100vw);max-width:375px;height:var(--app-height);max-height:var(--app-height);margin:0 auto;inset:0;padding:0;border:0;border-radius:0;background:#fff;color:#121212;overflow-y:auto}
.profile-dialog[open]{display:flex;flex-direction:column}
.profile-top{display:flex;flex:none;align-items:center;gap:8px;height:48px;padding:0 12px;background:var(--forest);color:white}
.profile-top img{width:114px;height:auto;filter:brightness(0) invert(1)}.profile-top>button{display:none}.profile-top>a{margin-left:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:white;color:#121212;text-decoration:none;font-size:22px;line-height:1}
.profile-banner{position:relative;flex:none;padding:2px 12px 14px;background:var(--forest);color:white}
.profile-banner h2{font-size:20px;font-weight:700;margin:0;line-height:1.15;color:white}
.profile-banner p{display:inline-block;margin:8px 0 0;background:#121212;color:white;border-radius:24px;padding:5px 8px;font-size:10px}
.profile-banner-edit{position:absolute;right:12px;bottom:14px;border:0;border-radius:50%;width:22px;height:22px;padding:0;background:var(--mint);color:var(--forest);font-size:18px;cursor:pointer}
.profile-identity{position:relative;flex:none;text-align:center;padding:14px 12px 16px}
body[data-portal] .profile-portrait{display:grid;place-items:center;width:64px;height:64px;margin:0 auto;border:2px solid white;border-radius:50%;overflow:hidden;background:#e8f5ed;color:var(--forest);font-size:18px;font-weight:700;box-shadow:0 8px 20px #0000001f}
.profile-portrait img{width:100%;height:100%;object-fit:cover}
.profile-identity>button{position:absolute;top:60px;left:calc(50% + 12px);width:20px;height:20px;padding:0;border:1.5px solid white;border-radius:50%;background:var(--mint);font-size:12px;color:#121212}
.profile-identity h2{margin:8px 0 2px;font-size:16px;font-weight:700;line-height:1.2;color:#121212}.profile-identity p{margin:0;font-size:12px;color:#6b7280}
.profile-settings{flex:none}.profile-settings h3{display:flex;align-items:center;min-height:28px;padding:6px 12px;margin:0;background:#f5f5f3;color:#777;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1px}
.profile-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:12px;border:0;border-bottom:1px solid #0000001a;background:white;color:#121212;font-size:13px;font-weight:500;text-decoration:none;text-align:left;cursor:pointer}
.profile-setting[role=switch]:after{content:'';width:36px;height:22px;border-radius:22px;background:radial-gradient(circle at 11px 11px,white 0 8px,transparent 9px),#121212}
.profile-setting[aria-checked=true]:after{background:radial-gradient(circle at 25px 11px,white 0 8px,transparent 9px),#02c157}
.profile-footer{flex:none;padding:12px;margin:14px 12px;border-radius:14px;background:#f6f5f3;text-align:left}
.profile-footer>img{display:block;width:110px;height:auto}.profile-footer .profile-support{display:block;font-size:11px;color:#666;margin:8px 0;text-decoration:none}.profile-footer #logout{font-size:12px;padding:8px 12px;margin:4px 0 0;border:0;border-radius:20px;background:var(--forest);color:white}
.profile-dialog>.portal-bottom-nav{position:sticky;bottom:0;margin-top:auto;width:100%}
.profile-dialog>p{margin:0 12px;font-size:12px}.profile-dialog>p:empty{display:none}
/* Keep all existing live editors, dialogs and permissions. */
body[data-portal] dialog:not(.profile-dialog){width:min(351px,calc(100vw - 24px));max-height:calc(var(--app-height) - 24px);font-size:13px;overflow:auto}
.overview-dialog,.profile-edit-dialog{padding:18px;background:#fff;color:#121212;border-radius:16px}
.overview-dialog h2,.profile-edit-dialog h2{font-size:18px}.overview-dialog button,.profile-edit-dialog button{border:0;border-radius:8px;background:var(--forest);color:#fff;padding:10px 12px;margin:6px 0;font-size:13px}
.overview-dialog label,.overview-dialog input,.profile-edit-dialog label,.profile-edit-dialog input{display:block;width:100%}.overview-dialog input,.profile-edit-dialog input{border:1px solid #ccc;border-radius:8px;min-height:40px;padding:8px;margin:6px 0 12px;font-size:16px}
.overview-dialog-close{float:right}.overview-invoice-project{display:block;width:100%;text-align:left}.profile-edit-dialog dl{display:grid;grid-template-columns:1fr 1fr;font-size:12px;overflow-wrap:anywhere}.profile-edit-dialog dd{margin:0}
body[data-portal] #adminArea{margin-top:16px}body[data-portal] #adminArea h2{font-size:18px}body[data-portal] #adminArea>details{padding:12px;margin:8px 0}body[data-portal] #adminArea summary{font-size:14px}
body[data-portal].portal-dark{--paper:#161d19;--ink:#f4f7f5}.portal-dark .staff-dashboard,.portal-dark .portal{background:var(--paper)}.portal-dark .staff-head h1{color:var(--ink)}
@media(min-width:600px){body[data-portal]{--app-height:min(812px,calc(100dvh - 32px));padding:16px 0}body[data-portal] .portal,body[data-portal] .profile-dialog{border:7px solid #0a0a0a;border-radius:32px;box-shadow:0 28px 80px -12px #00000073}body[data-portal] .profile-dialog{margin:auto}}
@media(max-height:700px){.login-hero{height:150px}body[data-portal] #loginForm{min-height:350px}}
/* Explicitly supersede older editor rules that also target profile buttons. */
body[data-portal] .project-card.has-call>.project-folder{padding:0;height:auto}
body[data-portal] .profile-banner-edit{margin:0;padding:0;border-radius:50%;background:var(--mint);color:var(--forest)}
body[data-portal] .profile-identity>button{margin:0;padding:0;border:1.5px solid white;border-radius:50%;background:var(--mint);color:#121212}
body[data-portal] .profile-settings>.profile-setting{margin:0;border-radius:0;background:white;color:#121212;padding:12px;border-bottom:1px solid #0000001a}
body[data-portal] .portal-bottom-nav button{margin:0;padding:2px 8px;border:0;border-radius:10px;background:none;color:#858585}
body[data-portal] .portal-bottom-nav button[aria-current=page]{color:#121212}
body[data-portal] .profile-top>button{display:none}
body[data-portal] .project-call.unavailable{background:#d3ddd7;color:#75837a}
/* One phone-sized page for the project itself, including its folders. */
body[data-portal] #projectDialog{inset:0;width:min(375px,100vw);max-width:375px;height:var(--app-height);max-height:var(--app-height);margin:0 auto;border:0;border-radius:0;background:#fbfbf9;overflow-y:auto}
.project-app-top{display:flex;align-items:center;gap:10px;padding:0 12px;height:48px;min-height:48px;background:#fff;border-bottom:1px solid #00000012}
.project-app-top img{width:114px;height:auto}.project-app-top .portal-back{display:grid!important;place-items:center;padding:0;background:none;border:0;width:24px;height:28px;color:#121212}.project-app-top .portal-back svg{width:20px;height:20px}.project-app-top .portal-home{margin-left:auto!important}
body[data-portal] #projectDialog .dialog-head{padding:12px;gap:10px;position:static;background:#fff}
body[data-portal] #projectDialog .dialog-head h2{font-size:18px;line-height:1.2;overflow-wrap:anywhere}.folder-dialog-identity{min-width:0}.folder-dialog-identity>div{min-width:0}
body[data-portal] #projectDialog .dialog-head small{font-size:10px}body[data-portal] #projectDialog .dialog-head p{font-size:11px;margin:5px 0 0}
body[data-portal] #projectDialog .dialog-head>button{width:28px;height:28px;flex:none;font-size:20px}
body[data-portal] #projectDialog .dialog-cover{width:44px;height:44px;min-width:44px;border-radius:50%}
body[data-portal] #projectDialog .folder-toolbar{padding:10px 12px;display:flex;gap:6px;flex-wrap:wrap}
body[data-portal] #projectDialog .folder-toolbar button{font-size:11px;min-height:30px;padding:6px 9px;border-radius:20px}
body[data-portal] #projectValueSummary{font-size:12px;margin:10px 12px}
body[data-portal] #projectDialog .folder-browser{padding:12px}body[data-portal] #projectDialog .folder-browser-heading h3{font-size:16px}
body[data-portal] #projectDialog .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-portal] #projectDialog .category-folder{padding:10px;min-width:0;gap:7px;grid-template-columns:26px minmax(0,1fr);border-radius:12px}
body[data-portal] #projectDialog .category-folder .folder-icon{width:26px;min-width:26px;height:26px;font-size:15px;border-radius:8px}
body[data-portal] #projectDialog .category-folder b{font-size:12px;line-height:1.25;overflow-wrap:anywhere}body[data-portal] #projectDialog .category-folder small{font-size:10px;line-height:1.3}
body[data-portal] #projectDialog .project-editor{padding:10px 12px}body[data-portal] #projectDialog .photo-grid{padding:12px;gap:8px}
/* Blend the actual supplied wordmark into its surface without a white box. */
body[data-portal] .portal-top img,.project-app-top img,.profile-footer>img{mix-blend-mode:multiply;filter:none}
body[data-portal]:has(#loginView:not([hidden])) .portal-top img,.profile-top img{filter:grayscale(1) invert(1);mix-blend-mode:screen}
body[data-portal] .profile-top{background:var(--forest)}
/* Staff, clients and suppliers share project-card dimensions and alignment. */
body[data-portal] .supplier-list{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0}
body[data-portal] #staffSection,body[data-portal] #customerSection{display:flex;flex-direction:column;gap:8px}
body[data-portal] #staffSection h2,body[data-portal] #customerSection h2,body[data-portal] .supplier-section h2{font-size:20px;margin:4px 0 10px}
body[data-portal] .directory-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:10px;margin:0;border:1px solid #0000001a;border-radius:14px;background:white;color:#121212;overflow-wrap:anywhere}
.directory-head{display:flex;align-items:center;gap:10px;min-height:44px;min-width:0}.directory-text{flex:1;min-width:0}
body[data-portal] .directory-head h3{font-size:14px;font-weight:700;line-height:1.2;margin:0}.directory-head p{font-size:12px!important;color:#6b7280;margin:2px 0 0!important;line-height:1.25}
body[data-portal] .directory-avatar,body[data-portal] .directory-head .supplier-avatar{display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;border:0;border-radius:50%;object-fit:cover;background:#e8f5ed;color:var(--forest);font-size:12px;font-weight:700;overflow:hidden}.directory-avatar img{width:100%;height:100%;object-fit:cover}
body[data-portal] .directory-call{width:28px;height:28px;flex:none;border-radius:50%;background:#02c157;color:#fff;display:grid;place-items:center}.directory-call svg{width:14px;height:14px}
.directory-details{font-size:12px}.directory-details summary{cursor:pointer;font-size:11px;color:var(--forest)}body[data-portal] .directory-details p{font-size:12px;margin:6px 0}.directory-details a{font-size:12px}
.directory-actions,.directory-actions>.supplier-card-actions{display:flex;gap:6px;flex-wrap:wrap;width:100%;margin:0}
body[data-portal] .directory-card .directory-actions button{flex:1;min-height:28px;margin:0;padding:5px 8px;border:1px solid var(--mint);border-radius:24px;background:var(--forest);color:#fff;font-size:11px;font-weight:500}
body[data-portal] .directory-card .directory-actions button:first-child{background:white;color:#121212;border-color:#00000026}
.project-purchases{padding:0 12px 20px}.project-purchases h3{font-size:18px}.project-purchases label{display:block;font-size:12px;margin:10px 0}.project-purchases input{display:block;width:100%;min-width:0;min-height:40px;margin-top:5px;border:1px solid #ccd8d0;border-radius:10px;padding:8px;font-size:16px;background:white;color:#121212}.project-purchases form>button{width:100%;min-height:36px;background:var(--forest);color:white;border:0;border-radius:12px;font-size:13px}.project-purchases form>p{font-size:12px}
.purchase-list{display:grid;gap:8px;margin-top:14px}.purchase-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:12px;border:1px solid #0000001a;border-radius:12px;background:#fff;font-size:12px}.purchase-entry strong{overflow-wrap:anywhere}.purchase-entry time{grid-column:1/-1;color:#777;font-size:11px}
@media(min-width:600px){body[data-portal] #projectDialog{margin:auto;border:7px solid #0a0a0a;border-radius:32px;box-shadow:0 28px 80px -12px #00000073}}
body[data-portal]:is([data-view=staffs],[data-view=customers],[data-view=suppliers]) .portal-top{background:var(--mint);border:0}
body[data-portal]:is([data-view=staffs],[data-view=customers],[data-view=suppliers]) .staff-head{background:var(--mint);margin:-10px -12px 0;padding:10px 12px;border-radius:0 0 16px 16px;min-height:52px}
body[data-portal]:is([data-view=staffs],[data-view=customers],[data-view=suppliers]) .staff-head h1{font-size:20px}
body[data-portal]:is([data-view=staffs],[data-view=customers],[data-view=suppliers]) .portal-main-nav{display:none}
body[data-portal] .directory-details{border:0;padding:0;margin:0;border-radius:0}
body[data-portal] #staffSection>button,body[data-portal] #customerSection>button{display:block;width:100%;min-height:40px;padding:10px 12px;border:0;border-radius:12px;background:#121212;color:#fff;font-size:13px;text-align:left}
body[data-portal] .supplier-section{padding:0}
body[data-portal] .supplier-section>button{font-size:13px;min-height:36px;padding:8px 12px}
body[data-portal] .directory-card form{width:100%;min-width:0}body[data-portal] .directory-card form input{display:block;width:100%;min-width:0;border:1px solid #ccc;border-radius:8px;padding:8px;font-size:16px}
/* Account tools are revealed only when the dashboard heading is opened. */
body[data-portal] .overview-accounts{display:block;padding:0;margin:0;border:1px solid #0000001a;border-radius:14px;background:#fff;overflow:hidden}
.overview-accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:12px;font-size:12px;font-weight:700;color:#121212;cursor:pointer;list-style:none}
.overview-accounts-heading::-webkit-details-marker{display:none}
.overview-accounts-chevron{transition:transform .15s}.overview-accounts[open] .overview-accounts-chevron{transform:rotate(180deg)}
.overview-accounts:not([open])>.overview-account-items{display:none}
.overview-account-items>.overview-account-row:first-child{border-top:1px solid #0000001a;background:var(--mint);font-weight:700}
.overview-account-items>.overview-account-row:nth-child(2){background:#f5f5f3;font-weight:400}
.overview-account-items>.overview-account-row:nth-child(3){background:#d9f0e3}
.overview-account-items>.overview-account-row:nth-child(4){background:#f5f5f3}
/* Schedule progression follows a connected vertical timeline. */
body[data-portal] .schedule-panel{padding:16px 12px;background:#f1f7f4;font-size:13px}
body[data-portal] .schedule-heading h3{font-size:18px}body[data-portal] .schedule-heading select{width:auto;min-height:32px;padding:5px 10px;font-size:12px;border-radius:20px}
body[data-portal] .schedule-actions{gap:6px;margin:12px 0}body[data-portal] .schedule-actions button{font-size:11px;min-height:30px;padding:6px 9px}
.schedule-timeline{position:relative;margin:16px 0;padding-left:26px}
.schedule-timeline:before{content:'';position:absolute;top:28px;bottom:28px;left:7px;width:2px;background:#becdc5}
body[data-portal] .schedule-timeline>.schedule-group{position:relative;margin:0 0 14px;padding:0;border:0;border-radius:20px;background:#fff;color:#222}
.schedule-timeline>.schedule-group:before{content:'';position:absolute;top:26px;left:-24px;width:12px;height:12px;border:2px solid #f1f7f4;border-radius:50%;background:#aab0ae;z-index:1}
.schedule-timeline>.timeline-completed:before{background:#70aa94}.schedule-timeline>.timeline-in_progress:before{background:#ffc21c}.schedule-timeline>.timeline-blocked:before{background:#e28b42}
body[data-portal] .schedule-timeline summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:72px;padding:16px;list-style:none;font-size:14px;cursor:pointer}
.schedule-timeline summary::-webkit-details-marker{display:none}.timeline-summary{min-width:0}.timeline-summary>strong{font-size:15px}.timeline-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:#777;font-weight:400}.timeline-meta .schedule-state{padding:3px 6px;border-radius:5px;font-size:11px}
body[data-portal] .schedule-state.in_progress{background:#fff6db;color:#8b6114}body[data-portal] .schedule-state.completed{background:#e7f5ef;color:#24765a}.timeline-todo .timeline-summary>strong{color:#999}
.timeline-chevron{font-size:20px;color:#888}.schedule-group[open] .timeline-chevron{transform:rotate(180deg)}
body[data-portal] .schedule-timeline .schedule-task{padding:12px 16px;border-top:1px solid #edf2ef;border-bottom:0;font-size:12px}body[data-portal] .schedule-timeline .schedule-task>span{font-size:11px}
/* Icon-only purchase actions; form appears only after tapping plus. */
.purchase-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.purchase-heading h3{margin:12px 0}.purchase-heading-actions{display:flex;gap:8px}
body[data-portal] .purchase-icon{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:6px;border:0;border-radius:50%;background:var(--forest);color:white;flex:none;cursor:pointer}
.purchase-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body[data-portal] .purchase-editor{padding:12px;border:1px solid #dce9e2;border-radius:14px;background:white}
body[data-portal] .purchase-editor select{display:block;width:100%;min-width:0;min-height:40px;padding:8px;margin-top:5px;border:1px solid #ccd8d0;border-radius:10px;background:white;color:#121212;font-size:14px}
body[data-portal] .purchase-editor input[type=file]{font-size:12px;padding:10px;max-width:100%}.purchase-file-status{font-size:11px;color:#497260;overflow-wrap:anywhere}
body[data-portal] .purchase-editor button{margin:5px 0;padding:8px 12px;min-height:32px;border:0;border-radius:10px;font-size:12px;background:var(--forest);color:white}
.purchase-add-supplier{padding:10px;border-radius:12px;background:#edf8f1}.purchase-add-supplier button+button{margin-left:6px}
.purchase-entry>small{grid-column:1/-1;font-size:11px;color:#777}.purchase-entry .purchase-bill{border:0;border-radius:8px;background:#e8f5ee;color:var(--forest);font-size:11px;min-width:0;padding:8px;overflow-wrap:anywhere;text-align:left}.purchase-entry>.purchase-icon{justify-self:end}
/* Consistent back navigation and compact, live dashboard totals. */
body[data-portal] .portal-top .portal-back,body[data-portal] .profile-top>button{display:grid!important;place-items:center;flex:0 0 28px;width:28px;height:32px;padding:0;border:0;background:transparent;color:inherit;font-size:24px;line-height:1}
body[data-portal] .portal-top .portal-back svg{width:21px;height:21px}
body[data-portal] .portal-top{gap:8px}
body[data-portal] .overview-project{position:relative;min-height:112px;height:auto;padding-bottom:48px}
body[data-portal] .overview-project .overview-sales{position:absolute;right:12px;bottom:10px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;gap:2px;max-width:75%;margin:0;color:#fff;line-height:1.3;text-align:right}
body[data-portal] .overview-project .overview-sales strong{font-size:10px;font-weight:500;color:#cce5dc}
body[data-portal] .overview-project .overview-sales span{font-size:13px;font-weight:700;overflow-wrap:anywhere}
.overview-balance{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;color:white;font-size:11px;line-height:1.4}.overview-balance span{overflow-wrap:anywhere}
.overview-purchase-total{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.overview-purchase-total strong{text-align:right;overflow-wrap:anywhere}
body[data-portal] .portal-top{justify-content:flex-start}body[data-portal] .portal-top .portal-home{margin-left:auto}
/* Shared 48px brand bar and 94px page banner across Home, Projects and Profile. */
body[data-portal] :is(.portal-top,.profile-top,.project-app-top){height:48px;min-height:48px;flex:0 0 48px;box-sizing:border-box;padding:0 12px;gap:8px;align-items:center}
body[data-portal] :is(.portal-top,.profile-top,.project-app-top)>button:first-child{display:grid!important;place-items:center;flex:0 0 28px;width:28px;height:32px;padding:0;border:0;background:transparent;color:inherit}
body[data-portal] :is(.portal-top,.profile-top,.project-app-top)>button:first-child svg{width:21px;height:21px}
body[data-portal] .profile-top>a{width:28px;height:28px;padding:6px}.profile-top>a svg{width:16px;height:16px}
body[data-portal]:has(#loginView:not([hidden])) .portal-top{color:white}
body[data-portal] .portal-page-banner{display:flex;flex:none;flex-direction:column;justify-content:space-between;min-height:94px;padding:8px 12px 12px;margin:-10px -12px 0;gap:8px;border-radius:0 0 16px 16px;background:var(--paper)}
body[data-portal][data-view=projects] .portal-page-banner{margin:0 -12px;background:var(--mint)}
body[data-portal]:is([data-view=staffs],[data-view=customers],[data-view=suppliers]) .portal-page-banner{background:var(--mint)}
body[data-portal] .portal-page-banner .staff-head{margin:0;padding:0;min-height:28px;background:none;border-radius:0}
body[data-portal] .portal-page-banner .staff-head h1{font-size:20px;line-height:1.2}
body[data-portal] .portal-page-banner .overview-create-task{box-sizing:border-box;flex:none;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;margin:0;padding:8px 12px;border:0;border-radius:10px;background:#121212;color:white;font-size:14px;line-height:1.3}
body[data-portal] .profile-banner{display:flex;flex:none;flex-direction:column;justify-content:space-between;min-height:94px;padding:8px 12px 12px;gap:8px;border-radius:0 0 16px 16px}
body[data-portal] .profile-banner h2{min-height:28px;font-size:20px;line-height:1.2;margin:0}
body[data-portal] .profile-banner p{display:flex;align-items:center;min-height:38px;margin:0;padding:8px 42px 8px 12px;border-radius:10px;background:#121212;font-size:14px;line-height:1.3}
body[data-portal] .profile-banner-edit{bottom:20px;right:22px}
body[data-portal] .portal-bottom-nav{min-height:64px;flex-basis:64px;box-sizing:border-box}
/* Slightly larger Home dashboard type; destination views retain their compact sizing. */
body[data-portal][data-view=all] .portal-page-banner .staff-head h1{font-size:22px}
body[data-portal][data-view=all] .portal-main-nav button{font-size:13px}
body[data-portal][data-view=all] .overview-project>strong{font-size:22px}
body[data-portal][data-view=all] .overview-date{font-size:12px}
body[data-portal][data-view=all] .overview-staff-count strong{font-size:18px}
body[data-portal][data-view=all] .overview-client-count strong{font-size:12px}
body[data-portal][data-view=all] .overview-staff-count>span,body[data-portal][data-view=all] .overview-target-card>span:first-child{font-size:11px}
body[data-portal][data-view=all] .overview-target-card strong{font-size:22px}
body[data-portal][data-view=all] .target-month,body[data-portal][data-view=all] .overview-balance{font-size:12px}
body[data-portal][data-view=all] .overview-account-row,body[data-portal][data-view=all] .overview-accounts-heading,body[data-portal][data-view=all] .overview-purchase-total{font-size:14px}
/* Accounts payments and cash ledger share the compact portal page. */
.accounts-finance{flex:none;min-width:0;padding-bottom:16px;font-size:13px}
body[data-portal]:is([data-view=payments],[data-view=cash]) .portal-main-nav{display:none}
body[data-portal]:is([data-view=payments],[data-view=cash]) .portal-page-banner{background:var(--mint)}
body[data-portal]:is([data-view=payments],[data-view=cash]) .portal-top{background:var(--mint)}
.finance-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
body[data-portal] :is(.accounts-finance,.finance-dialog) button{font-size:13px;line-height:1.3;min-height:34px;margin:0;padding:7px 10px;border:1px solid #d4ded8;border-radius:9px;background:var(--forest);color:#fff}
.finance-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:12px;margin:10px 0;border:1px solid #dce4de;border-radius:12px;background:#fff;color:#14291e}
.finance-card>strong{font-size:14px;overflow-wrap:anywhere}.finance-card>b{font-size:14px;overflow-wrap:anywhere}.finance-card>small,.finance-card>p,.finance-card>.finance-actions{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.finance-card>button{justify-self:start}
.finance-note{font-size:12px;line-height:1.5;color:#5c6960}.finance-note:empty{display:none}
.finance-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
body[data-portal] :is(.finance-filters,.finance-dialog) label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:13px;text-align:left}
body[data-portal] :is(.finance-filters,.finance-dialog) :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:8px;border:1px solid #cdd8d0;border-radius:8px;font-size:14px;background:#fff;color:#14291e}
body[data-portal] .finance-dialog{padding:16px;background:#fbfbf9;color:#14291e}.finance-dialog h2{font-size:20px}.finance-dialog form>button{margin:6px 6px 0 0!important}.finance-dialog textarea{min-height:70px}
.cash-balance{display:flex;flex-direction:column;gap:8px;padding:18px 14px;background:var(--forest);color:white;border-radius:14px;margin:12px 0}.cash-balance strong{font-size:26px;overflow-wrap:anywhere}.cash-totals{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:13px}.cash-totals dd{margin:0;text-align:right}.cash-in{color:#097440}.cash-out{color:#8c392e}
.customer-payments{margin:8px 12px;padding:12px;background:#fff;border:1px solid #dce4de;border-radius:12px;font-size:13px}.customer-payments summary{font-weight:700;cursor:pointer;line-height:1.5}.customer-payments p{font-size:13px}.customer-payments label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:13px}.customer-payments input,.customer-payments select,.customer-payments textarea{width:100%;min-height:38px;padding:8px;font-size:14px;border:1px solid #cad8d0;border-radius:8px}.customer-payments button{min-height:34px;margin:5px 6px 0 0;padding:7px 10px;font-size:13px;border:0;border-radius:9px;background:#0c2e20;color:white}
/* Customer project card: image cover, overlapping profile and Location pill. */
body[data-portal] #projectDialog>.dialog-head{display:none}
body[data-portal] #projectDialog .schedule-countdown{isolation:auto;min-height:0;aspect-ratio:auto;width:calc(100% - 24px);margin:12px;border-radius:22px;background:white;overflow:hidden;color:#154e40;border:1px solid #dbe6df}
.customer-project-cover{position:relative;height:190px;overflow:hidden;border-radius:21px 21px 24px 24px;background:#155244}
.customer-project-cover>img{width:100%;height:100%;object-fit:cover;display:block}
.customer-project-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0002,#0007)}
.customer-days{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:20px;color:white;text-align:center}
body[data-portal] #projectDialog .customer-days strong{font-size:40px;line-height:1.1;letter-spacing:-1px;color:white}.customer-days small{font-size:14px;letter-spacing:1.2px;text-transform:uppercase}
.customer-project-identity{position:relative;padding:66px 18px 20px;min-height:150px}
.customer-project-avatar{position:absolute;top:-40px;left:18px;z-index:2;width:84px;height:84px;display:grid;place-items:center;border:5px solid white;border-radius:50%;background:#155244;color:white;font-size:24px;font-weight:700;overflow:hidden}.customer-project-avatar img{width:100%;height:100%;object-fit:cover}
body[data-portal] #projectDialog .customer-project-location{position:absolute;top:20px;right:18px;display:flex;align-items:center;justify-content:center;width:110px;min-height:36px;margin:0;padding:8px 15px;background:#155244;color:white;text-decoration:none;border:0;border-radius:24px;font-size:14px;line-height:1.2}.customer-project-location:disabled{opacity:.5}
.customer-project-identity h2{font-size:18px;line-height:1.3;margin:0 0 6px;color:#154e40;overflow-wrap:anywhere}.customer-project-identity p{font-size:13px;line-height:1.4;margin:4px 0;color:#63756c;overflow-wrap:anywhere}

body[data-portal] #projectDialog .schedule-countdown{height:auto;padding:0;display:block}
body[data-portal] #projectDialog .project-image-edit{position:absolute;z-index:3;display:grid;place-items:center;width:30px;height:30px;min-height:30px;margin:0;padding:0;border:2px solid white;border-radius:50%;background:#155244;color:white;font-size:23px;line-height:1;box-shadow:0 1px 5px #0002}
.cover-image-edit{top:12px;right:12px}.profile-image-edit{top:15px;left:80px}
.customer-project-identity .project-card-dates{margin-top:14px}.customer-project-identity .project-card-dates p{font-size:15px;color:#154e40;margin:7px 0}
body[data-portal] #projectDialog .project-card-call{display:inline-flex;align-items:center;gap:7px;margin-top:10px;color:#155244;text-decoration:none;font-size:13px;min-height:32px}.project-card-call svg{box-sizing:content-box;background:#155244;color:white;border-radius:50%;padding:8px}

.overview-purchase-total+ .overview-purchase-total{border-top:1px solid #d7ddd8;padding-top:12px;margin-top:12px}.overview-daily-subtotal{font-weight:700}.overview-purchase-total{gap:12px}.overview-purchase-total strong{text-align:right;overflow-wrap:anywhere}

body[data-portal] .project-search-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:8px;align-items:stretch;margin-bottom:10px}body[data-portal] .project-search-row input,body[data-portal] .project-search-row button{width:100%;min-width:0;height:38px;margin:0;padding:8px 10px;font-size:13px;border-radius:12px;border:1px solid #d5ddd7}body[data-portal] .project-search-row button{background:#155244;color:white}.project-date-filters[hidden]{display:none!important}.project-date-filters{flex-wrap:wrap}.project-date-filters select{flex:1 1 40%!important}.customer-payment-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px}.customer-payment-totals p:last-child{text-align:right;font-weight:700}.project-stage{color:#168454!important;font-weight:700}.staff-login-access{width:34px;min-height:34px!important;padding:7px!important}.directory-details label{display:flex;flex-direction:column;gap:6px;margin-top:14px}.directory-details select{width:100%;padding:8px;font:inherit}

body[data-portal] .portal-bottom-nav{gap:0;padding:6px 8px}body[data-portal] .portal-bottom-nav button{flex:1;min-width:0;padding:2px 3px;font-size:10px}.overview-staff-count small{display:block;font-size:11px;font-weight:400;color:#647267;margin-top:4px}.advance-payment-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}.advance-payment-summary>span{display:flex;flex-direction:column;gap:5px}.advance-payment-summary small{font-size:12px}.advance-payment-summary strong{font-size:15px}.payable-highlight{margin-left:auto;text-align:right;background:#dbffeb;color:#0b5136;border-radius:10px;padding:10px}.portal-data-panel{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-data-panel[hidden]{display:none}.portal-data-panel h2{grid-column:1/-1}.portal-data-panel button{padding:18px 10px;border:1px solid #d4ded8;border-radius:14px;background:#edf7f1;color:#154e40;font:inherit}body[data-view=accounts] .overview-project-wrap,body[data-view=accounts] .overview-pair{display:none}

body[data-view=accounts] .accounts-summary{display:block!important}.accounts-summary-toolbar{display:flex;justify-content:flex-end;margin:4px 0 10px}.accounts-summary-toolbar button{font-size:12px;padding:6px 12px;border:1px solid #b9cfc4;border-radius:16px;background:white;color:#145341}.accounts-summary-cards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.accounts-summary-cards button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px 12px;min-height:120px;border:0;border-radius:16px;text-align:left;background:#0d493b;color:white}.accounts-summary-cards .accounts-summary-expense{background:#d9ffe9;color:#123d2e}.accounts-summary-cards strong{font-size:18px;overflow-wrap:anywhere;max-width:100%}.accounts-summary-cards small{font-size:10px}.accounts-summary-filter{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.accounts-summary-filter[hidden]{display:none}.accounts-summary-filter label{font-size:12px;min-width:0}.accounts-summary-filter input{width:100%;min-width:0;box-sizing:border-box;padding:7px;font:inherit}.expense-breakdown{padding:12px 0}.expense-tabs{display:flex;gap:10px}.expense-tabs button{flex:1;padding:10px;border:1px solid #bed4c8;border-radius:14px}.expense-tabs button[aria-pressed=true]{background:#155244;color:white}
.overview-accounts[open]+.accounts-summary{display:block!important}

.technician-directory{padding:12px}.technician-directory>button,.technician-directory>select{padding:10px;margin:6px 0 12px;border:1px solid #cedbd2;border-radius:10px;font:inherit}.technician-directory>select{width:100%}.technician-directory>button{background:#155244;color:white}#projectPayments{padding:12px}

/* Current calendar period remains distinct from task progress. */
body[data-portal] .schedule-timeline>.schedule-group.timeline-current{background:#e5f7e9;box-shadow:inset 0 0 0 2px #0aaf59}
body[data-portal] .schedule-timeline>.schedule-group.timeline-current:before{background:#0aaf59;border-color:#e9fff1;box-shadow:0 0 0 3px #b7ebcc}
.timeline-current-label{display:inline-block;margin-top:7px;padding:3px 8px;border-radius:6px;background:#0aaf59;color:#fff;font-size:11px;font-weight:600}

.schedule-group.timeline-current>summary .schedule-state{display:none}

/* Original supplied artwork, with live amounts kept readable below it. */
body[data-portal] .accounts-summary-cards>button{position:relative;overflow:hidden;align-items:stretch;gap:5px;padding:0 0 14px;background:#000;color:#fff;border:1px solid #327d57;border-radius:18px;box-shadow:0 0 12px #20bb653b,0 0 26px #20bb651c;transition:box-shadow .2s,border-color .2s;cursor:pointer}
.accounts-summary-cards .accounts-card-art{display:block;order:-1;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:0}
.accounts-summary-cards>button>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-portal] .accounts-summary-cards>button>strong,body[data-portal] .accounts-summary-cards>button>small{margin:0 12px;color:#fff;text-align:center}
body[data-portal] .accounts-summary-cards>button>small{color:#c4e4cf}
body[data-portal] .accounts-summary-cards>button:hover,body[data-portal] .accounts-summary-cards>button:focus-visible{border-color:#44e890;box-shadow:0 0 16px #20bb6573,0 0 32px #20bb6533}

/* Match the visible folder sizes and remove the black surrounding canvas. */
body[data-portal] .accounts-summary-cards>button{overflow:visible;background:transparent;color:#123d2e;border:0;box-shadow:none;padding:0 0 12px;gap:7px}
.accounts-summary-cards .accounts-card-art{width:100%;height:auto;aspect-ratio:1;filter:drop-shadow(0 3px 5px #20bb6526)}
.accounts-card-art>svg{display:block;width:100%;height:100%;overflow:visible}
body[data-portal] .accounts-summary-cards>button>strong{color:#123d2e;margin:0 4px}
body[data-portal] .accounts-summary-cards>button>small{color:#53695d;margin:0 4px}
body[data-portal] .accounts-summary-cards>button:hover,body[data-portal] .accounts-summary-cards>button:focus-visible{box-shadow:none}

/* Approved matching transparent artwork uses its original colors and proportions. */
.accounts-summary-cards .accounts-card-art{aspect-ratio:800/750;filter:none}
.accounts-card-art>svg{overflow:hidden}

/* Compact equal-size folders with equal outer and middle spacing. */
body[data-portal] .accounts-summary-cards{grid-template-columns:repeat(2,minmax(0, min(36%, 180px)));justify-content:space-evenly;gap:0;align-items:start}
body[data-portal] .accounts-summary-cards>button{width:100%;min-width:0;min-height:0}

body[data-portal] #projectDialog .category-folder.project-art-folder{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:transparent;border:0;box-shadow:none;padding:6px;gap:5px;text-align:center}
.project-folder-art{display:block;width:min(100%,130px);aspect-ratio:1}
.project-folder-art svg{display:block;width:100%;height:100%;overflow:hidden}
body[data-portal] #projectDialog .project-art-folder b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-portal] #projectDialog .project-art-folder small{display:block;max-width:150px;color:#53695d;font-size:10px;line-height:1.4}

/* Compact horizontal reference cards with live labels and counts. */
body[data-portal] #projectDialog .category-folder.project-art-folder{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;justify-content:initial;gap:9px;padding:12px 10px;min-height:90px;background:#f0f9f4;border:1px solid #cee2d7;border-radius:16px;text-align:left}
body[data-portal] #projectDialog .project-art-folder .project-folder-art{width:48px;height:48px;aspect-ratio:1;border-radius:12px;overflow:hidden}
body[data-portal] #projectDialog .project-art-folder b{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block;color:#063f32;font-size:13px;line-height:1.3;margin-bottom:5px}
body[data-portal] #projectDialog .project-art-folder small{max-width:none;color:#16816a;font-size:10px;line-height:1.4}
@media(max-width:360px){body[data-portal] #projectDialog .category-folder.project-art-folder{grid-template-columns:36px minmax(0,1fr);gap:6px;padding:10px 7px}body[data-portal] #projectDialog .project-art-folder .project-folder-art{width:36px;height:36px}}

/* Real project cards stack vertically within the portal scroll area. */
body[data-portal] #projectGrid{display:block;height:340px;max-height:55dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 4px;isolation:isolate;scrollbar-width:thin}
body[data-portal] #projectGrid[hidden],body[data-portal] #projectGrid .project-card[hidden]{display:none!important}
body[data-portal] #projectGrid .project-card{position:sticky;top:8px;isolation:isolate;margin-bottom:16px;transform:none!important;transition:none;align-content:space-between;gap:10px;min-height:165px;padding:14px 12px 12px;border:0;border-radius:26px;background:linear-gradient(125deg,#065046,#087f59);color:white;box-shadow:0 8px 14px #073f2720}
body[data-portal] #projectGrid .project-card::before,body[data-portal] #projectGrid .project-card::after{content:none}
body[data-portal] #projectGrid .project-folder{grid-template-columns:44px minmax(0,1fr);gap:10px;color:white;align-items:start}
body[data-portal] #projectGrid .project-folder b{font-size:16px;line-height:1.25}
body[data-portal] #projectGrid .project-folder small{font-size:13px;line-height:1.4;color:#e2f5ec;margin-top:6px}
body[data-portal] #projectGrid .project-cover,body[data-portal] #projectGrid .folder-icon{width:44px;height:44px;min-width:44px;border:2px solid #baf3d9}
body[data-portal] #projectGrid .project-stage{display:inline-block;border:1px solid #b4e8d266;border-radius:20px;padding:3px 9px}
body[data-portal] #projectGrid .project-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body[data-portal] #projectGrid .project-quick-actions button{grid-column:auto;justify-self:stretch;width:100%;min-width:0;min-height:38px;padding:6px 2px;font-size:11px;border:1px solid #ffffff66;border-radius:12px;background:#ffffff18;color:white;box-shadow:none}
body[data-portal] #projectGrid .project-quick-actions button[data-action=view]{background:white;color:#083e30;border-color:white}
body[data-portal] #projectGrid .project-quick-actions button::after{content:none}
body[data-portal] #projectGrid .project-quick-actions button:only-child{grid-column:2}
.project-stack{padding-top:8px;position:relative}


body[data-portal] #projectGrid .project-folder{cursor:default}

/* Four deliberately distinct green cards; the exposed strips keep their colours. */
body[data-portal] #projectGrid .project-card:nth-child(4n+1){background:#073f32}
body[data-portal] #projectGrid .project-card:nth-child(4n+2){background:#247b45}
body[data-portal] #projectGrid .project-card:nth-child(4n+3){background:#596d23}
body[data-portal] #projectGrid .project-card:nth-child(4n){background:#9ae2b4;color:#073f32}
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-folder,
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-folder small{color:#073f32}
body[data-portal] #projectGrid .project-card .project-stage{color:inherit!important}
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-quick-actions button{color:#073f32;border-color:#21664480;background:#0a543212}
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-quick-actions button[data-action=view]{background:white}
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-stage{border-color:#21664480}


/* Stacked cards with separate lower-right sculpted project tab. */
body[data-portal] #projectGrid{max-height:none;padding:0 5px 0;scroll-padding-top:8px}
body[data-portal] #projectGrid .project-card{
 margin-bottom:40px;padding:14px 12px 46px;min-height:204px;border-radius:26px;overflow:visible;
 background-image:radial-gradient(ellipse at 12% 80%,#ffffff14,transparent 65%),linear-gradient(135deg,#ffffff08,transparent 48%,#00000010);
}
body[data-portal] #projectGrid .project-folder b{display:block;line-height:1.3;font-size:15px;overflow-wrap:anywhere}
body[data-portal] #projectGrid .project-folder small{font-size:12px;margin-top:5px}
body[data-portal] #projectGrid .project-cover,body[data-portal] #projectGrid .folder-icon{width:40px;height:40px;min-width:40px}
body[data-portal] #projectGrid .project-folder{grid-template-columns:40px minmax(0,1fr);gap:10px}
body[data-portal] #projectGrid .project-card::after{
 content:"";position:absolute;right:5%;bottom:-1px;width:58%;height:36px;
 background:var(--paper);pointer-events:none;z-index:0;border-radius:0;
 /* Both shoulders turn smoothly from the bottom edge into the inset. */
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40C15 40 20 35 22 23C24 8 33 0 49 0H191C207 0 216 8 218 23C220 35 225 40 240 40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40C15 40 20 35 22 23C24 8 33 0 49 0H191C207 0 216 8 218 23C220 35 225 40 240 40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
body[data-portal] #projectGrid .project-quick-actions{
 position:static;grid-column:1/-1;display:flex;align-items:center;
 gap:8px;padding:0;margin:0;min-height:34px;z-index:auto;
}
body[data-portal] #projectGrid .project-quick-actions button[data-action=task],
body[data-portal] #projectGrid .project-quick-actions button[data-action=files]{
 position:relative;inset:auto;box-sizing:border-box;flex:0 1 78px;width:78px;height:34px;min-height:34px;
 margin:0;padding:4px;display:flex;align-items:center;justify-content:center;
 font-size:12px;line-height:1.2;white-space:nowrap;border-radius:13px;
}
body[data-portal] #projectGrid .project-quick-actions button[data-action=view]{
 position:absolute;right:11%;bottom:-16px;z-index:2;width:46%;height:46px;min-height:46px;
 box-sizing:border-box;margin:0;padding:6px 8px;display:flex;align-items:center;justify-content:center;gap:8px;
 border-radius:18px;transform:none;font-size:14px;line-height:1.2;white-space:nowrap;
 background:linear-gradient(180deg,#fff 0%,#fff 65%,#f0f2ee 100%);color:#102b20;
 border:1px solid #bec6b9;font-weight:600;
 box-shadow:0 -2px 0 2px #fff,0 -4px 0 3px #d9dfd4,0 2px 0 1px #fff,0 4px 0 1px #c5ccbf,0 9px 12px -3px #12221940,inset 0 2px 1px #fff,inset 0 -2px 2px #dfe5db;
}
body[data-portal] #projectGrid .project-card:nth-child(4n) .project-quick-actions button[data-action=view]{background:linear-gradient(180deg,#fff,#f0f2ee);color:#102b20;border-color:#bfc7bc}
body[data-portal] #projectGrid .project-quick-actions button[data-action=view]::after{content:"↗";font-size:21px;font-weight:400;line-height:1}
body[data-portal] #projectGrid .project-quick-actions button[data-action=view]:active{transform:translateY(2px);box-shadow:0 -2px 0 2px #fff,0 3px 5px #12221930,inset 0 1px 2px #ccd3c9}
body[data-portal] #projectGrid .project-quick-actions button:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* Slightly tighter project cards, preserving the sculpted tab clearance. */
body[data-portal] #projectGrid .project-card{min-height:186px;padding-top:12px;padding-bottom:42px;gap:7px}
body[data-portal] #projectGrid .project-folder small{margin-top:3px;line-height:1.3}
body[data-portal] #projectGrid .project-quick-actions button[data-action=task],body[data-portal] #projectGrid .project-quick-actions button[data-action=files]{height:32px;min-height:32px}
