.pilot-shell {
  max-width: 1280px;
  margin: auto;
  padding: 0 42px 28px;
}
.pilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 85px;
  border-bottom: 1px solid var(--line);
}
.pilot-wordmark {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.pilot-header-actions,
.pilot-source {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pilot-button {
  background: white;
  border: 1px solid #ccd8ce;
  border-radius: 7px;
  padding: 8px 13px;
  color: var(--ink);
}
.pilot-button:hover {
  background: #e8f1e9;
}
.pilot-intro {
  padding: 38px 0 28px;
}
.pilot-eyebrow {
  font-size: 11px;
  color: #4e7565;
  font-weight: 650;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}
.pilot-intro h1 {
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -1.5px;
}
.pilot-lead {
  margin: 12px 0 20px;
  color: #5a6f65;
}
.pilot-source {
  color: #5a6f65;
  font-size: 11px;
}
.pilot-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #edf0eb;
  color: #52675b;
}
.pilot-badge.busy,
.pilot-badge.running {
  background: #e1ebe4;
  color: #206347;
}
.pilot-badge.check,
.pilot-badge.needs_check {
  background: #fae8cf;
  color: #87571c;
}
.pilot-badge.idle {
  background: #eaf0e8;
  color: #536f52;
}
.pilot-section {
  min-width: 0;
  margin-bottom: 28px;
}
.pilot-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.pilot-muted {
  color: #62756a;
  font-size: 12px;
}
.pilot-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dce4da;
  border-radius: 11px;
  background: #fff;
  margin-top: 13px;
}
.pilot-metric {
  padding: 21px;
  min-width: 0;
  border-right: 1px solid #e2e8e1;
}
.pilot-metric:last-child {
  border: 0;
}
.pilot-metric p {
  color: #62756a;
  font-size: 12px;
}
.pilot-metric strong {
  display: block;
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.pilot-metric small {
  display: block;
  color: #62756a;
  overflow-wrap: anywhere;
}
.pilot-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}
.pilot-agent {
  background: #fff;
  border: 1px solid #dce4da;
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.pilot-agent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.pilot-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #e6ece4;
  color: #476650;
  font-weight: 650;
}
.pilot-agent h3 {
  font-size: 18px;
}
.pilot-agent[data-division='software'] .pilot-avatar {
  background: #e7edf2;
  color: #35536b;
}
.pilot-agent[data-division='video'] .pilot-avatar {
  background: #f5edde;
  color: #82612c;
}
.pilot-chain {
  list-style: none;
  margin: 18px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 150px;
}
.pilot-chain li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
}
.pilot-tier-label {
  font-size: 10px;
  color: #62756a;
  padding-top: 2px;
}
.pilot-tier strong {
  font-size: 12px;
  font-weight: 600;
}
.pilot-agent .pilot-tier small {
  font-size: 10px;
  margin: 0;
  overflow-wrap: anywhere;
}
.pilot-chain-empty {
  margin-top: 18px;
  padding: 14px 0;
  font-size: 12px;
  color: #62756a;
}
.pilot-task-provider {
  color: #476650;
  font-size: 11px;
  margin-top: 10px;
}
.pilot-attempts {
  margin-top: 12px;
  color: #4d6256;
  font-size: 11px;
}
.pilot-attempts summary {
  cursor: pointer;
  width: fit-content;
}
.pilot-attempt {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.pilot-attempt small {
  display: block;
  overflow-wrap: anywhere;
}
.pilot-attempt strong {
  font-weight: 600;
}
.pilot-agent dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 15px;
  margin: 18px 0 0;
  font-size: 11px;
}
.pilot-agent dt {
  color: #62756a;
}
.pilot-agent dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.pilot-agent small {
  display: block;
  color: #62756a;
  margin-top: 12px;
}
.pilot-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.pilot-work-grid > :first-child {
  grid-column: 1 / -1;
}
.pilot-task {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dce4da;
  border-radius: 9px;
  padding: 18px;
  min-width: 0;
}
.pilot-task.needs_check {
  border-left: 3px solid #bb8a43;
}
.pilot-task-main {
  min-width: 0;
}
.pilot-task h3 {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.pilot-ref {
  font-size: 10px;
  color: #62756a;
  letter-spacing: 0.5px;
}
.pilot-reason {
  color: #62756a;
  font-size: 11px;
  margin-top: 9px;
}
.pilot-task-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 9px;
}
.pilot-task-state small {
  color: #62756a;
  font-size: 10px;
}
.pilot-empty {
  border: 1px dashed #cfdace;
  border-radius: 8px;
  color: #62756a;
  padding: 22px;
  margin-top: 12px;
}
.pilot-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: #62756a;
  font-size: 12px;
}
.pilot-footer small {
  display: block;
  margin-top: 6px;
}
.pilot-error,
.pilot-warning {
  padding: 13px 16px;
  border: 1px solid #d9b67c;
  border-radius: 7px;
  background: #fcf1dd;
  margin-bottom: 20px;
}
.pilot-login {
  max-width: 560px;
  margin: 12vh auto;
  padding: 30px;
}
.pilot-login h1 {
  margin: 30px 0 17px;
}
.pilot-login button {
  margin-top: 24px;
}
@media (min-width: 801px) and (max-width: 1100px) {
  .pilot-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .pilot-shell {
    padding: 0 20px 24px;
  }
  .pilot-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .pilot-metric {
    border-bottom: 1px solid #e2e8e1;
  }
  .pilot-metric:nth-child(2) {
    border-right: 0;
  }
  .pilot-agent-grid {
    grid-template-columns: 1fr;
  }
  .pilot-work-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .pilot-shell {
    padding: 0 15px 24px;
  }
  .pilot-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
    gap: 10px;
  }
  .pilot-intro {
    padding-top: 27px;
  }
  .pilot-metric {
    padding: 14px;
  }
  .pilot-metric strong {
    font-size: 24px;
  }
  .pilot-task {
    flex-direction: column;
    gap: 12px;
  }
  .pilot-task-state {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
