/* Proof Republic / Republic Drone Works visual language (from PR Admin admin.css / client.css). */
:root {
  --font: "Inter", "Segoe UI", sans-serif;
  --bg: #0f0f0f;
  --card-bg: #181818;
  --card-border: #2a2a2a;
  --text: #faf9f9;
  --text-muted: #999;
  --accent: #c1440e;
  --accent-hover: #f59e0b;
  --button-text: #222;
  --ok: #22c55e;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }

#topBanner {
  height: 72px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; position: relative;
  background: rgba(22, 22, 22, 0.72); backdrop-filter: blur(18px);
  background-image: linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 1000;
}
#topBanner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); }
#logo { height: 48px; border-radius: 6px; }
#banner-center h1 { margin: 0; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
#banner-right { text-align: right; }
#mode-chip { padding: 5px 12px; border: 1px solid var(--accent); border-radius: 20px; color: var(--accent-hover); font-size: 12px; font-weight: 600; }

#layout { flex: 1; display: flex; min-height: 0; }
#sidebar {
  width: 340px; flex: none; overflow-y: auto; padding: 16px; background: rgba(30,30,30,.55); backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255,255,255,.08);
}
#map { flex: 1; background: #000; }

.sidebar-section { margin-bottom: 20px; }
.sidebar-section h3 { margin: 0 0 10px; padding-bottom: 6px; font-size: 15px; font-weight: 600; border-bottom: 2px solid var(--accent); }
.sidebar-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.span2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
input, select { width: 100%; padding: 8px 9px; border: none; border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; font: inherit; }
select option { background: #1a1a1a; color: #fff; }
.row { display: flex; gap: 8px; }
.muted { color: var(--text-muted); font-size: 12px; line-height: 1.45; }
a.muted { color: var(--accent-hover); text-decoration: none; }
.warn { color: var(--accent-hover); font-size: 12px; line-height: 1.45; }

button {
  background: linear-gradient(to bottom, #e2caa2, #d4b78f); color: var(--button-text); border: 1px solid #ccc; border-radius: 6px;
  padding: 8px 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; flex: 1;
}
button:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
button.secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
button.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
button.accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #222; }
button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }

.version { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.version:last-child { border-bottom: none; }
.version button { flex: none; padding: 4px 10px; font-size: 12px; }
.ok { color: var(--ok); }

.corner { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-hover); border: 2px solid #fff; box-shadow: 0 0 4px #000; }
.wp { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }

[hidden] { display: none !important; }

/* ---------- shared pages (login, jobs board, pilot portal) ---------- */
#banner-right nav { display: flex; gap: 16px; justify-content: flex-end; align-items: center; font-size: 13px; }
#banner-right nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
#banner-right nav a:hover, #banner-right nav a.on { color: var(--accent-hover); }
#banner-right .who { color: var(--text); }
.center-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.page { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; max-width: 1200px; width: 100%; margin: 0 auto; }
.page.narrow { max-width: 720px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; backdrop-filter: blur(14px); }
.center-page .card { width: 360px; }
.card h2 { margin: 0; padding-bottom: 6px; font-size: 16px; border-bottom: 2px solid var(--accent); }
.card h3 { margin: 6px 0; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
th, td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
td button { flex: none; padding: 4px 10px; font-size: 12px; }
td select, td input { padding: 5px 7px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.check input { width: auto; }
.chip { padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.12); }
.chip-assigned, .chip-in-field { background: rgba(245,158,11,.25); color: var(--accent-hover); }
.chip-uploaded { background: rgba(193,68,14,.35); }
.chip-complete, .chip-active { background: rgba(34,197,94,.22); color: var(--ok); }
.chip-unpaid, .chip-inactive { background: rgba(193,68,14,.3); }
.job { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin-bottom: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.job:last-child { margin-bottom: 0; }
.job-head b { font-size: 15px; margin-right: 8px; }
.start-box { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.checklist { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
form.card input[type=password], form.card input { padding: 10px; }
@media (max-width: 640px) { #banner-center h1 { font-size: 14px; } #logo { height: 36px; } #banner-right .who { display: none; } }
.progress { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
@media (max-width: 640px) { #banner-center h1 { font-size: 11px; letter-spacing: .04em; text-align: center; line-height: 1.2; } #topBanner { padding: 0 10px; } }
.cand { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 4px #000; }
#locate-note a { color: var(--accent-hover); }

.card-pre { white-space: pre-wrap; font: 12px/1.5 Consolas, monospace; background: rgba(0,0,0,.35); border: 1px solid rgba(245,158,11,.5); border-radius: 8px; padding: 10px; margin: 0; max-height: 340px; overflow: auto; }

.cand-click { width: 30px; height: 30px; font-size: 15px; cursor: pointer; }
.cand-click:hover { background: var(--accent-hover); color: #222; }
