.ghqos-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(23, 105, 210, .07), rgba(20, 165, 154, .08));
}

.ghqos-panel h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.ghqos-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.ghqos-actions .btn {
  flex: 1 1 170px;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.ghqos-actions .btn small {
  display: block;
  font-size: 11px;
}

.ghqos-actions .btn.active {
  outline: 3px solid rgba(23, 105, 210, .18);
}

.ghqos-evidence-note {
  margin-top: 8px;
  font-size: 13px;
}

.ghqos-evidence-note a {
  color: #165fba;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 95, 186, .28);
}

.ghqos-report {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.ghqos-report.is-fallback {
  background: #fffaf5;
}

.ghqos-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ghqos-report-head h3 {
  margin: 8px 0 0;
}

.ghqos-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ghqos-report-grid span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e4edf5;
  border-radius: 14px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ghqos-report-grid b {
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 720px) {
  .ghqos-panel {
    grid-template-columns: 1fr;
  }

  .ghqos-actions {
    justify-content: stretch;
  }

  .ghqos-actions .btn {
    flex: 1 1 180px;
  }

  .ghqos-report-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .ghqos-panel {
    grid-template-columns: 1fr;
  }

  .ghqos-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .ghqos-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ghqos-actions .btn {
    width: 100%;
  }
}
