@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;500;600;700&display=swap");

:root {
  --navy-950: #09283c;
  --navy-800: #173c55;
  --navy-700: #23455b;
  --navy-500: #567184;
  --teal-600: #24a88f;
  --teal-500: #34baa5;
  --teal-200: #8edcd0;
  --teal-100: #e5f8f5;
  --teal-50: #f5fffe;
  --orange-600: #db6e27;
  --orange-500: #ed7f35;
  --orange-300: #fcaa72;
  --cream: #fff9ed;
  --paper: #fffdf8;
  --white: #ffffff;
  --red: #b94545;
  --red-soft: #fff0ec;
  --yellow: #9b6a13;
  --yellow-soft: #fff4d8;
  --line: #dbe7e5;
  --shadow: 0 24px 70px rgba(9, 40, 60, 0.11);
  --shadow-soft: 0 12px 36px rgba(9, 40, 60, 0.08);
  font-family: "Lexend Deca", "Trebuchet MS", Arial, sans-serif;
  color: var(--navy-700);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(142, 220, 208, 0.19), transparent 27rem),
    radial-gradient(circle at 93% 22%, rgba(252, 170, 114, 0.18), transparent 25rem),
    var(--cream);
  color: var(--navy-700);
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.ambient-one {
  width: 210px;
  height: 210px;
  top: 17%;
  right: -115px;
  border: 1px solid rgba(52, 186, 165, 0.35);
  box-shadow: inset 0 0 0 36px rgba(52, 186, 165, 0.06);
}

.ambient-two {
  width: 150px;
  height: 150px;
  bottom: 9%;
  left: -90px;
  background: rgba(237, 127, 53, 0.08);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  background: var(--navy-950);
  color: var(--white);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wordmark {
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.wordmark-dot {
  color: var(--orange-500);
}

.brand-divider {
  width: 1px;
  height: 28px;
  margin: 0 18px;
  background: rgba(255, 255, 255, 0.25);
}

.product-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(142, 220, 208, 0.35);
  border-radius: 999px;
  color: var(--teal-200);
  font-size: 0.76rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.header-button:hover,
.header-button:focus-visible {
  border-color: rgba(142, 220, 208, 0.55);
  outline: 0;
  background: rgba(52, 186, 165, 0.16);
}

.local-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(52, 186, 165, 0.13);
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 68px 0 72px;
}

.screen {
  animation: screen-in 350ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.76fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  min-height: 610px;
}

.intro-copy {
  max-width: 670px;
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  color: var(--orange-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  color: var(--navy-700);
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 6px;
  color: var(--navy-700);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.lede {
  max-width: 630px;
  margin-bottom: 30px;
  color: var(--navy-500);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.safety-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 590px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal-500);
  border-radius: 0 10px 10px 0;
  background: rgba(229, 248, 245, 0.64);
  color: var(--navy-500);
  font-size: 0.85rem;
}

.safety-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.upload-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(35, 69, 91, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.upload-card::before {
  position: absolute;
  top: -12px;
  right: 34px;
  width: 70px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal-200);
  content: "";
  transform: rotate(-4deg);
  opacity: 0.75;
}

.step-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--navy-700);
  font-size: 1.05rem;
  font-weight: 700;
}

.step-kicker span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--teal-200);
  font-size: 0.72rem;
}

