.navbar {
  min-height: 60px;
  border-bottom: 1px solid #dce1e9;
  background: #fff;
  box-shadow: 0 1px 4px rgb(31 42 55 / 6%);
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: #172033;
}

.app-brand-mini img {
  width: 38px;
  height: 38px;
  background: #ffc400;
}

.nav-link {
  color: #475467;
}

.nav-link:hover,
.nav-link:focus {
  color: #1769e0;
}

.nav-user {
  color: #172033;
}

body {
  background: #f5f7fa;
}

.ops-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  color: #172033;
  letter-spacing: 0;
}

.ops-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ops-page-header h1,
.ops-page-header p,
.ops-detail-band h2,
.ops-detail-band p {
  margin: 0;
}

.ops-page-header h1 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.15;
}

.ops-page-header p,
.ops-detail-band p {
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
}

.ops-eyebrow {
  color: #1769e0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-header-actions,
.ops-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #d4dae4;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.ops-button.primary {
  border-color: #1769e0;
  background: #1769e0;
  color: #fff;
}

.ops-button.compact {
  min-height: 32px;
  padding: 0 10px;
}

.ops-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.ops-summary-strip > div {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 14px 18px;
  border-right: 1px solid #e4e8ef;
}

.ops-summary-strip > div:last-child {
  border-right: 0;
}

.ops-summary-strip strong {
  font-size: 21px;
}

.ops-summary-strip span {
  color: #667085;
  font-size: 11px;
}

.ops-table-wrap {
  overflow: auto;
  contain: paint;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ops-table th {
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #dce1e9;
  background: #f7f9fc;
  color: #667085;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-table td {
  min-height: 58px;
  padding: 11px 14px;
  border-bottom: 1px solid #e8ecf2;
  vertical-align: middle;
}

.ops-table tr:last-child td {
  border-bottom: 0;
}

.ops-document-cell {
  min-width: 220px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ops-document-cell > span:last-child {
  min-width: 0;
}

.ops-document-cell strong,
.ops-document-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-document-cell small {
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
}

.ops-document-icon,
.ops-template-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #bad0ef;
  border-radius: 5px;
  background: #edf4ff;
  color: #1769e0;
  font-size: 9px;
  font-weight: 800;
}

.ops-template-icon {
  border-color: #a7d9c4;
  background: #eaf8f1;
  color: #147653;
}

.ops-clues {
  max-width: 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ops-clues span {
  max-width: 150px;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid #dce1e9;
  border-radius: 4px;
  color: #475467;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.ops-row-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.ops-row-actions form {
  margin: 0;
}

.ops-icon-link {
  padding: 6px;
  border: 0;
  background: transparent;
  color: #1769e0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.ops-icon-link.danger {
  color: #b42318;
}

.ops-icon-link.danger:hover,
.ops-icon-link.danger:focus-visible {
  color: #8f1d14;
  text-decoration: underline;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef1f5;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
}

.ops-status.published {
  background: #e7f7ef;
  color: #116b49;
}

.ops-status.draft {
  background: #fff4df;
  color: #94550b;
}

.ops-notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
}

.ops-notice.success {
  border-color: #a7d9c4;
  background: #eaf8f1;
  color: #116b49;
}

.ops-notice.error {
  border-color: #efb4ae;
  background: #fff0ef;
  color: #a52218;
}

.ops-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 1090;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid #a7d9c4;
  border-left: 4px solid #16845b;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(31 42 55 / 18%);
  color: #172033;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ops-toast.is-closing {
  opacity: 0;
  transform: translateY(-8px);
}

.ops-toast-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f7ef;
  color: #116b49;
  font-size: 18px;
  font-weight: 800;
}

.ops-toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ops-toast-copy strong {
  font-size: 13px;
}

.ops-toast-copy > span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.ops-toast-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  font-size: 20px;
  line-height: 1;
}

.ops-toast-close:hover,
.ops-toast-close:focus-visible {
  background: #f2f4f7;
  color: #172033;
}

.ops-table tr.is-newly-published td {
  background: #f0fbf6;
}

.ops-table tr.is-newly-published td:first-child {
  box-shadow: inset 3px 0 #16845b;
}

