:root {
  --ink:#222429;
  --muted:#545966;
  --line:#e0e1e5;
  --accent:#a82239;
  --green:var(--accent);
  color:var(--ink);
  background:#f6f6f7;
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
}
body {background:linear-gradient(180deg,#fff 0 134px,#f6f6f7 134px);min-height:100vh}
.shell {max-width:1260px;padding-inline:clamp(16px,4.6vw,62px)}
header {min-height:70px;background:#fff}
.brand {gap:13px}
.wordmark {font-weight:850;letter-spacing:-.055em;color:#1d1f24}
.brand strong {font-weight:580;color:#535661;font-size:20px}
.brand .company-logo {display:block;width:76px;height:37px;object-fit:contain}
.divider {height:20px;border-color:#dadbe0}
.tools a,.quiet {font-weight:600}
.tools a {padding:8px 0}
nav {background:white;border-bottom:1px solid var(--line);gap:clamp(1px,.7vw,12px);padding:0;min-height:62px}
nav button {position:relative;border:0;border-radius:0;min-height:58px;padding:10px 15px;color:var(--muted)}
nav button[aria-current="page"] {background:transparent;color:var(--accent)}
nav button[aria-current="page"]::after {content:"";position:absolute;bottom:0;left:14px;right:14px;height:3px;background:var(--accent);border-radius:3px 3px 0 0}
nav button:hover:not(:disabled) {background:#faf5f6;filter:none}
main {padding-top:clamp(24px,3vw,42px)}
h1 {font-size:clamp(30px,4.1vw,48px);letter-spacing:-.052em;font-weight:725}
h2 {font-size:clamp(18px,2vw,22px);font-weight:700}
.title {align-items:center}
.title .row {align-items:flex-end}
.title label {font-size:12px;font-weight:650;color:var(--muted)}
.title p {font-size:14px}
button {border-radius:8px;transition:background-color .12s ease,color .12s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #a82239;outline-offset:3px}
.alt,.quiet {background:white;color:var(--ink);border-color:#ced0d6}
.alt.danger {color:#a82239}
.stats {gap:13px;margin-bottom:22px}
.stat {position:relative;min-height:119px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;padding:19px 22px;border-radius:13px;border:1px solid var(--line);box-shadow:0 1px 2px #15161a07}
.stat span {font-size:13px;font-weight:620;color:var(--muted)}
.stat strong {font-size:clamp(32px,4vw,47px);font-weight:690;line-height:1;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.stat:first-child {background:linear-gradient(120deg,#303136,#212227);border-color:#303136;color:white}
.stat:first-child span {color:#ececef}
.stat:last-child {border-color:#edcbd0;background:#fff8f9}
.stat:last-child strong {color:var(--accent)}
.stat .metric-mark {position:absolute;right:18px;bottom:23px;width:26px;height:26px;opacity:.78;object-fit:contain}
.stat:first-child .metric-mark {color:#fff}
.stat:last-child .metric-mark {color:var(--accent)}
.grid {grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px}
.card {padding:clamp(17px,2vw,26px);border-color:var(--line);border-radius:13px;box-shadow:0 2px 6px #16171c05}
.card h2 {margin-bottom:17px}
.roster {max-height:430px;overflow:auto;scrollbar-gutter:stable}
.person-ident {display:flex;gap:12px;align-items:center;min-width:0}
.person-ident div {min-width:0;overflow-wrap:anywhere}
.person-ident .initials {border:1px solid #dddde0;background:#f3f3f5;border-radius:10px;width:37px;height:37px;display:grid;place-items:center;flex:none;color:#4e515b;font:650 12px/1 Inter,"Segoe UI",sans-serif;letter-spacing:.02em}
.line small,.record small {font-size:13px}
.line {border-color:#ededf0}.line strong,.record strong {font-size:15px}
.record {border-color:#eeeef1}
.record .row {gap:9px}
.record .row:first-child {margin-top:0}
.record .row>button {min-height:38px;padding:7px 13px;font-size:13px}
.empty {padding:18px 12px;background:#f8f8f9;border:1px dashed #d9dae0;border-radius:8px}
.hero {background:linear-gradient(120deg,#292a2f,#363139);color:#fff;border-color:#292a2f;border-left:4px solid var(--accent)}
.hero .muted {color:#ece9eb}
.badge {border-radius:100px;padding:5px 9px;line-height:1.2}
.good {background:#e5f3e9;color:#185732}.warn {background:#faefd8;color:#734a10}.bad {background:#fce4e7;color:#932d39}
.form {gap:16px}
input,select,textarea {border-color:#c9cbd2;border-radius:7px;color:var(--ink)}
input[type="checkbox"] {accent-color:var(--accent)}
fieldset {padding:12px}
summary {cursor:pointer;font-weight:660}
#notice {background:#27282e;color:white}
#notice.error {background:#8a2438}
footer {font-size:11px;color:#5b5e66;letter-spacing:.035em}
@media(max-width:740px){
  body {background:#f6f6f7}
  header,nav {background:#f6f6f7}
  nav {flex-wrap:nowrap;overflow-x:auto;min-height:auto;scrollbar-width:thin}
  nav button {white-space:nowrap;min-height:46px;padding:7px 10px}
  nav button[aria-current="page"]::after {left:9px;right:9px}
  .grid {grid-template-columns:minmax(0,1fr);gap:0}
  .stats {gap:7px}
  .stat {padding:13px 11px;min-height:92px;gap:10px}
  .stat span {font-size:12px;line-height:1.3}
  .stat .metric-mark {display:none}
  .title {align-items:flex-start}
  .roster {max-height:310px}
}
@media(max-width:410px){
  .shell {padding-inline:12px}
  .brand .company-logo {width:57px;height:28px}
  .brand strong {font-size:17px}
  .title .row {gap:8px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}
