:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#163c30;background:#f5f1e6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button{border:0;border-radius:12px;padding:14px 18px;background:#163c30;color:#fff;cursor:pointer;font-weight:650;min-height:48px}button.secondary{background:#e2e7dc;color:#163c30}button.danger{background:#8d362b}button:disabled{opacity:.5;cursor:wait}header{background:#163c30;color:#f5f1e6;padding:18px max(18px,calc((100vw - 780px)/2));position:sticky;top:0;z-index:2}header .brand{font-size:19px;font-weight:750}nav{display:flex;gap:8px;margin-top:12px}nav button{background:#ffffff18;padding:10px 18px}main{max-width:780px;margin:auto;padding:24px 18px 90px}h1{font-size:30px;line-height:1.2;margin-top:8px}h2{font-size:20px}p{line-height:1.55}.muted{color:#657268;font-size:14px}.status{font-size:12px;margin:9px 0 0}.card{background:#fffdf7;border:1px solid #dddcca;padding:20px;border-radius:18px;margin:14px 0;box-shadow:0 3px 12px #163c3005}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.home button{text-align:left;min-height:100px;font-size:18px}.home button small{display:block;font-weight:400;font-size:13px;margin-top:8px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}label{display:block;margin:16px 0 6px;font-weight:600}input,select{width:100%;min-height:48px;border:1px solid #bbc8bb;border-radius:10px;padding:12px;background:#fff;color:#163c30}input[type=file]{font-size:14px}a{color:#163c30}form button{margin-top:20px}.result{width:100%;background:#fffdf7;border:1px solid #d9decf;color:#163c30;text-align:left;margin:6px 0}.result small{display:block;font-weight:400;margin-top:6px}.big{font-size:42px;font-weight:750}.lot-title{background:transparent;color:#163c30;padding:0;min-height:40px;text-align:left}.quantity{font-size:26px;font-weight:750;min-width:50px;text-align:center}.quantity-step{border:0;padding:0;margin:14px 0;min-inline-size:0}.quantity-step legend{font-size:14px;font-weight:650;margin-bottom:8px}.quantity-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:360px}.quantity-choices label{margin:0;position:relative;cursor:pointer}.quantity-choices input{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;margin:0;border:0;opacity:0;cursor:pointer}.quantity-choices span{display:grid;place-items:center;min-height:44px;border:1px solid #bdc9bc;border-radius:10px;background:#fffdf7;font-weight:650}.quantity-choices input:checked+span{background:#163c30;color:#fff;border-color:#163c30}.quantity-choices input:focus-visible+span{outline:3px solid #63845b;outline-offset:2px}.notice{background:#e8eddc;padding:14px;border-radius:12px;line-height:1.5}.error{background:#f4ded7;color:#742c23}.toast{position:fixed;bottom:20px;left:18px;right:18px;max-width:744px;margin:auto;z-index:5;background:#163c30;color:#fff;padding:16px;border-radius:14px;box-shadow:0 8px 32px #0003}video{width:100%;max-height:50vh;object-fit:cover;border-radius:16px}pre{white-space:pre-wrap;font-size:12px;max-height:260px;overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:8px;text-align:left;border-bottom:1px solid #ddd}dialog{border:0;border-radius:18px;background:#fffdf7;max-width:90vw}footer{font-size:12px;color:#657268;margin-top:26px}@media(max-width:420px){.grid{grid-template-columns:1fr}.home button{min-height:75px}h1{font-size:26px}}.camera-space{height:240px;margin:16px 0;border-radius:16px;background:#dce3d7}.camera-host{position:absolute;z-index:1;overflow:hidden;border-radius:16px;background:#163c30;pointer-events:none}.camera-host video{width:100%;height:100%;max-height:none;object-fit:cover;display:block}.camera-host.camera-parked{position:fixed;width:1px;height:1px;left:0;bottom:0;opacity:.001;overflow:hidden}#scanner-session[hidden]{display:none}.lot-controls{flex-wrap:nowrap;gap:8px}.lot-controls .quantity{width:10ch;min-width:10ch;font-size:18px;line-height:48px;font-variant-numeric:tabular-nums}.format-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 10ch;gap:10px}.format-summary-row strong{text-align:right;font-variant-numeric:tabular-nums}header .status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.barcode-section{margin-top:28px;text-align:center}.barcode-section img{display:block;width:100%;max-width:600px;height:auto;margin:14px auto;background:#fff}.barcode-section .row{justify-content:center}.permanent-code{font-family:ui-monospace,monospace;font-weight:700;overflow-wrap:anywhere}.barcode-section #barcode-image{min-height:120px}#file-result a{display:inline-block;padding:12px 0;min-height:48px}[hidden]{display:none!important}.plant-page{overflow-anchor:none}.checkbox-label{display:flex;align-items:center;gap:.6rem}.checkbox-label input{width:auto;margin:0}.potting-note{color:#163c30;font-weight:600}.plant-actions{margin:18px 0 24px}.plant-primary-action{width:100%;min-height:64px;padding:18px 20px;font-size:18px}.plant-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.plant-secondary-actions button{min-height:44px;padding:10px 8px;font-size:14px;border:1px solid #d4dbce}.plant-secondary-actions button.danger{background:#f5f1e6;color:#8d362b}.department-label{font-size:14px;margin-bottom:0}.lot-departments,.department-summary{display:grid;gap:12px}@media(min-width:640px){.lot-departments,.department-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.lot-departments .lot-controls{display:grid;width:100%;grid-template-columns:36px minmax(0,1fr) 36px;gap:4px}.lot-departments .lot-controls button{padding:0;width:36px}.lot-departments .quantity{width:auto;min-width:0;font-size:16px}}.lot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.compact-lot.card{min-width:0;margin:0;padding:10px;border-radius:12px;overflow-wrap:anywhere}.compact-lot .lot-title{width:100%;font-size:14px;line-height:1.35}.compact-lot .lot-title strong{display:block}.compact-lot .lot-location,.compact-lot .potting-note{margin:5px 0;font-size:12px}.lot-height{display:block;font-size:12px}.compact-lot .lot-controls{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:2px;width:100%;margin-top:6px}.compact-lot .lot-controls button{width:40px;min-height:44px;padding:0;font-size:22px}.compact-lot .lot-controls .quantity{width:auto;min-width:0;font-size:20px;line-height:44px}.lot-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.lot-actions button{min-height:44px;padding:6px;font-size:12px;max-width:100%}.lot-actions .lot-remove{background:transparent;font-size:11px}@media(max-width:359px){.compact-lot.card{padding:6px}.compact-lot .lot-controls{grid-template-columns:36px minmax(0,1fr) 36px}.compact-lot .lot-controls button{width:36px}.compact-lot .lot-controls .quantity{font-size:17px}}@media(max-width:279px){.lot-grid{grid-template-columns:minmax(0,1fr)}}
