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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 620px);
  border: 1px solid #c8d2cc;
  background: #fffdf8;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgb(36 45 41 / 12%);
}

.wide {
  width: min(100%, 760px);
}

h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 750;
}

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

.stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

button,
input {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

button {
  border: 1px solid #173b2f;
  background: #173b2f;
  color: white;
  padding: 0 18px;
  cursor: pointer;
}

button.secondary {
  background: #f8faf8;
  color: #173b2f;
}

input {
  width: 100%;
  border: 1px solid #9eaaa3;
  padding: 0 12px;
  background: white;
  color: #1d2420;
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 7px;
  font-weight: 700;
}

output,
.mono {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  background: #eef3f0;
  border: 1px solid #c8d2cc;
  border-radius: 6px;
  padding: 12px;
}

.result {
  margin-top: 24px;
}

.status {
  min-height: 24px;
  margin: 18px 0 0;
  color: #8d2d1e;
}

.files {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  button {
    width: 100%;
  }
}
