:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142a26;
  background: #f0f5f2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #142c27; color: white; }
.bar, main { width: min(74rem, 100%); margin: auto; padding: 1rem 1.4rem; }
.bar { display: flex; gap: 1rem; align-items: center; min-height: 4.5rem; }
.brand { font-size: 1.3rem; letter-spacing: .07em; }
.brand span { color: #8de7ad; }
.badge { font-size: .875rem; border: 1px solid #5f8174; border-radius: 2rem; padding: .35rem .7rem; }
#lock { margin-left: auto; }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.045em; margin: .25rem 0 1.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.panel, dialog { border: 1px solid #d3e2da; background: white; border-radius: 1rem; padding: 1.25rem; }
#access { max-width: 29rem; }
#access button { margin-top: 1rem; }
.routes, .columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 1rem; align-items: start; }
label { display: block; font-weight: 600; }
input, select, button { font: inherit; min-height: 44px; border-radius: .55rem; }
input, select { width: 100%; padding: .55rem .7rem; margin-top: .35rem; border: 1px solid #a7bdb0; background: white; color: inherit; }
button { padding: .55rem .9rem; cursor: pointer; background: #145639; color: white; border: 1px solid transparent; font-weight: 650; }
button:disabled { opacity: .52; cursor: default; }
.secondary { color: #164331; background: #edf5ef; border-color: #bad0c1; }
:focus-visible { outline: 3px solid #478ec2; outline-offset: 2px; }
.item { display: flex; gap: .65rem; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1eae5; padding: .85rem 0; }
.item p { margin: .35rem 0 0; color: #456056; font-size: .9rem; }
.item input { width: 5.5rem; margin: 0; }
.item:last-child { border-bottom: 0; }
#review { width: 100%; margin-top: 1rem; }
#demo-scan { margin-top: .65rem; }
#notice { border-radius: .55rem; padding: .8rem 1rem; background: #dbf0e2; overflow-wrap: anywhere; }
#notice.error { background: #fbe4de; color: #752c23; }
dialog { color: inherit; width: min(31rem, calc(100% - 2rem)); }
dialog::backdrop { background: #0b211ab0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
#quantity-picker { width: min(25rem, calc(100% - 2rem)); }
#quantity-item { font-weight: 650; margin-bottom: .3rem; }
#quantity-stock { color: #456056; margin-top: 0; }
#quantity-value {
  display: block;
  padding: .45rem .75rem;
  border: 1px solid #a7bdb0;
  border-radius: .55rem;
  text-align: center;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .75rem 0 1rem; }
.keypad button { min-height: 48px; font-size: 1.25rem; }
.keypad button[data-key="0"] { grid-column: 2; }
@media (max-width: 700px) { .columns, .routes { grid-template-columns: 1fr; } }