.ops-new-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e7f7ef;
  color: #116b49;
  font-size: 9px;
  font-weight: 750;
  vertical-align: middle;
}

.ops-table-empty {
  justify-items: center;
  gap: 3px;
  padding: 26px;
  border: 1px solid #dce1e9;
  border-top: 0;
  background: #fff;
  color: #172033;
  text-align: center;
}

.ops-table-empty:not([hidden]) {
  display: grid;
}

.ops-table-empty span {
  color: #667085;
  font-size: 12px;
}

.api-clients-page {
  display: grid;
  gap: 18px;
}

.api-clients-page .ops-page-header,
.api-clients-page .ops-summary-strip,
.api-clients-page .ops-notice {
  margin-bottom: 0;
}

.api-clients-page .ops-button {
  gap: 7px;
}

.api-key-callout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #9ec9b7;
  border-left: 4px solid #16845b;
  border-radius: 7px;
  background: #f2fbf7;
}

.api-key-callout-icon,
.api-client-icon {
  display: grid;
  place-items: center;
  color: #116b49;
}

.api-key-callout-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #dff4e9;
}

.api-key-callout h2,
.api-key-callout p {
  margin: 0;
}

.api-key-callout h2 {
  margin-top: 2px;
  font-size: 17px;
}

.api-key-callout p {
  margin-top: 4px;
  color: #52645c;
  font-size: 12px;
}

.api-key-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.api-key-value code {
  min-width: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #b8d8ca;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  white-space: nowrap;
}

.api-summary-strip {
  order: 0;
}

.api-create-panel,
.api-section {
  min-width: 0;
}

