:root{--brown:#634932;--brown-2:#4c3725;--cream:#f6f1e7;--paper:#fffdf8;--ink:#2b2118;--muted:#7d6b5a;--line:#e2d8c8;--green:#4f6f3a;--red:#a23b2a;--radius:8px;color:var(--ink);background:var(--cream);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--cream);-webkit-font-smoothing:antialiased;overscroll-behavior:none}a{color:var(--brown)}button,input,select{font:inherit}button{background:var(--brown);color:#fff;border-radius:var(--radius);cursor:pointer;border:0;min-height:44px;padding:10px 14px}button.ghost{color:var(--brown);border:1px solid var(--brown);background:0 0}button:disabled{opacity:.5;cursor:default}input[type=text],input[type=email],input[type=password],input[type=search]{border:1px solid var(--line);border-radius:var(--radius);background:#fff;width:100%;min-height:44px;padding:11px 12px}.app{flex-direction:column;height:100%;display:flex}.topbar{background:var(--brown);color:#fff;padding:8px 14px;padding-top:max(8px, env(safe-area-inset-top));align-items:center;gap:12px;display:flex}.topbar img{filter:brightness(0)invert();height:28px}.topbar .title{letter-spacing:.02em;font-weight:600}.topbar .spacer{flex:1}.topbar a,.topbar button{color:#fff}.topbar button{background:0 0;border:1px solid #ffffff80;min-height:36px;padding:6px 10px}.topbar nav a{opacity:.9;margin-right:12px;text-decoration:none}.topbar nav a.active{opacity:1;text-decoration:underline}.page{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:16px;overflow:auto}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.muted{color:var(--muted);font-size:.9em}.err{color:var(--red)}.login{max-width:380px;margin:10vh auto}.login h1{margin:0 0 4px;font-weight:600}.login form{flex-direction:column;gap:10px;margin-top:14px;display:flex}.plantlist{gap:6px;margin:12px 0 0;padding:0;list-style:none;display:grid}.plantlist li{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:1fr auto;align-items:baseline;gap:4px 12px;padding:10px 12px;display:grid}.plantlist .sci{color:var(--muted);font-size:.9em;font-style:italic}.plantlist .size{font-variant-numeric:tabular-nums;color:var(--green);white-space:nowrap;font-weight:600}.plantlist .type{color:var(--muted);grid-column:1/-1;font-size:.8em}.canvas-wrap{touch-action:none;background:#ded7c8;flex:1;position:relative;overflow:hidden}.canvas-hud{border:1px solid var(--line);border-radius:var(--radius);background:#fffdf8eb;padding:8px 10px;font-size:.85em;position:absolute;bottom:12px;left:12px}.two-col{grid-template-columns:1fr 1fr;gap:16px;display:grid}@media (width<=720px){.two-col{grid-template-columns:1fr}}.tabs{gap:8px;margin-top:12px;display:flex}button.small,.plantpicker button.small{min-height:32px;padding:4px 10px;font-size:.85em}.dropzone{border:2px dashed var(--line);border-radius:var(--radius);text-align:center;color:var(--muted);cursor:pointer;background:#fff;padding:36px 16px}.dropzone.over{border-color:var(--brown);color:var(--brown);background:var(--cream)}.asset-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:12px;display:grid}.asset-card{flex-direction:column;gap:8px;display:flex}.asset-name{font-weight:600}.thumb{aspect-ratio:1;object-fit:contain;border-radius:var(--radius);border:1px solid var(--line);background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50%/16px 16px;width:100%}.thumb-empty{aspect-ratio:1;border:1px dashed var(--line);border-radius:var(--radius);justify-content:center;align-items:center;display:flex}.status-pill{background:var(--line);border-radius:999px;width:fit-content;padding:3px 8px;font-size:.75em;display:inline-block}.status-pill.status-approved{color:var(--green);background:#dcead1}.status-pill.status-error{color:var(--red);background:#f3d9d3}.status-pill.status-processing,.status-pill.status-pending{color:var(--brown-2);background:#f0e6d2}.plantpicker-pop{border:1px solid var(--line);border-radius:var(--radius);background:#fff;max-height:260px;padding:10px;overflow:auto}.row-gap{flex-wrap:wrap;gap:8px;display:flex}.row-gap select{min-height:40px}.modal-backdrop{z-index:50;background:#2b211873;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{width:100%;max-width:420px;max-height:84vh;overflow:auto}.editor{height:100%;display:flex}.editor-canvas{touch-action:none;background:#2e2b27;flex:1;min-width:0;position:relative;overflow:hidden}.editor-side{border-left:1px solid var(--line);background:var(--paper);flex-direction:column;flex-shrink:0;gap:10px;width:320px;padding:12px;display:flex;overflow:auto}@media (width<=820px){.editor{flex-direction:column}.editor-side{border-left:none;border-top:1px solid var(--line);width:100%;max-height:50vh}}.editor-toolbar{border-bottom:1px solid var(--line);z-index:1;background:#fff;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 14px;display:flex;position:relative}.editor-toolbar .spacer{flex:1}.photo-tabs{border-bottom:1px solid var(--line);z-index:1;background:#fff;align-items:center;gap:2px;padding:6px 10px 0;display:flex;position:relative;overflow-x:auto}.photo-tab{border:1px solid var(--line);color:var(--muted);cursor:pointer;min-height:unset;white-space:nowrap;background:#f3efe8;border-bottom:none;border-radius:6px 6px 0 0;align-items:center;gap:6px;padding:6px 10px;font-size:.85em;display:flex}.photo-tab.active{background:var(--paper);color:var(--ink);font-weight:600}.photo-tab-name{text-overflow:ellipsis;max-width:140px;overflow:hidden}.photo-tab-close{color:var(--muted);border-radius:3px;padding:1px 3px;font-size:.9em;line-height:1}.photo-tab-close:hover{color:var(--ink);background:#00000014}.photo-tab-add{color:var(--muted);background:0 0;border-style:dashed}.photo-tab-add:hover{color:var(--ink)}.library-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;display:grid}.library-grid img{aspect-ratio:1;object-fit:contain;border:1px solid var(--line);cursor:grab;background:#fff;border-radius:6px;width:100%}.plant-tally{gap:4px;margin:0;padding:0;font-size:.9em;list-style:none;display:grid}.plant-tally li{border-bottom:1px dotted var(--line);justify-content:space-between;gap:8px;padding:3px 0;display:flex}.zoom-hud{border:1px solid var(--line);border-radius:var(--radius);background:#fffdf8f2;align-items:center;gap:2px;padding:4px;display:flex;position:absolute;bottom:12px;right:12px;box-shadow:0 2px 8px #0000002e}.zoom-hud button.small{min-height:30px;padding:4px 8px}.zoom-hud .zoom-pct{font-variant-numeric:tabular-nums;min-width:52px}.zoom-hud-sep{background:var(--line);align-self:stretch;width:1px;margin:0 2px}.properties-card{padding:10px}.prop-grid{grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:6px 8px;font-size:.85em;display:grid}.prop-grid label{color:var(--muted)}.prop-grid input[type=number]{border:1px solid var(--line);background:#fff;border-radius:6px;width:100%;min-height:34px;padding:6px 8px}.opacity-row{align-items:center;gap:8px;margin-top:8px;font-size:.85em;display:flex}.opacity-row label{color:var(--muted);flex-shrink:0}.opacity-row input[type=range]{accent-color:var(--brown);flex:1}.opacity-pct{text-align:right;font-variant-numeric:tabular-nums;width:36px}.panel-tabs{margin-top:0}.panel-tabs button{flex:1;min-height:36px;padding:6px 8px;font-size:.88em}.layers-list{flex-direction:column;gap:4px;display:flex}.layer-row{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:6px;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;padding:6px 8px;display:grid}.layer-row.active{border-color:var(--brown);background:var(--cream)}.layer-thumb{object-fit:contain;border:1px solid var(--line);background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50%/10px 10px;border-radius:4px;width:32px;height:32px}.layer-row-label{flex-direction:column;min-width:0;font-size:.88em;display:flex}.layer-row-label div{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layer-row-actions{gap:2px;display:flex}.layer-row-actions button.small{min-height:26px;padding:2px 6px;font-size:.82em}
