.catalog-request-state {
  min-height: 430px;
  width: 100%;
  border: 1px solid #e7ebef;
  background: #fff;
  color: #1f2937;
}

.rate-header { padding: 42px 48px 28px; }
.error-code { display: block; color: #4b5563; font-size: 42px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.error-code strong { font-weight: 300; }
.request-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; color: #98a2b3; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rate-header h2 { margin: 10px 0 0; color: #667085; font-size: 22px; font-weight: 400; }
.rate-description { max-width: 720px; margin: 10px 0 0; color: #667085; font-size: 13px; line-height: 1.75; }

.status-route { display: grid; grid-template-columns: 1fr minmax(60px,110px) 1fr minmax(60px,110px) 1fr; align-items: center; min-height: 170px; padding: 24px 48px; border-top: 1px solid #e7ebef; border-bottom: 1px solid #e7ebef; background: #f4f5f6; }
.route-node { display: grid; justify-items: center; min-width: 0; text-align: center; }
.route-node strong { margin-top: 12px; color: #475467; font-size: 12px; }
.route-node small { margin-top: 3px; color: #98a2b3; font-size: 10px; }
.route-icon { position: relative; display: grid; width: 74px; height: 62px; place-items: center; color: #8b929a; }
.route-icon > svg { width: 100%; height: 100%; fill: #a5abb1; stroke: #818890; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.route-icon > span { position: absolute; right: -2px; bottom: -2px; display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #f4f5f6; border-radius: 50%; color: #fff; font-size: 15px; font-weight: 700; }
.route-ok .route-icon > span { background: #82c91e; }
.route-limited .route-icon > span { background: #dc2626; }
.route-limited strong { color: #b42318; }
.route-link { display: flex; align-items: center; color: #a5abb1; }
.route-link i { height: 2px; flex: 1; background: #a5abb1; }
.route-link b { font-size: 22px; font-weight: 500; line-height: 1; }

.rate-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 48px; }
.retry-status { display: flex; align-items: center; gap: 9px; color: #344054; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.13); }
.catalog-request-state .state-actions { display: flex; gap: 8px; margin-left: auto; }
.catalog-request-state .btn-primary { min-height: 38px; padding: 0 18px; border-radius: 6px; background: #214b78; color: #fff; font-size: 12px; font-weight: 700; }
.catalog-request-state .btn-primary:hover:not(:disabled) { background: #173d68; }
.catalog-request-state .btn-primary:disabled { cursor: not-allowed; opacity: .55; }

.job-detail-error-state .catalog-request-state { align-self: stretch; }
.job-item:focus-visible { position: relative; z-index: 1; outline: 2px solid #315981; outline-offset: -2px; }

@media (max-width: 640px) {
  .catalog-request-state { min-height: 360px; }
  .rate-header { padding: 32px 22px 22px; }
  .error-code { font-size: 34px; }
  .request-meta { margin-top: 18px; }
  .rate-header h2 { font-size: 19px; }
  .status-route { grid-template-columns: 1fr 20px 1fr 20px 1fr; min-height: 145px; padding: 20px 8px; }
  .route-icon { width: 53px; height: 46px; }
  .route-icon > span { width: 22px; height: 22px; border-width: 2px; font-size: 12px; }
  .route-link b { font-size: 14px; }
  .route-node strong { font-size: 10px; }
  .route-node small { font-size: 9px; }
  .rate-footer { align-items: stretch; flex-direction: column; padding: 20px 22px; }
  .catalog-request-state .state-actions { width: 100%; margin-left: 0; }
  .catalog-request-state .rate-footer .btn { width: 100%; justify-content: center; }
}