.api-create-panel {
  padding: 16px;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.api-section {
  display: grid;
  gap: 10px;
}

.api-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.api-section-heading h2,
.api-section-heading p {
  margin: 0;
}

.api-section-heading h2 {
  font-size: 17px;
}

.api-section-heading p {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}

.api-create-form {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(130px, 0.75fr) minmax(150px, 0.85fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.api-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.api-field > span:first-child {
  min-height: 16px;
}

.api-field small {
  color: #98a2b3;
  font-size: 9px;
  font-weight: 600;
}

.api-field input,
.api-action-menu input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 12px;
}

.api-field input:focus,
.api-action-menu input:focus {
  border-color: #1769e0;
  outline: 2px solid rgb(23 105 224 / 12%);
}

.api-field-error {
  min-height: 0;
  color: #b42318;
  font-size: 10px;
  font-weight: 600;
}

.api-field-error:empty {
  display: none;
}

.api-create-submit {
  min-height: 38px;
  white-space: nowrap;
}

.api-client-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #bad0ef;
  border-radius: 5px;
  background: #edf4ff;
  color: #1769e0;
}

.api-limit-cell {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.api-limit-cell small {
  color: #667085;
  font-size: 10px;
}

.api-prefix,
.api-request-id {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #344054;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-status.disabled {
  background: #eef1f5;
  color: #475467;
}

.ops-status.warning {
  background: #fff4df;
  color: #94550b;
}

.ops-status.processing {
  background: #edf4ff;
  color: #145fc7;
}

.ops-status.error {
  background: #fff0ef;
  color: #a52218;
}

.api-action-menu > div {
  min-width: 220px;
}

.api-action-menu form:first-child {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.api-action-menu form:first-child label {
  display: grid;
  gap: 4px;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
}

.api-action-menu form:first-child button {
  border-radius: 4px;
  background: #1769e0;
  color: #fff;
}

.api-empty {
  padding: 24px;
}

@media (max-width: 1050px) {
  .api-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-field-name {
    grid-column: span 2;
  }

  .api-create-submit {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .api-create-form {
    grid-template-columns: 1fr;
  }

  .api-field-name {
    grid-column: auto;
  }

  .api-key-callout {
    grid-template-columns: 1fr;
  }

  .api-key-value {
    align-items: stretch;
    flex-direction: column;
  }
}

.ops-detail-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.ops-detail-band h2 {
  margin-top: 3px;
  font-size: 18px;
}

.ops-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 34px;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.ops-empty h2,
.ops-empty p {
  margin: 0;
}

.process-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.process-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.process-header h1,
.process-header p {
  margin: 0;
}

.process-header h1 {
  margin-top: 4px;
  font-size: 30px;
}

.process-header p {
  max-width: 700px;
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
}

.process-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.process-dropzone {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed #9cabc0;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.process-dropzone:hover,
.process-dropzone.is-dragging,
.process-dropzone.has-file {
  border-color: #1769e0;
  background: #f2f7ff;
}

.process-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.process-dropzone > div {
  display: grid;
  gap: 4px;
}

.process-dropzone strong {
  font-size: 14px;
}

.process-dropzone span {
  color: #667085;
  font-size: 11px;
}

.process-upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eaf2ff;
  color: #1769e0 !important;
  font-size: 24px !important;
  font-weight: 400;
}

.process-submit {
  min-width: 170px;
  min-height: 46px;
  align-self: center;
}

.process-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.process-empty-state > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.process-empty-state strong {
  font-size: 16px;
}

.process-empty-state span {
  color: #667085;
  font-size: 12px;
}

.process-result-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 7px;
}

.process-result-state > div {
  display: grid;
  gap: 2px;
}

.process-result-state strong {
  font-size: 13px;
}

.process-result-state span {
  font-size: 11px;
}

.process-result-state.ready {
  border-color: #a7d9c4;
  background: #eaf8f1;
  color: #116b49;
}

.process-result-state.setup {
  border-color: #e8c88e;
  background: #fff8e9;
  color: #80500c;
}

.ops-work-list {
  overflow: hidden;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  background: #fff;
}

.ops-work-list > a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e9ef;
  color: #172033;
  text-decoration: none;
}

.ops-work-list > a:last-child {
  border-bottom: 0;
}

.ops-work-list > a:hover {
  background: #f7faff;
}

.ops-work-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #eaf2ff;
  color: #1769e0;
  font-size: 12px;
  font-weight: 800;
}

.ops-work-list > a > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.ops-work-list small {
  color: #667085;
  font-size: 11px;
}

.ops-work-action {
  color: #1769e0;
  font-size: 11px;
  font-weight: 750;
}

.ops-empty h2 {
  font-size: 18px;
}

.ops-empty p {
  color: #667085;
  font-size: 12px;
}

@media (max-width: 760px) {
  .ops-page {
    padding: 20px 14px 50px;
  }
  .ops-page-header,
  .ops-detail-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-summary-strip {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    overflow: auto;
  }
  .ops-summary-strip > div {
    min-width: 0;
  }
  .process-page {
    padding: 20px 14px 50px;
  }
  .process-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .process-upload {
    grid-template-columns: 1fr;
  }
  .process-submit {
    min-height: 44px;
    width: 100%;
  }
  .ops-work-list > a {
    grid-template-columns: 38px 1fr;
  }
  .ops-work-action {
    grid-column: 2;
  }
}
.navbar .nav-link.active {
  color: #145fc7;
  font-weight: 700;
}

.navbar .nav-link.active::after {
  width: calc(100% - 16px);
}

.ops-table-tools {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid #dce3eb;
  border-bottom: 0;
  background: #f8fafc;
}

.ops-table-tools label {
  width: min(420px, 100%);
}

.ops-table-tools input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 0.84rem;
}

.ops-table-tools > span {
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.processing-stages {
  width: min(300px, 80vw);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-top: 2px;
}

.processing-stages i {
  height: 4px;
  border-radius: 2px;
  background: #d9e2ec;
}

.processing-stages i.complete {
  background: #15936b;
}

.processing-stages i.active {
  background: #1769e0;
}

@media (max-width: 640px) {
  .ops-toast {
    top: 70px;
    right: 16px;
  }

  .ops-table-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .navbar > .container {
    flex-wrap: nowrap;
  }

  .app-brand-mini {
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .app-brand-mini img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: 8px;
  }
}

.document-lookup-open {
  gap: 8px;
}

.document-search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.document-search-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.document-search-icon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 6px;
  height: 1.8px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.document-lookup-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 64px rgb(15 23 42 / 24%);
}

.document-lookup-dialog::backdrop {
  background: rgb(15 23 42 / 54%);
}

.document-lookup-dialog form {
  margin: 0;
}

.document-lookup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e3e8ef;
}

.document-lookup-header h2,
.document-lookup-header p,
.document-lookup-result h3,
.document-lookup-result p {
  margin: 0;
}

