:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #17202a; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1456a0; }
header { background: #162a44; color: white; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
header h1 { margin: 0; font-size: 1.2rem; }
.header-subtitle { color: #c7d4e3; font-size: .85rem; }
.header-actions, header nav { display: flex; align-items: center; gap: 1rem; }
header nav a { color: white; font-weight: 700; text-decoration: none; }
header nav a:hover, header nav a:focus { text-decoration: underline; }
.header-actions form { margin: 0; }
main { width: min(1050px, calc(100% - 2rem)); margin: 2rem auto; }
.page-heading, .source-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.page-heading { margin-bottom: 1.25rem; }
.page-heading h2, .source-heading h2 { margin: .1rem 0 .5rem; }
.eyebrow { margin: 0; color: #657180; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card { background: white; border: 1px solid #dfe4ea; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 4px 16px rgba(20,35,55,.05); }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); gap: 1.25rem; align-items: start; }
.source-card { min-width: 0; }
.research-card { border-color: #d5a229; box-shadow: 0 4px 16px rgba(139,95,0,.09); }
.research-warning { background: #fff7dd; border-left: 4px solid #d5a229; padding: .8rem 1rem; margin: 1rem 0; }
.research-warning p { margin: .35rem 0 0; }
.review-notice { background: #eef4fb; border-left: 4px solid #1769aa; padding: .8rem 1rem; margin: 1rem 0; }
.review-notice h3 { margin-top: 0; }
.proposal { border: 1px solid #dfe4ea; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.proposal legend { font-weight: 800; padding: 0 .35rem; }
.proposal ul { margin-top: .35rem; }
.badge { display: inline-block; border-radius: 999px; padding: .25rem .55rem; font-size: .72rem; font-weight: 850; margin: 0 .35rem .35rem 0; }
.badge.research { background: #fff0b8; color: #704b00; }
.audit-summary { font-size: .9rem; color: #526071; }
.metric { font-size: 2.6rem; font-weight: 750; color: #162a44; }
.muted { color: #657180; }
.flash { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash.error { background: #feecec; color: #8b1d1d; }
.flash.success { background: #e8f7ee; color: #176438; }
label { display: block; font-weight: 650; margin: .7rem 0 .3rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; border: 1px solid #bac4cf; border-radius: 7px; padding: .65rem .75rem; }
textarea { min-height: 90px; resize: vertical; }
button, .button { display: inline-block; border: 0; border-radius: 7px; background: #1769aa; color: white; padding: .7rem 1rem; cursor: pointer; text-decoration: none; }
button.secondary { background: #556575; }
button.danger { background: #a73535; }
button:disabled { opacity: .55; cursor: not-allowed; }
.inline { display: flex; gap: .75rem; align-items: end; }
.inline > * { flex: 1; }
.share-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; align-items: end; margin-bottom: .75rem; }
.split-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid #e3e7eb; vertical-align: top; }
.status { text-transform: capitalize; font-weight: 700; }
.status.ready { color: #187044; }
.status.prepared { color: #1456a0; }
.status.review_required, .status.dedup_review_required { color: #855d00; }
.status.failed, .status.failed_prepare, .status.failed_upload, .status.invalid, .status.missing, .status.incomplete { color: #8b1d1d; }
.login { max-width: 430px; margin: 10vh auto; }
.send-panel { border-top: 1px solid #e3e7eb; margin-top: 1rem; padding-top: 1rem; }
.check-label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 550; }
.check-label input { width: auto; margin-top: .2rem; }
pre { overflow-wrap: anywhere; white-space: pre-wrap; background: #f7f8fa; padding: .8rem; border-radius: 6px; }
@media (max-width: 700px) { .inline, .share-row, .page-heading, .source-heading { display: block; } header { align-items: flex-start; gap: .75rem; } .header-actions { align-items: flex-end; flex-direction: column; gap: .5rem; } header nav { gap: .65rem; } .share-row > * { margin-bottom: .5rem; } table { font-size: .9rem; display: block; overflow-x: auto; } }
