:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #626262;
  --line: #dedbd2;
  --accent: #155e63;
  --accent-dark: #0f4448;
  --ok: #1f7a4d;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.panel,
.details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(33, 31, 25, 0.08);
}

.panel {
  padding: 36px;
}

.details {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.summary {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
  line-height: 1.5;
}

textarea:focus,
input:focus {
  outline: 3px solid rgba(21, 94, 99, 0.16);
  border-color: var(--accent);
}

button,
.download {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

button {
  margin-top: 10px;
}

button:hover,
.download:hover {
  background: var(--accent-dark);
}

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

.status {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.status-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9b9588;
  flex: 0 0 auto;
}

.dot.running {
  background: #c27b16;
}

.dot.done {
  background: var(--ok);
}

.dot.error {
  background: var(--danger);
}

#statusText {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.download {
  display: inline-flex;
  margin-top: 16px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.details ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

code {
  color: var(--ink);
  background: #ece9df;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .panel,
  .details {
    padding: 22px;
  }
}
