.cr-workspace {
  --cr-navy: #173d54;
  --cr-muted: #657985;
  --cr-line: #dce5ea;
  padding: 28px;
  color: var(--cr-navy);
  background: #f8fafc;
  border: 1px solid var(--cr-line);
  border-radius: 20px;
  min-width: 0;
}
.cr-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.cr-eyebrow {
  color: #7d7260;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}
.cr-hero h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.045em;
}
.cr-hero h2 span {
  display: block;
  font-size: 18px;
  font-weight: 450;
  color: var(--cr-muted);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.cr-hero p:not(.cr-eyebrow) {
  font-size: 13px;
  color: var(--cr-muted);
  margin: 0;
}
.cr-readonly {
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid #d3e4dd;
  border-radius: 100px;
  background: #eef7f3;
  color: #365b4d;
  font-size: 10px;
  font-weight: 650;
}
.cr-agents {
  display: flex;
  gap: 22px;
  align-items: center;
  border-block: 1px solid var(--cr-line);
  padding: 17px 0;
  margin-bottom: 24px;
}
.cr-agents > span {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}
.cr-agents b {
  background: #e7edf1;
  border: 1px solid #dce5ea;
  border-radius: 11px;
  padding: 9px;
  font-size: 11px;
}
.cr-agents strong {
  font-size: 12px;
}
.cr-agents small {
  display: block;
  font-weight: 400;
  color: var(--cr-muted);
  font-size: 11px;
  margin-top: 3px;
}
.cr-agents i {
  color: #96a5ae;
  font-style: normal;
}
.cr-reading {
  background: #fff;
  border: 1px solid var(--cr-line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.cr-reading h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.cr-reading p {
  font-size: 11px;
  color: var(--cr-muted);
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}
.cr-reading form {
  display: flex;
  align-items: end;
  gap: 8px;
}
.cr-workspace label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
  color: #526b7a;
}
.cr-workspace input,
.cr-workspace select {
  min-width: 0;
  width: 100%;
  min-height: 35px;
  border: 1px solid #d2dee6;
  border-radius: 7px;
  background: #fff;
  color: #173d54;
  font-size: 11px;
  padding: 7px 9px;
  max-width: 100%;
}
.cr-workspace button {
  min-height: 35px;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 650;
}
.cr-reading button {
  background: #173d54;
  border: 1px solid #173d54;
  color: white;
  white-space: nowrap;
}
.cr-selection {
  display: flex;
  gap: 10px;
  align-items: end;
  padding: 18px 0 0;
}
.cr-selection label {
  min-width: 270px;
}
.cr-selection > span {
  margin-left: auto;
  color: var(--cr-muted);
  font-size: 10px;
  padding-bottom: 8px;
}
[data-cr-feedback] {
  font-size: 12px;
  color: #755526;
  min-height: 16px;
  margin: 8px 0;
}
.cr-batch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 0 12px;
}
.cr-batch-heading h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.cr-batch-heading p,
.cr-batch-heading > span {
  margin: 0;
  font-size: 10px;
  color: var(--cr-muted);
}
.cr-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.cr-metrics > div {
  border: 1px solid var(--cr-line);
  border-radius: 11px;
  background: #fff;
  padding: 14px 16px;
}
.cr-metrics strong {
  display: block;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.cr-metrics span {
  font-size: 10px;
  color: var(--cr-muted);
}
.cr-metrics .cr-metric-draft {
  background: #edf5f3;
  border-color: #cfe1db;
}
.cr-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.3fr) minmax(130px, 1fr) minmax(150px, 1fr) minmax(140px, 1fr)
    auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}
