*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
}

.site-header {
    background: #1a3a5c;
    color: #fff;
    padding: 1rem 2rem;
}
.site-header h1 { font-size: 1.25rem; }
.site-header a { color: #fff; text-decoration: none; }
.site-header nav { margin-top: 0.35rem; font-size: 0.9rem; }

.container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.site-footer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 2rem 1rem;
}

h2 { margin-bottom: 1rem; color: #1a3a5c; }
h3 { margin: 1rem 0 0.5rem; }

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
legend {
    font-weight: 600;
    padding: 0 0.5rem;
    color: #1a3a5c;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group input[type="file"] {
    padding: 0.25rem;
}
.form-group textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.4;
}
.char-counter {
    color: #666;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0.2rem;
}
.field-help {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.field-error {
    color: #8b0000;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.field-error.is-hidden { display: none; }
.form-group textarea.input-error {
    border-color: #b30000;
    outline: 2px solid rgba(179, 0, 0, 0.12);
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group { flex: 1; }

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: #1a3a5c;
    color: #fff;
}
.btn-primary:hover { background: #2a4a6c; }
.btn-warning {
    background: #d4a017;
    color: #1a1a1a;
}
.btn-warning:hover { background: #e4b027; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.alert-error {
    background: #fde8e8;
    border: 1px solid #f5c6c6;
    color: #8b0000;
}
.alert-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #6b5900;
}

.job-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.job-summary th, .job-summary td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.job-summary th {
    width: 160px;
    color: #666;
    font-weight: 500;
}

.downloads ul {
    list-style: none;
    padding: 0;
}
.downloads li {
    margin-bottom: 0.5rem;
}

.notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
}
.alert-success { background: #e8f7e8; border: 1px solid #bde2bd; color: #216b21; }

.brief-hero {
    background: linear-gradient(135deg, #1a3a5c, #28678b);
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.brief-hero h2 { color: #fff; margin-bottom: 0.35rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; opacity: 0.8; }
.hint { color: #777; font-size: 0.8rem; font-weight: 400; }
.label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.9rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; }
.check { font-weight: 400; font-size: 0.92rem; }
.check input { width: auto; margin-right: 0.3rem; }
.brief-form fieldset { background: #fff; }
.brief-form h3 { color: #1a3a5c; font-size: 1rem; margin-top: 1.25rem; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: #28678b; outline: 2px solid rgba(40, 103, 139, 0.14); }
.privacy-note { background: #eef5f8; border-left: 4px solid #28678b; padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.9rem; }
.brief-review { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.brief-review h3 { color: #1a3a5c; margin: 0.85rem 0 0.2rem; }
.brief-review h3:first-child { margin-top: 0; }
.brief-review ol { margin-left: 1.4rem; }

@media (max-width: 640px) {
    .form-row { display: block; }
    .check-grid { grid-template-columns: 1fr; }
}

.pack-note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pack-readiness table,
.pack-sections table,
.uploaded-files table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.pack-readiness th,
.pack-sections th,
.uploaded-files th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #ddd;
    background: #f0f4f8;
}
.pack-readiness td,
.pack-sections td,
.uploaded-files td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.pack-readiness .match,
.pack-sections .included { color: #1a7a1a; }
.pack-readiness .mismatch { color: #b30000; font-weight: 500; }
.pack-sections .skipped { color: #999; }

.outputs-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.outputs-summary th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #ddd;
    background: #f0f4f8;
}
.outputs-summary td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.outputs-summary .match { color: #1a7a1a; }
.outputs-summary .mismatch { color: #b30000; font-weight: 500; }

.job-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.job-history-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #ddd;
    background: #f0f4f8;
    font-size: 0.9rem;
}
.job-history-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.job-history-table a { color: #1a3a5c; }
