/* Scam Check checking screen, result, "I already acted" and the examples
   (spec 036 ui.md sections 3.4-3.6, 9.2; spec 041 §4, D16-D17). The verdict
   panel keeps its level colours in scam-check.css; every section below it is
   its own surface card. Colours only through main.css variables. */

/* ── checking ── */
.sc-checking-mark { align-self: center; }
.sc-checking-mark .sc-mark-tile { position: relative; overflow: hidden; }
.sc-checking-mark .sc-mark-tile::after {
    content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
    background: linear-gradient(180deg, transparent, var(--sc-glow), transparent);
    animation: sc-scan 2.4s ease-in-out infinite;
}
[data-sc-screen="checking"] > h2 { text-align: center; }
.sc-steps-live {
    list-style: none; display: flex; flex-direction: column; padding: 4px 20px; border-radius: 20px;
    background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-steps-live:empty { display: none; }
.sc-step {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center;
    min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.sc-step:last-child { border-bottom: none; }
.sc-step-icon {
    position: relative; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center; color: var(--teal-on-tint);
}
.sc-step-icon .sc-icon { width: 20px; height: 20px; }
.sc-step--running .sc-step-icon { border-color: var(--border-color); border-top-color: var(--sc-accent); animation: sc-spin 1s linear infinite; }
.sc-step--done .sc-step-icon { border-color: var(--teal-on-tint); }
.sc-step--skipped .sc-step-icon::before { content: ""; width: 12px; height: 3px; background: var(--text-secondary); }
.sc-step--pending .sc-step-label { color: var(--text-secondary); }
.sc-step-state { font-size: 1.125rem; font-weight: 700; color: var(--text-secondary); }
.sc-wait {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border-radius: 20px; font-weight: 600;
    background: var(--sc-level-noclear-bg);
}
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-scan { 0% { top: -40%; } 100% { top: 100%; } }

/* ── result ── */
.sc-summary { font-size: 1.375rem; line-height: 1.45; font-weight: 600; }
.sc-result > .sc-reasons, .sc-result > .sc-could, .sc-result > .sc-next, .sc-result > .sc-contacts,
.sc-result > .sc-tutorials, .sc-example-out > .sc-reasons, .sc-example-out > .sc-next {
    gap: 14px; padding: 20px 22px; border-radius: 20px;
    background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-result h3, .sc-example-out h4 { font-size: 1.375rem; font-weight: 800; }
.sc-could ul { padding-left: 1.4em; }
.sc-result > .sc-checked, .sc-example-out > .sc-checked { gap: 20px; }
.sc-more { display: flex; flex-direction: column; gap: 20px; }
.sc-cg--clear, .sc-cg--skip { padding-top: 20px; border-top: 1px solid var(--border-color); }
.sc-checked > :first-child + .sc-more > .sc-cg:first-child { padding-top: 0; border-top: none; }
.sc-line .sc-source time { white-space: nowrap; }
.sc-contact-tel, .sc-contact-url { padding: 0 16px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--sc-ctl); text-decoration: none; }
.sc-page a.sc-contact-tel, .sc-page a.sc-contact-url { color: var(--text-primary); text-decoration: none; }
.sc-page a.sc-contact-tel:hover, .sc-page a.sc-contact-url:hover { color: var(--text-primary); background: var(--sc-ctl-hover); }
.sc-tutorial {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
    padding: 12px 18px; border-radius: 16px; background: var(--sc-ctl); border: 1px solid var(--card-border); font-weight: 700;
}
.sc-tutorial::after { content: "›" / ""; font-size: 1.5rem; line-height: 1; color: var(--sc-accent); }
.sc-page a.sc-tutorial { color: var(--text-primary); text-decoration: none; }
.sc-page a.sc-tutorial:hover { color: var(--text-primary); background: var(--sc-ctl-hover); }
.sc-feedback {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 20px; border-radius: 20px;
    background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-feedback-q { font-weight: 700; width: 100%; }
.sc-feedback .sc-btn { min-height: 48px; padding: 8px 20px; border-radius: 999px; font-size: 1.125rem; }
.sc-disclaimer { padding-top: 16px; border-top: 1px solid var(--border-color); }

/* ── "I already acted" and examples ── */
.sc-checks {
    display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px;
    background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-examples { padding-top: 24px; border-top: 1px solid var(--border-color); }
.sc-example-choices { display: flex; flex-direction: column; gap: 10px; }
.sc-example-choices [aria-pressed="true"] { border-color: var(--sc-accent); background: var(--sc-accent); color: var(--sc-on-accent); box-shadow: none; }
.sc-example {
    display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 16px;
    background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-example-from { font-weight: 700; color: var(--text-secondary); }
.sc-example-subject { font-weight: 800; }
.sc-example-body { white-space: pre-wrap; }

@media (max-width: 500px) {
    .sc-result > .sc-reasons, .sc-result > .sc-could, .sc-result > .sc-next, .sc-result > .sc-contacts,
    .sc-result > .sc-tutorials, .sc-feedback, .sc-checks { padding: 16px; }
    .sc-summary { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-step--running .sc-step-icon { animation: none; border-top-color: var(--sc-accent); }
    .sc-checking-mark .sc-mark-tile::after { animation: none; display: none; }
}