.field-label {
  display: block;
  margin: 0 0 9px;
  color: var(--navy-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.password-wrap {
  position: relative;
}

.password-wrap input,
.login-form input[type="password"] {
  width: 100%;
  height: 54px;
  padding: 0 70px 0 16px;
  border: 1px solid #ccdcd9;
  border-radius: 10px;
  outline: 0;
  background: var(--white);
  color: var(--navy-700);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-wrap input:focus,
.login-form input[type="password"]:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(52, 186, 165, 0.14);
}

.password-wrap input::placeholder,
.login-form input[type="password"]::placeholder {
  color: #91a4af;
}

.text-button {
  position: absolute;
  top: 50%;
  right: 14px;
  padding: 5px;
  background: transparent;
  color: var(--teal-600);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.field-help {
  margin: 7px 0 24px;
  color: #78909d;
  font-size: 0.72rem;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 15px;
  border: 1.5px dashed #b8cfca;
  border-radius: 12px;
  background: var(--teal-50);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: var(--teal-500);
  background: #edfcf9;
  transform: translateY(-1px);
}

.file-picker.has-file {
  border-style: solid;
  border-color: var(--teal-500);
  background: var(--teal-100);
}

.file-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--white);
  color: var(--teal-600);
  box-shadow: 0 6px 18px rgba(9, 40, 60, 0.08);
  font-size: 1.2rem;
  font-weight: 700;
}

.file-copy {
  min-width: 0;
  flex: 1;
}

.file-copy strong,
.file-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy strong {
  color: var(--navy-700);
  font-size: 0.86rem;
}

.file-copy small {
  color: #78909d;
  font-size: 0.7rem;
}

.file-action {
  color: var(--teal-600);
  font-size: 0.75rem;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(237, 127, 53, 0.2);
}

.primary-button:hover {
  background: var(--orange-600);
  box-shadow: 0 12px 26px rgba(219, 110, 39, 0.28);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid #c8d8d5;
  background: var(--white);
  color: var(--navy-700);
}

.secondary-button:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
.file-picker:focus-visible {
  outline: 3px solid rgba(52, 186, 165, 0.34);
  outline-offset: 3px;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.full-width {
  width: 100%;
  margin-top: 22px;
}

.form-footnote {
  margin: 12px 0 0;
  color: #78909d;
  font-size: 0.68rem;
  text-align: center;
}

.global-message {
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid #efc2b5;
  border-radius: 10px;
  background: var(--red-soft);
  color: #913b36;
  font-size: 0.84rem;
  box-shadow: var(--shadow-soft);
}

.screen-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.screen-heading h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.screen-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--navy-500);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.success {
  background: var(--teal-100);
  color: #137664;
}

.status-pill.warning {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.status-pill.working {
  background: #e6efff;
  color: #2d5c9c;
}

.status-pill.error {
  background: var(--red-soft);
  color: var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats-grid-preflight {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  min-height: 122px;
  padding: 21px;
  border: 1px solid rgba(35, 69, 91, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: var(--shadow-soft);
}

.stat-card span,
.stat-card small {
  display: block;
}

.stat-card span {
  margin-bottom: 5px;
  color: var(--navy-500);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--navy-700);
  font-size: 2rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-card small {
  margin-top: 8px;
  color: #81939d;
  font-size: 0.67rem;
  line-height: 1.3;
}

.stat-card.teal {
  background: var(--teal-100);
}

.stat-card.orange {
  background: #fff0e4;
}

.stat-card.red {
  background: var(--red-soft);
}

.info-card,
.table-card,
.confirmation-bar,
.progress-card,
.wave-card,
.activity-card,
.patience-note {
  border: 1px solid rgba(35, 69, 91, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 22px 0;
  padding: 21px 23px;
  background: var(--teal-100);
}

.info-card-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  color: var(--teal-600);
  font-weight: 700;
}

.info-card strong {
  color: var(--navy-700);
  font-size: 0.88rem;
}

.info-card p {
  margin: 3px 0 0;
  color: var(--navy-500);
  font-size: 0.78rem;
}

.email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.email-chip {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-500);
  font-size: 0.66rem;
}

.table-card {
  overflow: hidden;
  margin: 22px 0;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 17px;
}

.card-heading p {
  margin: 0;
  color: #7e929d;
  font-size: 0.7rem;
}

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid #e6eeec;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f1;
  vertical-align: top;
}

th {
  background: #f7faf9;
  color: #708792;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  color: var(--navy-500);
}

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

.issue-text {
  color: var(--red);
}

.confirmation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--navy-950);
  color: var(--white);
}

.confirmation-bar strong {
  color: var(--white);
  font-size: 0.92rem;
}

.confirmation-bar p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.73rem;
}

.confirmation-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.confirmation-bar .secondary-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.eta-card {
  min-width: 190px;
  padding: 16px 19px;
  border-radius: 13px;
  background: var(--teal-100);
}

.eta-card span,
.eta-card strong {
  display: block;
}

.eta-card span {
  color: var(--teal-600);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.eta-card strong {
  margin-top: 2px;
  color: var(--navy-700);
  font-size: 1.2rem;
}

.progress-card {
  margin-bottom: 18px;
  padding: 24px 27px;
}

.progress-topline,
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.progress-topline > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.progress-label {
  color: var(--navy-500);
  font-size: 0.72rem;
}

.progress-topline strong {
  color: var(--navy-700);
  font-size: 0.82rem;
}

#progress-percent {
  color: var(--teal-600);
  font-size: 1.1rem;
}

.progress-track {
  height: 12px;
  margin: 15px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeec;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-200));
  transition: width 420ms ease;
}

.progress-meta {
  color: #7b919c;
  font-size: 0.67rem;
}

.progress-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.wave-card,
.activity-card {
  min-height: 350px;
  overflow: hidden;
}

.wave-steps {
  margin: 2px 24px 24px;
  padding: 0;
  list-style: none;
}

.wave-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 67px;
  color: #92a2aa;
}

.wave-steps li:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: -9px;
  left: 17px;
  width: 2px;
  background: #e1e9e7;
  content: "";
}

.wave-steps li.complete:not(:last-child)::after {
  background: var(--teal-200);
}

