.webllm-screen {
  position: relative;
  gap: 6px;
  padding: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 214, 255, 0.2), transparent 32%),
    linear-gradient(160deg, rgba(5, 7, 10, 0.98), rgba(15, 20, 24, 0.98));
}

.webllm-screen:focus {
  transform: scale(0.995);
}

.webllm-header,
.webllm-footer,
.control-row,
.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webllm-header {
  min-height: 30px;
  justify-content: flex-end;
}

.status-pill {
  min-width: 76px;
  padding: 7px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
}

.status-pill.good {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.status-pill.warn {
  background: rgba(255, 209, 102, 0.15);
  color: var(--warm);
}

.status-pill.bad {
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
}

.status-pill.run {
  background: rgba(53, 214, 255, 0.16);
  color: var(--accent-strong);
}

.control-row {
  min-height: 36px;
}

.probe-button {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 14px;
  background: rgba(28, 30, 33, 0.92);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.probe-button.primary {
  background: rgba(53, 214, 255, 0.16);
  color: var(--accent-strong);
}

.probe-button:disabled {
  opacity: 0.45;
}

.model-row {
  min-height: 40px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.model-step {
  width: 34px;
  height: 32px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(53, 214, 255, 0.14);
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.model-step:disabled {
  opacity: 0.45;
}

.model-summary {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.model-summary strong,
.model-summary span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.model-summary strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.model-summary span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}

.check-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  overflow: hidden;
}

.check-card {
  min-width: 0;
  min-height: 49px;
  padding: 5px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.check-card span {
  display: block;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.check-card strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.check-card p {
  height: 16px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.12;
  font-weight: 700;
  overflow: hidden;
}

.check-card.good strong {
  color: var(--success);
}

.check-card.warn strong {
  color: var(--warm);
}

.check-card.bad strong {
  color: var(--danger);
}

.check-card.run strong {
  color: var(--accent-strong);
}

.check-card.skip,
.check-card.wait {
  opacity: 0.72;
}

.detail-panel {
  min-height: 200px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(8, 10, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.detail-panel strong {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.detail-panel p {
  height: 28px;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
  overflow: hidden;
}

.log-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.log-heading span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.log-copy {
  width: 54px;
  height: 24px;
  border: 0;
  border-radius: 9px;
  background: rgba(53, 214, 255, 0.14);
  color: var(--accent-strong);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.log-list {
  height: 82px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.log-entry {
  display: grid;
  grid-template-columns: 54px minmax(0, 58px) minmax(0, 1fr);
  gap: 6px;
  min-height: 18px;
  align-items: center;
  color: var(--text-secondary);
}

.log-entry span,
.log-entry strong,
.log-entry p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1;
}

.log-entry span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}

.log-entry strong {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 950;
}

.log-entry p {
  height: auto;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.log-entry.good strong {
  color: var(--success);
}

.log-entry.warn strong {
  color: var(--warm);
}

.log-entry.bad strong {
  color: var(--danger);
}

.log-entry.run strong {
  color: var(--accent-strong);
}

.webllm-footer {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
}

.webllm-footer span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}
