/* EdSystems Data Upload. Colors follow the EdSystems logo: navy #004672, blue #0072AE, teal #2BBDBC. */

:root {
  --navy: #004672;
  --navy-700: #00375a;
  --navy-50: #ebf2f8;
  --navy-100: #d2e1ed;
  --blue: #0072ae;
  --teal: #2bbdbc;
  --teal-200: #9fe3e3;
  --teal-50: #e9f8f8;
  --teal-700: #137b7b;
  --teal-800: #0f6262;
  --ink: #1d2939;
  --slate: #4a5568;
  --muted: #667085;
  --line: #e3e8ef;
  --field: #c9d3e0;
  --bg: #f4f6fa;
  --white: #ffffff;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.04);
  --focus: 0 0 0 3px rgba(42, 191, 191, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--navy);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

/* Header */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

.brand-sub {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.account {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.account-district {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.account-email {
  font-size: 13px;
  color: var(--muted);
}

/* Page */

.page {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page:focus {
  outline: none;
}

.view-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
}

.lede {
  margin: 0 0 20px;
  color: var(--slate);
}

.hint {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn:disabled {
  cursor: not-allowed;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-700);
}

.btn-primary:disabled {
  background: #98a6ba;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--field);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-50);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy-50);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 14px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* Forms */

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background-color: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: var(--focus);
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%234A5568' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

select:disabled {
  background-color: #f1f4f8;
  color: var(--muted);
  cursor: not-allowed;
}

.message {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
}

.message[data-kind="error"] {
  background: #fef3f2;
  border-color: #fecdca;
  color: #912018;
}

.message[data-kind="warn"] {
  background: #fff8e6;
  border-color: #f2d58a;
  color: #7a4d00;
}

.message[data-kind="info"] {
  background: var(--navy-50);
  border-color: var(--navy-100);
  color: var(--navy);
}

.message[data-kind="success"] {
  background: var(--teal-50);
  border-color: #a9e1e1;
  color: var(--teal-800);
}

/* Sign-in cards */

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.aux {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
}

.auth-foot {
  max-width: 420px;
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.pw-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: -6px 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.pw-rules li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 1.5px solid #98a6ba;
  border-radius: 50%;
  vertical-align: 0;
}

.pw-rules li.ok {
  color: var(--teal-700);
}

.pw-rules li.ok::before {
  background: var(--teal);
  border-color: var(--teal);
}

/* Authenticator app: code entry and first-time setup */

.auth-card-wide {
  max-width: 540px;
}

.aux-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

input.code-input {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
}

input.code-input::placeholder {
  letter-spacing: 0.3em;
}

.setup-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.setup-steps > li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.setup-steps > li:last-child {
  padding-bottom: 0;
}

.setup-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.setup-body {
  flex: 1;
  min-width: 0;
}

.setup-body h2 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.setup-body p {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--slate);
}

.setup-body .field {
  margin-bottom: 14px;
}

.qr-box {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}

.qr {
  width: 212px;
  height: 212px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.setup-body .key-help {
  margin-bottom: 6px;
  font-size: 13.5px;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.key {
  flex: 1 1 100%;
  min-width: 0;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfd;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: all;
}

#upload-notice {
  max-width: 640px;
  margin: 16px 0 0;
}

/* Upload view */

.upload-head {
  margin-bottom: 24px;
}

.upload-head h1 {
  font-size: 30px;
}

.upload-head .lede {
  max-width: 640px;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card-form {
  padding: 4px 28px 28px;
}

.card-quiet {
  background: var(--navy-50);
  border-color: var(--navy-100);
  box-shadow: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Drop area */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed #b8c4d6;
  border-radius: 14px;
  background: #fafbfd;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--teal);
  background: var(--teal-50);
}

.dropzone:focus-within {
  border-color: var(--navy);
  box-shadow: var(--focus);
}

.dz-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dz-title {
  font-weight: 600;
  color: var(--ink);
}

.dz-browse {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dz-sub {
  font-size: 13px;
  color: var(--muted);
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
}

progress {
  flex: 1;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #e6ebf2;
  overflow: hidden;
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e6ebf2;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--teal);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--teal);
}

/* Upload list */

.dropzone.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dz-hint {
  margin: 10px 0 0;
}

#add-message {
  margin: 14px 0 0;
}

#add-message p {
  margin: 0;
}

#add-message ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.batch {
  margin-top: 26px;
}

.batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.file-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* rows never grow wider than the card */
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-row {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
}

.file-row[data-state="needs"] {
  border-color: #f2d58a;
}

.file-row[data-state="received"] {
  border-color: #a9e1e1;
  background: var(--white);
}

.file-row[data-state="failed"] {
  border-color: #fecdca;
  background: #fffafa;
}

.file-row.needs-attention {
  border-color: #e0b84a;
  box-shadow: 0 0 0 3px rgba(242, 213, 138, 0.55);
}

.row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-head .file-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.row-file {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.row-name {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere; /* long file names wrap inside the row */
}

.row-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.row-remove {
  flex: none;
  padding: 4px 8px;
  font-size: 13px;
}

.row-body {
  margin: 8px 0 0 34px;
}

.row-line {
  margin: 0;
  font-size: 14.5px;
}

.row-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.row-fields .row-period-note {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.row-period-note.is-needed {
  color: #7a4d00;
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  white-space: nowrap;
}

.tag-district {
  background: #dfe9f3;
  color: var(--navy);
}

.tag-college {
  background: #d6f3f3;
  color: var(--teal-800);
}

/* Each file next to its spec */

.spec-check {
  margin-top: 6px;
  font-size: 13.5px;
}

.spec-check summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  list-style: none;
}

.spec-check summary::-webkit-details-marker {
  display: none;
}

.spec-check summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--blue);
  transition: transform 0.15s;
}

.spec-check[open] summary::before {
  transform: rotate(90deg);
}

.spec-check summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.spec-count {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 114, 174, 0.35);
  text-underline-offset: 2px;
}

.chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-ok {
  background: var(--teal-50);
  color: var(--teal-800);
}

.chip-warn {
  background: #fff3d6;
  color: #7a4d00;
}

.chip-bad {
  background: #fef3f2;
  color: #912018;
}

.chip-muted {
  background: #eef1f5;
  color: var(--slate);
}

.spec-body {
  margin-top: 8px;
}

.spec-lead,
.spec-extra {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}

.spec-extra {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.spec-scroll {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.align-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.align-table th,
.align-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.align-table tbody tr:last-child td {
  border-bottom: 0;
}

.align-table th {
  background: #f6f8fb;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.align-table .uploaded,
.align-table .requested {
  width: 44%;
}

.align-table .check {
  width: 1%;
  white-space: nowrap;
}

.align-table .pos {
  display: inline-block;
  min-width: 1.9em;
  margin-right: 6px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.align-table .colname {
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.align-table .mono {
  font-size: 12.5px;
  white-space: nowrap; /* requested names stay whole */
}

.align-table .mono wbr {
  display: none; /* Chrome would still break at <wbr> under nowrap */
}

.align-table .none {
  color: var(--muted);
  font-style: italic;
}

.align-table .run-names {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.align-table .check-inline {
  display: none;
}

.align-table tr.is-missing td {
  background: #fffafa;
}

.align-table tr.is-moved td {
  background: #fffcf2;
}

.align-table tr.is-extra td {
  background: #f9fafb;
}

.row-problem {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef3f2;
  color: #912018;
  font-size: 14px;
}

.row-problem p {
  margin: 0;
}

.row-problem p + p {
  margin-top: 2px;
}

.ask-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ask-choice {
  font-weight: 600;
}

.ask-count {
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 290px)); /* File type and Reporting period side by side */
  gap: 10px 14px;
  margin-top: 10px;
}

.row-field {
  display: block;
  min-width: 0;
}

.row-field-wide {
  grid-column: 1 / -1;
  max-width: 520px;
}

.row-field .field-label {
  margin-bottom: 4px;
  font-size: 13px;
}

.row-field select,
.row-field input[type="text"] {
  padding: 8px 10px;
  font-size: 14.5px;
}

.row-field select {
  padding-right: 36px;
}

.row-progress {
  margin-top: 10px;
}

.row-progress progress {
  display: block;
  width: 100%;
}

.row-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef3f2;
  color: #912018;
  font-size: 14px;
}

.row-error p {
  margin: 0;
}

.row-done {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal-800);
  overflow-wrap: anywhere;
}

.pill-ready {
  background: var(--teal-50);
  color: var(--teal-800);
}

.pill-needs {
  background: #fff3d6;
  color: #7a4d00;
}

.pill-busy {
  background: var(--navy-50);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.pill-bad {
  background: #fef3f2;
  color: #912018;
}

.batch-summary {
  margin: 0;
  font-size: 14px;
  color: var(--slate);
}

#batch-message {
  margin: 16px 0 0;
}

.recent-type .tag {
  margin-right: 2px;
}

/* Uploads: two tabs, then the list */

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  margin: 0 0 -1px;
  padding: 7px 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.tab:hover {
  color: var(--navy);
  background: var(--navy-50);
}

.tab[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.tab:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-more {
  margin-top: 12px;
}

/* A long list scrolls inside the card, so the page stays short. */
.uploads-panel {
  max-height: min(70vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -8px;
  padding-right: 8px;
}

.uploads-panel:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: var(--focus);
}

.recent-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.recent-item:first-child {
  padding-top: 2px;
  border-top: 0;
}

.recent-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.recent-type {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.recent-file {
  margin-top: 2px;
  font-size: 13px;
  color: var(--slate);
  overflow-wrap: anywhere; /* long file names wrap, as they do in the upload list */
}

.recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-ok {
  background: var(--teal-50);
  color: var(--teal-800);
}

.pill-wait {
  background: #eef1f5;
  color: var(--slate);
}

.empty {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.assurances {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--slate);
}

.assurances li {
  position: relative;
  padding-left: 28px;
}

.assurances li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Footer: a white band like the header, with the EWDC logo at the bottom left of every page */

.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-logo {
  display: block;
  flex: none;
  width: auto;
  height: 56px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

/* Loading */

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--navy-100);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .upload-grid {
    grid-template-columns: minmax(0, 1fr); /* long file names never widen the page */
  }
}

@media (max-width: 600px) {
  .page {
    padding: 20px 16px 32px;
  }

  .topbar-inner {
    padding: 10px 16px;
    min-height: 60px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-sub,
  .account-text {
    display: none;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .card-form {
    padding: 0 18px 20px;
  }

  .upload-head h1 {
    font-size: 24px;
  }

  .row-head {
    flex-wrap: wrap;
  }

  .row-file {
    flex-basis: calc(100% - 120px); /* leaves room for Remove beside the name; the status goes below */
  }

  .align-table .check {
    display: none;
  }

  .align-table .check-inline {
    display: block;
    margin-top: 4px;
  }

  .align-table {
    table-layout: fixed; /* two equal halves on a phone */
  }

  .align-table th {
    white-space: normal;
  }

  .align-table .uploaded,
  .align-table .requested {
    width: 50%;
  }

  .align-table .mono {
    white-space: normal; /* on a phone, long names wrap after an underscore */
    overflow-wrap: anywhere;
  }

  .align-table .mono wbr {
    display: inline;
  }

  .align-table .pos {
    min-width: 0;
  }

  .row-remove {
    order: 2;
    margin-left: auto;
  }

  .row-head .pill {
    order: 3;
    margin-left: 34px;
  }

  .row-body {
    margin-left: 0;
  }

  .row-fields {
    grid-template-columns: 1fr;
  }

  .row-error {
    flex-direction: column;
    align-items: flex-start;
  }

  .pw-rules {
    grid-template-columns: 1fr;
  }

  .setup-steps > li {
    gap: 10px;
  }

  .qr {
    width: 176px;
    height: 176px;
  }

  .footer-inner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    height: 44px;
  }

  .footer-text {
    align-items: flex-start;
    text-align: left;
  }
}
