.check-hero {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.check-form {
    padding: 1.25rem 1.5rem;
}

.check-form-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.check-input-wrap {
    position: relative;
}

.check-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8f96;
    font-size: 1rem;
    pointer-events: none;
}

.check-input {
    padding-left: 2.25rem;
    font-size: 0.95rem;
    height: 2.6rem;
}

.check-submit-btn {
    white-space: nowrap;
    height: 2.6rem;
    padding: 0 1.25rem;
}

.check-rate-hint {
    font-size: 0.75rem;
    color: #8a8f96;
    margin-top: 0.5rem;
    text-align: right;
}

/* Result card */
.check-result-card {
    padding: 1.5rem;
}

.check-score-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.check-domain-label {
    font-size: 1rem;
    font-weight: 700;
    color: #172127;
    margin-bottom: 0.15rem;
}

.check-score-label {
    font-size: 0.78rem;
    color: #5f6b72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.check-grade-wrap {
    text-align: right;
    flex-shrink: 0;
}

.check-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid transparent;
    margin-bottom: 0.2rem;
}

.check-grade--a { background: #e6f4ea; color: #1f6b3a; border-color: #c8e6cf; }
.check-grade--b { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.check-grade--c { background: #fff8e1; color: #f57f17; border-color: #ffe082; }
.check-grade--d { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.check-grade--f { background: #fdecea; color: #9b2b1b; border-color: #f6cfca; }

.check-score-number {
    font-size: 0.88rem;
    font-weight: 700;
    color: #172127;
    text-align: center;
}

.check-score-max {
    font-size: 0.72rem;
    color: #8a8f96;
    font-weight: 400;
}

/* Checks list */
.check-checks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.check-icon {
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.check-icon--pass { color: #1f6b3a; }
.check-icon--fail { color: #9b2b1b; }
.check-icon--warn { color: #cc7700; }
.check-icon--info { color: #5f6b72; }

.check-check-body {
    flex: 1;
    min-width: 0;
}

.check-check-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #172127;
}

.check-check-message {
    font-size: 0.8rem;
    color: #5f6b72;
    margin-top: 0.1rem;
}

.check-check-points {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1f6b3a;
    background: #e6f4ea;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* Records */
.check-records {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-record-block {
    background: #f7f4ef;
    border: 1px solid rgba(23, 33, 39, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.check-record-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f6b72;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.check-record-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.78rem;
    color: #172127;
    word-break: break-all;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    background: transparent;
}

.check-copy-btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(23, 33, 39, 0.18);
    color: #1d252b;
    background: transparent;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.check-copy-btn:hover {
    background: #1d252b;
    color: #fff;
    border-color: #1d252b;
}

.check-copy-btn.is-copied {
    background: #e6f4ea;
    color: #1f6b3a;
    border-color: #c8e6cf;
}

.check-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Examples (empty state) */
.check-examples {
    padding: 1.5rem;
}

.check-examples-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a8f96;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.check-examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.check-example-icon {
    font-size: 1.4rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.4rem;
}

.check-example-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #172127;
    margin-bottom: 0.2rem;
}

.check-example-desc {
    font-size: 0.78rem;
    color: #5f6b72;
}

/* Wizard panel */
.check-wizard-card {
    padding: 1.5rem;
    height: fit-content;
}

.check-preset-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-preset-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(23, 33, 39, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.check-preset-option:hover {
    border-color: rgba(187, 77, 0, 0.3);
    background: rgba(187, 77, 0, 0.04);
}

.check-preset-option--selected,
.check-preset-option:has(.check-preset-radio:checked) {
    border-color: #bb4d00;
    background: rgba(187, 77, 0, 0.06);
}

.check-preset-radio {
    margin-top: 0.2rem;
    accent-color: #bb4d00;
    flex-shrink: 0;
}

.check-preset-name {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #172127;
}

.check-preset-desc {
    display: block;
    font-size: 0.76rem;
    color: #5f6b72;
    margin-top: 0.1rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Install steps */
.check-install-steps {
    background: #f7f4ef;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(23, 33, 39, 0.07);
}

.check-install-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #5f6b72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.check-install-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.82rem;
    color: #172127;
    line-height: 1.7;
}

.check-install-list code {
    font-size: 0.76rem;
    background: rgba(23, 33, 39, 0.07);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    word-break: break-all;
}

.check-cache-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #7e2f00;
    background: rgba(187, 77, 0, 0.07);
    border: 1.5px solid rgba(187, 77, 0, 0.2);
    border-radius: 24px;
    padding: 0.65rem 1.1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.check-cache-hint .bi-clock {
    flex-shrink: 0;
    opacity: 0.7;
}

.check-cache-refresh {
    color: #bb4d00;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
}

.check-cache-refresh:hover {
    color: #7e2f00;
}

@media (max-width: 576px) {
    .check-examples-grid {
        grid-template-columns: 1fr;
    }

    .check-form-row {
        flex-direction: column;
    }

    .check-result-actions {
        flex-direction: column;
    }
}

/* ── Sibling tool cards (shared with generators, also used on check result) ── */

.dgen-sibling-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(187, 77, 0, 0.25);
    border-radius: 24px;
    color: #172127;
    background: rgba(187, 77, 0, 0.06);
    transition: border-color 0.12s ease, background 0.12s ease;
}

.dgen-sibling-card:hover {
    border-color: rgba(187, 77, 0, 0.55);
    background: rgba(187, 77, 0, 0.1);
    color: #172127;
}

.dgen-sibling-icon {
    font-size: 1.35rem;
    color: #bb4d00;
    flex-shrink: 0;
    line-height: 1;
}

.dgen-sibling-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #172127;
}

.dgen-sibling-desc {
    font-size: 0.75rem;
    color: #8a8f96;
    margin-top: 0.1rem;
}
