.cf-webcodex-shell {
  display: grid;
  gap: 0;
  background: transparent;
}

.webcodex-panel-head {
  padding: 10px 18px 6px;
  align-items: start;
  gap: 1rem;
}

.webcodex-panel-head__copy,
.webcodex-summary-band-main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.webcodex-panel-head__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  align-content: start;
}

.webcodex-summary-band {
  padding: 14px 18px;
  border: 1px solid #2a303a;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(23, 28, 37, 0.98));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.webcodex-summary-stats {
  align-self: stretch;
}

.cf-webcodex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid #2a303a;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #11161e 0%, #171c25 100%);
}

.cf-webcodex-hero-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.cf-webcodex-hero-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid #343b48;
  background: rgba(255, 255, 255, 0.02);
}

.cf-webcodex-hero-mark img {
  width: 3rem;
  height: 3rem;
  display: block;
}

@media (min-width: 768px) {
  .cf-webcodex-hero-mark {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.35rem;
    transform-origin: center center;
    animation: cf-logo-activation 660ms cubic-bezier(0.22, 0.82, 0.22, 1) 1 both;
    will-change: opacity, transform, filter;
  }

  .cf-webcodex-hero-mark img {
    width: 100%;
    height: 100%;
  }
}

.cf-webcodex-hero-copy {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.cf-webcodex-eyebrow,
.cf-webcodex-card-kicker {
  margin: 0;
  color: #9aa4b2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  line-height: 1.2;
}

.cf-webcodex-hero-copy h1,
.cf-webcodex-grid-head h2,
.cf-webcodex-grid-head h3,
.cf-webcodex-artifact-card h4 {
  margin: 0;
  color: #e8ecf2;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cf-webcodex-hero-copy h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
}

.cf-webcodex-hero-text,
.cf-webcodex-grid-head .cf-panel-copy,
.cf-webcodex-summary-card p,
.cf-webcodex-help,
.cf-webcodex-cell-copy,
.cf-webcodex-artifact-meta dd,
.cf-webcodex-artifact-meta dt {
  margin: 0;
  color: #9aa4b2;
  line-height: 1.45;
  font-size: 0.9rem;
}

.cf-webcodex-technical-details {
  margin-top: 0.4rem;
  color: #9aa4b2;
}

.cf-webcodex-technical-details summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c3cad4;
}

.cf-webcodex-technical-details__body {
  margin-top: 0.45rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.cf-webcodex-hero-text {
  max-width: 64ch;
  color: rgba(232, 236, 242, 0.84);
}

.cf-webcodex-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cf-webcodex-nav-pill {
  min-height: 2.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid #343b48;
  background: rgba(17, 22, 30, 0.92);
  color: #e8ecf2;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-webcodex-hero-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  align-content: start;
}

.cf-webcodex-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.cf-webcodex-summary-card {
  display: grid;
  gap: 0.42rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid #2a303a;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(23, 28, 37, 0.98));
  min-width: 0;
  min-height: 7rem;
}

.cf-webcodex-summary-card strong {
  color: #e8ecf2;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cf-webcodex-body {
  display: grid;
  gap: 1rem;
}

.cf-webcodex-hero-card,
.cf-webcodex-grid-section,
.cf-webcodex-workbench {
  border: 1px solid #2a303a;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(23, 28, 37, 0.98));
  padding: 1rem;
}

.cf-webcodex-grid-head {
  margin-bottom: 0.85rem;
}

.cf-webcodex-grid-shell {
  border: 1px solid #2f3642;
  border-radius: 1rem;
  background: #0f141c;
  overflow: hidden;
}

.cf-webcodex-grid-viewport {
  max-height: 32rem;
  overflow: auto;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 180, 200, 0.34) transparent;
}

.cf-webcodex-grid-viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cf-webcodex-grid-viewport::-webkit-scrollbar-thumb {
  background: rgba(180, 180, 200, 0.34);
  border-radius: 999px;
}

.cf-webcodex-grid-viewport:focus-visible,
.cf-webcodex-grid-viewport tr:focus-visible,
.cf-webcodex-artifact-card:focus-visible {
  outline: 2px solid rgba(155, 124, 255, 0.78);
  outline-offset: -2px;
}

