* { box-sizing: border-box }
:root { color-scheme: light; --ink: #141b2b; --muted: #626b7a; --teal: #cf2028; --line: #e1e4e9 }
body { margin: 0; padding: clamp(0px, 5vw, 42px) 16px; background: #f5f6f8; color: var(--ink); font: 16px/1.5 "DM Sans", system-ui, sans-serif }
main { max-width: 520px; margin: auto; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 36px #16403b0c; overflow: hidden }
header { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 750 }
header img { object-fit: contain; border-radius: 8px }
header button { margin-inline-start: auto }
section, footer { padding: 24px }
h1 { font-size: clamp(27px, 6.5vw, 36px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 10px }
h2 { font-size: 17px; margin: 0 0 12px }
p { margin: 0 }
#label, #automatic { color: var(--muted); font-size: 14px }
#automatic { margin-top: 9px; text-align: center }
.picker { display: flex; position: relative; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin-top: 20px; padding: 12px; border-radius: 12px; background: var(--teal); color: white; font-size: 18px; font-weight: 700; cursor: pointer }
.picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer }
.picker:focus-within, button:focus-visible, a:focus-visible { outline: 3px solid #cf2028; outline-offset: 3px }
.plus { font-size: 25px; line-height: 1; font-weight: 500 }
button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; background: white; color: var(--teal); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700 }
#files { padding-top: 4px }
#status { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none }
.file-card { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; --badge: #eef3f3; --state: #425a5e }
.file-type { display: grid; place-items: center; height: 43px; border-radius: 9px; background: #fff0f0; color: #b31b23; font-size: 11px; font-weight: 800; letter-spacing: .04em }
.file-name { overflow-wrap: anywhere; font-size: 15px; font-weight: 700 }
.file-state { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; margin-top: 5px; padding: 2px 8px; border-radius: 7px; background: var(--badge); color: var(--state); font-size: 12px; font-weight: 700 }
.state-icon { flex: none }
.state-sending { --badge: #e9f1ff; --state: #174c9c }
.state-queued { --badge: #fff3d7; --state: #704b00 }
.state-delivered { --badge: #e3f6eb; --state: #126040 }
.state-retry, .state-expired, .state-busy, .state-bad { --badge: #fcebea; --state: #8a2c29 }
.file-progress { display: block; width: 100%; height: 8px; margin-top: 8px; accent-color: #2360ad }
.file-receipt { margin-top: 5px; color: var(--muted); font-size: 12px }
#send { margin-top: 12px }
footer { background: #f6f9f8; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px }
footer h2 { margin: 14px 0 5px; color: var(--ink); font-size: 14px }
footer address { margin-bottom: 5px; font-style: normal }
.email { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px }
a { color: var(--teal); overflow-wrap: anywhere }
[hidden] { display: none !important }
@media (max-width: 550px) {
  body { padding: 0 }
  main { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none }
  header, section, footer { padding-inline: 20px }
}
