:root { font-family: "DM Sans", system-ui, sans-serif; color: #ededed; background: #111214; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 720px; padding: 36px 22px; margin: auto; }
main.wide { max-width: 1060px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -.045em; margin: 0 0 20px; }
h2 { margin: 0; font-size: 1.25rem; }
.brand { color: #a4d9be; font-size: .84rem; font-weight: 700; margin: 0 0 6px; }
fieldset { border: 0; padding: 12px 0 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; width: 100%; border-bottom: 1px solid #303338; padding: 6px 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.fields + .fields { margin-top: 12px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; }
input, select, button, .button { font: inherit; border-radius: 5px; }
input, select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #454a50; background: #1b1d21; }
input[type=file] { font-size: .8rem; }
input[type=checkbox] { width: auto; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
button, .button { display: inline-block; border: 1px solid #b7e8ce; background: #b7e8ce; padding: 8px 12px; color: white; cursor: pointer; text-decoration: none; font-weight: 650; }
button:disabled { opacity: .57; cursor: wait; }
.secondary { color: #b7e8ce; background: transparent; border-color: #454a50; }
.muted, small { color: #a6abb3; font-size: .8rem; }
[hidden] { display: none !important; }
.bar { display: flex; gap: 12px; align-items: end; justify-content: space-between; }
.bar h1 { margin: 0; }
#search { justify-content: flex-start; margin-top: 20px; }
#search label { width: min(100%, 420px); }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
th, td { padding: 9px 10px 9px 0; border-bottom: 1px solid #303338; }
td { overflow-wrap: anywhere; }
.vendor-link { background: transparent; color: #b7e8ce; border: 0; padding: 0; text-align: left; text-decoration: underline; }
dialog { border: 1px solid #454a50; width: min(560px, calc(100% - 32px)); border-radius: 7px; padding: 20px; color: inherit; }
dialog::backdrop { background: #000000aa; }
dl { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 6px 12px; font-size: .9rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
a { color: #b7e8ce; }
@media (max-width: 470px) { main { padding: 22px 16px; } .fields { grid-template-columns: 1fr; } }

.company-logo { display:block; width:132px; height:64px; object-fit:contain; object-position:left center; margin-bottom:12px; }
button, .button { color:#101a14; }
.secondary, .vendor-link { color:#b7e8ce; }
dialog { background:#1b1d21; }
:focus-visible { outline:2px solid #b7e8ce; outline-offset:3px; }
.step-count { color:#a6abb3; font-size:.78rem; margin:0 0 16px; }
section > h2 { margin-bottom:22px; font-size:1.35rem; letter-spacing:-.025em; }
.step-actions { display:flex; gap:10px; margin-top:20px; }
.contact-picker { position:relative; margin-top:20px; }
#contact-options { position:absolute; top:100%; left:0; right:0; z-index:2; list-style:none; padding:4px; margin:5px 0 0; background:#202328; border:1px solid #454a50; border-radius:5px; max-height:240px; overflow:auto; }
#contact-options li { padding:10px; cursor:pointer; font-weight:400; }
#contact-options li[aria-selected=true], #contact-options li:hover { background:#343c38; }
button:disabled { cursor:not-allowed; }

#reading-progress { margin: 12px 0; }
#reading-progress progress { width: 100%; height: 6px; accent-color: #9cafff; }
#reading-status { margin: 6px 0; font-size: .875rem; }
button:disabled { opacity: .45; cursor: not-allowed; }

#documents { display: grid; gap: 0; margin-top: 16px; }
.document-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid #454a50; font-size: .9rem; }
