/* ============================================================
   Planetary Scale — onboarding ADMIN + sign-in surfaces.
   Page CSS on top of the vendored ps-ui bundle (core → components → public).
   Tokens only — no raw hexes (psa-web hard rule), so dark mode rides free.
   The hire-facing portal keeps styles.css; this file never loads there.
   ============================================================ */

/* ---- Top band ---- */
.adm-top{background:var(--accent-deep);color:#fff;padding:.7rem 0}
.adm-top .bar{max-width:1080px;margin:0 auto;padding:0 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.adm-top img{height:26px;filter:brightness(0) invert(1)}
.adm-top .ttl{font-family:var(--serif);font-weight:700;font-size:1.05rem;color:#fff}
.adm-top .ttl small{display:block;font-family:var(--sans);font-weight:400;font-size:.78rem;opacity:.85}
.adm-top .sp{flex:1}
.adm-top a{color:#fff}
.adm-top .crumbs a{opacity:.85;font-size:.85rem}
.adm-top .crumbs a:hover{opacity:1}
.adm-top .btn.ghost{color:#fff;border-color:rgba(255,255,255,.4)}
.adm-top .btn.ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.adm-top .who{font-size:.8rem;opacity:.85}

/* ---- Page header ---- */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 0 1.1rem}
.ph h1{margin:0}
.ph .sub{margin:.2rem 0 0}

/* ---- Portal cards ---- */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.pcard{display:flex;flex-direction:column;gap:.7rem}
.pcard .who{display:flex;gap:.75rem;align-items:center}
.pcard .who .mono{width:42px;height:42px;font-size:.95rem;border-radius:11px}
.pcard .nm{font-family:var(--serif);font-weight:700;font-size:1.05rem;line-height:1.2}
.pcard .rl{font-size:.82rem;color:var(--tx2)}
.pcard .when{font-size:.82rem;color:var(--tx2);display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.prog{height:8px;background:var(--wash-soft);border-radius:99px;overflow:hidden}
.prog i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .4s}
.pcard .pm{display:flex;justify-content:space-between;font-size:.8rem;color:var(--tx2)}
.pcard .pm b{color:var(--tx)}
.pcard .acts{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.15rem}
.pcard.archived{opacity:.75}
.pcard.archived .prog i{background:var(--tx3)}
.arch-toggle{margin-top:1.4rem;display:flex;align-items:center;gap:.6rem;font-size:.85rem;color:var(--tx2)}

/* ---- Modal form bits (ps-ui .ovl/.modal system) ---- */
.frow{display:grid;grid-template-columns:1fr 1fr;gap:.7rem .9rem}
.frow .full{grid-column:1/-1}
.f{display:flex;flex-direction:column;gap:.25rem}
.f label{font-size:.78rem}
.f input,.f select,.f textarea{width:100%}
.f .hint{font-size:.74rem;color:var(--tx3)}
.f textarea{min-height:64px;resize:vertical;font-family:var(--sans)}
.mfoot{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem;align-items:center}
.mfoot .err{color:var(--err);font-size:.82rem;margin-right:auto}
@media (max-width:640px){.frow{grid-template-columns:1fr}}

/* ---- Progress view (per hire) ---- */
.ring-row{display:flex;gap:1.4rem;align-items:center;flex-wrap:wrap}
.ring{--p:0;width:118px;height:118px;border-radius:50%;flex:none;
  background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--wash-soft) 0);display:grid;place-items:center}
.ring i{width:88px;height:88px;border-radius:50%;background:var(--surface);display:grid;place-items:center;text-align:center;font-style:normal}
.ring b{font-family:var(--serif);font-size:1.5rem;color:var(--accent);display:block;line-height:1.1}
.ring span{font-size:.72rem;color:var(--tx2)}
.phasebars{flex:1;min-width:220px;display:grid;gap:.6rem}
.pb .top{display:flex;justify-content:space-between;font-size:.82rem;margin-bottom:.25rem}
.pb .top .n{color:var(--tx2)}
.pb .track{height:7px;background:var(--wash-soft);border-radius:99px;overflow:hidden}
.pb .track i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .4s}
.admin-task{display:flex;gap:.6rem;align-items:flex-start;padding:.45rem 0;border-bottom:1px solid var(--line);font-size:.9rem}
.admin-task:last-child{border-bottom:0}
.admin-task .mk{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--line2);flex:none;margin-top:2px;display:grid;place-items:center;font-size:.7rem;color:#fff}
.admin-task.done .mk{background:var(--accent);border-color:var(--accent)}
.admin-task.done .mk::after{content:"✓"}
.admin-task.done .tt{color:var(--tx2);text-decoration:line-through}
.live{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--tx2)}
.live .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);animation:ps-blink 1.6s infinite}
.hist-row{display:flex;gap:.6rem;align-items:baseline;font-size:.85rem;padding:.35rem 0;border-bottom:1px solid var(--line)}
.hist-row:last-child{border-bottom:0}
.hist-row .hi-mk{width:18px;flex:none;color:var(--ok);font-weight:700}
.hist-row.off .hi-mk{color:var(--amber)}
.hist-row .hi-task{flex:1}
.hist-row .hi-ago{color:var(--tx3);font-size:.78rem;white-space:nowrap}
.hist-row .hi-by{color:var(--amber);font-size:.75rem;margin-left:.4rem;font-weight:600}
.hist-empty{color:var(--tx3);font-size:.85rem}
.stack{display:grid;gap:1rem}

