:root{--ink:#1c1a17;--muted:#6b645c;--line:#e5e0d8;--bg:#faf8f5;--accent:#1d4ed8}
*{box-sizing:border-box}
body{margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--bg)}
#boot{padding:2rem;color:var(--muted)}
#app{display:grid;grid-template-columns:224px 1fr;min-height:100vh}
/* The grid above beats the UA [hidden] rule, so a hidden #app still drew an
   empty rail. It never mattered while every visitor unhid it; staff now never do. */
#app[hidden]{display:none}
#rail{border-right:1px solid var(--line);background:#fff;padding:1rem .75rem}
#rail a{display:block;padding:.5rem .625rem;border-radius:6px;color:var(--ink);text-decoration:none}
#rail a[aria-current=page]{background:#eef2ff;color:var(--accent);font-weight:600}
#rail .empty{color:var(--muted);padding:.5rem .625rem}
main{padding:1.5rem 2rem}
h1{font-size:1.25rem;margin:0 0 .5rem}
#paneBody{color:var(--muted)}
dl { display:grid; grid-template-columns:minmax(150px,230px) 1fr; gap:2px 14px; margin:.75rem 0 1.25rem; }
dt { color:var(--muted); font-size:12px; }
dd { margin:0; font-size:13px; }
h2 { font-size:.95rem; margin:1rem 0 .35rem; }
#pane a { color:var(--accent); }
#paneBody ul { margin:.25rem 0 1rem; padding-left:1.1rem; }
.decide { display:flex; gap:8px; align-items:center; margin:1rem 0; flex-wrap:wrap; }
.decide input { flex:1 1 260px; padding:.45rem .6rem; border:1px solid var(--line); border-radius:6px; font:inherit; }
.decide button { padding:.45rem .8rem; border:1px solid var(--line); border-radius:6px; background:#fff; font:inherit; cursor:pointer; }
.decide button:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
.decide button:disabled { opacity:.5; cursor:default; }

/* Staff looking at a client's screen. Loud on purpose: without it this pane is
   indistinguishable from the admin's own status page, and the first thing they
   do is wonder why THEIR application is waiting on documents. */
.viewing-as {
  background: #fff4d6;
  border: 1px solid #e8a020;
  border-left: 4px solid #e8a020;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-weight: 600;
  color: #6b4a00;
}

.client-card {
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 12px;
  background: #fff;
}

.client-card p { margin: 0 0 6px; }
.client-card ul { margin: 4px 0 0; padding-left: 20px; }
.muted { color: #6b7280; font-size: 13px; }

/* -- Staff home (2026-10-21). The UW console's tokens: charcoal topbar, the
   orange Fi, beige ground, white cards on #e6e3da lines. Scoped under #home and
   body.staff-home so the applicant rail above is untouched. */
body.staff-home{background:#f0efe9;color:#272727;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#home{--sh-ink:#272727;--sh-muted:#555555;--sh-line:#e6e3da;--sh-soft:#fafaf6;--sh-orange:#e8a020;--sh-link:#1a5fb4;min-height:100vh;overflow-x:hidden}
#home a{color:var(--sh-link)}
.sh-top{background:#272727;color:#fff;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.sh-brand{display:flex;align-items:baseline;gap:12px}
.sh-logo{font-size:18px;font-weight:800;letter-spacing:-.5px}
.sh-logo span{color:var(--sh-orange)}
.sh-tag{font-size:10.5px;text-transform:uppercase;letter-spacing:.7px;color:rgba(255,255,255,.62);font-weight:700}
.sh-who{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:rgba(255,255,255,.78);min-width:0}
.sh-who #shWho{overflow-wrap:anywhere}
#home .sh-who a{color:#fff;font-weight:600}
.sh-testmode{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;background:rgba(232,160,32,.18);color:#f2b544;border:1px solid rgba(232,160,32,.4);border-radius:6px;padding:3px 9px}
.sh-testmode[hidden]{display:none}
.sh-avatar{width:26px;height:26px;border-radius:50%;background:var(--sh-orange);color:#272727;font-weight:800;font-size:11px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.sh-main{max-width:1180px;margin:0 auto;padding:28px 24px 48px;display:flex;flex-direction:column;gap:20px}
.sh-head{display:flex;flex-direction:column;gap:4px}
.sh-head h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.3px}
.sh-head p{margin:0;color:var(--sh-muted)}
.sh-jump{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--sh-line);border-radius:12px;padding:12px 18px;flex-wrap:wrap}
.sh-jump[hidden]{display:none}
.sh-jump label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#5f5f5f}
.sh-jump input,.sh-row input{flex:1 1 220px;min-width:0;padding:10px 14px;border:1.5px solid var(--sh-line);border-radius:9px;font:inherit;background:var(--sh-soft);color:var(--sh-ink)}
.sh-jump input{font-size:15px;font-weight:600}
.sh-jump button{padding:10px 18px;min-height:44px;border:0;border-radius:9px;background:#272727;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.sh-jump .sh-note{flex-basis:100%}
.sh-suggest{flex-basis:100%;list-style:none;margin:-4px 0 0;padding:4px;border:1px solid var(--sh-line);border-radius:9px;background:#fff;max-height:320px;overflow:auto}
.sh-suggest[hidden]{display:none}
.sh-suggest a{display:block;padding:8px 10px;border-radius:6px;color:var(--sh-ink);text-decoration:none;font-size:14px}
.sh-suggest a:hover,.sh-suggest a.on{background:var(--sh-soft)}
.sh-suggest .sh-sub{display:block;font-size:12px;color:#5f5f5f;margin-top:2px}
.sh-suggest .sh-fv{padding:8px 10px;font-size:14px;color:#5f5f5f}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px}
.sh-card{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--sh-line);border-radius:12px;padding:20px;color:var(--sh-ink);text-decoration:none;min-width:0}
#home a.sh-card{color:var(--sh-ink)}
a.sh-card:hover{border-color:#cfcabd}
.sh-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sh-card-head{display:flex;align-items:center;gap:12px;min-width:0}
.sh-icon{width:40px;height:40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.sh-card-title{font-size:16px;font-weight:800}
.sh-card-desc{font-size:12px;color:var(--sh-muted)}
.sh-chev{flex:none;display:inline-flex}
.sh-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.sh-tiles:empty{display:none}
.sh-tiles .sh-note{grid-column:1/-1}
.sh-tile{background:var(--sh-soft);border:1px solid var(--sh-line);border-radius:9px;padding:10px;min-width:0}
.sh-num{font-size:20px;font-weight:800}
.sh-lbl{font-size:11px;color:var(--sh-muted)}
.sh-tile.sh-warn{background:#fff8e1;border-color:#ffe082}
.sh-tile.sh-warn .sh-num,.sh-tile.sh-warn .sh-lbl{color:#8a5200}
.sh-tile.sh-good{background:#e3f4e3;border-color:#a5d6a7}
.sh-tile.sh-good .sh-num,.sh-tile.sh-good .sh-lbl{color:#1f6321}
.sh-gate .sh-num{font-size:13px;padding-top:5px}
.sh-gate .sh-lbl{overflow-wrap:anywhere}
.sh-views{display:flex;flex-direction:column;gap:10px}
.sh-views[hidden]{display:none}
.sh-views h2{margin:4px 0 0;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:#5f5f5f}
.sh-view{gap:12px;padding:18px 20px}
.sh-row{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.sh-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--sh-line);border-radius:9px;font:inherit;font-weight:700;text-decoration:none;background:#fff;color:var(--sh-ink);cursor:pointer}
#home a.sh-btn{color:var(--sh-ink)}
.sh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sh-note{font-size:12px;color:#5f5f5f}
.sh-list{margin:0;padding-left:18px;font-size:13px}
.sh-list:empty{display:none}
.sh-foot{margin:4px 0 0;font-size:12px;color:#5f5f5f}
@media (max-width:600px){
  .sh-top{padding:12px 16px}
  .sh-main{padding:20px 16px 40px}
  .sh-jump{padding:12px}
  .sh-jump button{flex:1 1 100%}
}
