:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #202a25;
  --muted: #43534a;
  --line: #bbc5bc;
  --accent: #234e38;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.6 system-ui,
    sans-serif;
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 3;
}
.skip:focus {
  top: 8px;
}
.intro {
  max-width: 800px;
  padding: 36px 0;
}
.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 750;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 12px 0 24px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}
.lead {
  font-size: 1.25rem;
  max-width: 650px;
}
.hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
form,
.output {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
label {
  display: block;
  font-weight: 600;
  margin: 18px 0 6px;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid #728277;
  border-radius: 6px;
  padding: 11px;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
fieldset {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
legend {
  font-weight: 650;
}
.choices {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.choices label {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
button,
.button {
  display: inline-block;
  font: inherit;
  font-weight: 650;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 7px;
  min-height: 48px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}
button.secondary {
  background: #fff;
  color: var(--accent);
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
.setup-notes {
  border-block: 1px solid var(--line);
  margin: 24px 0;
}
.setup-notes summary {
  min-height: 48px;
  padding: 12px 0;
  font-weight: 650;
  cursor: pointer;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 12px;
}
:focus-visible {
  outline: 3px solid #a54512;
  outline-offset: 4px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
#status {
  min-height: 1.6em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#status.error {
  border-left: 4px solid #9c2917;
  padding-left: 14px;
  color: #802012;
}
#setup-list {
  overflow-wrap: anywhere;
}
dt {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--muted);
  margin-top: 12px;
}
dd {
  margin: 0;
  white-space: pre-wrap;
}
#result-title,
#result-notes {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#shots {
  padding-left: 26px;
}
#shots li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
#shots label {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
#shots small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}
#import-preview,
.notice {
  margin: 20px 0;
  padding: 16px;
  background: #edf2eb;
  border: 1px solid var(--line);
}
.guide,
.app-card {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.app-card {
  background: #e6ece3;
  border: 0;
  border-radius: 12px;
  padding: 32px;
}
footer {
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 40px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  .workspace,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: start;
  }
  nav {
    font-size: 0.85rem;
    gap: 8px;
    flex-direction: column;
  }
  form,
  .output {
    padding: 18px;
  }
  .intro {
    padding-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  header,
  footer,
  .intro,
  form,
  .guide,
  .app-card,
  .no-print,
  #status,
  .skip {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .output {
    border: 0;
    padding: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  #shots input {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid #000;
  }
  #shots input:checked:before {
    content: "✓";
    font-size: 11px;
  }
  #shots li {
    break-inside: avoid;
  }
  h2 {
    margin-top: 0;
  }
}
