:root { font: 16px/1.5 system-ui, sans-serif; color: #172d3f; background: #f1f5f8; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 22px max(24px, calc((100% - 1160px)/2)); background: #12344b; color: white; }
h1 { font-size: 25px; margin: 0; flex: 1; }
main { max-width: 1160px; margin: auto; padding: 20px 24px; }
section, .job, .saved-panel { background: white; border: 1px solid #cbd9e2; border-radius: 8px; padding: 24px; margin-bottom: 18px; }
.saved-panel > summary { font-size: 20px; font-weight: 600; cursor: pointer; }
.saved-panel[open] > summary { margin-bottom: 18px; }
h2 { font-size: 20px; margin: 0 0 18px; }
label { display: block; margin: 12px 0; font-weight: 600; }
input, select { display: block; width: 100%; max-width: 680px; padding: 10px; border: 1px solid #8499a9; border-radius: 4px; font: inherit; background: white; color: inherit; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin-right: 10px; }
button, .download { display: inline-block; padding: 10px 16px; background: #164f78; border: 1px solid #164f78; border-radius: 4px; color: white; font: inherit; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #e69916; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.action-state { min-height: 1.4em; color: #31566d; }
.actions select { width: auto; flex: 1; min-width: 200px; }
.hint { color: #4b6273; font-weight: 400; display: block; font-size: 14px; }
.field-error, #conflict, #errors { color: #9c2020; }
[aria-invalid=true] { border-color: #ad2424; }
#notice:empty, #errors:empty { display: none; }
#notice { padding: 12px; border-left: 4px solid #164f78; background: #e4edf5; white-space: pre-wrap; }
.calculated { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f5f8; padding: 12px; }
.readiness { font-weight: 600; }
.record-actions { margin: 12px 0; }
#pdf-viewer { width: 100%; height: 72vh; min-height: 500px; border: 1px solid #8499a9; margin-top: 16px; }
.release { border-top: 1px solid #cbd9e2; padding: 18px 0; overflow-wrap: anywhere; }
footer { text-align: center; padding: 24px; color: #4b6273; }
[hidden] { display: none !important; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid #cbd9e2; overflow-wrap: anywhere; }
th { background: #f1f5f8; }
td select, td input { min-width: 0; }
@media (max-width: 700px) { header { padding: 18px; } main { padding: 12px; } section, .saved-panel { padding: 16px; } .actions { align-items: stretch; flex-direction: column; } .actions select { width: 100%; } }
