:root {
  --ink: #0B3C49;
  --teal: #1B6B78;
  --teal-soft: #E7F0F1;
  --bg: #F5F7F6;
  --line: #dde6e4;
  --muted: #5b7278;
  --warn: #9a5b12;
  --warn-bg: #FDF3E3;
  --bad: #8c2f2f;
  --bad-bg: #FBEDED;
  --good: #1f6b45;
  --good-bg: #E9F5EE;
  --gold: #B58A3C;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Figtree, Avenir, "Segoe UI", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; margin: 0; }
h1 { font-size: 27px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; font-family: Figtree, Avenir, sans-serif; font-weight: 700; }
a { color: var(--teal); }

/* ------------------------------------------------------------- chrome --- */
header.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.brand { font-family: Fraunces, Georgia, serif; font-size: 19px; font-weight: 600; }
.brand span { color: var(--muted); font-family: Figtree, sans-serif; font-size: 13px; font-weight: 400; }
nav.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.tabs a {
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
nav.tabs a:hover { background: var(--bg); }
nav.tabs a.on { background: var(--teal); color: #fff; }
.who { font-size: 13px; color: var(--muted); }
main { max-width: 1180px; margin: 0 auto; padding: 26px 22px 90px; }

/* -------------------------------------------------------------- pieces --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.card.tight { padding: 15px 17px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1 1 220px; min-width: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 12px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.field { margin-bottom: 14px; }

button, .btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; filter: none; }
button.ghost, .btn.ghost { background: #fff; color: var(--teal); border: 1px solid var(--line); }
button.quiet { background: transparent; color: var(--muted); padding: 6px 10px; font-weight: 600; }
button.danger { background: var(--bad); }
button.sm { padding: 7px 15px; font-size: 13px; }

.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--teal-soft);
  color: var(--teal);
}
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.kw { background: #FDECEC; color: #B02020; }
.chip.gold { background: #FBF3E2; color: var(--gold); }

.note {
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.good { background: var(--good-bg); color: var(--good); }
.note.info { background: var(--teal-soft); color: var(--teal); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 0 12px 8px 0;
  font-weight: 700;
}
table.data td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }

/* ------------------------------------------------------------- agents --- */
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.agent-card.picked { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.agent-card h3 { margin-bottom: 2px; }
.agent-meta { font-size: 13px; color: var(--muted); }
.agent-card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0; }
.miles { font-weight: 700; color: var(--teal); font-size: 13px; }

.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.star-pick button {
  background: none;
  color: #cdd8d7;
  font-size: 25px;
  padding: 0 3px;
  line-height: 1;
  border: 0;
}
.star-pick button.on { color: var(--gold); }

/* -------------------------------------------------------------- steps --- */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.steps .s {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.steps .s.done { background: var(--good-bg); color: var(--good); border-color: transparent; }
.steps .s.now { background: var(--teal); color: #fff; border-color: transparent; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 11px 0 11px 26px;
  border-left: 2px solid var(--line);
  margin-left: 7px;
  position: relative;
  font-size: 14px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.timeline li.done:before { background: var(--good); border-color: var(--good); }
.timeline li.now:before { background: var(--teal); border-color: var(--teal); }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(11, 60, 73, .42);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  overflow: auto;
  z-index: 50;
}
.modal {
  background: #fff;
  border-radius: 15px;
  padding: 26px 28px;
  max-width: 620px;
  width: 100%;
}
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.spin { text-align: center; padding: 50px; color: var(--muted); }

@media (max-width: 640px) {
  main { padding: 18px 14px 80px; }
  .top-in { padding: 12px 14px; gap: 12px; }
  nav.tabs { width: 100%; margin-left: 0; }
}

/* The send action follows you down the page. The intake form runs to about
   5,000px once an agent is picked, and a button parked at the bottom of that
   is a button nobody finds. */
.sendbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 16px rgba(11, 60, 73, .09);
  z-index: 30;
}
.sendbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sendbar-in .grow { flex: 1 1 260px; min-width: 0; }
@media (max-width: 640px) {
  .sendbar-in { padding: 11px 14px; }
  .sendbar-in button { width: 100%; }
}
