* {
  box-sizing: border-box;
}
.focus-button { margin-top:12px; width:100%; }
.open-drawing { display:block; margin-top:12px; color:#37664d; font-size:12px; }
.display-notice { padding:10px 23px; background:#fff9eb; color:#796439; border-bottom:1px solid #e9dfc9; font-size:11px; }
#drawing.monochrome { filter:grayscale(1) brightness(0); }
#lineWidthValue { font-size:11px; font-weight:400; color:#7b8c7e; }
body {
  margin: 0;
  color: #263933;
  background: #f5f7f5;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Sans",
    sans-serif;
}
header {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #dce4de;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: #204c3d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 2px;
}
.brand span {
  font-size: 12px;
  color: #73837a;
  border-left: 1px solid #d9e1dc;
  padding-left: 16px;
  margin-left: 5px;
}
.local {
  font-size: 12px;
  color: #65766c;
}
.local i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #4b9573;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  display: flex;
  height: calc(100vh - 70px);
}
aside {
  width: 320px;
  flex-shrink: 0;
  overflow: auto;
  background: #fcfdfb;
  border-right: 1px solid #dce4de;
  padding: 29px 23px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #839185;
  font-weight: 700;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 13px 0;
}
h2 {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.intro,
.muted {
  font-size: 12px;
  color: #79857d;
  line-height: 1.8;
}
.intro {
  margin-bottom: 22px;
}
.upload {
  display: block;
  padding: 16px;
  border: 1px dashed #7d9f8c;
  background: #edf4ef;
  color: #315d46;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}
.upload small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  margin-top: 8px;
  color: #7b9082;
}
.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload:focus-within {
  outline: 2px solid #33765a;
}
.upload.drag {
  background: #d2e9d9;
}
.field {
  display: block;
  font-size: 11px;
  color: #6b7c70;
  margin-top: 15px;
}
select,
input[type="number"] {
  display: block;
  width: 100%;
  padding: 10px 8px;
  margin-top: 7px;
  border: 1px solid #d7e0d9;
  background: #fff;
  border-radius: 5px;
  color: #374b3e;
}
input[type="range"] {
  width: 100%;
  accent-color: #3b7756;
}
section {
  border-top: 1px solid #e0e7e1;
  margin-top: 23px;
  padding-top: 19px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title span {
  font-size: 10px;
  color: #8a968d;
  font-weight: 400;
}
.stats {
  display: flex;
  gap: 8px;
}
.stats > div {
  background: #f0f3ee;
  padding: 12px;
  flex: 1;
  border-radius: 6px;
}
.stats small {
  display: block;
  color: #7a8a7d;
  font-size: 10px;
}
.stats strong {
  display: block;
  font-size: 18px;
  margin-top: 7px;
}
.layers {
  max-height: 190px;
  overflow: auto;
  margin-top: 12px;
}
.layer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.layer input {
  accent-color: #346847;
}
.layer small {
  margin-left: auto;
  color: #93a094;
}
.secondary {
  border: 1px solid #d5dfd6;
  background: white;
  margin-top: 13px;
  font-size: 12px;
  padding: 11px;
}
.two {
  display: flex;
  gap: 10px;
}
.two > label {
  flex: 1;
}
button {
  border: 1px solid #d6dfd7;
  background: white;
  border-radius: 5px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  color: #425b48;
  cursor: pointer;
}
button:hover {
  background: #eaf1e9;
}
button.active {
  background: #315f46;
  color: white;
  border-color: #315f46;
}
.text {
  border: 0;
  background: transparent;
  padding: 4px;
  font-size: 10px;
  color: #78917f;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
#align {
  margin-top: 12px;
}
details {
  border-top: 1px solid #e0e7e1;
  margin-top: 22px;
  padding-top: 17px;
  color: #859086;
  font-size: 11px;
  line-height: 1.8;
}
details ul {
  padding-left: 16px;
}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
nav {
  height: 63px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  background: #fff;
  border-bottom: 1px solid #e0e6df;
}
.tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.divider {
  height: 20px;
  width: 1px;
  background: #e1e7e1;
  margin: 0 6px;
}
.pill {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8a988d;
}
#stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #edf1ed;
  background-image: radial-gradient(#cad3ca 0.7px, transparent 0.7px);
  background-size: 20px 20px;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#empty {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  pointer-events: none;
}
#empty h2 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 28px;
}
#empty p {
  font-size: 12px;
  color: #8a978c;
}
.plan-icon {
  font-size: 76px;
  font-weight: 100;
  color: #809c85;
}
.features {
  display: flex;
  gap: 20px;
  justify-content: center;
  color: #849685;
  font-size: 10px;
  margin-top: 25px;
}
.features span {
  border: 1px solid #d4dfd3;
  border-radius: 20px;
  padding: 7px 11px;
}
footer {
  height: 42px;
  padding: 0 22px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #7b8c7e;
}
#busy,
#error {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  background: white;
  border: 1px solid #d7e0d7;
  box-shadow: 0 6px 30px #263c3312;
  padding: 16px 22px;
  border-radius: 8px;
  font-size: 12px;
}
#error {
  color: #984c3c;
  max-width: 85%;
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #cfdbd1;
  border-top-color: #346b49;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  aside {
    width: 250px;
    padding: 20px 16px;
  }
  .pill,
  .brand span {
    display: none;
  }
  nav {
    padding: 0 10px;
  }
  .tools {
    gap: 3px;
  }
  .tools button {
    padding: 8px;
    font-size: 10px;
  }
  footer {
    font-size: 9px;
    padding: 0 8px;
  }
}
@media (max-width: 550px) {
  .workspace {
    height: auto;
    display: block;
  }
  aside {
    width: 100%;
    max-height: 45vh;
  }
  main {
    height: 65vh;
  }
}

#canvas { user-select: none; -webkit-user-select: none; }
#calibrationForm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#calibrationError { color: #984c3c; }
.tools { flex-wrap: wrap; }
nav { flex-wrap: wrap; height: auto; min-height: 62px; gap: 8px; }
.tools { width: 100%; padding: 8px 0; }
.tools button { flex-shrink: 0; white-space: nowrap; }
nav .pill { display: none; }