/* ---- Editor ---- */
.savebar{position:sticky;top:0;z-index:30;background:var(--surface);border-bottom:1px solid var(--line);
  padding:.55rem 0}
.savebar .bar{max-width:1080px;margin:0 auto;padding:0 1.25rem;display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.savebar .st{font-size:.82rem;color:var(--tx2)}
.savebar .st[data-state="dirty"]{color:var(--amber);font-weight:600}
.savebar .st[data-state="saving"]{color:var(--tx2)}
.savebar .st[data-state="saved"]{color:var(--ok)}
.savebar .st[data-state="error"]{color:var(--err);font-weight:600}
.savebar .sp{flex:1}
.ed{display:grid;grid-template-columns:220px 1fr;gap:1.4rem;align-items:start}
.ed-nav{position:sticky;top:60px;display:flex;flex-direction:column;gap:.15rem}
.ed-nav a{display:block;padding:.4rem .7rem;border-radius:8px;font-size:.88rem;color:var(--tx2)}
.ed-nav a:hover{background:var(--surface2);text-decoration:none;color:var(--tx)}
.ed-nav a.on{background:var(--wash-soft);color:var(--washtx);font-weight:600}
.ed-nav .grp{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--tx3);margin:.9rem .7rem .3rem;font-weight:700}
.ed-main{display:grid;gap:1.1rem;min-width:0}
.ed-sec{scroll-margin-top:70px}
.ed-sec .hd{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-bottom:.8rem}
.ed-sec .hd h2{margin:0;flex:1}
.ed-sec .hd .sub{width:100%;margin:0}
.ed-sec .tools{display:flex;gap:.35rem;align-items:center}
.item{border:1px solid var(--line);border-radius:11px;padding:.75rem .85rem .85rem;background:var(--surface2);position:relative;margin-bottom:.6rem}
.item .itools{position:absolute;top:.5rem;right:.6rem;display:flex;gap:.25rem}
.item .itools .btn{padding:.18rem .45rem;font-size:.72rem}
.item .ihd{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--tx3);font-weight:700;margin-bottom:.5rem}
.item .frow{margin-top:.35rem}
.item .item{background:var(--surface);margin-top:.5rem}
.sub-list{margin-top:.6rem;padding-top:.6rem;border-top:1px dashed var(--line2)}
.sub-list > .lbl{font-size:.78rem;font-weight:700;color:var(--tx2);margin-bottom:.4rem;display:flex;align-items:center;gap:.5rem}
.addrow{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.3rem}
.chk{display:inline-flex;align-items:center;gap:.4rem;font-size:.84rem;color:var(--tx);font-weight:500}
.chk input{width:16px;height:16px;accent-color:var(--accent)}
.pairrow{display:grid;grid-template-columns:1fr 1.4fr auto;gap:.5rem;align-items:center;margin-bottom:.4rem}
.strrow{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center;margin-bottom:.4rem}
.ed-sec.off{opacity:.6}
.ed-sec.off .hd{opacity:1}
.tokens{font-size:.76rem;color:var(--tx3)}
.tokens code{font-size:.72rem}
@media (max-width:820px){.ed{grid-template-columns:1fr}.ed-nav{position:static;flex-direction:row;flex-wrap:wrap}.ed-nav .grp{display:none}}

/* ---- Sign-in ---- */
.btn.google{background:var(--surface);color:var(--tx);border:1px solid var(--line2);gap:.6rem}
.btn.google:hover{background:var(--surface2);color:var(--tx)}
.btn.google svg{width:18px;height:18px;flex:none}
.or{display:flex;align-items:center;gap:.6rem;color:var(--tx3);font-size:.76rem;margin:.9rem 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.authcard form .field input{text-align:left}
.authcard .banner{text-align:left;margin-bottom:.9rem}

/* ps-ui components set their own display (flex on .ovl/.banner), which beats the UA's
   [hidden] rule — so hidden means hidden, everywhere on these pages */
[hidden]{display:none!important}
/* a web address in running text is a live link, underlined so it stands out without colour (web UX standard Y7) */
a.autolink{text-decoration:underline;text-underline-offset:2px}
