:root {
  --brand: #0b5cab;
  --accent: #f5a623;
  --ink: #12181f;
  --muted: #67727e;
  --line: #e3e7ec;
  --bg: #f4f6f8;
  --ok: #17864a;
  --warn: #b7791f;
  --bad: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 56px; }
.wide { max-width: 1200px; }

/* header */
.masthead { background: var(--brand); color: #fff; padding: 16px 0; }
.masthead .inner { max-width: 720px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.wide-head .inner { max-width: 1200px; }
.masthead img { height: 38px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.masthead .co { font-size: 17px; font-weight: 700; line-height: 1.2; }
.masthead .sub { font-size: 12px; opacity: .82; letter-spacing: .05em; text-transform: uppercase; }
.masthead .spacer { flex: 1; }

/* card */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 18px 0; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card .lede { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

h1 { font-size: 22px; margin: 22px 0 6px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0 0 4px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }

video { width: 100%; border-radius: 10px; background: #000; display: block; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 5px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 82px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, #fff); border-color: var(--brand); }

button, .btn {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px; padding: 11px 18px;
  background: var(--brand); color: #fff; text-decoration: none; display: inline-block;
}
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
button.ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
button.danger { background: #fff; color: var(--bad); border-color: #f0c9c6; }
button.sm { padding: 7px 12px; font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.pill.unassigned { background: #fdf1d6; color: var(--warn); }
.pill.ready      { background: #e8eefb; color: var(--brand); }
.pill.sent       { background: #e8eefb; color: var(--brand); }
.pill.viewed     { background: #e6f2ec; color: var(--ok); }
.pill.acknowledged { background: var(--ok); color: #fff; }
.pill.coaching { background: #eef1f4; color: var(--muted); }
.pill.serious  { background: #fdf1d6; color: var(--warn); }
.pill.critical { background: #fbe6e4; color: var(--bad); }

.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; line-height: 1.45; }
.notice.err { background: #fbe6e4; color: var(--bad); }
.notice.ok  { background: #e6f2ec; color: var(--ok); }
.notice.info { background: #eef1f4; color: var(--muted); }

.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.center { text-align: center; }
[hidden] { display: none !important; }

table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 10px; font-weight: 700; }
table.grid td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: middle; }
table.grid tr:hover td { background: #fafbfc; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 0; flex-wrap: wrap; }
.tabs button { background: none; color: var(--muted); border: none; border-bottom: 3px solid transparent;
  border-radius: 0; padding: 10px 14px; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

.ack-box { border: 2px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 18px; }
.ack-box.armed { border-color: var(--brand); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 21px; height: 21px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }

.copyfield { display: flex; gap: 6px; }
.copyfield input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

@media (max-width: 620px) {
  .masthead img { height: 30px; }
  .card { padding: 16px; }
  table.grid th:nth-child(n+5), table.grid td:nth-child(n+5) { display: none; }
}

kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef1f4;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