.cf-webcodex-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cf-webcodex-grid th,
.cf-webcodex-grid td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

.cf-webcodex-grid th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 21, 29, 0.98);
  color: #e8ecf2;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cf-webcodex-grid tbody tr:hover,
.cf-webcodex-artifact-card:hover {
  background: rgba(124, 92, 255, 0.08);
}

.cf-webcodex-grid tbody tr {
  min-height: 3.9rem;
}

.cf-webcodex-grid td {
  line-height: 1.52;
}

.cf-webcodex-grid td strong {
  line-height: 1.5;
}

.cf-webcodex-empty-row td,
.cf-webcodex-empty-state {
  padding: 1rem;
  color: #9aa4b2;
  text-align: left;
}

.cf-webcodex-empty-state {
  display: grid;
  gap: 0.6rem;
  min-height: 10rem;
  place-content: center;
}

.cf-webcodex-empty-state strong {
  color: #e8ecf2;
  font-size: 1rem;
}

.cf-webcodex-grid tbody tr[data-active="true"],
.cf-webcodex-artifact-card[data-active="true"] {
  background: rgba(124, 92, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.28);
}

.cf-webcodex-grid td strong,
.cf-webcodex-summary-card strong,
.cf-webcodex-artifact-card h4 {
  display: block;
  overflow-wrap: anywhere;
}

