:root {
  --ground: #F4F5F2; --panel: #FFFFFF; --ink: #17242B; --muted: #55636B;
  --line: #D5D9D4; --line-soft: #E3E6E2; --field: #9AA5A9;
  --accent: #1D5D90; --accent-dark: #16466C; --accent-wash: #EAF1F7;
  --good: #1E5631; --amber-bg: #FBE9C6; --amber-ink: #5E3D00; --check-bg: #FFF6DD;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.45 Inter, "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
h1 { margin: 0; font-size: 28px; } h2 { margin: 0; font-size: 18px; }
.top { background: var(--ink); color: #fff; padding: 14px 16px; }
.top .in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between; }
.top .name { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
.top .who { font-size: 14px; color: #D5DBDD; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.top .who a, .top .who button { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
main { max-width: 1080px; margin: 0 auto; padding: 32px 16px; display: flex; flex-direction: column; gap: 20px; }
main.narrow { max-width: 760px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
label.lbl, .lbl { font-size: 14px; font-weight: 600; }
.pwlabel { display: flex; justify-content: space-between; align-items: baseline; }
.pwlabel .linkbtn { font-size: 14px; color: var(--accent); }
input[type=text], input[type=email], input[type=password], select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--field);
  border-radius: 6px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 76px; resize: vertical; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.plain { background: #fff; color: var(--ink); border: 1px solid var(--field); min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.outline { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.error { background: #FCE8E6; color: #8A1C12; border-radius: 6px; padding: 10px 12px; }
.notice { background: var(--accent-wash); border-radius: 6px; padding: 10px 12px; }

/* sign in */
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 48px 16px; }
.signin .card { width: 100%; max-width: 420px; padding: 32px; gap: 20px; }
.signin .split { border-top: 1px solid var(--line-soft); padding-top: 20px; }

/* job sites */
.tablebox { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
td { padding: 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
tr:first-child td { border-top: 0; }
td.site { font-weight: 600; } td.act { text-align: right; white-space: nowrap; font-weight: 600; }
table.sitelist { table-layout: fixed; min-width: 860px; }
table.sitelist td { overflow-wrap: anywhere; }
table.sitelist td.act { white-space: normal; }
table.sitelist .pill { max-width: 100%; }
td.check { background: var(--check-bg); font-size: 14px; padding: 12px 16px 14px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #E6E8E5; color: #3D484E; }
.pill.needs_answers { background: var(--amber-bg); color: var(--amber-ink); }
.pill.waiting_aerial, .pill.processing, .pill.queued { background: #DCE8F3; color: #1D4A73; }
.pill.ready { background: var(--good); color: #fff; }
.pill.failed { background: #FCE8E6; color: #8A1C12; }

/* signed in as someone else */
.acting { background: var(--amber-bg); color: var(--amber-ink); padding: 8px 16px; border-bottom: 2px solid #E0B65A; }
.acting .in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between; }

/* admin */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.hide { position: absolute; left: -9999px; }
.nowrap { white-space: nowrap; }
th.num, td.num { text-align: right; }
td.act a + a { margin-left: 16px; }
.row.tight { gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
td.act form + form { margin-top: 8px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.company.off { opacity: 0.75; }
.linkcard { border: 2px solid var(--accent); }
.linkcard input[type=text] { flex: 1 1 320px; font-family: Consolas, monospace; font-size: 14px; }
tr.editrow td { border-top: 0; padding-top: 0; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; min-height: 32px; }
details[open] > summary { margin-bottom: 12px; }
details .fields .stack { flex: 1 1 200px; }

/* public front page */
.pub-top { background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 16px; }
.pub-top .in, .pub .in, .pub-foot .in { max-width: 1080px; margin: 0 auto; }
.pub-top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-top .name { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.hero { background: var(--ink); color: #fff; padding: 64px 16px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; max-width: 760px; }
.hero .lead { font-size: 19px; color: #D5DBDD; max-width: 640px; margin: 16px 0 28px; }
.hero .btn.outline { background: transparent; color: #fff; border-color: #fff; }
.band { padding: 48px 16px; }
.band.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: 24px; margin-bottom: 20px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.steps span { color: var(--muted); }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: start; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px;
  border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }
.price { gap: 6px; }
.price .amount { font-size: 44px; font-weight: 700; line-height: 1.1; }
.price .amount span { font-size: 18px; font-weight: 600; color: var(--muted); }
.price p { margin: 10px 0 0; }
.example { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.narrowin { max-width: 760px !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pub .fields .stack { flex: 1 1 240px; }
.pub-foot { padding: 24px 16px; color: var(--muted); font-size: 14px; }

/* training */
.training p { margin: 0; }
.training ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.training img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.toc ol { gap: 4px; }
.statuses { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; align-items: center; }
.statuses dd { margin: 0; }

/* new job site */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.zone { border: 2px dashed var(--field); border-radius: 8px; padding: 16px; display: flex; flex-direction: column;
  gap: 6px; position: relative; }
.zone.over { border-color: var(--accent); background: var(--accent-wash); }
.zone .title { font-size: 15px; font-weight: 600; }
.zone .file { font-size: 14px; color: var(--good); font-weight: 600; overflow-wrap: anywhere; }
.zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.zone .btn { align-self: flex-start; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.pair { display: flex; flex-wrap: wrap; gap: 12px; }
.pair label { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.pair label:has(input:checked) { border: 2px solid var(--accent); }
.fields { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; }

/* questions */
.qhead { font-size: 13px; font-weight: 600; color: var(--muted); }
.quote { background: var(--ground); border-radius: 6px; padding: 10px 12px; margin: 0; }
.detail { white-space: pre-wrap; font-size: 14px; color: var(--muted); margin: 0; }
.wording { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--line-soft); }
.wording:first-of-type { border-top: 0; padding-top: 0; }
.working { display: flex; align-items: center; gap: 12px; }
.spin { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
