:root {
  color-scheme: light;
  --ink: #142730;
  --muted: #4b606a;
  --brand: #145b58;
  --brand-strong: #0b4946;
  --line: #cbd9db;
  --paper: #fff;
  --ground: #f3f7f6;
  --focus: #ad601d;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--ground); color: var(--ink); margin: 0; min-height: 100vh; }
.masthead {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px max(24px, calc((100% - 1056px) / 2)); background: #102f33;
  color: #f2faf8;
}
.identity { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 600; }
.identity strong { color: #a5e2d9; }
.company { color: #cce4e0; font-size: .875rem; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #77a6a3; border-radius: 8px; }
.mark span, .file-icon { border: 1.5px solid currentColor; border-radius: 2px; display: block; width: 13px; height: 16px; position: relative; }
.mark span::after, .file-icon::after {
  display: block; content: ""; position: absolute; inset: 5px 2px auto; height: 3px;
  border-block: 1px solid currentColor;
}
main { width: min(calc(100% - 40px), 920px); margin: 66px auto; }
.login main { width: min(calc(100% - 40px), 448px); margin: clamp(46px, 13vh, 116px) auto 48px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 10px 28px #1232350b; }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.15; letter-spacing: -.036em; }
.login h1 { font-size: clamp(1.65rem, 4vw, 2rem); }
.intro { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.login form { margin-top: 28px; }
.field-title { display: block; font-weight: 650; font-size: .95rem; }
.text-input { display: block; background: var(--paper); color: var(--ink); border: 1px solid #aabdc0; border-radius: 8px; min-height: 44px; padding: 9px 12px; font: inherit; margin-top: 7px; }
.login .text-input, .login .primary { width: 100%; }
.login .primary { margin-top: 18px; }
button { font: inherit; font-weight: 650; min-height: 44px; padding: 10px 17px; border-radius: 8px; cursor: pointer; }
.primary { color: #fff; border: 1px solid transparent; background: var(--brand); }
.primary:hover { background: var(--brand-strong); }
.primary:disabled { cursor: wait; opacity: .8; }
.secondary { color: var(--brand-strong); background: var(--paper); border: 1px solid #aabdc0; }
.secondary:hover { background: #e4f0ee; }
:focus-visible, .file-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.workspace-heading form { margin-top: 4px; }
.documents { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.file-card { position: relative; display: block; min-width: 0; min-height: 134px; border: 1px dashed #88a8a8; border-radius: 10px; padding: 18px; cursor: pointer; }
.file-card:hover { background: #f0f7f6; }
.file-card input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hint { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.file-card .hint { display: block; margin-top: 5px; }
.file-control { display: flex; align-items: center; gap: 9px; color: var(--brand-strong); margin-top: 17px; font-weight: 650; font-size: .9rem; }
.file-icon { flex: 0 0 13px; }
[data-file-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.limits { margin: 10px 0 21px; }
.form-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid #e0ebeb; padding-top: 20px; }
.optional { font-size: .78rem; color: var(--muted); margin-left: 6px; font-weight: 400; }
.notice, .alert, #upload-status { padding: 12px 14px; border-radius: 7px; font-size: .9rem; }
.notice { color: #153c3b; background: #e1f1ec; }
.alert, #upload-status.error { color: #791e1f; background: #fff0ef; }
#upload-status { background: #e1f1ec; margin: 18px 0 0; }
.privacy { margin: 0 0 12px; }
@media (max-width: 560px) {
  .masthead { padding-inline: 17px; }
  .identity { gap: 8px; font-size: .875rem; }
  .company { font-size: .75rem; }
  main { margin-top: 36px; }
  .documents { grid-template-columns: 1fr; gap: 12px; }
  .file-card { min-height: 118px; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-bottom input { width: 100%; }
}
