:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #122033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(28, 100, 242, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

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

.hero {
  margin-bottom: 28px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: #2f6fed;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: 1.4rem;
}

.subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: #506078;
  line-height: 1.6;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(151, 168, 195, 0.22);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  padding: 24px;
}

.upload-panel {
  margin-bottom: 20px;
}

.dropzone {
  display: block;
  border: 1.5px dashed #8fb0ff;
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.06), rgba(47, 111, 237, 0.02));
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
  cursor: pointer;
}

.dropzone input {
  display: block;
  margin-bottom: 14px;
}

.dropzone-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.dropzone-text {
  display: block;
  margin-top: 8px;
  color: #5f6f88;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #225cff 0%, #2a8cff 100%);
  box-shadow: 0 12px 24px rgba(34, 92, 255, 0.22);
}

.hidden {
  display: none;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e9f0ff;
  color: #2958c7;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5d77;
}

input {
  width: 100%;
  border: 1px solid #d6dfec;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  color: inherit;
}

input[readonly] {
  background: #f7f9fc;
}

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

.metrics article {
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid #dbe6f5;
  padding: 16px;
}

.metrics span {
  display: block;
  color: #5d6f89;
  font-size: 0.9rem;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.status {
  min-height: 24px;
  margin-top: 18px;
  padding: 4px 2px;
  font-weight: 600;
}

.status[data-tone="error"] {
  color: #a11d2c;
}

.status[data-tone="success"] {
  color: #1f7a43;
}

.status[data-tone="info"] {
  color: #36598e;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 960px);
    padding-top: 24px;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .two-columns,
  .metrics {
    grid-template-columns: 1fr;
  }

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