.ctap-panel, .ctap-callout {
  --ctap-ink: #142644;
  --ctap-blue: #1b4a85;
  --ctap-border: #d8e2ef;
  --ctap-muted: #4b607d;
  box-sizing: border-box;
  font: 1rem/1.55 Inter, "Noto Sans Devanagari", system-ui, sans-serif;
  color: var(--ctap-ink);
}
.ctap-panel *, .ctap-callout * { box-sizing: border-box }
.ctap-panel {
  --wp--style--global--content-size: 100%;
  max-width: 1140px;
  margin: 20px auto 40px;
  background: #f6f9fd;
  border: 1px solid var(--ctap-border);
  border-radius: 24px;
  overflow: hidden;
}
.ctap-panel h2, .ctap-panel h3 { margin: 0; color: inherit; line-height: 1.2; letter-spacing: -.025em }
.ctap-panel p, .ctap-callout p { margin: .5rem 0; color: inherit }
.ctap-hero {
  padding: clamp(23px, 5vw, 60px);
  background: radial-gradient(ellipse at 88% 5%, #31568a, transparent 65%), #142644;
  color: white;
}
.ctap-hero h2 { font-size: clamp(1.75rem, 4.6vw, 3.25rem); font-weight: 780 }
.ctap-hero p { color: #e1ebf9; max-width: 60ch }
.ctap-metrics {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px;
  margin: 1.6rem 0 0;
}
.ctap-metrics div {
  display: flex; flex-direction: column-reverse; border: 1px solid #6b87ac;
  border-radius: 12px; padding: 10px 12px; background: #ffffff12;
}
.ctap-metrics dt { font-size: .83rem; color: #e1ebf9 }
.ctap-metrics dd { margin: 0; font-size: 1.4rem; font-weight: 750 }
.ctap-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr));
  gap: 14px; list-style: none; margin: 0; padding: clamp(16px,4vw,38px);
}
.ctap-card {
  min-width: 0; padding: 16px; background: white; border: 1px solid var(--ctap-border);
  border-radius: 16px; box-shadow: 0 5px 18px #14264409;
}
.ctap-card-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px }
.ctap-card h3 { font-size:1.1rem }
.ctap-card-status { padding: 2px 8px; border-radius:30px; background:#e9f1fd; color:#214777; font-size:.73rem; font-weight:700 }
.ctap-card p { color: var(--ctap-muted) }
.ctap-card .ctap-card-meta { font-size: .86rem; margin: .8rem 0 }
.ctap-card-meta span { display: block }
.ctap-panel .ctap-card-review { display: inline-block; margin-top: .7rem; color: var(--ctap-blue); font-size: .83rem }
.ctap-panel .ctap-cta, .ctap-callout .ctap-cta {
  display: flex; justify-content: space-between; align-items: center; gap: .65rem;
  background: var(--ctap-blue); color: #fff; padding: .64rem .95rem; min-height: 44px;
  font-weight: 680; font-size: .93rem; border-radius: 10px; text-decoration: none; line-height: 1.32;
}
.ctap-panel .ctap-cta:hover, .ctap-callout .ctap-cta:hover { background: #153867; color: #fff }
.ctap-cta:focus-visible { outline: 3px solid #ca7f16; outline-offset: 3px }
.ctap-cta span[lang="hi"] { display: block; font-size: .79rem }
.ctap-locked, .ctap-hub-rules { padding: 22px clamp(16px,4vw,38px) }
.ctap-hub-rules { border-top: 1px solid var(--ctap-border); background:#fff }
.ctap-hub-rules h3 span { font-size: .87em }
.ctap-hub-rules p { max-width: 78ch }
.ctap-hub-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:.95rem }
.ctap-panel .ctap-secondary { background: #e3edf9; color: #142644 }
.ctap-callout {
  margin: 1.1rem 0; padding: 16px 18px; border:1px solid var(--ctap-border);
  background:#f0f6fd; border-radius: 14px; display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between; gap: 12px;
}
.ctap-callout p { margin:0; font-size:.9rem }
@media (max-width: 520px) {
  .ctap-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .ctap-hub-actions a { flex: 1 1 100% }
}
.ctap-paper-sources { margin: 1rem 0 .2rem }
.ctap-paper-sources summary { font-weight: 680; cursor: pointer }
.ctap-paper-sources li { margin: .45rem 0 }
.ctap-paper-sources a { color: var(--ctap-blue) }

.ctap-pass-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: #eaf1fb; border-bottom: 1px solid var(--ctap-border);
}
.ctap-pass-bar p { margin: .24rem 0; color: var(--ctap-muted) }
.ctap-existing { font-size: .87rem; color: #244b78 }
.ctap-card.ctap-demo-card { border-color: #75ab8b; background: #f6fcf8 }
.ctap-demo-card .ctap-card-status { background: #ddeee2; color: #174f34 }
.ctap-locked-card .ctap-card-status { background: #eef1f6; color: #485873 }
.ctap-panel .ctap-locked-card .ctap-cta { background: #e7effb; color: #193b68 }
.ctap-panel .ctap-locked-card .ctap-cta:hover { background: #d8e6f8 }
.ctap-callout .ctap-secondary { background: #e7effb; color: #193b68 }
@media (max-width: 520px) { .ctap-pass-bar .ctap-cta { width: 100% } }