.document-lookup-header h2 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.25;
}

.document-lookup-header p {
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
}

.document-lookup-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #475467;
  font-size: 24px;
  line-height: 1;
}

.document-lookup-close:hover,
.document-lookup-close:focus,
.document-lookup-close:focus-visible {
  background: #eef2f6;
  color: #172033;
}

.document-lookup-body {
  min-height: 230px;
  padding: 24px;
}

.document-lookup-dropzone {
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px dashed #9eacc0;
  border-radius: 7px;
  background: #fbfcfe;
  cursor: pointer;
}

.document-lookup-dropzone:hover,
.document-lookup-dropzone:focus-within,
.document-lookup-dropzone.has-file {
  border-color: #1769e0;
  background: #f2f7ff;
}

.document-lookup-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.document-lookup-dropzone > span:nth-child(3) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.document-lookup-dropzone strong {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-lookup-dropzone small {
  color: #667085;
  font-size: 11px;
}

.document-file-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #bad0ef;
  border-radius: 6px;
  background: #edf4ff;
  color: #1769e0;
  font-size: 9px;
  font-weight: 800;
}

.document-lookup-browse {
  color: #1769e0;
  font-size: 12px;
  font-weight: 750;
}

.document-lookup-privacy {
  margin: 12px 0 0;
  color: #667085;
  font-size: 11px;
  text-align: center;
}

.document-lookup-progress {
  min-height: 180px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-content: center;
  align-items: center;
}

.document-lookup-progress > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.document-lookup-progress strong {
  font-size: 14px;
}

.document-lookup-progress span {
  color: #667085;
  font-size: 12px;
}

.document-lookup-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dbe7f7;
  border-top-color: #1769e0;
  border-radius: 50%;
  animation: document-lookup-spin 0.8s linear infinite;
}

.document-lookup-progress-track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.document-lookup-progress-track i {
  height: 4px;
  border-radius: 2px;
  background: #dce3eb;
}

.document-lookup-progress-track i.active {
  background: #1769e0;
}

.document-lookup-progress-track i.complete {
  background: #15936b;
}

.document-lookup-result {
  min-height: 180px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-content: center;
}

.document-lookup-result-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef2f6;
  color: #475467;
  font-size: 21px;
  font-weight: 800;
}

.document-lookup-result.success .document-lookup-result-mark {
  background: #e7f7ef;
  color: #116b49;
}

.document-lookup-result.pending .document-lookup-result-mark,
.document-lookup-result.new .document-lookup-result-mark {
  background: #fff4df;
  color: #94550b;
}

.document-lookup-result-copy {
  min-width: 0;
}

.document-lookup-result h3 {
  margin-top: 3px;
  font-size: 18px;
}

