/* Symonté Office: navy and gold brand panels, calm white work area. Font: Figtree (as the learner portal). */
:root{
  --navy:#00003C; --navy-2:#0A1330; --gold:#C9A24A; --gold-dark:#8A6A1F; --ring:#2E2A3C;
  --bg:#F6F5F2; --surface:#FFFFFF; --surface-2:#FAF9F7; --text:#16161D; --muted:#6B6760; --line:#E6E2DB;
  --ok:#2E7D32; --warn:#B26A00; --bad:#C00000; --accent:#00003C;
  --r:14px; --shadow:0 1px 2px rgb(0 0 30 / .04), 0 6px 20px rgb(0 0 30 / .05);
  font-family:Figtree,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; font-size:15px; color:var(--text);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E0E14; --surface:#17171F; --surface-2:#1D1D27; --text:#EEEDEA; --muted:#A39F98; --line:#2B2B36; --accent:#C9A24A;
  --shadow:0 1px 2px rgb(0 0 0 / .3); } }
*{box-sizing:border-box} html,body{margin:0;background:var(--bg);color:var(--text)} [hidden]{display:none!important}
h1{font-size:1.75rem;font-weight:800;letter-spacing:-.01em;margin:0 0 4px} h2{font-size:1.08rem;font-weight:700;margin:0 0 12px}
p{margin:0 0 10px;line-height:1.55} a{color:var(--accent)} small,.muted{color:var(--muted)}
code{font-size:.85em;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:1px 5px;word-break:break-all}
.loading{display:grid;place-items:center;min-height:100vh}
.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--gold);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- brand bits shared by sign-in, client page ---------- */
.brandcard{display:inline-flex;align-items:center;gap:12px;background:#fff;border-radius:16px;padding:12px 18px 12px 12px;color:#00003C;font-weight:800;line-height:1.15;letter-spacing:.02em;box-shadow:0 8px 30px rgb(0 0 0 / .25)}
.brandcard img{width:56px;height:56px;border-radius:6px;object-fit:cover}
.brandcard.small{padding:8px 14px 8px 8px;font-size:.8rem;border-radius:12px} .brandcard.small img{width:38px;height:38px}
.goldline{width:56px;height:3px;background:var(--gold);border-radius:3px;margin:14px 0 16px}
.ring{position:absolute;width:420px;height:420px;border-radius:50%;border:64px solid var(--ring);right:-150px;bottom:-170px;opacity:.9;pointer-events:none}

/* ---------- company sign-in: full navy, centred card (unlike the learner portal's split screen) ---------- */
.corp{position:relative;overflow:hidden;min-height:100vh;display:flex;flex-direction:column;color:#fff;
  background:radial-gradient(1100px 600px at 50% -10%, #1A1F5C 0%, rgb(26 31 92 / 0) 60%), linear-gradient(180deg, #00003C 0%, #000028 100%)}
.corprings span{position:absolute;border-radius:50%;border:1px solid rgb(201 162 74 / .18);pointer-events:none}
.corprings span:nth-child(1){width:900px;height:900px;left:50%;top:50%;transform:translate(-50%,-46%)}
.corprings span:nth-child(2){width:640px;height:640px;left:50%;top:50%;transform:translate(-50%,-46%);border-color:rgb(201 162 74 / .12)}
.corprings span:nth-child(3){width:1200px;height:1200px;left:50%;top:50%;transform:translate(-50%,-46%);border-color:rgb(255 255 255 / .05)}
.corptop{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 36px;border-bottom:1px solid rgb(255 255 255 / .08)}
.corplogo{display:flex;align-items:center;gap:12px} .corplogo img{width:44px;height:44px;border-radius:9px;box-shadow:0 0 0 1px rgb(201 162 74 / .5)}
.corplogo b{display:block;letter-spacing:.14em;font-size:.95rem} .corplogo small{color:var(--gold);letter-spacing:.16em;font-size:.62rem;font-weight:700}
.corpbadge{border:1px solid rgb(201 162 74 / .6);color:var(--gold);border-radius:99px;padding:5px 14px;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.corpmain{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px}
.corphead{text-align:center;margin-bottom:22px} .corphead h1{color:#fff;font-size:2.3rem;margin:0} .corphead p{color:#C9C6DE;margin:6px 0 0;letter-spacing:.06em}
.corpcard{width:100%;max-width:440px;background:var(--surface);color:var(--text);border-radius:20px;padding:30px 30px 28px;
  box-shadow:0 30px 80px rgb(0 0 0 / .45);border-top:4px solid var(--gold)}
.corpcard h2.welcome{font-size:1.55rem}
.corpfoot{position:relative;text-align:center;color:#8F8BAA;font-size:.8rem;padding:18px}
@media (max-width:640px){ .corptop{padding:14px 16px} .corplogo small{display:none} .corphead h1{font-size:1.8rem} .corpcard{padding:22px 18px} }

/* ---------- (older split sign-in, no longer used) ---------- */
.auth{display:grid;grid-template-columns:44% 1fr;min-height:100vh}
.brand{position:relative;overflow:hidden;background:var(--navy);color:#fff;padding:56px 56px 40px;display:flex;flex-direction:column;align-items:flex-start}
.brand h1,.brand p,.brand .goldline{position:relative}
.brand h1{font-size:2.6rem;color:#fff;margin-top:44px} .brand p{font-size:1.15rem;color:#E9E6F2}
.brand small{margin-top:auto;color:#CFCBE0;position:relative}
.authform{display:grid;place-items:center;padding:40px 24px}
.authinner{width:100%;max-width:430px}
h2.welcome{font-size:1.9rem;font-weight:800;margin:0 0 4px}
.seg{display:flex;gap:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:4px;margin:18px 0}
.seg button{flex:1;background:none;border:0;color:var(--muted);font-weight:600;padding:9px 6px;border-radius:9px;min-height:0;position:relative;white-space:nowrap;font-size:.9rem}
.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgb(0 0 0 / .1)}
.seg.dark{background:rgb(255 255 255 / .08);border-color:rgb(255 255 255 / .14);max-width:520px}
.seg.dark button{color:#DAD6EA} .seg.dark button.on{background:#fff;color:var(--navy)}
.seg .dot{position:absolute;top:7px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--gold)}
form.stack{display:flex;flex-direction:column;gap:14px;margin-top:6px}

/* ---------- staff shell: navy side menu ---------- */
.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.side{background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:20px 14px;position:sticky;top:0;height:100vh}
.sidebrand{display:flex;align-items:center;gap:10px;padding:4px 8px 22px}
.sidebrand img{width:40px;height:40px;border-radius:8px} .sidebrand b{display:block;font-size:1.05rem;letter-spacing:.02em}
.sidebrand small{color:var(--gold);letter-spacing:.22em;font-size:.68rem;font-weight:700}
.side nav{display:flex;flex-direction:column;gap:3px}
.side nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:#CFCBE0;text-decoration:none;font-weight:600}
.side nav a svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.side nav a:hover{background:rgb(255 255 255 / .06);color:#fff}
.side nav a.on{background:rgb(255 255 255 / .1);color:#fff;box-shadow:inset 3px 0 0 var(--gold)}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid rgb(255 255 255 / .1)}
.me b{display:block;font-size:.88rem} .me small{color:#A9A4BF;font-size:.75rem} .me > div{flex:1;min-width:0}
.me button{background:transparent;color:#DAD6EA;border-color:rgb(255 255 255 / .25)}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--gold);color:var(--navy);display:grid;place-items:center;font-weight:800;font-size:.85rem;flex:none}
main{max-width:1180px;width:100%;margin:0 auto;padding:30px 32px 70px;min-width:0}
.pagehead{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px} .pagehead .spacer{flex:1}

/* ---------- client page hero ---------- */
.hero{position:relative;overflow:hidden;background:var(--navy);color:#fff}
.heroin{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:28px 32px 26px}
.hero h1{color:#fff;font-size:2.1rem;margin-top:22px} .hero p{color:#DAD6EA}
.hero .ring{width:300px;height:300px;border-width:46px;right:-80px;bottom:-150px}

/* ---------- building blocks ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;margin-bottom:18px;box-shadow:var(--shadow)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px 18px} .full{grid-column:1/-1}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.stat{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px 14px;text-decoration:none;color:inherit;box-shadow:var(--shadow);overflow:hidden;transition:transform .15s}
.stat::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--gold)}
.stat:hover{transform:translateY(-2px)} .stat b{display:block;font-size:1.55rem;font-weight:800} .stat span{color:var(--muted);font-size:.86rem}
label.f{display:flex;flex-direction:column;gap:6px;font-size:.86rem;font-weight:600}
label.f small{font-weight:400}
input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:10px 13px;width:100%;min-height:46px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgb(201 162 74 / .18)}
textarea{min-height:110px;resize:vertical} input:disabled,select:disabled,textarea:disabled{background:var(--surface-2);color:var(--muted)}
input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--navy)}
button{font:inherit;font-weight:700;border-radius:11px;padding:10px 18px;border:1px solid var(--navy);background:var(--navy);color:#fff;cursor:pointer;min-height:44px;transition:filter .15s}
button:hover{filter:brightness(1.15)} button.block{width:100%;min-height:52px;font-size:1rem}
button.ghost{background:var(--surface);color:var(--text);border-color:var(--line)} button.small{padding:5px 12px;min-height:32px;font-size:.84rem;border-radius:9px}
button.danger{background:var(--surface);color:var(--bad);border-color:var(--bad)} button:disabled{opacity:.55;cursor:default}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
table{width:100%;border-collapse:collapse;font-size:.93rem} th,td{text-align:left;padding:10px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;border-bottom:2px solid var(--line)}
td.num,th.num{text-align:right;white-space:nowrap} td:first-child{white-space:nowrap} tr.total td{font-weight:800;border-top:2px solid var(--line)}
tbody tr:hover td, table tr:hover td{background:var(--surface-2)}
.tablewrap{overflow-x:auto}
.pill{display:inline-block;padding:3px 10px;border-radius:99px;font-size:.76rem;font-weight:700;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);white-space:nowrap;text-transform:capitalize}
.pill.ok{color:var(--ok);background:rgb(46 125 50 / .08);border-color:rgb(46 125 50 / .3)}
.pill.warn{color:var(--warn);background:rgb(178 106 0 / .08);border-color:rgb(178 106 0 / .3)}
.pill.bad{color:var(--bad);background:rgb(192 0 0 / .07);border-color:rgb(192 0 0 / .3)}
.problems{border-left:3px solid var(--bad);padding:10px 14px;background:var(--surface-2);margin:10px 0;border-radius:0 10px 10px 0}
.problems.ok{border-color:var(--ok)} .problems.warn{border-color:var(--warn)} .problems ul{margin:4px 0 0;padding-left:18px}
.empty{padding:22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--r)}
details summary{cursor:pointer;font-weight:600}
#toasts{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:50}
.toast{background:var(--navy);color:#fff;padding:11px 18px;border-radius:12px;box-shadow:0 8px 24px rgb(0 0 30 / .25);border-left:3px solid var(--gold)} .toast.bad{background:var(--bad);border-left-color:#fff}
.overlay{position:fixed;inset:0;background:rgb(0 0 30 / .5);display:grid;place-items:center;z-index:40;padding:16px;backdrop-filter:blur(2px)}
.dialog{background:var(--surface);border-radius:18px;max-width:660px;width:100%;max-height:92vh;overflow:auto;padding:24px;box-shadow:0 20px 60px rgb(0 0 0 / .3)}
.sigpad{border:1.5px dashed var(--muted);border-radius:12px;background:#fff;width:100%;height:150px;touch-action:none;display:block}
.lines td{padding:4px} .lines input{min-height:38px}
.steps{counter-reset:s;list-style:none;padding:0} .steps li{counter-increment:s;padding:6px 0 6px 36px;position:relative}
.steps li::before{content:counter(s);position:absolute;left:0;top:5px;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:700}

/* ---------- phones and small tablets ---------- */
@media (max-width:900px){
  .auth{grid-template-columns:1fr} .brand{padding:28px 24px 30px;min-height:0} .brand h1{font-size:1.9rem;margin-top:22px} .brand small{display:none}
  .brand .ring{width:240px;height:240px;border-width:40px;right:-90px;bottom:-120px}
  .shell{grid-template-columns:1fr} .side{position:sticky;top:0;height:auto;z-index:20;padding:10px 12px;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
  .sidebrand{padding:0} .sidebrand small{display:none} .side nav{flex-direction:row;overflow-x:auto;order:3;width:100%;gap:2px}
  .side nav a{padding:8px 10px;white-space:nowrap} .side nav a span{font-size:.88rem}
  .me{margin:0 0 0 auto;border:0;padding:0} .me > div{display:none}
  main{padding:20px 14px 60px} .heroin{padding:20px 16px} .hero h1{font-size:1.6rem}
  .card{padding:16px} th,td{padding:8px 6px}
}
