* {
  box-sizing:border-box;
}
html {
  color-scheme:light;
}
body {
  margin:0;
  background:#f8f7f2;
  color:#252e27;
  font:1.04rem/1.55 system-ui,sans-serif;
}
main {
  max-width:790px;
  margin:auto;
  padding:24px clamp(15px,4vw,40px) 54px;
}
nav {
  margin-bottom:1.5rem;
}
a {
  color:#8e221e;
  text-underline-offset:3px;
}
h1,h2 {
  font-family:Georgia,serif;
  font-weight:500;
  line-height:1.12;
}
h1 {
  font-size:clamp(2.5rem,7vw,4rem);
  margin:0;
}
h2 {
  font-size:1.55rem;
  margin:0 0 1rem;
}
p {
  margin:.6em 0 1em;
}
.links,.choices,.buttons,.edit {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
}
section {
  margin:20px 0;
  padding:clamp(14px,3vw,24px);
  background:white;
  border:1px solid #d9d8ce;
  border-radius:12px;
}
fieldset {
  margin:0;
  padding:0;
  border:0;
}
legend,.zone-name,label {
  font-weight:600;
}
legend {
  margin-bottom:8px;
}
.choices label {
  display:flex;
  align-items:center;
  gap:5px;
  min-height:40px;
  padding:5px 11px;
  border:1px solid #c7cec5;
  border-radius:6px;
}
.choices {
  gap:6px;
}
.choices label:has(input:checked) {
  background:#e4eee5;
  border-color:#426c50;
}
input {
  accent-color:#285b45;
}
textarea,input:not([type=radio]) {
  display:block;
  width:100%;
  font:inherit;
  padding:8px 10px;
  border:1px solid #919d90;
  border-radius:5px;
  background:#fff;
  color:#202b23;
}
textarea {
  resize:vertical;
  min-height:64px;
}
label:has(textarea),.zone-name {
  display:block;
  margin-top:12px;
}
.dimensions {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:12px;}
.zone-name input {
  max-width:22rem;
}
#plan {
  width:100%;
  height:auto;
  display:block;
  background:#f9f9f3;
  border-radius:6px;
  cursor:crosshair;
  font-family:system-ui,sans-serif;
  touch-action:manipulation;
}
.hint,.edit,.keyboard {
  font-size:.94rem;
}
.keyboard {
  margin:12px 0;
}
.keyboard input {
  width:5rem!important;
  display:inline-block!important;
  margin:0 8px;
}
.keyboard summary {
  cursor:pointer;
  text-decoration:underline;
}
.edit {
  margin-top:10px;
  min-height:42px;
}
button,.primary {
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #a6ada3;
  padding:8px 13px;
  border-radius:6px;
  background:white;
  color:#243328;
  cursor:pointer;
  font:600 .98rem system-ui;
}
.primary {
  color:white;
  background:#8e221e;
  border-color:#8e221e;
  text-decoration:none;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
#summary {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  background:#f3f4ed;
  padding:14px;
  border-radius:6px;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #286489;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
@page {
  size:A4;
  margin:13mm;
}
@media print {
  body,section,main {
    background:white;
  }
  main {
    max-width:none;
    padding:0;
  }
  nav,#clear,.tools,.zone-name,.hint,.buttons,.edit,.keyboard,.links,header p,.handoff>p,section:has(#project),#fallback {
    display:none!important;
  }
  h1 {
    font-size:26pt;
  }
  h2 {
    font-size:16pt;
    margin-bottom:6pt;
  }
  section {
    border:0;
    padding:0;
    margin:10pt 0;
  }
  #plan {
    max-height:132mm;
    print-color-adjust:exact;
  }
  #summary {
    padding:0;
    background:white;
    font-size:10pt;
  }
  .handoff {
    break-inside:auto;
  }
  header {
    margin-bottom:12pt;
  }
}