.cf-webcodex-grid td strong {
  color: #e8ecf2;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(1),
.cf-webcodex-grid-viewport--conversation td:nth-child(1) {
  width: 5.5rem;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(2),
.cf-webcodex-grid-viewport--conversation td:nth-child(2) {
  width: 7.5rem;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(3),
.cf-webcodex-grid-viewport--conversation td:nth-child(3) {
  width: auto;
  min-width: 22rem;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(4),
.cf-webcodex-grid-viewport--conversation td:nth-child(4) {
  width: 6rem;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(5),
.cf-webcodex-grid-viewport--conversation td:nth-child(5) {
  width: 12.75rem;
  white-space: nowrap;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(6),
.cf-webcodex-grid-viewport--conversation td:nth-child(6) {
  width: 6.75rem;
}

.cf-webcodex-form {
  display: grid;
  gap: 1rem;
}

.cf-webcodex-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.cf-webcodex-form-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.cf-webcodex-response-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #2a303a;
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(17, 22, 30, 0.98));
  min-width: 0;
}

.cf-webcodex-response-body {
  min-height: 5.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid #343b48;
  border-radius: 0.95rem;
  background: #080c12;
  color: #e8ecf2;
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cf-webcodex-reporter-qna {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(52, 59, 72, 0.85);
}

.cf-webcodex-reporter-qna .cf-webcodex-field--prompt textarea {
  min-height: 5rem;
}

.cf-webcodex-upload,
.cf-webcodex-field {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border: 1px solid #343b48;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.92), rgba(17, 22, 30, 0.96));
  min-width: 0;
}

.cf-webcodex-upload span,
.cf-webcodex-field span {
  color: #e8ecf2;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cf-webcodex-upload input,
.cf-webcodex-field input,
.cf-webcodex-field textarea {
  width: 100%;
  min-width: 0;
  background: #0b0f16;
  color: #e8ecf2;
  border: 1px solid #343b48;
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
}

.cf-webcodex-extension-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}

.cf-webcodex-chip--extension {
  height: 28px;
  padding: 0 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 28px;
}

.cf-webcodex-upload input::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 0.75rem;
  background: rgba(124, 92, 255, 0.2);
  color: #e8ecf2;
  padding: 0.55rem 0.8rem;
}

.cf-webcodex-upload small,
.cf-webcodex-field small {
  color: #9aa4b2;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cf-webcodex-field textarea {
  resize: vertical;
  min-height: 13.75rem;
}

.cf-webcodex-field--notice p,
.cf-webcodex-field--workspace p {
  margin: 0;
}

.cf-webcodex-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cf-webcodex-run-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cf-webcodex-transcriber-progress {
  align-items: stretch;
}

.cf-webcodex-transcriber-progress .cf-webcodex-help {
  max-width: 52ch;
}

.cf-webcodex-transcriber-progress .cf-webcodex-progress-feed {
  flex-basis: 100%;
  width: 100%;
}

.cf-webcodex-artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.8rem;
}

.cf-webcodex-artifact-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid #2f3642;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.95), rgba(17, 22, 30, 0.98));
  min-width: 0;
  outline: none;
}

.cf-webcodex-artifact-card__head {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.cf-webcodex-artifact-card__head h4 {
  font-size: 1rem;
  margin-top: 0.2rem;
}

.cf-webcodex-artifact-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.cf-webcodex-artifact-meta div {
  display: grid;
  gap: 0.2rem;
}

.cf-webcodex-artifact-meta dt {
  color: #9aa4b2;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cf-webcodex-artifact-meta dd {
  color: #e8ecf2;
  margin: 0;
}

.cf-webcodex-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid #343b48;
  background: rgba(7, 10, 15, 0.95);
  color: #e8ecf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-webcodex-artifact-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cf-webcodex-row-btn {
  min-height: 2.75rem;
}

.cf-webcodex-copy-btn {
  border-color: rgba(155, 124, 255, 0.32);
  color: #e8ecf2;
}

.cf-webcodex-copy-btn:hover {
  border-color: rgba(155, 124, 255, 0.65);
}

@media (max-width: 1199px) {
  .cf-webcodex-hero {
    grid-template-columns: 1fr;
  }

  .cf-webcodex-status-grid,
  .cf-webcodex-artifact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cf-webcodex-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cf-webcodex-hero,
  .cf-webcodex-hero-card,
  .cf-webcodex-grid-section,
  .cf-webcodex-workbench {
    padding: 0.9rem;
  }

  .cf-webcodex-hero-brand {
    grid-template-columns: 1fr;
  }

  .cf-webcodex-hero-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .cf-webcodex-status-grid,
  .cf-webcodex-artifact-grid {
    grid-template-columns: 1fr;
  }

  .cf-webcodex-grid-viewport {
    max-height: none;
  }

  .cf-webcodex-grid-viewport--conversation th:nth-child(5),
  .cf-webcodex-grid-viewport--conversation td:nth-child(5),
  .cf-webcodex-grid-viewport--conversation th:nth-child(6),
  .cf-webcodex-grid-viewport--conversation td:nth-child(6) {
    width: auto;
  }

  .cf-webcodex-upload input,
  .cf-webcodex-field input,
  .cf-webcodex-field textarea,
  .cf-webcodex-nav-pill,
  .cf-webcodex-row-btn {
    min-height: 2.75rem;
  }

  .cf-webcodex-field textarea {
    min-height: 11rem;
  }
}

html.conceptflow-route-webcodex,
body.conceptflow-route-webcodex {
  background: #070a0f;
  color: #e8ecf2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.conceptflow-route-webcodex .cf-stage,
body.conceptflow-route-webcodex .cf-app-shell,
body.conceptflow-route-webcodex .cf-main {
  background: #070a0f;
}

.webcodex-shell,
.webcodex-shell * {
  box-sizing: border-box;
}

.webcodex-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  color: #e8ecf2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.webcodex-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.cf-webcodex-hero-status .cf-ready-pill,
.cf-webcodex-run-state .cf-ready-pill {
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #3a4250;
}

.cf-ready-pill--ready,
.cf-ready-pill--available,
.cf-ready-pill--local,
.cf-ready-pill--sync {
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(124, 92, 255, 0.55);
  color: #f3f0ff;
}

.cf-ready-pill--error {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.55);
  color: #ffe9e9;
}

.cf-ready-pill--warn {
  background: rgba(244, 201, 107, 0.14);
  border-color: rgba(244, 201, 107, 0.55);
  color: #fff6dd;
}

.cf-webcodex-hero-status .cf-ready-pill {
  white-space: nowrap;
}

.cf-webcodex-status-grid {
  margin-top: -4px;
}

.cf-webcodex-grid-section .cf-panel-copy,
.cf-webcodex-workbench .cf-panel-copy {
  max-width: 72ch;
}

.cf-webcodex-grid-shell--artifacts {
  background: #0f141c;
}

.cf-webcodex-artifact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cf-webcodex-chip--path {
  max-width: 100%;
}

.cf-webcodex-run-state {
  align-items: center;
}

.cf-webcodex-run-state .cf-webcodex-help {
  max-width: 48ch;
}

.cf-webcodex-progress-feed {
  margin: 0.15rem 0 0;
  padding: 0.9rem 1rem;
  list-style: none;
  border: 1px solid #343b48;
  border-radius: 0.95rem;
  background: #090d14;
  display: grid;
  gap: 0.35rem;
  max-height: 9rem;
  overflow: auto;
}

.cf-webcodex-progress-feed:empty::before {
  content: 'Live progress updates will appear here while the job is running.';
  color: #8f98a6;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cf-webcodex-progress-feed li {
  color: #cfd6df;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cf-webcodex-progress-feed li[data-state="Queued"] {
  color: #d8d3ff;
}

.cf-webcodex-progress-feed li[data-state="Running"] {
  color: #d7f2ff;
}

.cf-webcodex-progress-feed li[data-state="Completed"] {
  color: #d7f7dd;
}

.cf-webcodex-progress-feed li[data-state="Failed"] {
  color: #ffd7d7;
}

.cf-webcodex-field--notice,
.cf-webcodex-field--workspace {
  min-height: 7rem;
}

.cf-webcodex-field--prompt textarea {
  min-height: 18rem;
}

.cf-webcodex-field input::placeholder,
.cf-webcodex-field textarea::placeholder {
  color: #818b99;
}

.cf-webcodex-field input:focus-visible,
.cf-webcodex-field textarea:focus-visible,
.cf-webcodex-upload input:focus-visible,
.cf-webcodex-nav-pill:focus-visible,
.cf-webcodex-row-btn:focus-visible {
  outline: 2px solid #9b7cff;
  outline-offset: 2px;
}

.cf-webcodex-grid-viewport:focus-visible,
.cf-webcodex-artifact-card:focus-visible {
  outline-offset: 0;
}

.cf-webcodex-upload input[type="file"] {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
}

.cf-webcodex-upload small {
  overflow-wrap: anywhere;
}

.cf-webcodex-artifact-card__head h4 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cf-webcodex-artifact-card {
  min-height: 15rem;
}

.cf-webcodex-grid td,
.cf-webcodex-grid th {
  font-size: 0.92rem;
}

.cf-webcodex-grid td .cf-webcodex-cell-copy {
  color: #9aa4b2;
}

.cf-webcodex-grid tbody tr:nth-child(odd) {
  background: #0f141c;
}

.cf-webcodex-grid tbody tr:nth-child(even) {
  background: #111822;
}

.cf-webcodex-grid tbody tr:hover,
.cf-webcodex-grid tbody tr:focus-within,
.cf-webcodex-artifact-card:hover,
.cf-webcodex-artifact-card:focus-within {
  background: #171f2b;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(3),
.cf-webcodex-grid-viewport--conversation td:nth-child(3) {
  min-width: 18rem;
}

.cf-webcodex-grid-viewport--conversation th:nth-child(6),
.cf-webcodex-grid-viewport--conversation td:nth-child(6) {
  width: 7.5rem;
}

.cf-webcodex-grid-viewport--artifacts article {
  min-width: 0;
}

.cf-webcodex-grid-shell,
.cf-webcodex-hero-card,
.cf-webcodex-workbench,
.cf-webcodex-grid-section,
.cf-webcodex-summary-card {
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.cf-webcodex-grid-section,
.cf-webcodex-workbench {
  border: 1px solid #2a303a;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(23, 28, 37, 0.98));
}

.cf-webcodex-actions .cf-toolbar-btn--primary {
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid #8b72ff;
  background: rgba(124, 92, 255, 0.22);
  color: #e8ecf2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.cf-webcodex-actions .cf-toolbar-btn--primary:hover:not(:disabled),
.cf-webcodex-actions .cf-toolbar-btn--primary:focus-visible {
  background: rgba(124, 92, 255, 0.3);
  border-color: rgba(155, 124, 255, 0.95);
}

.cf-webcodex-actions .cf-toolbar-btn--primary:disabled {
  opacity: 0.45;
}

.cf-webcodex-run-state[data-state="Running"] .cf-ready-pill,
.cf-webcodex-run-state[data-state="Queued"] .cf-ready-pill {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(139, 114, 255, 0.7);
}

.cf-webcodex-run-state[data-state="Completed"] .cf-ready-pill {
  background: rgba(125, 211, 168, 0.16);
  border-color: rgba(125, 211, 168, 0.55);
}

.cf-webcodex-run-state[data-state="Failed"] .cf-ready-pill,
.cf-webcodex-run-state[data-state="Permission Denied"] .cf-ready-pill,
.cf-webcodex-run-state[data-state="Blocked"] .cf-ready-pill {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.55);
}

.cf-webcodex-grid-shell,
.cf-webcodex-artifact-grid,
.cf-webcodex-hero,
.cf-webcodex-hero-card,
.cf-webcodex-workbench,
.cf-webcodex-summary-card {
  min-width: 0;
}

@media (max-width: 1199px) {
  .webcodex-panel-head {
    padding: 10px 16px 8px;
  }

  .webcodex-summary-band {
    padding: 13px 16px;
  }

  .cf-webcodex-artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .webcodex-panel-head {
    padding: 8px 14px 8px;
  }

  .webcodex-summary-band {
    padding: 12px 14px;
  }

  .cf-webcodex-status-grid {
    grid-template-columns: 1fr;
  }

  .cf-webcodex-grid-viewport {
    max-height: none;
    overflow-x: hidden;
  }

  .cf-webcodex-grid,
  .cf-webcodex-grid thead,
  .cf-webcodex-grid tbody,
  .cf-webcodex-grid tr,
  .cf-webcodex-grid td {
    display: block;
    width: 100%;
  }

  .cf-webcodex-grid thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cf-webcodex-grid tbody tr {
    border: 1px solid #2f3642;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .cf-webcodex-grid td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cf-webcodex-grid td:last-child {
    border-bottom: 0;
  }

  .cf-webcodex-grid td::before {
    content: attr(data-label);
    color: #9aa4b2;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .cf-webcodex-grid td strong {
    overflow-wrap: anywhere;
  }

  .cf-webcodex-artifact-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .cf-webcodex-artifact-card {
    min-height: 0;
  }

  .cf-webcodex-artifact-actions,
  .cf-webcodex-actions {
    width: 100%;
  }

  .cf-webcodex-row-btn,
  .cf-webcodex-copy-btn,
  .cf-webcodex-nav-pill,
  .cf-toolbar-btn--primary {
    width: 100%;
  }

  .cf-webcodex-field textarea {
    min-height: 132px;
  }
}

@media (min-width: 768px) {
  .cf-webcodex-upload input,
  .cf-webcodex-field input,
  .cf-webcodex-field textarea {
    font-size: 0.96rem;
  }
}

@media (min-width: 1200px) {
  .cf-webcodex-grid-viewport--conversation th:nth-child(5),
  .cf-webcodex-grid-viewport--conversation td:nth-child(5) {
    width: 12.5rem;
  }
}

/* Larger and crisper WebCODEX hero mark for the live app and the walkthrough captures. */
.cf-webcodex-hero-mark {
  width: 4.9rem !important;
  height: 4.9rem !important;
  border-radius: 1.05rem !important;
}

.cf-webcodex-hero-mark img {
  width: 3.55rem !important;
  height: 3.55rem !important;
  image-rendering: auto;
}

@media (min-width: 768px) {
  .cf-webcodex-hero-mark {
    width: 5.6rem !important;
    height: 5.6rem !important;
  }

  .cf-webcodex-hero-mark img {
    width: 4.25rem !important;
    height: 4.25rem !important;
  }
}
