:root{
  --ink:#10241c;--green:#1f6b45;--green-dark:#124d31;--green-soft:#e9f3ed;
  --gold:#c9a44d;--cream:#f7f4ec;--white:#fff;--muted:#607069;--line:#dfe7e2;
  --shadow:0 18px 45px rgba(16,36,28,.11)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f4f7f5}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.portal-shell{min-height:100vh}
.portal-topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.portal-topbar .inner{width:min(1180px,calc(100% - 40px));height:78px;margin:auto;display:flex;align-items:center;gap:16px}
.portal-brand{display:flex;align-items:center;gap:12px;margin-right:auto}
.portal-brand img{width:48px;height:48px;object-fit:contain}
.portal-brand strong{display:block;font-size:15px}
.portal-brand span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.top-link{font-size:13px;font-weight:700;color:var(--green);padding:10px 14px;border-radius:999px;border:1px solid var(--line)}
.portal-hero{background:linear-gradient(145deg,#eff7f2,#f7f4ec);padding:72px 0 48px}
.portal-wrap{width:min(1180px,calc(100% - 40px));margin:auto}
.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--green)}
.portal-hero h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(38px,5vw,62px);line-height:1.08;margin:12px 0 14px}
.portal-hero p{max-width:760px;color:var(--muted);font-size:16px;margin:0}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:38px 0 72px}
.project-card{background:#fff;border:1px solid rgba(16,36,28,.07);border-radius:24px;padding:24px;display:grid;grid-template-columns:92px 1fr auto;gap:20px;align-items:center;min-height:160px;box-shadow:0 10px 28px rgba(16,36,28,.05);transition:.2s ease}
.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.project-icon{width:88px;height:88px;display:grid;place-items:center}
.project-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(16,36,28,.10))}
.project-card h2{font-size:20px;margin:6px 0 4px}
.project-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.55}
.status{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.status.active{background:#e7f5ec;color:#17663f}.status.integration{background:#f7efd6;color:#775e1b}.status.soon{background:#e8ece9;color:#66736d}
.project-action{font-size:13px;font-weight:800;color:var(--green);white-space:nowrap}
.module-stage{padding:54px 0 80px}
.module-panel{background:#fff;border-radius:28px;padding:34px;border:1px solid var(--line);box-shadow:var(--shadow);display:grid;grid-template-columns:180px 1fr;gap:34px;align-items:center}
.module-visual{width:170px;height:170px;display:grid;place-items:center;background:#f5f8f6;border-radius:26px}
.module-visual img{width:145px;height:145px;object-fit:contain}
.module-copy h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(34px,4vw,52px);margin:8px 0 10px;line-height:1.08}
.module-copy p{color:var(--muted);max-width:720px}
.module-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:999px;font-weight:800;font-size:13px}
.btn-primary{background:var(--green);color:#fff}.btn-secondary{border:1px solid var(--line);background:#fff;color:var(--ink)}
.integration-note{margin-top:22px;padding:16px 18px;border-radius:16px;background:#f7f9f8;color:var(--muted);font-size:13px;border:1px solid var(--line)}
.portal-footer{border-top:1px solid var(--line);background:#fff;padding:26px 0;color:var(--muted);font-size:12px}
@media(max-width:850px){.project-grid{grid-template-columns:1fr}.project-card{grid-template-columns:76px 1fr}.project-action{grid-column:1/-1}.project-icon{width:72px;height:72px}.module-panel{grid-template-columns:1fr}.module-visual{width:130px;height:130px}.module-visual img{width:110px;height:110px}}


/* Staff portal authentication shell */
.staff-login-page{min-height:100vh;background:
  radial-gradient(circle at 15% 20%,rgba(31,107,69,.10),transparent 35%),
  linear-gradient(145deg,#eef6f1 0%,#f7f4ec 52%,#ffffff 100%);
  display:grid;place-items:center;padding:28px}
.staff-login-card{width:min(980px,100%);background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr}
.staff-login-brand{padding:48px;background:linear-gradient(160deg,#154f34,#103c29);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:560px}
.staff-login-brand img{width:88px;height:88px;object-fit:contain;background:#fff;border-radius:24px;padding:10px}
.staff-login-brand h1{font-family:"Playfair Display",Georgia,serif;font-size:46px;line-height:1.05;margin:24px 0 12px}
.staff-login-brand p{color:rgba(255,255,255,.78);line-height:1.7;max-width:470px}
.staff-login-note{font-size:12px;color:rgba(255,255,255,.68);line-height:1.6}
.staff-login-form{padding:48px;display:flex;flex-direction:column;justify-content:center}
.staff-login-form h2{font-size:28px;margin:0 0 8px}
.staff-login-form>p{color:var(--muted);line-height:1.65;margin:0 0 28px}
.staff-auth-box{border:1px solid var(--line);border-radius:20px;padding:22px;background:#f8faf9}
.staff-auth-box strong{display:block;margin-bottom:8px}
.staff-auth-box p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.staff-auth-btn{margin-top:20px;width:100%;min-height:50px;border-radius:14px;border:0;background:var(--green);color:#fff;font-weight:800;font-size:14px;opacity:.55;cursor:not-allowed}
.staff-login-links{margin-top:20px;display:flex;justify-content:space-between;gap:14px;font-size:12px}
.staff-login-links a{color:var(--green);font-weight:700}

.staff-dashboard-hero{padding:46px 0 28px;background:linear-gradient(145deg,#edf6f0,#f7f4ec)}
.staff-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.staff-dashboard-head h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(34px,4vw,50px);margin:8px 0}
.staff-dashboard-head p{margin:0;color:var(--muted)}
.staff-user-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px;box-shadow:0 8px 20px rgba(16,36,28,.05)}
.staff-avatar{width:38px;height:38px;border-radius:12px;background:var(--green-soft);display:grid;place-items:center;font-weight:800;color:var(--green)}
.staff-user-chip strong{display:block;font-size:12px}.staff-user-chip span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.staff-dashboard-section{padding:34px 0 72px}
.staff-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.staff-section-title h2{font-size:18px;margin:0}.staff-section-title span{font-size:11px;color:var(--muted)}
.staff-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.staff-module{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;min-height:190px;display:flex;flex-direction:column;transition:.2s ease}
.staff-module:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(16,36,28,.08)}
.staff-module-icon{width:48px;height:48px;border-radius:14px;background:var(--green-soft);display:grid;place-items:center;margin-bottom:18px;color:var(--green);font-size:22px}
.staff-module h3{font-size:17px;margin:0 0 6px}.staff-module p{font-size:12px;color:var(--muted);line-height:1.55;margin:0 0 16px}
.staff-module-meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.staff-module-meta span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--green)}
.staff-module-meta b{font-size:12px;color:var(--green)}
.staff-module.soon{background:#fafbfa}.staff-module.soon .staff-module-icon{background:#eef1ef;color:#718078}.staff-module.soon .staff-module-meta span{color:#7a8881}

@media(max-width:900px){
  .staff-login-card{grid-template-columns:1fr}.staff-login-brand{min-height:auto;padding:34px}.staff-login-form{padding:34px}
  .staff-dashboard-head{align-items:flex-start;flex-direction:column}
  .staff-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .staff-login-page{padding:14px}.staff-login-brand,.staff-login-form{padding:26px}.staff-login-brand h1{font-size:36px}
  .staff-module-grid{grid-template-columns:1fr}
}


/* Onboarding and admin */
.onboarding-page{min-height:100vh;display:grid;place-items:center;padding:32px 18px;background:linear-gradient(145deg,#edf6f0,#f7f4ec)}
.onboarding-card{width:min(700px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:36px;box-shadow:var(--shadow)}
.compact-card{width:min(560px,100%)}
.mini-brand{display:flex;align-items:center;gap:10px;margin-bottom:30px;font-weight:800}.mini-brand img{width:46px;height:46px;object-fit:contain}
.onboarding-card h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(32px,5vw,46px);line-height:1.08;margin:8px 0 10px}
.lead{color:var(--muted);line-height:1.65;margin:0 0 26px}
.portal-form{display:grid;gap:16px}.portal-form label{display:grid;gap:7px;font-size:12px;font-weight:800;color:var(--ink)}
.portal-form input,.portal-form select,.admin-page select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:13px;padding:0 14px;font:inherit;background:#fff;color:var(--ink);outline:none}
.portal-form input:focus,.portal-form select:focus,.admin-page select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,107,69,.10)}
.portal-form input[readonly]{background:#f4f6f5;color:#65736d}
.form-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;border:0;border-radius:14px;background:var(--green);color:#fff;font-weight:800;font-size:14px;cursor:pointer;padding:0 20px}
.form-btn.secondary{background:#fff;color:var(--green);border:1px solid var(--line);margin-top:18px}.subtle-link{display:inline-block;margin-top:18px;color:var(--green);font-size:12px;font-weight:700}
.form-status{padding:11px 13px;border-radius:12px;font-size:12px;line-height:1.5}.form-status.error{background:#fff0f0;color:#9b2c2c}.form-status.success{background:#eaf6ee;color:#17663f}
.status-card{text-align:center}.status-icon{width:68px;height:68px;border-radius:22px;background:var(--green-soft);display:grid;place-items:center;margin:0 auto 18px;font-size:28px;color:var(--green);font-weight:900}
.profile-summary{display:grid;gap:6px;padding:18px;border-radius:16px;background:#f7f9f8;margin:20px 0;color:var(--muted);font-size:13px}.profile-summary strong{color:var(--ink);font-size:15px}
.admin-page{padding:46px 0 80px}.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.admin-heading h1{font-family:"Playfair Display",Georgia,serif;font-size:42px;margin:8px 0}.admin-heading p{margin:0;color:var(--muted)}.admin-heading select{width:220px}
.admin-user-list{display:grid;gap:18px}.admin-user-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 8px 24px rgba(16,36,28,.05)}
.admin-user-main{display:grid;grid-template-columns:minmax(220px,.8fr) 1.4fr;gap:24px}.admin-user-card h2{margin:7px 0 4px;font-size:20px}.admin-user-card p{margin:0;color:var(--muted);font-size:12px}
.admin-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-details span{background:#f7f9f8;border-radius:13px;padding:12px;color:var(--muted);font-size:12px}.admin-details b{display:block;color:var(--ink);margin-bottom:5px}
.admin-decision{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;display:grid;gap:16px}.admin-decision>label{display:grid;gap:7px;font-size:12px;font-weight:800}.admin-decision select{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px}
.decision-label{display:block;font-size:12px;margin-bottom:8px}.module-checks{display:flex;flex-wrap:wrap;gap:8px}.module-check{background:#f4f7f5;border:1px solid var(--line);border-radius:999px;padding:8px 11px;font-size:11px}
.decision-actions{display:flex;gap:10px}.approve-btn,.reject-btn{border:0;border-radius:12px;min-height:44px;padding:0 18px;font-weight:800;cursor:pointer}.approve-btn{background:var(--green);color:#fff}.reject-btn{background:#fff0f0;color:#9b2c2c}
.empty-state{padding:34px;background:#fff;border:1px dashed var(--line);border-radius:18px;text-align:center;color:var(--muted)}
@media(max-width:720px){.onboarding-card{padding:26px}.admin-heading{align-items:stretch;flex-direction:column}.admin-heading select{width:100%}.admin-user-main{grid-template-columns:1fr}.admin-details{grid-template-columns:1fr}}