.step-marker {
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 2px solid #dbe6e4;
  border-radius: 50%;
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.wave-steps li.active {
  color: var(--navy-700);
}

.wave-steps li.active .step-marker {
  border-color: var(--orange-500);
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(237, 127, 53, 0.11);
}

.wave-steps li.complete {
  color: var(--navy-500);
}

.wave-steps li.complete .step-marker {
  border-color: var(--teal-500);
  background: var(--teal-500);
  color: var(--white);
}

.wave-steps strong,
.wave-steps small {
  display: block;
}

.wave-steps strong {
  font-size: 0.78rem;
}

.wave-steps small {
  color: #8da0a9;
  font-size: 0.66rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-600);
  font-size: 0.66rem;
  font-weight: 700;
}

.live-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(52, 186, 165, 0.13);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.activity-list {
  height: 270px;
  overflow: auto;
  border-top: 1px solid #e6eeec;
  background: rgba(247, 250, 249, 0.58);
}

.activity-item {
  display: grid;
  grid-template-columns: 58px 10px 1fr;
  align-items: start;
  gap: 9px;
  padding: 12px 20px;
  border-bottom: 1px solid #eaf0ef;
  color: var(--navy-500);
  font-size: 0.68rem;
}

.activity-time {
  color: #97a7ae;
  font-variant-numeric: tabular-nums;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

.activity-item.error .activity-dot {
  background: var(--red);
}

.activity-item.success .activity-dot {
  background: var(--teal-600);
}

.activity-empty {
  padding: 42px 22px;
  color: #879ba4;
  font-size: 0.72rem;
  text-align: center;
}

.patience-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 18px;
  padding: 16px 19px;
  background: rgba(255, 255, 255, 0.62);
  color: #78909d;
  font-size: 0.69rem;
}

.patience-note > span {
  color: var(--orange-500);
  font-size: 1rem;
}

.patience-note p {
  margin: 0;
}

.patience-note strong {
  color: var(--navy-500);
}

.results-hero {
  max-width: 730px;
  margin: 12px auto 40px;
  text-align: center;
}

.results-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(52, 186, 165, 0.24);
  font-size: 1.7rem;
  font-weight: 700;
  transform: rotate(-3deg);
}

.results-hero .eyebrow {
  margin-bottom: 9px;
}

.results-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
}

.results-hero p:last-child {
  color: var(--navy-500);
}

.results-stats {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.warning-card {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
  background: var(--yellow-soft);
}

.warning-card .info-card-icon {
  color: var(--yellow);
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.link-button {
  min-width: 220px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 25px 5vw;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.67rem;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(100%, 470px);
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 54px);
  border: 1px solid rgba(35, 69, 91, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-200), var(--orange-500));
  content: "";
}

.login-brand {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--navy-950);
}

.login-card .eyebrow {
  margin-bottom: 8px;
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2.35rem, 9vw, 3.6rem);
  line-height: 1.02;
}

.login-copy {
  margin-bottom: 27px;
  color: var(--navy-500);
  font-size: 0.9rem;
}

.login-form input[type="password"] {
  padding-right: 16px;
}

.login-error,
.configuration-note {
  margin-bottom: 21px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.login-error {
  border: 1px solid #efc2b5;
  background: var(--red-soft);
  color: #913b36;
}

.configuration-note {
  border: 1px solid #e5cf99;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.configuration-note code {
  font-weight: 700;
}

.login-footnote {
  margin: 28px 0 0;
  color: #8ca0aa;
  font-size: 0.66rem;
  text-align: center;
}

@media (max-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-copy {
    max-width: 780px;
  }

  .upload-card {
    max-width: 620px;
  }

  .stats-grid,
  .stats-grid-preflight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-layout {
    grid-template-columns: 1fr;
  }

  .wave-card,
  .activity-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .brand-divider,
  .product-name {
    display: none;
  }

  .local-badge {
    padding: 7px 10px;
    font-size: 0.66rem;
  }

  .header-actions {
    gap: 7px;
  }

  .header-button {
    min-height: 32px;
    padding: 0 10px;
  }

  .app-shell {
    width: min(100% - 28px, 1180px);
    padding: 42px 0 55px;
  }

  .intro-grid {
    gap: 34px;
  }

  .upload-card {
    border-radius: 19px;
  }

  .screen-heading,
  .progress-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-heading {
    margin-bottom: 26px;
  }

  .eta-card {
    width: 100%;
  }

  .stats-grid,
  .stats-grid-preflight {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    min-height: 105px;
    padding: 17px;
  }

  .stat-card strong {
    font-size: 1.65rem;
  }

  .confirmation-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .confirmation-actions {
    width: 100%;
  }

  .confirmation-actions button {
    flex: 1;
  }

  .progress-topline > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .card-heading {
    padding-right: 18px;
    padding-left: 18px;
  }

  .results-actions {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .local-badge {
    font-size: 0;
  }

  .local-badge::after {
    font-size: 0.65rem;
    content: "PIN";
  }

  .stats-grid,
  .stats-grid-preflight {
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .file-action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