.cr-clear {
  color: #637a88;
  background: transparent;
  border: none;
}
.cr-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cr-stages button {
  border: 1px solid #dae4eb;
  background: #fff;
  color: #577180;
  border-radius: 100px;
  font-size: 10px;
  min-height: 30px;
  padding: 6px 10px;
}
.cr-stages button[aria-pressed='true'] {
  background: #173d54;
  border-color: #173d54;
  color: white;
}
.cr-stages button span {
  margin-left: 7px;
  opacity: 0.75;
}
.cr-table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  background: #fff;
}
.cr-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.cr-table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #6f8592;
  background: #f1f5f8;
  padding: 12px;
}
.cr-table td {
  padding: 14px 12px;
  vertical-align: top;
  border-top: 1px solid #e8eef2;
  line-height: 1.5;
}
.cr-table td:first-child {
  min-width: 170px;
}
.cr-table td:nth-child(2) {
  min-width: 200px;
  width: 30%;
}
.cr-table td:nth-child(3) {
  min-width: 130px;
}
.cr-table td:nth-child(4) {
  min-width: 180px;
  width: 24%;
}
.cr-table small {
  display: block;
  color: #758692;
  font-size: 10px;
  margin-top: 5px;
}
.cr-description {
  display: block;
  color: #607783;
  margin-top: 4px;
  max-width: 390px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cr-table td button {
  border: 1px solid #d8e2e9;
  background: #fff;
  color: #173d54;
  min-height: 30px;
  white-space: nowrap;
  padding: 5px 10px;
}
.cr-stage {
  display: inline-block;
  border-radius: 5px;
  background: #eef2f5;
  color: #607782;
  font-size: 9px;
  font-weight: 650;
  padding: 4px 7px;
}
.cr-stage-draft {
  color: #256957;
  background: #e7f3ed;
}
.cr-stage-analysis {
  color: #365fa0;
  background: #eaf0fd;
}
.cr-stage-attention {
  color: #9e3c37;
  background: #fbeceb;
}
.cr-stage-classification,
.cr-stage-scheduled {
  color: #886121;
  background: #fbf1dc;
}
.cr-empty {
  padding: 38px 24px;
  text-align: center;
  border: 1px dashed #d3dfe7;
  border-radius: 12px;
  background: #fff;
}
.cr-empty h3,
.cr-empty h4 {
  font-size: 14px;
  margin: 0 0 8px;
}
.cr-empty p {
  font-size: 12px;
  color: #6d8290;
  max-width: 520px;
  margin: auto;
  line-height: 1.7;
}
.cr-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 20px;
  font-size: 10px;
  color: #718793;
}
.cr-paging > div {
  display: flex;
  gap: 6px;
}
.cr-manual {
  border-top: 1px solid var(--cr-line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 11px;
  color: #607783;
  line-height: 1.8;
}
.cr-manual summary {
  cursor: pointer;
  font-weight: 650;
  color: #36586c;
}
.cr-warning {
  padding: 12px 14px;
  border-radius: 7px;
  background: #fff7e6;
  color: #795d2d;
  font-size: 11px;
  line-height: 1.7;
}
.cr-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(760px, 96vw);
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px 0 0 16px;
  color: #173d54;
  background: #f9fbfc;
  box-shadow: -15px 0 70px #132e4530;
}
.cr-drawer::backdrop {
  background: #102b4060;
  backdrop-filter: blur(3px);
}
.cr-drawer-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #173d54;
  color: white;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cr-drawer-heading .cr-eyebrow {
  color: #b6cbd6;
}
.cr-drawer-heading h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.cr-drawer-heading p {
  margin: 0 0 4px;
  font-size: 12px;
}
.cr-drawer-heading button {
  align-self: start;
  border: 1px solid #ffffff40;
  background: transparent;
  color: white;
  border-radius: 7px;
  padding: 7px 10px;
}
.cr-drawer-body {
  padding: 24px 26px 40px;
  font-size: 12px;
  line-height: 1.7;
}
.cr-drawer-body h3 {
  font-size: 15px;
  margin: 18px 0 10px;
}
.cr-drawer-body h4 {
  font-size: 13px;
  margin: 15px 0 8px;
}
.cr-case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.cr-case-facts p {
  margin: 0;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.cr-case-facts span {
  display: block;
  font-size: 10px;
  color: #6c8390;
}
.cr-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  background: #fff;
}
.cr-checks li {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid #e5edf2;
  padding: 10px 12px;
  font-size: 11px;
}
.cr-checks li:last-child {
  border-bottom: 0;
}
.cr-checks strong {
  font-weight: 500;
  color: #6b7f89;
  text-align: right;
  max-width: 55%;
}
.cr-report {
  border: 1px solid #d8e5df;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  margin: 22px 0;
}
.cr-report blockquote {
  border-left: 3px solid #b7cebf;
  margin: 10px 0;
  padding: 10px 14px;
  background: #f3f7f5;
  white-space: pre-wrap;
}
.cr-report small,
.cr-document small {
  display: block;
  color: #7c8d96;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.cr-document {
  background: #fff;
  border: 1px solid #dfe8ee;
  padding: 12px;
  border-radius: 7px;
  margin: 8px 0;
}
.cr-origin {
  display: inline-block;
  border: 1px solid #cad9e2;
  border-radius: 7px;
  padding: 8px 14px;
  color: #173d54;
  text-decoration: none;
}
.cr-preserve {
  white-space: pre-wrap;
}
.cr-hash {
  overflow-wrap: anywhere;
}
.cr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.cr-loader {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #dce5ea;
  border-top-color: #173d54;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: cr-spin 1s linear infinite;
}
@keyframes cr-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1150px) {
  .cr-reading {
    align-items: start;
    flex-direction: column;
  }
  .cr-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }
}
@media (max-width: 680px) {
  .cr-workspace {
    padding: 16px;
    border-radius: 12px;
  }
  .cr-hero {
    flex-direction: column;
    gap: 14px;
  }
  .cr-hero h2 {
    font-size: 27px;
  }
  .cr-agents {
    gap: 8px;
    align-items: start;
  }
  .cr-agents > span {
    flex-direction: column;
    align-items: start;
    gap: 6px;
  }
  .cr-agents i {
    display: none;
  }
  .cr-agents small {
    font-size: 9px;
  }
  .cr-reading {
    padding: 13px;
  }
  .cr-reading form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .cr-reading button {
    grid-column: 1 / -1;
  }
  .cr-selection {
    flex-wrap: wrap;
  }
  .cr-selection label {
    min-width: 0;
    width: 100%;
  }
  .cr-selection > span {
    margin: 0;
  }
  .cr-batch-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .cr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .cr-metrics > div {
    padding: 11px;
  }
  .cr-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-filters label:first-child {
    grid-column: 1 / -1;
  }
  .cr-drawer {
    width: 100vw;
    border-radius: 0;
  }
  .cr-drawer-heading,
  .cr-drawer-body {
    padding: 18px;
  }
  .cr-case-facts {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-loader {
    animation: none;
  }
}