.document-lookup-result p {
  max-width: 540px;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.document-lookup-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.document-lookup-facts > span {
  display: grid;
  gap: 1px;
  padding: 6px 9px;
  border: 1px solid #dde4ed;
  border-radius: 5px;
  background: #f8fafc;
}

.document-lookup-facts small {
  color: #667085;
  font-size: 9px;
  text-transform: uppercase;
}

.document-lookup-facts strong {
  max-width: 180px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-lookup-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.document-lookup-error {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid #efb4ae;
  border-radius: 7px;
  background: #fff0ef;
  color: #a52218;
}

.document-lookup-error strong {
  font-size: 14px;
}

.document-lookup-error span {
  font-size: 12px;
}

.document-lookup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid #e3e8ef;
  background: #f8fafc;
}

.ops-segmented-filter {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.ops-segmented-filter button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-right: 1px solid #dce3eb;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.ops-segmented-filter button:last-child {
  border-right: 0;
}

.ops-segmented-filter button.active {
  background: #eaf2ff;
  color: #145fc7;
}

.ops-segmented-filter button:hover,
.ops-segmented-filter button:focus {
  background: #f1f5f9;
  color: #145fc7;
}

.ops-version-cell strong,
.ops-version-cell small {
  display: block;
}

.ops-version-cell small {
  margin-top: 2px;
  color: #94550b;
  font-size: 9px;
}

.ops-table tr.is-lookup-match td {
  background: #eaf2ff;
}

.ops-button:hover,
.ops-button:focus-visible {
  border-color: #9db6da;
  color: #145fc7;
}

.ops-button.primary:hover,
.ops-button.primary:focus-visible {
  border-color: #145fc7;
  background: #145fc7;
  color: #fff;
}

.ops-button:disabled,
.ops-button.primary:disabled {
  border-color: #d9e0e8;
  background: #e9edf2;
  color: #8a96a7;
  cursor: not-allowed;
  opacity: 1;
}

@keyframes document-lookup-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .ops-table-tools {
    flex-wrap: wrap;
  }

  .ops-table-tools > span {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .ops-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ops-header-actions .ops-button {
    flex: 1 1 auto;
  }

  .document-lookup-dialog {
    width: calc(100vw - 20px);
  }

  .document-lookup-header,
  .document-lookup-body,
  .document-lookup-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .document-lookup-dropzone {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .document-lookup-browse {
    grid-column: 2;
  }

  .document-lookup-result {
    grid-template-columns: 1fr;
  }

  .document-lookup-result-actions .ops-button {
    flex: 1 1 100%;
  }

  .ops-segmented-filter {
    width: 100%;
  }

  .ops-segmented-filter button {
    flex: 1;
  }

  .ops-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .ops-summary-strip > div {
    min-width: 0;
    padding: 14px 11px;
  }

  .ops-summary-strip strong,
  .ops-summary-strip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ops-summary-strip strong {
    font-size: 20px;
    line-height: 1.2;
  }

  .ops-summary-strip span {
    line-height: 1.35;
  }

  .ops-table-wrap:has(#template-library),
  .ops-table-wrap:has(#unmapped-layouts) {
    overflow: visible;
    contain: none;
    border: 0;
    background: transparent;
  }

  #template-library,
  #template-library tbody,
  #unmapped-layouts,
  #unmapped-layouts tbody {
    width: 100%;
    display: block;
  }

  #template-library thead,
  #unmapped-layouts thead {
    display: none;
  }

  #template-library tbody,
  #unmapped-layouts tbody {
    display: grid;
    gap: 10px;
  }

  #template-library tr,
  #unmapped-layouts tr {
    display: grid;
    overflow: visible;
    border: 1px solid #dce1e9;
    border-radius: 7px;
    background: #fff;
  }

  #template-library td,
  #unmapped-layouts td {
    min-width: 0;
    min-height: 0;
    padding: 11px 12px;
    border-bottom: 0;
  }

  #template-library .ops-document-cell,
  #unmapped-layouts .ops-document-cell {
    min-width: 0;
  }

  #template-library .ops-document-cell strong,
  #unmapped-layouts .ops-document-cell strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #template-library tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "document status"
      "actions actions";
  }

  #template-library td:nth-child(1) {
    grid-area: document;
  }

  #template-library td:nth-child(2) {
    grid-area: status;
    align-self: center;
    padding-left: 4px;
  }

  #template-library td:nth-child(3),
  #template-library td:nth-child(4),
  #template-library td:nth-child(5),
  #template-library td:nth-child(6) {
    display: none;
  }

  #template-library td:nth-child(7) {
    grid-area: actions;
  }

  #template-library .ops-status {
    max-width: 112px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  #unmapped-layouts tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "document document"
      "clues count"
      "actions actions";
  }

  #unmapped-layouts td:nth-child(1) {
    grid-area: document;
  }

  #unmapped-layouts td:nth-child(2) {
    grid-area: clues;
    padding-top: 2px;
  }

  #unmapped-layouts td:nth-child(3) {
    grid-area: count;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-top: 2px;
    color: #667085;
    font-size: 10px;
  }

  #unmapped-layouts td:nth-child(3)::before {
    content: "Received";
  }

  #unmapped-layouts td:nth-child(3) strong {
    color: #172033;
    font-size: 12px;
  }

  #unmapped-layouts td:nth-child(4) {
    display: none;
  }

  #unmapped-layouts td:nth-child(5) {
    grid-area: actions;
  }

  #template-library .ops-row-actions,
  #unmapped-layouts .ops-row-actions {
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid #e8ecf2;
  }

  #template-library .ops-action-menu > div {
    right: auto;
    left: 0;
  }
}
