/* Approved ivory/green project overview; the rest of the application keeps its existing theme. */
.modal-back:has(>.ps-project){padding:0;background:#faf9f5;align-items:stretch}
.modal-back .modal.ps-project{--ps-green:#104c3e;--ps-gold:#af8d51;--ps-line:#dedfd9;--ps-muted:#6d726e;display:flex;flex-direction:column;width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;margin:0;padding:0!important;background:#faf9f5;color:#131e24;overflow:hidden;box-shadow:none;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.ps-project button,.ps-project summary{-webkit-tap-highlight-color:transparent}.ps-project button:focus-visible,.ps-project summary:focus-visible{outline:3px solid #b29356;outline-offset:2px}.ps-project .ui-icon{width:24px;height:24px;flex-shrink:0}
.ps-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 10px;min-height:62px;flex-shrink:0;background:#faf9f5}.ps-topbar>strong{flex:1;color:var(--ps-green);font-size:21px;letter-spacing:-.6px;line-height:1.15}.ps-icon-button,.ps-menu>summary{display:grid;place-items:center;min-width:40px;height:40px;background:none;border:0;color:#4f5351;padding:8px;border-radius:6px}.ps-back .ui-icon{transform:rotate(180deg)}[dir=rtl] .ps-back .ui-icon{transform:none}.ps-menu{position:relative}.ps-menu>summary{list-style:none;cursor:pointer}.ps-menu>summary::-webkit-details-marker{display:none}.ps-menu>div{position:absolute;inset-inline-end:0;top:43px;z-index:5;background:#faf9f5;border:1px solid var(--ps-line);min-width:190px;box-shadow:0 6px 18px #123e3017;padding:5px}.ps-menu button{display:block;width:100%;text-align:start;min-height:44px;border:0;background:none;color:var(--ps-green);padding:10px}
.ps-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 21px 14px;scrollbar-width:thin}.ps-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 15px}.ps-heading>div{min-width:0}.ps-project .ps-heading h2{margin:0 0 5px;font-size:27px;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere;font-weight:750}.ps-heading p{margin:0;color:#636966;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.ps-status{background:#e0efdf;color:var(--ps-green);white-space:nowrap;font-size:11px;font-weight:650;padding:5px 10px;border-radius:20px;line-height:1.3;margin-top:3px}.ps-status-paused{background:#f5ead4;color:#865b20}.ps-status-cancelled,.ps-status-archived{background:#e7e7e2;color:#686c69}
.ps-tabs{display:flex;border-bottom:1px solid var(--ps-line);margin:0 0 19px;gap:8px}.ps-tabs button{flex:1;border:0;background:none;color:#656b68;padding:7px 0 12px;font-size:14px;text-align:start;white-space:nowrap;min-height:44px;position:relative}.ps-tabs button[aria-pressed=true]{color:var(--ps-green);font-weight:750}.ps-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:0;inset-inline:0;height:2px;background:var(--ps-green);border-radius:2px}.ps-project h3{margin:0;font-size:19px;line-height:1.3;letter-spacing:-.35px;font-weight:750}
.ps-progress{padding-bottom:21px;border-bottom:1px solid var(--ps-line)}.ps-progress-number{display:block;color:var(--ps-green);font-size:58px;line-height:1.1;letter-spacing:-2px;margin:12px 0 9px;font-weight:800}.ps-progress-line{display:flex;align-items:center;gap:10px}.ps-progress-line>span{color:var(--ps-muted);white-space:nowrap;font-size:12px}.ps-project progress{display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:6px;overflow:hidden;height:13px;width:100%;background:#e2e5e0;color:var(--ps-green)}.ps-project progress::-webkit-progress-bar{background:#e2e5e0;border-radius:6px}.ps-project progress::-webkit-progress-value{background:var(--ps-green);border-radius:6px}.ps-project progress::-moz-progress-bar{background:var(--ps-green);border-radius:6px}.ps-progress-line progress{flex:1;min-width:0}.ps-progress p,.ps-note{font-size:12px;color:var(--ps-muted);line-height:1.5;margin:4px 0 0}
.ps-budget{padding-top:16px}.ps-budget-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0 19px}.ps-budget-metrics>div{min-width:0;padding-inline:8px;border-inline-start:1px solid var(--ps-line)}.ps-budget-metrics>div:first-child{padding-inline-start:0;border:0}.ps-budget-metrics>div:last-child{padding-inline-end:0}.ps-budget-metrics span{display:block;font-size:11px;color:#6b706d;line-height:1.35;min-height:16px}.ps-budget-metrics strong{display:block;font-size:21px;line-height:1.3;margin-top:7px;letter-spacing:-.6px;overflow-wrap:anywhere}.ps-project strong small{font-size:.58em;font-weight:650;letter-spacing:0;white-space:nowrap}.ps-remaining strong{color:var(--ps-green)}.ps-overrun strong{color:#b43e42}.ps-budget-bars{display:grid;gap:10px;margin-bottom:15px}.ps-budget-bars>div{display:grid;grid-template-columns:65px 1fr auto;gap:7px;align-items:center}.ps-budget-bars>div>span{color:#666d68;font-size:10px}.ps-budget-bars strong{font-size:12px;font-weight:650;white-space:nowrap}.ps-budget-bars progress{height:12px}.ps-budget-bars>div:last-child progress{color:var(--ps-gold)}.ps-budget-bars>div:last-child progress::-webkit-progress-value{background:var(--ps-gold)}.ps-budget-bars>div:last-child progress::-moz-progress-bar{background:var(--ps-gold)}
.ps-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--ps-line);background:none;color:inherit;text-align:start;min-height:62px}.ps-row-icon{color:var(--ps-gold);display:flex}.ps-row-copy{flex:1;min-width:0}.ps-row-copy strong{font-weight:650;font-size:14px;line-height:1.3;display:block}.ps-row-copy small{display:block;color:var(--ps-muted);font-size:11px;line-height:1.4;margin-top:2px}.ps-row-value{font-size:18px;font-weight:750;white-space:nowrap;letter-spacing:-.5px}.ps-row-value small{font-size:.65em;letter-spacing:0}.ps-chevron{display:flex;color:#6c706c;margin-inline-start:1px}.ps-chevron .ui-icon{width:15px;height:20px}[dir=rtl] .ps-chevron .ui-icon{transform:rotate(180deg)}.ps-budget>.ps-row{border-top:1px solid var(--ps-line);min-height:55px}.ps-collections{padding-top:16px}.ps-collections h3{margin-bottom:6px;white-space:nowrap;font-size:18px}.ps-collections .ps-row:last-child{border-bottom:0}.ps-collections .ps-row:first-of-type .ps-row-icon{color:#14816b}
.ps-primary{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:46px;margin-top:11px;border:0;border-radius:7px;background:var(--ps-green);color:#fff;font-size:16px;font-weight:650;padding:11px 12px}.ps-navigation{flex-shrink:0;background:#faf9f5}.ps-nav{display:flex;width:100%;min-height:68px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--ps-line);justify-content:space-around}.ps-nav button{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:none;color:#666a67;min-height:49px;padding:4px;font-size:11px}.ps-nav button .ui-icon{width:23px;height:23px}.ps-nav button.active{color:var(--ps-green);font-weight:700}.ps-nav button.active:after{content:'';position:absolute;bottom:-3px;height:2px;width:30px;border-radius:3px;background:var(--ps-gold)}
.ps-project #ps-finance>h3{margin-bottom:14px}.ps-project .project-summary-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ps-project .project-summary-quick-actions:empty{display:none}.ps-project .project-readable-section{margin:12px 0;background:#fff!important;border-color:var(--ps-line)!important}.ps-project .project-readable-heading .project-section-icon{display:none}.ps-project .project-readable-heading strong{color:var(--ps-green)}.ps-project .project-readable-body{overflow-wrap:anywhere}.ps-project [hidden]{display:none!important}
@media(min-width:768px){.modal-back:has(>.ps-project){background:#091e1780;padding:24px;align-items:center}.modal-back .modal.ps-project{width:min(100%,860px);height:calc(100dvh - 48px);max-height:1000px;border-radius:14px}.ps-topbar{padding-inline:24px}.ps-scroll{padding:20px 36px 30px}.ps-heading{margin-bottom:22px}.ps-project .ps-heading h2{font-size:32px}.ps-heading p{font-size:16px}.ps-tabs{max-width:460px}.ps-progress-number{font-size:64px}.ps-budget-metrics strong{font-size:29px}.ps-budget-metrics span{font-size:14px}.ps-budget-bars>div{grid-template-columns:100px 1fr 140px;gap:16px}.ps-budget-bars strong{font-size:16px;text-align:end}.ps-budget-bars>div>span{font-size:13px}.ps-project h3{font-size:22px}.ps-row{padding:18px 0}.ps-row-copy strong{font-size:16px}.ps-row-copy small{font-size:13px}.ps-row-value{font-size:23px}.ps-navigation{display:none}.ps-primary{margin-top:18px}}
@media(max-width:359px){.ps-scroll{padding-inline:16px}.ps-topbar>strong{font-size:19px}.ps-heading{flex-wrap:wrap;gap:3px}.ps-heading p{font-size:13px}.ps-budget-metrics strong{font-size:18px}.ps-row{gap:8px}.ps-row-copy strong{font-size:13px}.ps-row-value{font-size:16px}.ps-collections h3{font-size:17px}}

/* Mobile reference rhythm; keep the primary action above the persistent navigation. */
@media(max-width:767px){
 .ps-topbar{min-height:52px;padding-block:6px}.ps-scroll{padding-block:8px 12px;scrollbar-width:none}.ps-scroll::-webkit-scrollbar{display:none}
 .ps-heading{margin-bottom:11px}.ps-project .ps-heading h2{font-size:26px}.ps-heading p{font-size:15px}
 .ps-tabs{margin-bottom:16px}.ps-tabs button{min-height:42px;font-size:14px;padding:6px 0 10px}
 .ps-progress{padding-bottom:18px}.ps-progress-number{font-size:56px;margin:10px 0 7px}.ps-progress p{font-size:11px}
 .ps-budget{padding-top:15px}.ps-budget-metrics{margin:14px 0 17px}.ps-budget-metrics strong{font-size:20px;white-space:nowrap;letter-spacing:-.8px}.ps-budget-metrics strong small{font-size:10px;letter-spacing:-.2px}
 .ps-budget-metrics>div{padding-inline:7px}.ps-budget-metrics span{font-size:11px}
 .ps-budget-bars{margin-bottom:14px;gap:8px}.ps-budget-bars>div{grid-template-columns:65px 1fr auto}.ps-budget-bars strong{font-size:11px}.ps-budget-bars strong small{font-size:8px}
 .ps-budget>.ps-row{min-height:53px;padding-block:12px}.ps-collections{padding-top:15px}.ps-collections .ps-row{padding-block:12px;min-height:61px}
 .ps-row-copy strong{font-size:13px}.ps-row-copy small{font-size:10px}.ps-row-value{font-size:17px}.ps-primary{margin-top:10px;min-height:45px;padding-block:10px}
 .ps-nav{min-height:67px}.ps-nav button{font-size:10px;min-width:0}.ps-nav button span{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:767px){
 .ps-progress-number{font-size:52px;line-height:1;margin-block:8px 4px}.ps-progress{padding-bottom:16px}
 .ps-budget-metrics{margin-bottom:12px}.ps-collections{padding-top:14px}.ps-collections h3{margin-bottom:3px}
 .ps-collections .ps-row{min-height:56px;padding-block:10px}
}
@media(max-width:359px){.ps-budget-metrics strong{font-size:18px;letter-spacing:-.8px}.ps-budget-metrics strong small{font-size:9px}.ps-row-value{font-size:16px}}
