:root {
  color-scheme: light;
  font: 16px system-ui, sans-serif;
  color: #172a24;
  background: #eceee8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  background: #172a24;
  color: #f8f7ef;
  padding: calc(14px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-left)) 14px;
}
h1 { font-size: 1.3rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
main {
  display: grid;
  gap: 14px;
  max-width: 1150px;
  margin: auto;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
}
section { min-width: 0; padding: 14px; border-radius: 14px; background: #fff; }
label { display: block; font-weight: 600; margin-top: 12px; }
.preview label, #save-form label { margin-top: 0; }
select, input, button { font: inherit; min-height: 44px; max-width: 100%; }
select, input:not([type=range]), button {
  border: 1px solid #9aa79c;
  border-radius: 8px;
  padding: 8px 10px;
}
select, input { width: 100%; margin-top: 4px; background: #fff; color: inherit; }
input[type=range] { display: block; accent-color: #315b4a; }
button { background: #edf3ee; color: #172a24; }
button:disabled { opacity: .5; }
#mockup { display: block; width: 100%; height: auto; max-height: 630px; margin-top: 12px; }
#mockup [data-panel] { cursor: pointer; }
#total { font-weight: 700; margin-left: 8px; }
#status:empty { display: none; }
#status { color: #355746; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#saved { padding: 0; list-style: none; }
#saved li + li { margin-top: 8px; }
#saved button { width: 100%; text-align: left; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  main { grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr); align-items: start; }
  .library { grid-column: 2; }
  .preview { grid-row: span 2; }
}
