* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f7;
    color: #17202a;
}

.topbar {
    background: #0f2742;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 700;
}

.container {
    max-width: 1150px;
    margin: 28px auto;
    padding: 0 18px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 8px 0;
}

h2 {
    margin-top: 0;
    color: #0f2742;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-card {
    max-width: 430px;
    margin: 70px auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

input[type="text"],
input[type="password"],
input:not([type]),
textarea {
    width: 100%;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-block;
    background: #0f2742;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #6f7b88;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0 40px;
}

.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
}

.check-row input {
    margin-top: 3px;
    transform: scale(1.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e1e5ea;
}

th {
    background: #f0f3f6;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.flash.success {
    background: #e4f8e9;
    color: #126b28;
}

.flash.error {
    background: #fde6e6;
    color: #8a1212;
}

.hint {
    color: #5d6975;
    font-size: 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-list {
    list-style: none;
    padding-left: 0;
}

.result-list li {
    padding: 7px 0;
    border-bottom: 1px solid #edf0f3;
}

.result-list .checked {
    color: #145a24;
}

.result-list .unchecked {
    color: #7d2b2b;
}

.box {
    display: inline-block;
    width: 24px;
    font-weight: 800;
}

pre {
    white-space: pre-wrap;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    padding: 12px;
    border-radius: 10px;
    min-height: 40px;
}

@media (max-width: 800px) {
    .topbar,
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-2,
    .checklist,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    nav a {
        margin-left: 0;
        margin-right: 14px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .topbar,
    .no-print,
    nav,
    .form-actions {
        display: none !important;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    button,
    .button {
        display: none;
    }
}
