:root { color-scheme:light; --forest:#034c3d;--forest-deep:#013d31;--ink:#16352f;--muted:#72837d;--pale:#f6f8f7;--line:#e4ebe7;--gold:#f7c329;--shadow:0 16px 44px rgba(0,42,31,.07);--radius:18px }
*{box-sizing:border-box}body{margin:0;background:#fbfcfb;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}a{color:var(--forest)}.hidden{display:none!important}.container{width:min(1190px,calc(100% - 52px));margin-inline:auto}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:87px;gap:26px}.brand{display:flex;align-items:center;gap:13px}.brand-logo{width:51px;height:51px;object-fit:contain}.brand-name{display:flex;flex-direction:column;line-height:1.17;gap:4px}.brand-name strong{font-size:19px;letter-spacing:.095em;font-weight:850}.brand-name span{font-size:10px;font-weight:750;letter-spacing:.22em;color:#73867f}.header-right{display:flex;align-items:center;gap:18px}.secure-label{font-size:12px;color:#536f64;white-space:nowrap}.green-dot{width:7px;height:7px;background:#2b9d6f;border-radius:50%;display:inline-block;margin-right:7px}.account-widget select{border:1px solid var(--line);border-radius:10px;background:#f9fbfa;padding:11px 33px 11px 13px;max-width:220px;color:var(--forest);font-weight:700}.signout{border:0;background:transparent;font-size:13px;color:#658078;font-weight:700;white-space:nowrap}.signout:hover,.powered:hover{color:#067a60}
#main{min-height:calc(100vh - 240px)}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:850;color:#51866d}.loading-panel{min-height:45vh;display:flex;gap:16px;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.loader{border:3px solid #dfe9e4;border-top-color:var(--forest);width:30px;height:30px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-shell{display:grid;grid-template-columns:1.07fr .93fr;max-width:1140px;min-height:545px;margin:65px auto 78px;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;overflow:hidden;background:#fff}.login-art{background:linear-gradient(144deg,#075844,#003f33);color:#fff;padding:70px 63px;position:relative;overflow:hidden}.login-art:before{content:"";position:absolute;height:350px;width:350px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-145px;bottom:-165px;box-shadow:0 0 0 67px rgba(255,255,255,.03),0 0 0 137px rgba(255,255,255,.025)}.login-art .eyebrow{color:#b6dbc6}.login-art h1{font-size:clamp(34px,4vw,54px);letter-spacing:-.055em;line-height:1.1;max-width:410px;margin:29px 0 20px}.login-art p{font-size:15px;max-width:400px;color:#d4e5de;line-height:1.85}.login-benefits{display:grid;gap:17px;margin-top:46px;color:#e7f4ec;font-size:13px}.login-benefits span::before{content:"✓";display:inline-grid;place-items:center;margin-right:12px;color:var(--forest);background:var(--gold);font-weight:900;width:24px;height:24px;border-radius:100%}.login-form{padding:84px 66px;display:flex;flex-direction:column;justify-content:center}.login-form .eyebrow{color:#4a9873}.login-form h2{font-size:29px;letter-spacing:-.045em;line-height:1.18;margin:13px 0}.login-form p{color:var(--muted);font-size:14px;line-height:1.8;max-width:320px}.google-slot{margin-top:25px;min-height:45px}.login-help{margin-top:29px;padding:17px;background:#f5f8f6;border:1px solid var(--line);border-radius:12px;font-size:12px;color:#657971}.login-help a{font-weight:700}.error-message{background:#fff5f2;border:1px solid #f7d5c8;border-radius:12px;color:#9c3c29;padding:15px 18px;margin-top:14px;max-width:400px}
.portal{padding-bottom:54px}.hero{background:linear-gradient(110deg,#064c3e,#024436);border-radius:0 0 22px 22px;color:#fff;overflow:hidden;position:relative}.hero:before{content:"";position:absolute;width:550px;height:550px;border-radius:50%;border:1px solid rgba(255,255,255,.065);right:-95px;top:-350px;box-shadow:0 0 0 72px rgba(255,255,255,.025),0 0 0 150px rgba(255,255,255,.018)}.hero-inner{position:relative;padding:46px 0 44px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.hero .eyebrow{color:#d2eacb}.hero h1{font-size:clamp(30px,4vw,45px);line-height:1.15;margin:12px 0 10px;letter-spacing:-.045em;font-weight:780}.hero h1 em{font-style:normal;color:var(--gold)}.hero-description{color:#d3e5db;max-width:630px;margin:0;font-size:14px;line-height:1.8}.hero-company{text-align:right;white-space:nowrap}.hero-company .company-label{font-size:10px;letter-spacing:.16em;color:#a5d4c2;display:block;margin-bottom:7px}.hero-company strong{font-size:17px}.role-chip{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.24);border-radius:100px;display:inline-block;padding:4px 12px;font-size:12px;margin-top:12px}
.nav-wrap{background:#fff;border-bottom:1px solid var(--line);position:relative}.section-nav{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:12px 0;white-space:nowrap}.nav-button{border:0;background:transparent;color:#74837f;padding:10px 16px;border-radius:10px;font-size:12px;font-weight:730;white-space:nowrap}.nav-button:hover{background:#f5f8f6;color:var(--forest)}.nav-button.active{background:#e7f4ec;color:#075740}.nav-button span{display:inline-block;margin-right:8px;font-size:14px;opacity:.8}
.content{padding-top:38px}.section-heading{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:24px}.section-heading h2{font-size:27px;letter-spacing:-.045em;line-height:1.1;margin:7px 0 5px}.section-heading p{color:var(--muted);margin:0;font-size:13px}.refresh-btn{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 15px;color:#436858;font-weight:740;font-size:12px;white-space:nowrap}.refresh-btn:hover{border-color:#a3bcb0}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.stat-card{background:#fff;border:1px solid var(--line);padding:26px 25px;border-radius:16px;box-shadow:0 4px 24px rgba(8,73,47,.025);position:relative;min-height:176px}.stat-card:before{content:"";height:4px;position:absolute;top:0;left:26px;width:40px;background:var(--gold);border-radius:0 0 4px 4px}.stat-card .small{font-size:13px;color:#637b70;font-weight:650}.stat-card .number{display:block;font-size:47px;letter-spacing:-.06em;line-height:1.2;color:var(--forest);margin:17px 0 4px}.stat-card .view-link{font-size:12px;color:#33795b;font-weight:780;display:inline-flex;align-items:center;gap:6px}.stat-card .view-link:hover{text-decoration:underline}.welcome-note{margin-top:22px;background:#eef6f1;border:1px solid #dbeade;padding:22px 25px;border-radius:15px;display:flex;justify-content:space-between;align-items:center;gap:24px}.welcome-note strong{font-size:15px}.welcome-note p{color:#5d796a;margin:5px 0 0;font-size:13px}.welcome-note a{background:var(--forest);color:#fff;text-decoration:none;padding:11px 15px;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap}.quick-heading{margin:35px 0 14px;font-size:17px;letter-spacing:-.02em}.recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.mini-record{background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px;min-height:110px;text-align:left;cursor:pointer}.mini-record:hover,.record-card:hover{border-color:#a6c2b1;box-shadow:0 8px 25px rgba(0,40,29,.045)}.mini-record small{display:block;color:#8a9a91;font-size:11px;text-transform:uppercase;font-weight:750;letter-spacing:.1em;margin-bottom:8px}.mini-record strong{display:block;font-size:14px;color:#234636}
.toolbar{display:flex;gap:10px;margin:22px 0}.search-input,.status-filter{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:44px;padding:10px 13px;color:#294a3a;outline:none}.search-input:focus,.status-filter:focus{border-color:#5b9d7a;box-shadow:0 0 0 3px rgba(4,76,61,.07)}.search-input{flex:1}.status-filter{width:180px}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.record-card{background:#fff;border:1px solid var(--line);padding:23px;border-radius:14px;cursor:pointer;text-align:left;min-height:170px;transition:.15s}.record-card-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.record-name{font-size:16px;font-weight:760;color:#244639;line-height:1.45}.status-tag{font-size:11px;padding:5px 11px;border-radius:30px;background:#eef3f0;color:#66776e;white-space:nowrap;text-transform:capitalize;font-weight:760}.status-tag.success{background:#e7f6e9;color:#2d7c48}.status-tag.warning{background:#fff4d9;color:#93691b}.status-tag.danger{background:#feebea;color:#ae413c}.record-card-desc{color:#63796d;font-size:12px;margin:15px 0 0;line-height:1.65;max-height:3.5em;overflow:hidden}.record-meta{border-top:1px solid #edf1ee;margin-top:19px;padding-top:13px;display:flex;flex-wrap:wrap;gap:10px 20px}.meta-item{font-size:12px;color:#506c60}.meta-item small{display:block;color:#8a998f;font-size:10px;font-weight:730;text-transform:uppercase;letter-spacing:.055em}.progress-track{height:5px;width:100%;background:#e4ece6;border-radius:20px;margin-top:14px;overflow:hidden}.progress-fill{height:100%;border-radius:20px;background:#439775}.empty-state{border:1px dashed #cfded4;border-radius:15px;padding:50px 28px;text-align:center;background:#fff;margin-top:14px}.empty-icon{font-size:30px;color:#45866c}.empty-state h3{font-size:17px;margin:11px 0 8px}.empty-state p{color:var(--muted);max-width:520px;margin:0 auto;line-height:1.75}
.site-footer{background:#fff;border-top:1px solid var(--line);margin-top:auto}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:31px 0}.footer-contact{display:flex;align-items:center;gap:19px}.footer-logo{width:43px;height:43px;object-fit:contain;flex:none}.footer-contact strong{font-size:12px;color:#345348}.footer-contact p{color:#89988f;margin:3px 0 6px;font-size:11px}.footer-links{display:flex;gap:19px;flex-wrap:wrap}.footer-links a{font-size:12px;font-weight:700;text-decoration:none}.powered{font-size:11px;color:#84948b;text-decoration:none;white-space:nowrap}.powered strong{color:var(--forest);font-size:13px}
.detail-dialog{position:fixed;margin:auto 0 auto auto;width:min(540px,100%);height:100dvh;max-height:100dvh;max-width:unset;padding:30px 35px;border:0;border-radius:20px 0 0 20px;box-shadow:-14px 0 65px rgba(0,31,22,.15);overflow-y:auto}.detail-dialog::backdrop{background:rgba(4,31,23,.44)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.icon-button{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:25px;color:#627b6c;display:grid;place-items:center}.detail-dialog h2{font-size:26px;letter-spacing:-.04em;margin:29px 0 22px;line-height:1.3;overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.detail-field{padding:16px 0;border-top:1px solid var(--line);min-width:0}.detail-field.wide{grid-column:1/-1}.detail-field small{display:block;font-size:10px;color:#86988c;text-transform:uppercase;letter-spacing:.09em;font-weight:800;margin-bottom:8px}.detail-field .value{color:#234639;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.dialog-note{margin-top:27px;background:#f5f8f6;border-radius:10px;padding:16px;font-size:12px;color:#648072}
@media(max-width:920px){.login-shell{margin-inline:25px}.login-art{padding:55px 37px}.login-form{padding:52px 35px}.secure-label{display:none}.record-grid{grid-template-columns:1fr 1fr}.stat-grid{gap:12px}.hero-company{max-width:260px;white-space:normal}.footer-inner{align-items:flex-start}}
@media(max-width:680px){.container{width:calc(100% - 34px)}.header-inner{min-height:73px;gap:8px}.brand-logo{width:42px;height:42px}.brand-name strong{font-size:15px}.brand-name span{font-size:9px}.header-right{gap:8px}.account-widget select{max-width:128px;font-size:11px;padding:8px 5px}.signout{font-size:11px}.login-shell{grid-template-columns:1fr;margin:24px 17px 35px}.login-art{padding:37px 29px}.login-art h1{font-size:36px}.login-art p{font-size:13px}.login-benefits{margin-top:25px;gap:11px}.login-form{padding:36px 29px}.hero-inner{padding:37px 0;display:block}.hero h1{font-size:32px}.hero-company{text-align:left;margin-top:25px}.hero-company strong{font-size:14px}.section-nav{padding:7px 0}.nav-button{padding:10px 12px}.section-heading h2{font-size:24px}.section-heading{align-items:center}.stat-grid,.recent-list,.record-grid{grid-template-columns:1fr}.stat-card{min-height:147px}.stat-card .number{font-size:39px;margin:9px 0}.welcome-note{display:block}.welcome-note a{margin-top:15px;display:inline-block}.toolbar{flex-wrap:wrap}.search-input{flex-basis:100%}.status-filter{width:100%}.footer-inner,.footer-contact{align-items:flex-start}.footer-inner{flex-direction:column;gap:17px}.footer-links{gap:8px;flex-direction:column}.detail-dialog{border-radius:0;padding:24px 20px}.detail-grid{grid-template-columns:1fr}}
/* Four related but distinct company experiences */
body[data-role="client"]{--role-glow:#f7c329;--role-deep:#034c3d}
body[data-role="subcontractor"]{--role-glow:#c7deb5;--role-deep:#254d37}
body[data-role="supplier"]{--role-glow:#96dada;--role-deep:#245467}
body[data-role="prospect"]{--role-glow:#ffe0a4;--role-deep:#785736}
body[data-role] .hero{background:linear-gradient(115deg,var(--role-deep),#072d27)}
body[data-role] .hero h1 em{color:var(--role-glow)}
body[data-role] .role-chip{border-color:var(--role-glow)}
body[data-role] .nav-button.active{border-bottom-color:var(--role-glow)}
.mail-count{display:inline-block;font-size:11px;font-weight:700;color:#527764;background:#f0f6f1;border-radius:20px;padding:5px 10px;margin-top:12px}
.mail-conversation-title{font-size:16px;margin:32px 0 12px}.mail-message{border:1px solid var(--line);border-radius:12px;margin:14px 0;padding:18px 20px;background:#fbfdfb}
.mail-sender{font-weight:800;color:#194c39}.mail-addresses,.mail-date{font-size:11px;color:#748e7c;margin:4px 0}.mail-body{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#2e5141}
.attachment-list{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.attachment-list strong{font-size:11px;color:#697f71}.attachment-link{font-size:12px;font-weight:700;word-break:break-all}
/* Version 3: visibly distinct experiences, not just different labels. */
.more-records{margin-left:auto;min-width:176px;align-self:center;border:1px solid #d4e4da;border-radius:10px;padding:10px 12px;color:#174a3b;background:#f6faf7;font-size:12px;font-weight:700;cursor:pointer}
.hero-left{max-width:760px}
body[data-role="client"] .hero{background:linear-gradient(118deg,#003f36,#087158)}
body[data-role="client"] .overview-client{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-role="client"] .overview-client .stat-projects{grid-column:span 2;background:linear-gradient(120deg,#eff9f2,#fff);min-height:205px}
body[data-role="client"] .overview-client .stat-projects .number{font-size:64px}
body[data-role="subcontractor"] .hero{background:linear-gradient(120deg,#162f2d,#4b5831)}
body[data-role="subcontractor"] .section-nav{justify-content:flex-start}
body[data-role="subcontractor"] .overview-subcontractor{grid-template-columns:repeat(4,minmax(0,1fr))}
.role-spotlight{grid-column:span 4;display:flex;align-items:center;gap:24px;background:#e5ece0;border:1px solid #cbd9c2;border-radius:16px;padding:25px}
.role-spotlight h3,.supplier-intro h3,.prospect-intro h3{font-size:23px;letter-spacing:-.03em;margin:5px 0}
.role-spotlight p,.supplier-intro p,.prospect-intro p{font-size:13px;color:#5f6f65;margin:0}
body[data-role="subcontractor"] .stat-card{min-height:155px;border-left:5px solid #8a9f6d}
body[data-role="subcontractor"] .stat-card:before{display:none}
body[data-role="supplier"] .hero{background:linear-gradient(118deg,#163f4b,#277b78)}
body[data-role="supplier"] .overview-supplier{grid-template-columns:repeat(4,minmax(0,1fr))}
.supplier-intro{grid-column:span 4;background:#e7f5f4;border:1px solid #c9e7e5;padding:27px;border-radius:16px}
body[data-role="supplier"] .stat-card{background:#f7fbfc;border:1px solid #cee2e6}
body[data-role="supplier"] .stat-card:before{background:#469f9d}
body[data-role="prospect"] .hero{background:linear-gradient(120deg,#55402c,#946633)}
body[data-role="prospect"] .overview-prospect{grid-template-columns:repeat(3,minmax(0,1fr))}
.prospect-intro{grid-column:span 3;padding:36px;border-radius:18px;background:#faf1e5;border:1px solid #ead8bb}
body[data-role="prospect"] .stat-card{border-radius:22px;background:#fffaf3;border-color:#eadfcf}
body[data-role="prospect"] .stat-card:before{background:#ce9654}
body[data-role="prospect"] .nav-button.active{background:#f9ead4;color:#755128}
@media(max-width:950px){body[data-role] .overview-client,body[data-role] .overview-subcontractor,body[data-role] .overview-supplier,body[data-role] .overview-prospect{grid-template-columns:repeat(2,minmax(0,1fr))}.role-spotlight,.supplier-intro,.prospect-intro{grid-column:span 2}.more-records{min-width:145px}}
@media(max-width:650px){body[data-role] .overview-client,body[data-role] .overview-subcontractor,body[data-role] .overview-supplier,body[data-role] .overview-prospect{grid-template-columns:1fr}.role-spotlight,.supplier-intro,.prospect-intro,body[data-role="client"] .overview-client .stat-projects{grid-column:span 1}.role-spotlight{display:block}.more-records{margin-left:2px;flex-shrink:0}}
