/* Compact status projection inside the existing native domain screen. */

.dwc-context {
  --dwc-accent: var(--legacy-blue, #1300ff);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--legacy-ink, #232323);
  background: var(--legacy-surface, #fff);
  border: 1px solid var(--legacy-line, #e7e4e0);
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--dwc-accent);
}

.dwc-context--blocked {
  --dwc-accent: #9a6200;
}

.dwc-context--completed {
  --dwc-accent: #197054;
}

.dwc-context--failed {
  --dwc-accent: #9b1c1c;
}

.dwc-context--cancelled {
  --dwc-accent: #616775;
}

.dwc-context__status {
  display: inline-flex;
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--dwc-accent);
  background: #eeedff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.dwc-context--blocked .dwc-context__status {
  background: #fdf1dc;
}

.dwc-context--completed .dwc-context__status {
  background: #e2f5ed;
}

.dwc-context--failed .dwc-context__status {
  background: #fbe4e4;
}

.dwc-context--cancelled .dwc-context__status {
  background: #e6e7eb;
}

.dwc-context__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dwc-context__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dwc-context__copy span {
  color: var(--legacy-ink-soft, #6b6560);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dwc-context__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--legacy-blue, #1300ff);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.dwc-context__action:focus-visible {
  outline: 3px solid var(--legacy-blue, #1300ff);
  outline-offset: 2px;
  border-radius: 4px;
}

.dwc-context__action--start {
  width: max-content;
  margin: 0 0 18px;
}

@media (max-width: 720px) {
  .dwc-context {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .dwc-context__action {
    grid-column: 2;
    width: max-content;
    min-height: 44px;
  }
}
