:root {
  --ink: #1d232b;
  --muted: #5b6573;
  --line: #d9dee5;
  --bg: #f4f6f9;
  --card: #ffffff;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --error: #b42318;
  --ok: #1e7a46;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
header.top {
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.org-name { font-weight: 600; }
.dept { font-size: 14px; opacity: .85; }
nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 15px; }
nav a, nav .link { color: var(--accent-ink); text-decoration: none; }
nav a:hover, nav .link:hover { text-decoration: underline; }
nav .who { opacity: .8; }
main { flex: 1; padding: 24px 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  max-width: 760px; margin: 0 auto; padding: 24px;
}
.card.narrow { max-width: 440px; }
.card.wide { max-width: 1100px; }
h1 { font-size: 22px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.heading-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 8px 10px; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.card.narrow form label { margin-bottom: 14px; }
.card.narrow form input { margin-top: 4px; font-weight: 400; }
.field { margin: 18px 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.req { color: var(--error); }
.help { font-size: 14px; color: var(--muted); margin-top: 4px; }
.error-text { font-size: 14px; color: var(--error); margin-top: 4px; }
.radios { display: flex; gap: 24px; }
label.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
label.radio input { width: auto; }
button, .button {
  display: inline-block; padding: 9px 18px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; text-decoration: none;
}
button.danger { background: var(--error); }
button.link { background: none; padding: 0; color: inherit; font-size: inherit; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
form.inline { display: inline; }
.flash { padding: 10px 14px; border-radius: 6px; margin: 0 auto 16px; max-width: 760px; }
.flash.ok { background: #e6f4ec; color: var(--ok); }
.flash.error { background: #fdecea; color: var(--error); }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 14px; color: var(--muted); font-weight: 600; }
table.list .actions { white-space: nowrap; }
table.list .actions a { margin-right: 10px; }
.card.wide { overflow-x: auto; }
table.details th, table.details td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.details th { width: 40%; font-weight: 600; }
table.details td { white-space: pre-wrap; }
.doc-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doc-title { text-align: center; font-size: 20px; letter-spacing: .02em; }
a { color: var(--accent); }
footer { text-align: center; padding: 18px 16px; font-size: 14px; border-top: 1px solid var(--line); background: var(--card); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media print {
  header.top, .no-print, .flash { display: none !important; }
  body, main { background: #fff; padding: 0; }
  .card { border: 0; max-width: none; }
}
a.org { color: inherit; text-decoration: none; }
.intro { max-width: 1100px; margin: 0 auto 20px; }
.tiles {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; border-left: 4px solid var(--accent);
}
.tile:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.tile-name { font-weight: 600; font-size: 18px; color: var(--accent); }
.tile-desc { color: var(--muted); font-size: 15px; }
