.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-safe { background: #dcfce7; color: #166534; }
.status-warn { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #991b1b; }
.status-info { background: #e0f2fe; color: #075985; }

.cl-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  padding: 20px;
  background: #fff;
  margin: 15px 0;
}
.cl-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.cl-status-box {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-bottom: 16px;
}
.cl-status-line { display: flex; align-items: flex-start; gap: 10px; }
.cl-status-text { flex: 1; font-size: 0.88rem; line-height: 1.65; color: #475569; }
.cl-safe { background: #f0fdf4; border-color: #bbf7d0; }
.cl-warn { background: #fffbeb; border-color: #fde68a; }
.cl-danger { background: #fef2f2; border-color: #fecaca; }
.cl-info { background: #f8fafc; border-color: #e2e8f0; }

.cl-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.cl-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, #93c5fd) calc(var(--pct, 0) * 1%), #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / 80%);
}
.cl-score-ring::before {
  content: '';
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 2px 12px rgb(15 23 42 / 6%);
  z-index: 1;
}
.cl-score-num {
  position: relative;
  z-index: 3;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cl-score-num.cl-score-loading {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #64748b;
  white-space: nowrap;
}
.cl-score-ring.cl-ring-loading {
  animation: clRingSpin 1.35s linear infinite;
}
.cl-score-ring.cl-ring-loading .cl-score-num {
  animation: clRingSpinCounter 1.35s linear infinite;
}
@keyframes clRingSpin { to { transform: rotate(360deg); } }
@keyframes clRingSpinCounter { to { transform: rotate(-360deg); } }

.cl-score-meta { flex: 1; min-width: 200px; }
.cl-score-label { font-size: 0.92rem; font-weight: 600; color: #334155; }
.cl-progress { margin-top: 4px; margin-bottom: 12px; font-size: 0.84rem; color: #64748b; }

.cl-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.cl-intro-item {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 14px 16px;
}
.cl-intro-h {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.cl-intro-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.7;
}
.cl-intro-list li + li { margin-top: 4px; }

.cl-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}
.cl-pill-ok { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.cl-pill-warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.cl-pill-bad { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

.cl-table { width: 100%; border-collapse: collapse; }
.cl-table th, .cl-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.88rem;
  vertical-align: middle;
}
.cl-table th { background: #f8fafc; color: #475569; font-weight: 600; }
.cl-table tr:last-child td { border-bottom: none; }
.cl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
}
.cl-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.cl-ok { background: #dcfce7; color: #166534; }
.cl-warn { background: #fef3c7; color: #92400e; }
.cl-bad { background: #fee2e2; color: #991b1b; }
.cl-neutral { background: #f1f5f9; color: #475569; }

.cl-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}
.cl-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: clSpin 1.1s linear infinite;
}
@keyframes clSpin { to { transform: rotate(360deg); } }

.cl-risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
}
.cl-risk-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  list-style: none;
}
.cl-risk-list li::marker,
.cl-risk-list li::before {
  content: none;
  display: none;
}
.cl-risk-list li:last-child { border-bottom: none; }
.cl-risk-list .cl-tag { flex-shrink: 0; margin-top: 2px; }
.cl-muted { color: #94a3b8; }
.cl-desc {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.88rem;
  margin: 0 0 10px;
}
.cl-desc:last-child { margin-bottom: 0; }
.cl-desc code,
.cl-intro-list code {
  font-size: 0.84em;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}
.cl-desc a { color: #2563eb; text-decoration: none; }
.cl-desc a:hover { text-decoration: underline; }

.cl-faq { display: flex; flex-direction: column; gap: 10px; }
.cl-faq-item {
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
}
.cl-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
  position: relative;
  padding-right: 40px;
}
.cl-faq-item summary::-webkit-details-marker { display: none; }
.cl-faq-item summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.cl-faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.cl-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
}
.cl-faq-item a { color: #2563eb; text-decoration: none; }
.cl-faq-item a:hover { text-decoration: underline; }
.cl-faq-item code {
  font-size: 0.84em;
  background: #eef2f7;
  padding: 1px 6px;
  border-radius: 4px;
}

.country-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  background: #f1f5f9;
}

@media (max-width: 768px) {
  .cl-intro-grid { grid-template-columns: 1fr; }
  .cl-card { padding: 14px 12px; }
  .cl-table th, .cl-table td { padding: 8px; font-size: 0.82rem; word-break: break-word; }
  .cl-score-ring { width: 104px; height: 104px; }
  .cl-score-ring::before { width: 78px; height: 78px; }
  .cl-score-num { font-size: 1.45rem; }
}
