:root{
  --ps-red:#c91f26;
  --ps-red-dark:#aa171d;
  --ps-dark:#10161f;
  --ps-dark-2:#151d28;
  --ps-ink:#151a21;
  --ps-muted:#707985;
  --ps-line:#e3e7eb;
  --ps-bg:#f3f5f7;
  --ps-white:#fff;
}

.psatm-page,.psatm-page *{box-sizing:border-box}
.psatm-page{font-family:inherit}
.psatm-page a{text-decoration:none}
.psatm-page button,.psatm-page input,.psatm-page select{font:inherit}

/* LANDING PAGE */
.psatm-register{min-height:100vh;background:var(--ps-bg);color:var(--ps-ink)}
.psatm-hero{position:relative;overflow:hidden;min-height:365px;background:var(--ps-dark);color:#fff;border-bottom:4px solid var(--ps-red)}
.psatm-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 92%);pointer-events:none}
.psatm-hero-inner{position:relative;z-index:1;width:min(1040px,calc(100% - 40px));margin:0 auto;padding:38px 0 105px;text-align:center}
.psatm-landing-logo{display:flex;justify-content:center;align-items:center;margin-bottom:38px}
.psatm-brand-logo{display:block!important;width:auto!important;height:auto!important;max-width:250px!important;max-height:70px!important;object-fit:contain}
.psatm-brand-fallback{font-weight:800;letter-spacing:.08em;font-size:15px;color:#fff}
.psatm-hero-copy{max-width:780px;margin:0 auto}
.psatm-eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:13px;color:#d2d7dd;font-size:11px;font-weight:700}
.psatm-eyebrow:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ps-red)}
.psatm-hero-copy h1{margin:0;color:#fff;font-size:clamp(38px,4.4vw,61px);font-weight:780;line-height:1.2;letter-spacing:-.02em}
.psatm-hero-copy p{margin:18px auto 0;max-width:610px;color:#c7ced6;font-size:14px;line-height:1.9;font-weight:450}

.psatm-form-stage{position:relative;z-index:3;width:min(900px,calc(100% - 32px));margin:-64px auto 0;padding-bottom:64px}
.psatm-reg-form,.psatm-success-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--ps-line);border-radius:18px;box-shadow:0 20px 55px rgba(16,22,31,.12)}
.psatm-reg-form:before,.psatm-success-card:before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:var(--ps-red)}
.psatm-reg-form{padding:34px 36px 32px}
.psatm-form-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--ps-line)}
.psatm-form-title span{display:block;color:var(--ps-red);font-size:10.5px;font-weight:850;margin-bottom:5px}
.psatm-form-title h2{margin:0;color:var(--ps-ink);font-size:26px;line-height:1.3;font-weight:780}
.psatm-form-title p{margin:0;color:#98a0aa;font-size:10.5px}
.psatm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.psatm-form-grid .full{grid-column:1/-1}
.psatm-page label>span{display:block;margin:0 0 8px;color:#333b45;font-size:11.5px;font-weight:750}
.psatm-form-grid label>span:after{content:" *";color:var(--ps-red)}
.psatm-page input,.psatm-page select{width:100%;height:50px;border:1px solid #dfe4e9;background:#fff;border-radius:10px;padding:0 14px;color:#202730;outline:none;transition:.18s ease}
.psatm-page input::placeholder{color:#aab1ba}
.psatm-page input:focus,.psatm-page select:focus{border-color:#929ba6;box-shadow:0 0 0 4px rgba(16,22,31,.055)}
.psatm-submit{display:block;width:100%;height:52px;margin-top:22px;border:0;border-radius:10px;background:var(--ps-red);color:#fff;font-weight:820;font-size:13.5px;cursor:pointer;transition:.18s ease}
.psatm-submit:hover{background:var(--ps-red-dark);transform:translateY(-1px)}
.psatm-success-card{max-width:620px;margin:0 auto;padding:46px 34px;text-align:center}
.psatm-success-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 17px;border-radius:50%;background:var(--ps-dark);color:#fff;font-size:24px;font-weight:900}
.psatm-success-card h2{margin:0;color:var(--ps-ink);font-size:28px}.psatm-success-card p{margin:9px 0 0;color:var(--ps-muted);font-size:13px}

/* COMMON */
.psatm-alert{padding:12px 14px;border-radius:10px;margin:0 0 17px;border:1px solid;font-size:11.5px;line-height:1.7}
.psatm-alert.success{background:#f0f3f5;border-color:#dbe0e5;color:#27313d}
.psatm-alert.error{background:#fff2f2;border-color:#f1c7c8;color:#9a2024}
.psatm-alert.info{background:#f4f6f8;border-color:#dde2e8;color:#455160}
.psatm-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border:1px solid #dce1e6;border-radius:10px;background:#fff;color:#303944;font-size:11.5px;font-weight:780;cursor:pointer;transition:.18s ease}
.psatm-btn:hover{border-color:#c5cbd2;background:#fafbfc}
.psatm-btn.primary{background:var(--ps-red);border-color:var(--ps-red);color:#fff}
.psatm-btn.primary:hover{background:var(--ps-red-dark);border-color:var(--ps-red-dark)}
.psatm-btn.primary:disabled{opacity:.42;cursor:not-allowed;transform:none}
.psatm-btn.ghost{background:transparent;border-color:rgba(255,255,255,.24);color:#fff}
.psatm-btn.export{margin-right:auto;background:var(--ps-dark);border-color:var(--ps-dark);color:#fff}
.psatm-btn.export:hover{background:#1b2430;border-color:#1b2430}

/* DASHBOARD — single visual system inspired by the 650W campaign */
.psatm-dashboard{min-height:100vh;background:var(--ps-bg);color:var(--ps-ink);padding:0 0 64px}
.psatm-dashboard-shell{width:min(1420px,calc(100% - 44px));margin:0 auto}
.psatm-dashboard-head{min-height:150px;margin:0 -22px 20px;padding:28px 32px;display:grid;grid-template-columns:230px 1fr 150px;align-items:center;gap:26px;background:var(--ps-dark);border-bottom:4px solid var(--ps-red);border-radius:0 0 20px 20px;color:#fff;box-shadow:0 12px 32px rgba(16,22,31,.14)}
.psatm-dashboard-brand{display:flex;justify-content:flex-start;align-items:center}
.psatm-dashboard-logo{display:block!important;width:auto!important;height:auto!important;max-width:205px!important;max-height:60px!important;object-fit:contain}
.psatm-dashboard-title{text-align:right}
.psatm-dashboard-title>span{display:block;color:#aeb6c0;font-size:10.5px;font-weight:750;margin-bottom:6px}
.psatm-dashboard-title h1{margin:0;color:#fff;font-size:29px;font-weight:780;line-height:1.35}
.psatm-logout-form{display:flex;justify-content:flex-end}
.psatm-dashboard-alert{margin-bottom:16px}

.psatm-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.psatm-summary-card{position:relative;overflow:hidden;background:var(--ps-dark);border:1px solid rgba(255,255,255,.04);border-radius:14px;padding:19px 20px;box-shadow:0 8px 20px rgba(16,22,31,.06)}
.psatm-summary-card:after{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:var(--ps-red)}
.psatm-summary-card b{display:block;color:#fff;font-size:29px;line-height:1;margin-bottom:7px}.psatm-summary-card span{color:#aeb6c0;font-size:11px;font-weight:650}

.psatm-view-tabs{display:flex;align-items:center;gap:5px;padding:5px;margin-bottom:12px;border:1px solid var(--ps-line);border-radius:12px;background:#fff;width:max-content;max-width:100%;overflow:auto}
.psatm-view-tabs a{display:flex;align-items:center;gap:8px;min-height:39px;padding:8px 14px;border-radius:8px;color:#5d6671;font-size:11.5px;font-weight:780;white-space:nowrap}
.psatm-view-tabs a em{font-style:normal;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef1f4;color:#66717c;font-size:9.5px}
.psatm-view-tabs a.active{background:var(--ps-dark);color:#fff}.psatm-view-tabs a.active em{background:rgba(255,255,255,.12);color:#fff}

.psatm-dashboard-card{background:#fff;border:1px solid var(--ps-line);border-radius:14px;box-shadow:0 6px 20px rgba(16,22,31,.035)}
.psatm-filter-card{padding:13px 14px;margin-bottom:12px}
.psatm-filter-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.psatm-search-wrap{position:relative;flex:1 1 350px;min-width:250px}
.psatm-search-wrap span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#8e97a1;font-size:18px;line-height:1}
.psatm-search-wrap input{padding-right:40px}
.psatm-filter-form input,.psatm-filter-form select{height:42px;font-size:11.5px}.psatm-filter-form select{min-width:175px;width:auto}
.psatm-reset-link{color:#69737e;font-size:10.5px;padding:0 6px;text-decoration:underline!important;text-underline-offset:3px}

.psatm-group-pills{display:flex;gap:7px;overflow:auto;margin:0 0 12px;padding-bottom:2px}
.psatm-group-pills a{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 13px;border-radius:999px;border:1px solid #dde2e7;background:#fff;color:#505a66;font-size:10.5px;font-weight:780}
.psatm-group-pills a span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#eef1f4;color:#626d78;font-size:9px}
.psatm-group-pills a.active{background:var(--ps-dark);border-color:var(--ps-dark);color:#fff}.psatm-group-pills a.active span{background:rgba(255,255,255,.12);color:#fff}

.psatm-people-card{background:transparent;border:0;box-shadow:none}
.psatm-list-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 20px;margin-bottom:10px;background:#fff;border:1px solid var(--ps-line);border-radius:14px;box-shadow:0 6px 20px rgba(16,22,31,.035)}
.psatm-list-head h2{margin:0;color:var(--ps-ink);font-size:17px;font-weight:800}.psatm-list-head p{margin:5px 0 0;color:#7b8490;font-size:10.8px;line-height:1.7}
.psatm-selection-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.psatm-quick-select{display:flex;align-items:center;gap:6px;padding:4px;border:1px solid #e0e4e8;border-radius:10px;background:#f8f9fa}
.psatm-quick-select input{width:62px!important;height:34px!important;padding:0 8px!important;text-align:center;background:#fff!important;border-radius:7px!important;font-size:11px!important}
.psatm-check-all{display:flex!important;align-items:center;gap:7px;margin:0!important;color:#59636e!important;font-size:10.8px!important;font-weight:700!important;white-space:nowrap}
.psatm-check-all input,.psatm-row-check{accent-color:var(--ps-red);width:17px!important;height:17px!important;margin:0!important;padding:0!important}
.psatm-text-btn{border:0;background:none;color:#3e4854;font-size:10.5px;font-weight:800;cursor:pointer;padding:7px 6px}
.psatm-create-group span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.16);font-size:9px}

.psatm-people-list{display:grid;gap:9px}
.psatm-person-row{display:grid;grid-template-columns:34px minmax(190px,1.05fr) minmax(520px,2.25fr) 185px;align-items:center;gap:17px;min-height:86px;padding:15px 18px;background:#fff;border:1px solid var(--ps-line);border-radius:13px;box-shadow:0 4px 14px rgba(16,22,31,.025);transition:.16s ease}
.psatm-person-row:hover{border-color:#cfd5db;box-shadow:0 8px 24px rgba(16,22,31,.055);transform:translateY(-1px)}
.psatm-person-select{display:flex;align-items:center;justify-content:center}
.psatm-lock-dot{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eef1f4;color:#66717c;font-size:10px;font-weight:900}
.psatm-person-main{min-width:0}.psatm-person-main strong{display:block;color:#151a21;font-size:13.5px;font-weight:820;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psatm-person-main>span{display:block;color:#7d8690;font-size:10.5px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psatm-person-meta{display:grid;grid-template-columns:.8fr .95fr 1.5fr;gap:16px;min-width:0}
.psatm-person-meta>div{min-width:0}.psatm-person-meta small{display:block;color:#9ba2aa;font-size:9px;margin-bottom:4px}.psatm-person-meta b,.psatm-person-meta a{display:block;color:#414b56;font-size:10.8px;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psatm-person-meta a:hover{color:var(--ps-red)}
.psatm-person-side{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
.psatm-person-state{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.psatm-person-state>small{color:#9aa2ab;font-size:8.8px}
.psatm-group-badge,.psatm-waiting-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:5px 9px;border-radius:999px;font-size:9.2px;font-weight:820;white-space:nowrap;background:#eef1f4;color:#4f5a66}
.psatm-delete-btn{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:32px;padding:0 10px;border-radius:8px;background:#fff;border:1px solid #ecc9cb;color:#a92026!important;font-size:10px;font-weight:800;transition:.15s ease}
.psatm-delete-btn:hover{background:#fff1f1;border-color:#df9ca0}
.psatm-empty-state{padding:54px 25px;text-align:center;background:#fff;border:1px solid var(--ps-line);border-radius:14px}.psatm-empty-state strong{display:block;color:#2c333d;font-size:14px}.psatm-empty-state span{display:block;color:#969da7;font-size:10.8px;margin-top:7px}

/* LOGIN */
.psatm-login{min-height:100vh;display:grid;place-items:center;background:var(--ps-dark);padding:35px 20px;border-top:4px solid var(--ps-red)}
.psatm-login-shell{width:min(430px,100%)}
.psatm-login-logo{display:flex;justify-content:center;margin-bottom:25px}.psatm-login-card{position:relative;overflow:hidden;background:#fff;border-radius:16px;padding:30px;box-shadow:0 24px 65px rgba(0,0,0,.28)}
.psatm-login-card:before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:var(--ps-red)}
.psatm-login-card>span{display:block;color:var(--ps-red);font-size:9.8px;font-weight:850}.psatm-login-card h1{margin:6px 0 7px;font-size:26px;color:#161a20}.psatm-login-card p{margin:0 0 21px;color:#7f8893;font-size:11.5px}.psatm-login-card label{display:block;margin:14px 0}.psatm-login-card .psatm-btn{width:100%;height:47px;margin-top:5px}

@media(max-width:1080px){
  .psatm-person-row{grid-template-columns:34px minmax(160px,1fr) minmax(420px,2fr) 170px;gap:12px}
  .psatm-person-meta{gap:11px}
  .psatm-dashboard-head{grid-template-columns:190px 1fr 140px}
}
@media(max-width:860px){
  .psatm-dashboard-shell{width:min(100% - 24px,1420px)}
  .psatm-dashboard-head{margin:0 -12px 18px;padding:25px 20px;grid-template-columns:1fr auto;min-height:auto;border-radius:0 0 16px 16px}
  .psatm-dashboard-brand{grid-column:1/-1;margin-bottom:3px}.psatm-dashboard-title h1{font-size:24px}.psatm-dashboard-logo{max-width:180px!important}
  .psatm-summary-grid{grid-template-columns:repeat(3,1fr)}
  .psatm-list-head{align-items:flex-start;flex-direction:column}.psatm-selection-actions{justify-content:flex-start}
  .psatm-person-row{grid-template-columns:32px 1fr 165px;gap:11px;padding:15px}
  .psatm-person-meta{grid-column:2/-1;grid-row:2;grid-template-columns:1fr 1fr 1.5fr;padding-top:2px}
  .psatm-person-side{grid-column:3;grid-row:1}
}
@media(max-width:650px){
  .psatm-hero{min-height:330px}.psatm-hero-inner{padding:30px 0 92px}.psatm-landing-logo{margin-bottom:35px}.psatm-brand-logo{max-width:205px!important}.psatm-hero-copy h1{font-size:36px}.psatm-hero-copy p{font-size:12.5px;line-height:1.85}
  .psatm-form-stage{width:min(100% - 22px,900px);margin-top:-50px;padding-bottom:34px}.psatm-reg-form{padding:25px 18px 21px;border-radius:14px}.psatm-form-title{align-items:flex-start;flex-direction:column;gap:7px;padding-bottom:17px;margin-bottom:18px}.psatm-form-title h2{font-size:22px}.psatm-form-grid{grid-template-columns:1fr;gap:14px}.psatm-form-grid .full{grid-column:auto}
  .psatm-summary-grid{gap:7px}.psatm-summary-card{padding:14px}.psatm-summary-card b{font-size:25px}.psatm-summary-card span{font-size:9.5px}
  .psatm-filter-form>*{flex:1 1 100%}.psatm-filter-form select{width:100%}.psatm-btn.export{margin-right:0}.psatm-filter-form .psatm-btn{width:100%}.psatm-reset-link{text-align:center}
  .psatm-person-row{grid-template-columns:30px 1fr;align-items:flex-start}.psatm-person-side{grid-column:2;grid-row:auto;justify-content:space-between;width:100%}.psatm-person-meta{grid-column:2;grid-row:auto;grid-template-columns:1fr;gap:9px}.psatm-person-meta b,.psatm-person-meta a{white-space:normal;overflow:visible;text-overflow:clip}
  .psatm-selection-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.psatm-quick-select{grid-column:1/-1;width:100%;justify-content:space-between}.psatm-selection-actions .psatm-create-group{grid-column:1/-1;width:100%}.psatm-check-all{justify-content:flex-start}
}
