:root {
  color-scheme: light;
  --navy-950: #07192c;
  --navy-900: #0b2239;
  --blue-700: #0b63ce;
  --blue-600: #1676d2;
  --orange-500: #ff6b00;
  --gray-700: #425066;
  --gray-500: #6f7b8f;
  --gray-200: #e3e9f2;
  --gray-100: #f7f9fc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--navy-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(22, 118, 210, 0.13), transparent 32rem),
    linear-gradient(180deg, #f8fbff, #eef4fb);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  box-shadow: 0 12px 30px rgba(11, 34, 57, 0.22);
  font-weight: 900;
}

.brand strong {
  display: block;
  letter-spacing: 0.16em;
}

.brand small,
.user-strip,
footer {
  color: var(--gray-500);
  font-size: 13px;
}

.user-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero {
  max-width: 760px;
  padding: 36px 0 6px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2,
h3 {
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -0.035em;
}

.hero p:not(.eyebrow),
.card p {
  color: var(--gray-700);
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--gray-700);
  font-size: 20px;
  font-weight: 700;
}

.card {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid rgba(174, 190, 210, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(7, 25, 44, 0.1);
  backdrop-filter: blur(10px);
}

button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(22, 118, 210, 0.28);
}

.secondary-button {
  color: var(--navy-900);
  border-color: var(--gray-200);
  background: var(--white);
}

.ghost-button {
  color: var(--blue-700);
  background: transparent;
}

.email-form,
.profile-grid {
  display: grid;
  gap: 12px;
}

.email-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 22px;
}

.login-actions {
  display: flex;
  gap: 10px;
}

.auth-help {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 13px;
}

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

.profile-grid button {
  grid-column: 1 / -1;
  justify-self: start;
}

label {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #cdd7e5;
  border-radius: 12px;
  color: var(--navy-900);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(22, 118, 210, 0.12);
}

.workspace-heading,
.run-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.upload-box {
  display: grid;
  margin-top: 22px;
  padding: 32px;
  place-items: center;
  border: 2px dashed #b8c8dd;
  border-radius: 22px;
  background: var(--gray-100);
  text-align: center;
}

.status {
  min-height: 24px;
  margin: 18px 0;
  color: var(--gray-700);
  font-weight: 700;
}

.status.error {
  color: #b42318;
}

.mapping-panel {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fbfdff;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 13px;
}

.pill {
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  color: #7a4605;
  background: #fff1d8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

footer {
  padding: 38px 0;
}

@media (max-width: 760px) {
  .email-form,
  .profile-grid,
  .mapping-row {
    grid-template-columns: 1fr;
  }

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

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