:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #162033;
    background: #f4f7fb;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem max(1rem, calc((100vw - 920px) / 2));
    background: #ffffff;
    border-bottom: 1px solid #dfe7f1;
}

.site-header div:last-child {
    display: grid;
}

.site-header span {
    color: #607087;
    font-size: 0.82rem;
}

.brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: #175cd3;
    color: white;
    font-weight: 800;
}

.page-shell {
    width: min(920px, calc(100% - 2rem));
    margin: 2.5rem auto;
}

.card {
    background: white;
    border: 1px solid #dfe7f1;
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: 0 18px 45px rgba(28, 50, 84, 0.08);
}

.card-centered {
    text-align: center;
    max-width: 620px;
    margin-inline: auto;
}

h1 {
    margin: 0.35rem 0 0.8rem;
    line-height: 1.16;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
}

h2 {
    font-size: 1.1rem;
}

.eyebrow {
    color: #175cd3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted {
    color: #607087;
}

.small {
    font-size: 0.88rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 1.5rem 0;
    border: 1px solid #dfe7f1;
    border-radius: 1rem;
    overflow: hidden;
}

.detail-grid > div {
    padding: 1rem;
    border-bottom: 1px solid #dfe7f1;
}

.detail-grid > div:nth-child(odd) {
    border-right: 1px solid #dfe7f1;
}

.detail-grid dt {
    color: #607087;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.detail-grid dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.status-active {
    background: #dcfae6;
    color: #05603a;
}

.status-revoked {
    background: #fee4e2;
    color: #b42318;
}

.status-replaced,
.status-warning {
    background: #fef0c7;
    color: #93370d;
}

.verification-panel,
.privacy-note {
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: 0.85rem;
}

.success-panel {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #05603a;
}

.danger-panel {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.warning-panel {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #93370d;
}

.report-reference {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    padding: 1rem;
    background: #f6f8fb;
    border-radius: 0.85rem;
    margin: 1.25rem 0;
}

.report-reference span {
    color: #607087;
}

.secure-form {
    display: grid;
    gap: 1rem;
}

.secure-form fieldset {
    margin: 0;
    border: 1px solid #d5deea;
    border-radius: 0.85rem;
    padding: 1rem;
}

.secure-form legend {
    padding: 0 0.4rem;
    font-weight: 700;
}

.secure-form > label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

input[type="text"],
input[type="date"] {
    width: 100%;
    border: 1px solid #aebdd0;
    border-radius: 0.7rem;
    padding: 0.8rem 0.9rem;
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(23, 92, 211, 0.16);
    border-color: #175cd3;
}

.primary-button,
.secondary-button,
.text-button {
    font: inherit;
    cursor: pointer;
}

.primary-button {
    border: 0;
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    background: #175cd3;
    color: white;
    font-weight: 800;
}

.secondary-button {
    border: 1px solid #b9c5d4;
    border-radius: 0.7rem;
    padding: 0.65rem 0.9rem;
    background: white;
    font-weight: 700;
}

.text-button {
    border: 0;
    background: transparent;
    color: #175cd3;
    font-weight: 700;
    padding: 0.6rem;
}

.privacy-note {
    background: #f6f8fb;
    color: #52637a;
    font-size: 0.88rem;
}

.alert {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
}

.alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.result-header p {
    margin: 0.25rem 0 0;
    color: #607087;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe7f1;
    border-radius: 0.85rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.result-table th,
.result-table td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid #e6ecf3;
}

.result-table th {
    background: #f6f8fb;
    font-size: 0.82rem;
}

.result-comment {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f6f8fb;
    border-radius: 0.85rem;
}

.site-footer {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    text-align: center;
    color: #718096;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid > div:nth-child(odd) {
        border-right: 0;
    }

    .result-header {
        display: grid;
    }
}

@media print {
    :root,
    body {
        background: white;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .page-shell {
        width: 100%;
        margin: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}
