
:root {
  --ink: #1a1a1e;
  --ink-2: #57534e;
  --muted: #716e69;
  --ground: #fafaf9;
  --surface: #fff;
  --border: #e2e2de;
  --primary: #0f766e;
  --nav: #073f3b;
  --danger: #b23524;
  --radius: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif;
}
a { color: var(--primary); }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
nav.rail {
  background: var(--nav);
  color: #f2fffd;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
nav.rail .mark { padding: 0 20px 20px; font-weight: 700; letter-spacing: .08em; font-size: 13px; }
nav.rail .mark small { display: block; font-weight: 400; letter-spacing: 0; opacity: .7; margin-top: 2px; }
nav.rail a { color: #cfe9e5; text-decoration: none; padding: 9px 20px; display: block; font-size: 14px; }
nav.rail a:hover { background: rgba(255,255,255,.06); }
nav.rail a[aria-current] { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
nav.rail .foot { margin-top: auto; padding: 16px 20px 0; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); }
nav.rail .foot strong { display: block; color: #fff; font-weight: 600; }
nav.rail .foot small { color: #9fc9c3; }
main { padding: 28px 32px; min-width: 0; }
h1 { font-size: 21px; margin: 0 0 4px; }
.lede { color: var(--ink-2); margin: 0 0 24px; max-width: 62ch; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f5f3f0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
code { font: 12px ui-monospace, monospace; color: var(--ink-2); }
.tag { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #eef2f1; font-size: 12px; color: var(--ink-2); }
.tag--off { background: #f6ecea; color: var(--danger); }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0 0 12px; }
form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); gap: 4px; }
input, select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; cursor: pointer; }
button.secondary { background: var(--surface); color: var(--ink-2); border: 1px solid var(--border); }
button.secondary:hover { border-color: var(--primary); color: var(--primary); }
button.danger { background: var(--surface); color: var(--danger); border: 1px solid var(--border); }
a.danger { color: var(--danger); font-size: 13px; font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
.person-form { display: grid !important; grid-template-columns: repeat(3, minmax(160px, 1fr)); align-items: end !important; }
.person-form > button:last-child { width: max-content; min-width: 120px; min-height: 38px; }
.password-field { min-width: 0; }
.password-control { display: flex; min-width: 0; }
.password-control input { min-width: 0; flex: 1; border-radius: 6px 0 0 6px; }
.password-control .password-toggle { min-width: 58px; padding: 7px 9px; border-left: 0; border-radius: 0 6px 6px 0; }
.password-toolbar { display: flex; min-width: 0; grid-column: 1 / -1; align-items: center; flex-wrap: wrap; gap: 7px; }
.password-toolbar button { min-height: 32px; padding: 5px 10px; }
.password-toolbar small, [data-password-status] { color: var(--muted); font-size: 12px; }
[data-password-status].is-valid { color: var(--primary); font-weight: 650; }
[data-password-status].is-invalid { color: var(--danger); font-weight: 650; }
.password-reset { min-width: 172px; }
.password-reset summary { width: max-content; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink-2); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.password-reset summary::-webkit-details-marker { display: none; }
.password-reset[open] summary { border-color: var(--primary); color: var(--primary); }
.password-reset form { display: grid; width: min(310px, 72vw); gap: 9px; margin-top: 9px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--ground); }
.password-reset .password-toolbar { grid-column: auto; }
.password-reset form > button:last-child { justify-self: start; }
.notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.notice--error { background: #f9edeb; color: var(--danger); }
.notice--ok { background: #eaf5f3; color: var(--primary); }
.tag--ready { background: #e7f4f1; color: var(--primary); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 13px; }
.report-access { margin-top: 28px; padding: 0; overflow: hidden; }
.report-access > .section-heading { padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.report-access > .notice, .report-access > .empty { margin: 18px; }
.assignment-list { display: grid; }
.assignment-person { padding: 18px; border-bottom: 1px solid var(--border); background: var(--surface); transition: background-color 160ms ease; }
.assignment-person:last-child { border-bottom: 0; }
.assignment-person:hover { background: #fbfdfc; }
.assignment-person > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.assignment-person > header div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.assignment-person > header strong { font-size: 16px; }
.assignment-person > header small { color: var(--muted); }
.assignment-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 10px; }
.assignment-grid form { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--ground); }
.assignment-grid form:hover { border-color: rgba(15,118,110,.55); }
.assignment-grid label { color: var(--ink); font-weight: 650; }
.assignment-grid select { width: 100%; min-width: 0; height: 38px; margin-top: 3px; color: var(--ink); }
.assignment-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.assignment-action button { min-height: 34px; padding: 6px 12px; }
.signin { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.signin form { width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.signin h1 { margin-bottom: 2px; }
.signin label { margin-bottom: 14px; }
.signin input { width: 100%; }
.signin button { width: 100%; margin-top: 6px; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 172px minmax(0, 1fr); }
  main { padding: 24px 20px; }
  .assignment-grid { grid-template-columns: 1fr; }
  .person-form { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 700px) {
  .shell { display: block; }
  nav.rail { min-height: auto; }
  nav.rail .foot { display: none; }
  main { padding: 20px 14px; }
  .section-heading, .assignment-person > header { align-items: flex-start; }
  .assignment-person > header div { flex-direction: column; gap: 2px; }
  .person-form { grid-template-columns: 1fr; }
  .person-form > button:last-child { width: 100%; }
  table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .password-reset form { width: 280px; }
  .people-table { display: block; overflow: visible; border: 0; background: transparent; }
  .people-table thead { display: none; }
  .people-table tbody { display: grid; gap: 10px; }
  .people-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  .people-table td { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 10px 12px; border-bottom: 0; }
  .people-table td::before { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .people-table td:nth-child(1)::before { content: "Name"; }
  .people-table td:nth-child(2)::before { content: "Email"; }
  .people-table td:nth-child(3)::before { content: "Role"; }
  .people-table td:nth-child(4)::before { content: "Sign-in"; }
  .people-table td:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .people-table td:nth-child(5)::before { content: "Password"; }
  .people-table td:nth-child(6) { grid-column: 1 / -1; align-items: flex-start; border-top: 1px solid var(--border); }
  .people-table .password-reset, .people-table .password-reset summary { width: 100%; }
  .people-table .password-reset form { width: 100%; }
}
/* In place of style attributes, which the CSP refuses. */
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-26 { margin-top: 26px !important; }
.mt-28 { margin-top: 28px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }
.mb-20 { margin-bottom: 20px !important; }
