/* CrackCUET tools. Inherits the theme's variables when present. */
.cct-tool [hidden], .cct-contact [hidden] { display: none !important; }
.cct-tool, .cct-box, .cct-cta, .cct-faq, .cct-short, .cct-contact {
  --c-ink: var(--ink, #0B4160); --c-night: var(--night, #06283D); --c-signal: var(--signal, #2563EB);
  --c-line: var(--line, #DCE2E9); --c-muted: var(--muted, #5B6B7B); --c-go: #0F8A5F; --c-flag: #B7791F; --c-miss: #C2410C;
  font-family: inherit;
}
.cct-tool { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 24px 48px -32px rgba(11,65,96,.35); color: #0F1B26; }
.cct-form { display: grid; gap: 14px; }
.cct-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cct-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.cct-field small { font-weight: 500; color: var(--c-muted); }
.cct-field input, .cct-field select, .cct-field textarea { font: inherit; font-weight: 500; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.cct-field input:focus, .cct-field select:focus, .cct-field textarea:focus { outline: none; border-color: var(--c-signal); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.cct-count summary, .cct-lead summary { cursor: pointer; font-weight: 600; color: var(--c-signal); font-size: 14px; }
.cct-count[open] summary { margin-bottom: 10px; }
.cct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 12px; background: var(--c-signal); color: #fff !important; border: 0; cursor: pointer; text-decoration: none !important; transition: background-color .15s, transform .05s; }
.cct-btn:hover { background: #1D4ED8; }
.cct-btn:active { transform: translateY(1px); }
.cct-btn:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.cct-btn[disabled] { opacity: .55; cursor: wait; }
.cct-btn-ghost { background: #fff; color: var(--c-ink) !important; border: 1.5px solid var(--c-line); }
.cct-btn-ghost:hover { background: #F4F7FB; border-color: var(--c-ink); }
.cct-error { color: var(--c-miss); font-weight: 600; font-size: 14px; margin: 0; }
.cct-note, .cct-disclaimer { font-size: 13px; color: var(--c-muted); margin: 0; }
.cct-ok { font-weight: 700; color: var(--c-go); }
.cct-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cct-result { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--c-line); display: grid; gap: 16px; }
.cct-res-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.cct-res-label { margin: 0; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.cct-res-pct { margin: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cct-res-score { margin: 0; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cct-res-pct span, .cct-res-score span { font-size: .45em; color: var(--c-muted); font-weight: 700; }
.cct-track { position: relative; height: 10px; border-radius: 99px; background: #E4EAF0; margin-top: 18px; }
.cct-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #93C5FD, var(--c-signal)); }
.cct-tick { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--c-ink); border-radius: 2px; transform: translateX(-1px); }
.cct-you { position: absolute; top: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-signal); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: translateX(-12px); }
.cct-axis { position: relative; height: 18px; font-size: 11px; color: var(--c-muted); }
.cct-axis span { position: absolute; transform: translateX(-50%); }
.cct-axis span:first-child { transform: none; }
.cct-summary { margin: 0; font-size: 16px; line-height: 1.55; }
.cct-cols { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cct-col { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; }
.cct-col-name { font-weight: 700; display: grid; }
.cct-col-name small { font-weight: 500; color: var(--c-muted); font-size: 12.5px; }
.cct-pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.cct-need { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.is-realistic .cct-pill { background: #E3F4EC; color: var(--c-go); }
.is-within .cct-pill { background: #E8F0FF; color: var(--c-signal); }
.is-reach .cct-pill { background: #FBF1DE; color: var(--c-flag); }
.is-build .cct-pill { background: #FCEBE3; color: var(--c-miss); }
.cct-next { display: flex; flex-wrap: wrap; gap: 10px; }
.cct-lead { border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; }
.cct-lead[open] summary { margin-bottom: 12px; }
.cct-lead-form { display: grid; gap: 12px; }
.cct-share { display: flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.cct-share a, .cct-share button { color: var(--c-signal); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.cct-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.cct-stats li { padding: 12px; border: 1px solid var(--c-line); border-radius: 12px; font-size: 14px; }
.cct-stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }

/* Compact (hero) version */
.cct-predictor.is-compact { padding: 20px; }
.cct-predictor.is-compact .cct-lead, .cct-predictor.is-compact .cct-share, .cct-predictor.is-compact .cct-disclaimer { display: none; }
.cct-predictor.is-compact .cct-result { gap: 12px; }
.cct-predictor.is-compact .cct-cols { gap: 6px; }
.cct-predictor.is-compact .cct-col { padding: 9px 12px; }

/* In-post box */
.cct-box { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 36px 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #F2F7FF, #FFFFFF); border: 1px solid #C9DAF8; }
.cct-box p { margin: 0; }
.cct-box-title { font-weight: 800; font-size: 18px; color: var(--c-ink); margin-bottom: 4px !important; }
.cct-box-art { width: 56px; height: 56px; border-radius: 14px; background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M10 40 H46' stroke='%23ffffff55' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M10 40 H34' stroke='%2393C5FD' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M38 18 V40' stroke='%23FCD34D' stroke-width='2.5'/%3E%3Cpath d='M38 18 H47 L44.5 21.5 L47 25 H38Z' fill='%23FCD34D'/%3E%3Ccircle cx='34' cy='40' r='4' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 640px) { .cct-box { grid-template-columns: 1fr; } .cct-box-art { display: none; } }

.cct-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin: 32px 0; padding: 22px 24px; border-radius: 18px; background: var(--c-night); color: #fff; }
.cct-cta p { margin: 0; color: #C9D9E5; }
.cct-cta .cct-cta-title { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.cct-cta .cct-btn { background: #fff; color: var(--c-ink) !important; }

.cct-short { margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--c-signal); background: #F4F8FF; border-radius: 0 14px 14px 0; }
.cct-short p { margin: 0; }
.cct-short .cct-short-label { font-weight: 800; color: var(--c-ink); font-size: 14px; margin-bottom: 4px; }

.cct-faq details { border-bottom: 1px solid var(--c-line); padding: 16px 0; }
.cct-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cct-faq summary::-webkit-details-marker { display: none; }
.cct-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--c-signal); }
.cct-faq details[open] summary::after { content: "−"; }
.cct-faq details > div { padding-top: 8px; color: #33424F; line-height: 1.65; }
@media (max-width: 560px) {
  .cct-col { grid-template-columns: 1fr auto; row-gap: 4px; }
  .cct-need { grid-column: 1 / -1; text-align: left; min-width: 0; }
  .cct-res-head { gap: 18px; }
}
