  :root {
    --blue: #003361;
    --blue-2: #3d638c;
    --hover: #4f88bc;
    --pick: #eef3f8;
    --text: #1f2933;
    --muted: #5f6b76;
    --line: #d9dee3;
    --page: #f4f6f8;
    --error: #a3261b;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body {
    margin: 0; background: var(--page); color: var(--text);
    font: 16px/1.55 Overpass, "Segoe UI", Helvetica, Arial, sans-serif;
  }
  a { color: var(--blue); }
  .in { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

  header { background: #fff; border-bottom: 1px solid #e6e6e6; }
  header .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
  header img { display: block; height: 40px; width: auto; }
  header nav { display: flex; gap: 28px; }
  header nav a { font-size: 15px; font-weight: 500; text-decoration: none; }
  header nav a:hover { text-decoration: underline; }

  /* hero */
  .hero {
    color: #fff;
    background: #0a2a4d url("srg-hero-tower.webp") right center / cover no-repeat;
  }
  .hero .in { padding-top: 56px; padding-bottom: 96px; }
  .hero h1 { font-size: 42px; font-weight: 500; line-height: 1.1; margin: 0 0 14px; }
  .hero .lede { font-size: 18px; max-width: 34em; margin: 0 0 28px; color: #dce6f0; }
  .facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
  .facts li { font-size: 15px; color: #c3d3e3; }
  .facts b { display: block; font-size: 17px; font-weight: 500; color: #fff; }

  /* panel */
  main .in { padding-bottom: 56px; }
  .panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-top: -56px; padding: 32px; position: relative; }

  h2 { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
  .hint { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
  .step + .step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
  .n { color: var(--blue); }

  input[type=email], input[type=search] {
    width: 100%; font: inherit; padding: 11px 12px; color: var(--text);
    border: 1px solid #aab4bd; border-radius: 4px; background: #fff;
  }
  input:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; border-color: var(--blue-2); }

  /* search */
  .search { position: relative; }
  .results {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2;
    background: #fff; border: 1px solid #aab4bd; border-radius: 4px;
    max-height: 280px; overflow-y: auto;
  }
  .results button {
    display: block; width: 100%; text-align: left; font: inherit; color: var(--text);
    background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; cursor: pointer;
  }
  .results button:last-child { border-bottom: 0; }
  .results button:hover, .results button:focus { background: var(--pick); outline: none; }
  .results .none { padding: 10px 12px; color: var(--muted); margin: 0; }
  .num { font-weight: 700; color: var(--blue); }

  /* docket tiles */
  .list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .list li { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
  .list li:hover { border-color: var(--blue-2); }
  .list li:has(input:checked) { border-color: var(--blue); background: var(--pick); }
  .list label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; cursor: pointer; height: 100%; }
  .list input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
  .list .title { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
  #added { margin-top: 16px; }
  .list .added .num::after { content: "  added"; font-weight: 400; font-size: 13px; color: var(--blue-2); }
  .group-label { font-size: 14px; color: var(--muted); margin: 22px 0 10px; }

  .count { font-size: 15px; margin: 14px 0 0; font-weight: 500; color: var(--blue); }

  .consent { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
  button.go {
    margin-top: 20px; font: inherit; font-size: 16px; line-height: 18px;
    color: #fff; background: var(--blue); border: 1px solid #325778; border-radius: 4px;
    padding: 14px 32px; cursor: pointer;
  }
  button.go:hover { background: var(--hover); border-color: #396995; }
  .err { color: var(--error); font-size: 15px; margin: 12px 0 0; }

  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  .done h2 { font-size: 28px; margin-bottom: 12px; }
  .done p { margin: 0 0 14px; max-width: 52ch; }

  .resend { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
  .resend form { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
  .resend input { flex: 1 1 240px; }
  .resend button {
    font: inherit; color: var(--blue); background: #fff;
    border: 1px solid var(--blue); border-radius: 4px; padding: 10px 16px; cursor: pointer;
  }
  .resend button:hover { color: #fff; background: var(--hover); border-color: #396995; }

  /* other public pages */
  .hero-short .in { padding-top: 40px; padding-bottom: 88px; }
  .hero-short h1 { margin: 0; }
  .panel > p { margin: 0 0 14px; }
  .muted { color: var(--muted); font-size: 15px; }
  .notice { background: var(--pick); border: 1px solid #c9d8e6; border-radius: 4px; padding: 10px 14px; color: var(--blue); }
  .rows { list-style: none; margin: 8px 0 20px; padding: 0; border-top: 1px solid var(--line); }
  .rows li { padding: 11px 2px; border-bottom: 1px solid var(--line); }
  .rows .title { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
  .row-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .row-action form { margin: 0; flex: none; }
  #added:not([hidden]) + .count, #added:not([hidden]) { margin-top: 14px; }
  button.small, button.secondary {
    font: inherit; color: var(--blue); background: #fff;
    border: 1px solid var(--blue); border-radius: 4px; cursor: pointer;
  }
  button.small { font-size: 14px; padding: 6px 12px; }
  button.secondary { padding: 11px 20px; }
  button.small:hover, button.secondary:hover { color: #fff; background: var(--hover); border-color: #396995; }

  /* admin */
  main.admin { background: #fff; }
  main.admin .in { max-width: 960px; padding-top: 24px; padding-bottom: 56px; }
  main.admin h1 { font-size: 28px; font-weight: 500; margin: 0 0 16px; }
  main.admin h2 { margin: 32px 0 10px; }
  .admin-nav { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
  .admin-nav a { text-decoration: none; font-weight: 500; }
  .admin-nav a.on { border-bottom: 2px solid var(--blue); padding-bottom: 10px; margin-bottom: -13px; }
  .admin-nav .who { margin-left: auto; color: var(--muted); font-size: 14px; }
  .lookup { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
  .lookup input { flex: 1 1 280px; }
  .lookup button.go { margin-top: 0; }
  .answer { font-size: 18px; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--pick); margin: 16px 0; }
  .answer.ok { border-left-color: #2e7d4f; background: #eef7f1; }
  .answer.warn { border-left-color: #b7791f; background: #fdf6e7; }
  .answer.bad { border-left-color: var(--error); background: #fbeeec; }
  table.facts, table.grid { border-collapse: collapse; width: 100%; font-size: 15px; }
  table.facts th { text-align: left; font-weight: 500; color: var(--muted); width: 260px; }
  table.facts th, table.facts td, table.grid td, table.grid th { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  table.grid th { text-align: left; font-weight: 500; color: var(--muted); }
  .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
  form.inline { display: inline; margin: 0; }

  footer { background: var(--blue); color: #c3d3e3; }
  footer .in { padding-top: 24px; padding-bottom: 32px; font-size: 13.5px; }
  footer a { color: #fff; }

  @media (max-width: 600px) {
    .hero .in { padding-top: 36px; padding-bottom: 80px; }
    .hero h1 { font-size: 32px; }
    .hero { background-position: 70% center; }
    .panel { padding: 22px 18px; }
    .list { grid-template-columns: 1fr; }
    button.go { width: 100%; }
  }
  @media (max-width: 480px) {
    header img { height: 32px; }
    header nav { gap: 16px; }
    header nav a { font-size: 14px; }
  }
