:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe3ea;
  --surface: #ffffff;
  --background: #f5f7fa;
  --brand: #2457d6;
  --brand-dark: #1945b4;
  --success: #146c43;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--brand); }

.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem max(1.5rem, calc((100vw - 1100px) / 2));
}

.brand { color: var(--ink); font-weight: 750; text-decoration: none; }
.site-header nav { display: flex; gap: 1rem; }
.container { margin: 0 auto; max-width: 1100px; padding: 3rem 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.narrow { margin: 0 auto; max-width: 650px; }
.eyebrow { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: .35rem 0 1rem; }
h2 { margin-top: 2rem; }
.stack { display: grid; gap: .7rem; margin-top: 1.5rem; }
label { font-weight: 700; }
input { border: 1px solid #b8c0cc; border-radius: 8px; font: inherit; padding: .75rem .9rem; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #2457d622; outline: 0; }
button { background: var(--brand); border: 0; border-radius: 8px; color: white; cursor: pointer; font: inherit; font-weight: 750; padding: .78rem 1rem; }
button:hover { background: var(--brand-dark); }
.button-link { background: var(--brand); border-radius: 8px; color: white; display: inline-block; font-weight: 750; margin-top: 1rem; padding: .78rem 1rem; text-decoration: none; }
.button-link:hover { background: var(--brand-dark); }
.muted { color: var(--muted); font-size: .92rem; }
.alert { background: #eef2f8; border-radius: 8px; margin: 1rem 0; padding: .9rem 1rem; }
.alert.error { background: #fef3f2; color: var(--danger); }
.alert.success { background: #ecfdf3; color: var(--success); }
.badge { background: #eef2ff; border-radius: 999px; display: inline-block; font-size: .82rem; font-weight: 750; padding: .25rem .65rem; }
.status-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 2rem 0; }
.status-grid div { border-left: 3px solid var(--brand); padding-left: .8rem; }
dt { color: var(--muted); font-size: .83rem; font-weight: 700; }
dd { margin: .15rem 0 0; }
.details { display: grid; gap: .7rem 1.25rem; grid-template-columns: minmax(120px, 180px) 1fr; }
.page-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.5rem; }
.staff-summary { align-items: center; display: flex; gap: .7rem; }
.staff-summary form { margin: 0; }
.link-button { background: transparent; color: var(--brand); padding: 0; }
.action-form { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.table-card { overflow-x: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: .9rem 1rem; text-align: left; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.empty { color: var(--muted); padding: 2rem; text-align: center; }
.break-all { word-break: break-all; }

@media (max-width: 650px) {
  .container { padding: 1.5rem 1rem; }
  .card { padding: 1.25rem; }
  .page-heading, .staff-summary { align-items: flex-start; flex-direction: column; }
  .details { grid-template-columns: 1fr; }
}

