@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.woff2");
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-500.woff2");
  font-weight: 500;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.woff2");
  font-weight: 600;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-700.woff2");
  font-weight: 700;
}
:root {
  --ink: #20242a;
  --muted: #727985;
  --line: #e7e9ec;
  --ash: #f7f8fa;
  --blue: #316ddd;
  --green: #28765a;
  --amber: #9a6a16;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    14px Inter,
    system-ui,
    sans-serif;
  background: #fff;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
button:hover {
  background: #f2f4f7;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button.primary:hover {
  background: #3d434b;
}
.app {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 230px;
  flex: none;
  background: #f8f9fb;
  border-right: 1px solid var(--line);
  padding: 28px 16px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  padding: 0 9px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 9px;
  color: #fff;
  width: 35px;
  height: 37px;
  font-size: 29px;
  letter-spacing: -2px;
  padding-right: 3px;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #818895;
  font-weight: 500;
  margin-top: 2px;
}
.workspace-tag {
  font-size: 10px;
  background: #e9ecf0;
  border-radius: 4px;
  padding: 4px 5px;
  margin-left: auto;
}
.workspace {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 28px 5px 29px;
  border: 1px solid #e0e3e8;
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
  background: white;
}
.workspace span:last-child {
  margin-left: auto;
}
.workspace-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #2e8064;
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  color: #969ba4;
  letter-spacing: 1.3px;
  margin: 0 14px 12px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #69717e;
  padding: 11px 13px;
  margin: 4px 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
nav a > span:first-child {
  font-size: 18px;
  width: 18px;
  color: #828a96;
}
nav a.active {
  background: #e9edf3;
  color: #20242a;
}
nav a.active > span:first-child {
  color: #303b4f;
}
.nav-count {
  font-size: 10px;
  margin-left: auto;
  color: #828a96;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
}
.pilot-label {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  gap: 7px;
  align-items: center;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: #858c98;
  margin-bottom: 27px;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 21px 0;
  font-size: 11px;
  font-weight: 500;
}
.team small {
  display: block;
  font-size: 10px;
  color: #89909c;
  font-weight: 400;
  margin-top: 5px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #e7ebf1;
  border-radius: 50%;
  font-size: 10px;
  color: #616c7c;
}
.content-shell {
  width: calc(100% - 230px);
  margin-left: 230px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: #8a919c;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c0c5cd;
}
.breadcrumb strong {
  font-weight: 500;
  color: #5b636f;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.text-button {
  border: 0;
  padding: 6px 0;
  font-size: 11px;
  color: #6e7682;
  background: transparent;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.subtle {
  background: #f1f3f6;
  color: #737d8d;
}
.green {
  background: #eaf4ee;
  color: #347457;
}
.amber {
  background: #fcf3df;
  color: #977022;
}
.blue {
  background: #edf3ff;
  color: #4a75bd;
}
.red {
  background: #fff0ef;
  color: #b8544a;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #939da9;
}
.dot.amber {
  background: #c19a50;
}
main {
  padding: 38px 38px 48px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #9a8061;
  margin-bottom: 10px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 500;
  margin: 0 0 8px;
}
h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 12px;
  margin: 0 0 10px;
}
.subtitle {
  font-size: 12px;
  color: #868d97;
  line-height: 1.7;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.banner {
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.7;
  border: 1px solid #e5e9f0;
  border-radius: 7px;
  color: #6d7785;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.banner b {
  color: #485366;
  font-weight: 500;
}
.banner.demo {
  background: #fdf8ec;
  border-color: #eee2c6;
  color: #897244;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 27px;
  background: #fff;
}
.metric {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 11px;
  color: #818997;
  display: flex;
  justify-content: space-between;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -1.5px;
  line-height: 1.6;
  margin: 8px 0 3px;
  font-weight: 500;
}
.metric-value small {
  font-size: 15px;
  letter-spacing: 0;
  color: #b0b6bf;
  font-weight: 400;
}
.metric-note {
  font-size: 10px;
  color: #9299a3;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.panel-head {
  padding: 21px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head .subtitle {
  font-size: 10px;
  margin-top: 5px;
}
.small-link {
  font-size: 10px;
  color: #788798;
}
.coverage-preview {
  padding: 0 22px 21px;
}
.coverage-cells {
  display: grid;
  grid-template-columns: repeat(35, 1fr);
  gap: 3px;
  margin: 8px 0 14px;
}
.coverage-cell {
  height: 7px;
  border-radius: 2px;
  background: #edf0f4;
}
.coverage-cell.queued {
  background: #afc8f4;
}
.coverage-cell.done {
  background: #72b69a;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: #9199a5;
  align-items: center;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #edf0f4;
  margin-right: 4px;
}
.legend i.queued {
  background: #afc8f4;
}
.legend i.done {
  background: #72b69a;
}
.progress-note {
  padding: 15px 0 0;
  margin-top: 16px;
  border-top: 1px solid #f0f1f4;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #949ba5;
}
.progress-note strong {
  color: #626c7a;
  font-weight: 500;
}
.steps {
  padding: 0 22px 12px;
}
.step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}
.step-icon {
  width: 23px;
  height: 23px;
  flex: none;
  background: #f3f5f8;
  color: #8d99aa;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.step-title {
  font-size: 11px;
  font-weight: 500;
}
.step-text {
  font-size: 10px;
  color: #969da8;
  margin: 5px 0;
  line-height: 1.6;
}
.step-count {
  margin-left: auto;
  font-size: 11px;
  color: #87909e;
  padding-top: 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #8d95a2;
  background: #fafbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #f0f1f3;
  font-size: 11px;
  color: #7a8493;
}
tr:last-child td {
  border: 0;
}
tbody tr[data-id] {
  cursor: pointer;
}
tbody tr[data-id]:hover {
  background: #fafbfd;
}
.company {
  display: flex;
  gap: 10px;
  align-items: center;
}
.company-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #64768a;
  background: #f0f3f7;
}
.company-name {
  display: block;
  color: #3e4856;
  font-size: 11px;
  font-weight: 500;
}
.company-id {
  display: block;
  font-size: 9px;
  color: #a0a7b1;
  margin-top: 5px;
}
.score {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #64748b;
}
.score-line {
  width: 33px;
  height: 4px;
  background: #edf0f4;
  display: block;
  border-radius: 5px;
  overflow: hidden;
}
.score-line i {
  height: 100%;
  display: block;
  background: #a7b9d0;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #89929f;
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  color: #4f5968;
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.empty button {
  margin-top: 14px;
}
.panel-bottom {
  border-top: 1px solid var(--line);
  padding: 13px 21px;
  font-size: 10px;
  color: #9aa1ab;
  display: flex;
  justify-content: space-between;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 300px;
  flex: 1;
}
.toolbar select {
  max-width: 220px;
}
input,
select,
textarea {
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #4b5565;
  font-size: 12px;
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #a0a7b1;
}
.toolbar .counter {
  font-size: 11px;
  color: #939caa;
  margin-left: auto;
}
.coverage-table button {
  font-size: 10px;
  padding: 6px 9px;
}
.coverage-table td,
.coverage-table th {
  padding: 13px 15px;
}
.coverage-table td:first-child {
  color: #485466;
  font-weight: 500;
}
.coverage-table small {
  font-size: 9px;
  color: #a1a9b4;
  display: block;
  font-weight: 400;
  margin-top: 4px;
}
.coverage-scope {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.coverage-table .municipality-label {
  font-size: 12px;
  color: var(--muted);
}
.geography-context {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  max-width: 240px;
}
.geography-context summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding: 13px 0;
}
.geography-context ul {
  padding-left: 18px;
  line-height: 1.8;
  white-space: normal;
  margin-top: 0;
}
.coverage-geography {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 20px;
}
.coverage-geography summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.coverage-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #e9edf2;
}
.coverage-status.queued {
  background: #afc8f4;
}
.coverage-status.running {
  background: #d5b576;
}
.coverage-status.done {
  background: #72b69a;
}
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 15px;
  font-size: 11px;
  color: #8c96a4;
}
.pager button {
  font-size: 11px;
  padding: 6px 10px;
}
.callout {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.8;
  color: #8a93a0;
}
.callout a {
  color: #6885ad;
}
.mobile-menu {
  display: none;
}
footer {
  border-top: 1px solid var(--line);
  padding: 15px 38px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a8b3;
}
footer .dot {
  margin-right: 5px;
  width: 5px;
  height: 5px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 15px 90px #24334b24;
  padding: 0;
  width: min(640px, calc(100% - 28px));
  max-height: 90vh;
  overflow-y: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #15203535;
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  font-size: 18px;
}
.dialog-head button {
  border: 0;
  color: #929ba8;
  font-size: 20px;
  padding: 0 4px;
}
.dialog-body {
  padding: 22px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label {
  font-size: 11px;
  color: #6d7787;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.form-error {
  color: #a34135;
  font-size: 12px;
  margin: 14px 0 0;
}
.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.detail-section p {
  font-size: 12px;
  color: #7a8492;
  line-height: 1.8;
}
.finding {
  font-size: 12px;
  line-height: 1.8;
  padding: 11px 0;
  color: #707e90;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.finding .pill {
  flex: none;
}
.source {
  display: block;
  padding: 8px 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.source small {
  display: block;
  color: #96a0ad;
  margin-top: 5px;
}
.blockers {
  margin: 10px 0;
  padding-left: 18px;
  font-size: 11px;
  color: #8b7860;
  line-height: 2;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.detail-actions button {
  font-size: 11px;
}
.help {
  font-size: 10px;
  color: #959fab;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #273342;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  padding: 13px 20px;
  box-shadow: 0 5px 25px #20304a25;
  z-index: 30;
  display: none;
  max-width: 90%;
}
.error-page {
  border: 1px solid #edd5d2;
  background: #fffafa;
  padding: 25px;
  border-radius: 9px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .coverage-cell {
    height: 9px;
  }
  .metric {
    padding: 25px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
  }
  .content-shell {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric {
    padding: 15px;
  }
  .metric-value {
    font-size: 27px;
  }
  .coverage-cells {
    grid-template-columns: repeat(50, 1fr);
  }
  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
    box-shadow: 8px 0 30px #20304a15;
  }
  .sidebar.open {
    overflow-y: auto;
    display: flex;
    width: 230px;
    top: 60px;
  }
  .content-shell {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 10px;
  }
  .mobile-menu {
    display: block;
    font-size: 18px;
    border: 0;
    padding: 3px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .breadcrumb > span {
    margin: 0 7px;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions .pill {
    font-size: 8px;
  }
  .text-button {
    font-size: 10px;
  }
  main {
    padding: 25px 17px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .heading-actions {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric-value {
    font-size: 29px;
  }
  .two-col {
    gap: 18px;
  }
  .coverage-cells {
    grid-template-columns: repeat(25, 1fr);
  }
  .coverage-cell {
    height: 6px;
  }
  .steps {
    display: block;
  }
  .panel-head {
    padding: 18px;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
    font-size: 10px;
  }
  footer {
    padding: 15px 17px;
    font-size: 8px;
  }
  .toolbar input {
    max-width: none;
    min-width: 100%;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .dialog-body,
  .dialog-head {
    padding: 20px;
  }
  .coverage-preview {
    padding: 0 18px 20px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .legend {
    gap: 9px;
    font-size: 8px;
  }
}

/* Agent history follows the existing operator table, with secondary text on a new line. */
.job-step-summary { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: 13px; }
.agent-jobs-table td small { display: block; margin-top: 5px; color: var(--muted); }
.agent-jobs-table td { white-space: normal; font-size: 13px; line-height: 1.45; vertical-align: top; }
.agent-jobs-table td:nth-child(3) { max-width: 340px; }
@media (max-width: 760px) {
  .agent-jobs-table { min-width: 0; table-layout: fixed; }
  .agent-jobs-table th:nth-child(1) { width: 23%; }
  .agent-jobs-table th:nth-child(2) { width: 34%; }
  .agent-jobs-table th:nth-child(3) { width: 43%; }
  .agent-jobs-table th:nth-child(4), .agent-jobs-table td:nth-child(4) { display: none; }
  .agent-jobs-table td { padding: 14px 12px; overflow-wrap: anywhere; }
}
