.validation-shell {
    --validation-ok: #2dd4bf;
    --validation-warn: #fbbf24;
    --validation-bad: #fb7185;
    --validation-info: #93c5fd;
}

.validation-purpose-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
}

.validation-purpose-panel h2 {
    margin: 0 0 8px;
    color: #f8fafc;
}

.validation-purpose-panel p {
    margin: 0;
}

.guided-answer-panel {
    border-color: rgba(45, 212, 191, 0.35);
}

.guided-answer-text {
    margin: 0 0 12px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.35;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.check-item,
.result-card,
.validation-card,
.hash-card,
.stored-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.46);
    padding: 12px;
}

.check-item strong,
.validation-card strong,
.hash-card strong,
.stored-item strong {
    display: block;
    color: #f8fafc;
}

.check-item small,
.validation-card small,
.hash-card small,
.stored-item small {
    color: #94a3b8;
    line-height: 1.4;
}

.check-item.pass {
    border-color: rgba(45, 212, 191, 0.52);
}

.check-item.warn {
    border-color: rgba(251, 191, 36, 0.55);
}

.check-item.fail {
    border-color: rgba(251, 113, 133, 0.55);
}

.validation-load-grid,
.validation-core-grid {
    align-items: stretch;
}

.load-actions,
.benchmark-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.file-load-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-weight: 800;
    cursor: pointer;
}

.file-load-button input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

#pasteInput,
#bundlePreview {
    width: 100%;
    min-height: 160px;
    margin-top: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
    color: #dbeafe;
    padding: 12px;
    font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    resize: vertical;
}

#bundlePreview {
    min-height: 240px;
}

.stored-list,
.validation-card-list,
.validation-level-grid,
.hash-audit-grid {
    display: grid;
    gap: 10px;
}

.validation-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.hash-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.validation-card-list {
    grid-template-columns: 1fr;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
}

.status-badge.passed,
.status-badge.reproducible,
.status-badge.exact_match {
    background: rgba(45, 212, 191, 0.16);
    color: var(--validation-ok);
}

.status-badge.warning,
.status-badge.partially_reproducible,
.status-badge.unsupported,
.status-badge.unsupported_replay {
    background: rgba(251, 191, 36, 0.14);
    color: var(--validation-warn);
}

.status-badge.failed,
.status-badge.not_reproducible,
.status-badge.event_log_mismatch,
.status-badge.state_hash_mismatch,
.status-badge.observable_mismatch {
    background: rgba(251, 113, 133, 0.14);
    color: var(--validation-bad);
}

.result-card {
    min-height: 96px;
}

.result-card h3,
.validation-card h3,
.hash-card h3 {
    margin: 0 0 8px;
    color: #f8fafc;
}

.result-card p,
.validation-card p,
.hash-card p,
.report-panel p {
    margin: 6px 0;
    color: #cbd5e1;
}

.hash-fields {
    margin-top: 8px;
    max-height: 88px;
    overflow: auto;
    color: #94a3b8;
    font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.report-panel {
    display: grid;
    gap: 12px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.warning-list .warning,
.warning-list .error,
.warning-list .info {
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 8px;
}

.warning-list .warning {
    border-color: rgba(251, 191, 36, 0.35);
}

.warning-list .error {
    border-color: rgba(251, 113, 133, 0.45);
}

.warning-list .info {
    border-color: rgba(147, 197, 253, 0.35);
}

body[data-validation-mode="guided"] .validation-shell .panel:not(.guided-answer-panel):not(.export-panel) {
    scroll-margin-top: 16px;
}

body[data-validation-mode="guided"] .benchmark-filter-grid,
body[data-validation-mode="guided"] #hashAuditGrid .hash-fields {
    display: none;
}

@media (max-width: 960px) {
    .validation-purpose-panel,
    .checklist-grid,
    .validation-level-grid,
    .hash-audit-grid,
    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .validation-purpose-panel .run-actions,
    .load-actions {
        justify-content: stretch;
    }

    .validation-purpose-panel .run-actions > *,
    .load-actions > *,
    .run-actions > button {
        flex: 1 1 160px;
    }
}
