
/* Generated by GitHub Copilot */
:root {
  --bg-base: #edf2f7;
  --bg-ink: #08111f;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(12, 35, 61, 0.12);
  --text: #10233c;
  --muted: #53657d;
  --primary: #0057b8;
  --primary-deep: #003a78;
  --accent: #f2a900;
  --ok: #0b7a58;
  --error: #b42318;
  --shadow: 0 24px 60px rgba(16, 35, 60, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Aptos", "Bahnschrift", "Segoe UI Variable", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 87, 184, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(242, 169, 0, 0.16), transparent 24%),
    linear-gradient(135deg, #f8fafc 0%, #e8eef5 50%, #d9e4ef 100%);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 32px;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.hero {
  padding: 32px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(0, 58, 120, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
}

.language-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.language-controls label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.language-controls select {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 10px;
}

.language-controls select option {
  color: #10233c;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow-small {
  color: var(--primary);
  margin-bottom: 6px;
}

h1,
h2,
strong {
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.summary-grid,
.panel-grid {
  display: grid;
  gap: 20px;
}

.summary-grid {
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.summary-card,
.card {
  border-radius: 24px;
}

.summary-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.summary-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 8px;
}

.panel-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
}

.panel-grid.is-authenticated {
  grid-template-columns: minmax(340px, 760px);
  justify-content: center;
}

.panel-grid.is-authenticated .auth-card .card-header,
.panel-grid.is-authenticated .upload-card .card-header {
  justify-content: center;
  text-align: center;
}

.panel-grid.is-authenticated .upload-card .card-header {
  flex-direction: column;
  align-items: center;
}

.panel-grid.is-authenticated .upload-card .card-header .pill {
  display: none;
}

.auth-card {
  border-top: 4px solid var(--accent);
}

.auth-status {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-button {
  background: #e7edf5;
  color: var(--text);
}

.secondary-button:hover {
  background: #dce5ee;
}

.auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.workflow-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(0, 87, 184, 0.04), rgba(242, 169, 0, 0.04));
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.upload-card {
  background: var(--panel-strong);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.16);
  color: #7a5400;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

form {
  display: grid;
  gap: 10px;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 4px;
  border: 2px dashed #9bb2ca;
  border-radius: 14px;
  padding: 18px 14px;
  background: rgba(0, 87, 184, 0.04);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.drop-zone p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.drop-zone small {
  margin: 0;
}

.drop-zone.is-active {
  border-color: var(--primary);
  background: rgba(0, 87, 184, 0.1);
  color: var(--primary);
}

label {
  font-weight: 700;
}

input,
button {
  font: inherit;
}

input[type="text"],
input[type="file"] {
  border: 1px solid #c8d3df;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
}

input::placeholder {
  color: #7b8da3;
}

input:focus,
button:focus,
.drop-zone:focus {
  outline: 3px solid rgba(0, 87, 184, 0.24);
  outline-offset: 2px;
}

button {
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
}

button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

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

#file-name-display {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 87, 184, 0.08);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

#status {
  margin-top: 16px;
  min-height: 24px;
  font-weight: 700;
}

#status.success {
  color: var(--ok);
}

#status.error {
  color: var(--error);
}

@media (max-width: 900px) {
  .page {
    padding: 18px;
  }

  .hero,
  .card {
    padding: 22px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
  }

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