:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f7f7f4;
  --surface: #ffffff;
  --text: #171717;
  --muted: #55554e;
  --border: #d9d9d3;
  --input-border: #c9c9c1;
  --button: #146c43;
  --button-disabled: #6f7f76;
  --shadow: rgba(23, 23, 23, 0.08);
  color: var(--text);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.shell {
  width: min(100%, 520px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 30px var(--shadow);
}

header {
  display: grid;
  gap: 8px;
}

.logo {
  width: 64px;
  height: 64px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

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

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

input[type="file"] {
  padding: 8px 10px;
}

button {
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--button);
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  background: var(--button-disabled);
}

#status {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
}

.content-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: var(--text);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

a {
  color: var(--button);
  font-weight: 600;
}

@media (max-width: 420px) {
  .shell {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101211;
    --surface: #181b1a;
    --text: #f7f7f4;
    --muted: #c3c5bd;
    --border: #30342f;
    --input-border: #464b44;
    --button: #38b26f;
    --button-disabled: #647067;
    --shadow: rgba(0, 0, 0, 0.25);
  }

  button {
    color: #08110c;
  }
}
