:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --panel-strong: #000000;
  --text: #111111;
  --muted: #666666;
  --line: #d8d8d8;
  --line-soft: #eeeeee;
  --accent: #000000;
  --accent-soft: #f0f0f0;
  --success: #111111;
  --shadow: none;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --page-pad: clamp(16px, 4vw, 40px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --panel: #111111;
    --panel-strong: #ffffff;
    --text: #f5f5f5;
    --muted: #a0a0a0;
    --line: #333333;
    --line-soft: #222222;
    --accent: #ffffff;
    --accent-soft: #1a1a1a;
    --success: #ffffff;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: var(--page-pad);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 18px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.section-title > span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dropzone {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  cursor: pointer;
}

.dropzone:hover {
  border-color: var(--accent);
}

.dropzone span,
.summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.dropzone input {
  margin-top: 8px;
  max-width: 100%;
}

.status-list {
  display: grid;
  gap: 8px;
}

.summary {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--panel);
  text-decoration: none;
  cursor: pointer;
}

.button-soft {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.output-list {
  display: grid;
  gap: 10px;
}

.output-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.output-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.log {
  min-height: 120px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--muted);
  white-space: pre-wrap;
}

@media (max-width: 780px), (orientation: portrait) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .button,
  .hero-actions a {
    width: 100%;
  }

  .output-item {
    align-items: stretch;
    flex-direction: column;
  }
}
