:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#26332c;background:#f2f5f1;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:76px;background:#fff;border-bottom:1px solid #dce5dd;display:flex;align-items:center;gap:18px;padding:12px 20px;flex-wrap:wrap}.brand{display:flex;align-items:center;min-width:145px;width:155px;flex:0 0 155px}.brand-logo{display:block;width:100%;height:82px;object-fit:contain;object-position:left center}.project-name{border:0;border-bottom:1px solid #dce5dd;padding:8px;max-width:190px;font-weight:650;color:#26332c}.actions{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}button{border:0;border-radius:8px;padding:9px 12px;background:#edf2ee;color:#315b45;font-size:11px;font-weight:650;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#315b45;color:#fff}.danger{background:#fff0ed;color:#a33d2c}.wide{width:100%;margin-top:9px}.layout{flex:1;min-height:0;display:grid;grid-template-columns:220px minmax(300px,1fr) 235px;gap:12px;padding:12px}.panel{min-width:0;background:#fff;border:1px solid #dce5dd;border-radius:11px}.tools,.properties{padding:15px}.tools section{padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #edf1ed}.tools section:last-child{border:0;margin:0}.panel h2{font-size:12px;color:#315b45;margin:0 0 12px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tool-grid button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;font-size:19px}.tool-grid small{font-size:10px}.tool-grid button.active{background:#dcebe0;outline:1px solid #9bbba3}.tool-extra,.field{margin-top:12px}.field label,.properties label{display:block;font-size:10px;font-weight:650;color:#718078;margin:0 0 5px}.field input,.properties input,.properties select{width:100%;border:1px solid #dce5dd;border-radius:7px;padding:8px;font-size:12px;background:#fff;color:#26332c}.age{font-size:27px;font-weight:750;color:#315b45}.age small{font-size:12px;font-weight:500}.slider{width:100%;accent-color:#477b53;margin:12px 0 5px}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:#7a887f}.hint{font-size:10px;line-height:1.5;color:#718078}.stats p{display:flex;justify-content:space-between;font-size:11px;border-bottom:1px solid #f0f3f0;padding:5px 0}.stats p b{color:#315b45}.reset{padding:6px 0;background:transparent;color:#a33d2c}.canvas{display:flex;flex-direction:column;overflow:hidden}.canvas-head{padding:12px 14px;border-bottom:1px solid #edf1ed;display:flex;justify-content:space-between;align-items:center}.canvas-head b{display:block;color:#315b45;font-size:12px}.canvas-head small{display:block;color:#7a887f;font-size:10px;margin-top:3px}.canvas-head>span{font-size:10px;background:#edf4ee;color:#315b45;border-radius:20px;padding:6px 9px}.canvas-host{position:relative;flex:1;min-height:360px;overflow:hidden;background-color:#fafbf9;background-image:linear-gradient(#e9eee9 1px,transparent 1px),linear-gradient(90deg,#e9eee9 1px,transparent 1px);background-size:25px 25px}.canvas-host canvas{display:block}.empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;pointer-events:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9bad9f;text-align:center;font-size:42px}.empty b{font-size:14px;color:#52655a}.empty small{font-size:11px}.canvas-foot{padding:8px 12px;border-top:1px solid #edf1ed;display:flex;justify-content:space-between;gap:8px;color:#315b45;font-size:10px}.canvas-foot span{max-width:78%}.canvas-foot small{color:#78867e}.properties .preview{height:58px;background:#f0f5f0;color:#477b53;border-radius:8px;display:grid;place-items:center;font-size:34px;margin-bottom:14px}.summary{margin:14px 0;padding:10px;background:#f0f5f0;border-radius:8px;display:flex;justify-content:space-between;gap:8px;font-size:10px}.summary b{color:#315b45;white-space:nowrap}.empty-props{min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#7a887f}.empty-props span{font-size:30px}.empty-props b{font-size:12px;color:#52655a}.empty-props p{font-size:10px;line-height:1.5}.legend{border-top:1px solid #edf1ed;margin-top:20px;padding-top:13px}.legend h3{font-size:11px;color:#315b45;margin:0 0 10px}.legend p{display:flex;align-items:center;gap:8px;font-size:10px}.legend i{width:14px;height:14px;border-radius:50%;display:inline-block}.current-ring{border:1.5px solid #b58a45;background:#e7c98733}.adult-ring{border:1.5px dashed #57936a}.legend small{font-size:9px;color:#89958e}footer{text-align:center;padding:8px 12px;color:#819087;font-size:10px}@media (max-width:1050px){.layout{grid-template-columns:190px minmax(280px,1fr)}.properties{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.properties h2,.properties .legend{grid-column:1/-1}.properties .legend{margin-top:0}}@media (max-width:700px){.topbar{gap:9px;padding:10px}.brand{flex:1 1 120px;min-width:120px;width:130px}.brand-logo{height:68px}.project-name{order:3;width:100%;max-width:none}.actions{order:4;width:100%;margin:0}.actions button{flex:1;padding:9px 5px;font-size:10px}.layout{display:flex;flex-direction:column;padding:7px;gap:8px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:11px}.tools section{padding:0;margin:0;border:0}.tools .stats{display:none}.canvas{order:2}.canvas-host{min-height:430px}.properties{order:3;display:block;padding:13px}.canvas-foot{font-size:9px}.canvas-foot span{max-width:72%}}.zoom-controls{display:flex;align-items:center;gap:5px;margin-left:auto;margin-right:8px}.zoom-controls button{min-width:28px;padding:6px 9px;font-size:12px}.zoom-controls span{min-width:42px;text-align:center;font-size:10px;color:#52655a;font-variant-numeric:tabular-nums}.canvas-head>span{white-space:nowrap}.canvas-host{touch-action:none}.canvas-host canvas{cursor:grab}.canvas-host:active canvas{cursor:grabbing}@media (max-width:700px){.canvas-head{flex-wrap:wrap;gap:7px}.zoom-controls{margin-left:auto;margin-right:0}.canvas-head>span{display:none}}.color-field{display:flex;align-items:center;gap:9px;border:1px solid #dce5dd;border-radius:7px;padding:5px 8px}.color-field input[type=color]{width:38px;height:30px;padding:2px;border:0;background:transparent;cursor:pointer}.color-field span{font-size:11px;color:#718078;font-variant-numeric:tabular-nums;text-transform:uppercase}.plant-warning{margin:12px 0;padding:10px;border:1px solid #e7b7a8;background:#fff3ef;border-radius:8px;color:#963f2e;font-size:10px;line-height:1.5}.plant-ok{margin:12px 0;padding:10px;border:1px solid #b9d5bf;background:#f0f7f1;border-radius:8px;color:#315b45;font-size:10px;line-height:1.5}.expired-ring{border:1.5px solid #929a94;background:#aeb5b055}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#16231b6b;display:grid;place-items:center;padding:18px}.dialog{width:min(420px,100%);background:#fff;border:1px solid #dce5dd;border-radius:14px;padding:20px;box-shadow:0 18px 60px #14281933}.dialog h2{margin:0 0 8px;color:#315b45;font-size:16px}.dialog p{font-size:12px;line-height:1.5;color:#718078;margin:0 0 16px}.dialog label{display:block;font-size:11px;font-weight:650;color:#52655a;margin-bottom:6px}.dialog input{width:100%;border:1px solid #cbd8ce;border-radius:8px;padding:10px;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
