:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-accent: #eaf2ff;
  --card: #ffffff;
  --text: #172033;
  --muted: #5e6a7d;
  --primary: #0764e3;
  --primary-dark: #014fc9;
  --primary-soft: #deedfe;
  --border: #d8e3f5;
  --success: #0f766e;
  --warning: #a16207;
  --error: #b42318;
  --shadow: 0 24px 60px rgba(1, 79, 201, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(128, 184, 254, 0.55), transparent 32rem),
    linear-gradient(145deg, var(--bg), #ffffff 58%);
}

button,
input {
  font: inherit;
}

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

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.app-logo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(1, 79, 201, 0.24);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.notice,
.card,
.details {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.notice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.notice strong {
  color: var(--primary-dark);
}

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

.card {
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius-lg);
}

.field-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.file-input,
.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.file-input {
  padding: 16px;
}

.file-input::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.text-input {
  padding: 14px 16px;
}

.file-input:focus,
.text-input:focus,
.primary-button:focus {
  outline: 4px solid rgba(7, 100, 227, 0.18);
  outline-offset: 2px;
  border-color: var(--primary);
}

.help-text,
.file-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.file-summary {
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(7, 100, 227, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(7, 100, 227, 0.32);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.progress-area {
  margin-top: 24px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--bg-accent);
}

progress::-webkit-progress-bar {
  background: var(--bg-accent);
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary), #ffa80d);
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), #ffa80d);
  border-radius: 999px;
}

.message {
  min-height: 1.6em;
  margin: 18px 0 0;
  font-weight: 800;
}

.message.success {
  color: var(--success);
}

.message.warning {
  color: var(--warning);
}

.message.error {
  color: var(--error);
}

.details {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
}

.details h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.details ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 24px, 960px);
    padding: 28px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-logo {
    width: 80px;
    height: 80px;
  }
}
