.cc-diag { max-width: 760px; margin: 0 auto; padding: 12px 0 28px; }
.cc-diag-kicker { margin: 0; color: #9a3412; font-weight: 800; }
.cc-diag h1 { margin: 4px 0 12px; font-size: 32px; }
.cc-diag-progress { height: 8px; border-radius: 99px; background: #f3e6da; overflow: hidden; margin-bottom: 14px; }
.cc-diag-progress span { display: block; height: 100%; width: 0; background: #ff7a00; transition: width .25s ease; }
.cc-diag-card, .cc-diag-result {
  background: #fff;
  border: 1px solid #eadfd4;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}
.cc-diag h2 { margin: 0 0 8px; font-size: 24px; }
.cc-diag p { margin: 0 0 12px; line-height: 1.5; }
.cc-diag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cc-diag button, .cc-diag-link {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #ff7a00;
  color: #111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-diag button.ghost { background: #fff; border: 1px solid #eadfd4; }
.cc-diag button.bad { background: #fff; color: #b42318; border: 1px solid #f3c3bd; }
.cc-diag-meter { height: 14px; border-radius: 99px; background: #f3f4f6; overflow: hidden; }
.cc-diag-meter span { display: block; height: 100%; width: 0; background: #19c37d; }
.cc-diag-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cc-diag-stats div { background: #fff8f2; border-radius: 14px; padding: 10px; }
.cc-diag-stats b { display: block; font-size: 18px; }
.cc-cam { width: 100%; aspect-ratio: 3 / 4; background: #111; border-radius: 18px; object-fit: cover; }
.cc-screen, .cc-touch-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  color: #111;
  text-align: center;
  padding: 24px;
}
.cc-screen p, .cc-touch-layer p { font-size: 22px; font-weight: 800; }
.cc-touch-layer { display: block; padding: 0; background: #fff; touch-action: none; }
.cc-touch-grid { display: grid; width: 100%; height: 100%; gap: 3px; background: #d9dde3; }
.cc-touch-grid i { background: #fff; }
.cc-touch-grid i.on { background: #ff7a00; }
.cc-report { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cc-report li { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #eadfd4; border-radius: 14px; padding: 12px; }
.cc-report li b { font-size: 18px; }
.cc-ok { color: #067647; }
.cc-bad { color: #b42318; }
.cc-mid { color: #9a3412; }
@media (max-width: 700px) {
  .cc-diag h1 { font-size: 28px; }
  .cc-diag-stats { grid-template-columns: 1fr; }
}
