* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #0f172a;
    color: #0f172a;
}

.page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 22px 60px;
}

.topbar,
.form-hero,
.data-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.topbar {
    color: #ffffff;
    margin-bottom: 20px;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.nav a:hover {
    background: #2563eb;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.7px;
    color: #60a5fa;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 31px;
    line-height: 1.1;
}

.subtitle,
.topbar p,
.form-hero p,
.data-hero p {
    color: #cbd5e1;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.form-hero,
.data-hero {
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.form-hero p,
.data-hero p {
    color: #475569;
}

.badge {
    border: 1px solid #94a3b8;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge.dark {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
}

section {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

section:last-child {
    border-bottom: none;
}

h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
}

h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 900;
    color: #1e293b;
}

small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

textarea {
    min-height: 105px;
    resize: vertical;
}

.grid {
    display: grid;
    gap: 14px;
}

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

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cbd5e1;
}

.data-table th {
    background: #f1f5f9;
    color: #0f172a;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px;
}

.data-table td {
    border-top: 1px solid #e2e8f0;
    padding: 8px;
    font-size: 13px;
    vertical-align: top;
}

.data-table td input {
    padding: 9px;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
button:hover {
    background: #1d4ed8;
}

.btn.big {
    padding: 13px 20px;
}

.btn.ghost {
    background: #e2e8f0;
    color: #0f172a;
}

.btn.ghost:hover {
    background: #cbd5e1;
}

.btn.danger,
.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.btn.danger:hover,
.danger:hover {
    background: #fecaca;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    flex-wrap: wrap;
}

.actions.stack {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 800;
}

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

.score-box,
.panel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
}

.score-box span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.score-box strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.evidence-thumb {
    margin: 0;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
}

.evidence-thumb img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.evidence-thumb figcaption {
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .topbar,
    .form-hero,
    .data-hero {
        flex-direction: column;
    }

    .grid.two,
    .grid.three,
    .score-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 25px;
    }
}
