:root{--g:#2e9d4f;--g2:#43a047;--dk:#1b5e20;--bg:#f2faef;--tx:#23402b}
*{box-sizing:border-box}body{margin:0;font-family:Nunito,'Segoe UI',sans-serif;color:var(--tx);background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%2343a047' fill-opacity='.06'%3E%3Cpath d='M20 30c8-12 26-12 34 0-8 12-26 12-34 0z' transform='rotate(-30 37 30)'/%3E%3Cpath d='M70 90c6-9 20-9 26 0-6 9-20 9-26 0z' transform='rotate(35 83 90)'/%3E%3Ccircle cx='95' cy='25' r='3'/%3E%3Ccircle cx='25' cy='95' r='2'/%3E%3C/g%3E%3C/svg%3E");min-height:100vh;overflow-x:hidden}
.top{position:relative;background:linear-gradient(120deg,#1b7a3c,#2e9d4f 55%,#5cb85c);color:#fff;padding:20px 28px;display:flex;align-items:center;gap:16px;overflow:hidden;border-radius:0 0 28px 28px;box-shadow:0 6px 20px #1b5e2033}
.vine{position:absolute;left:0;bottom:0;width:100%;height:60px;pointer-events:none}
.seedling{width:84px;height:84px;flex:none;position:relative;filter:drop-shadow(0 3px 4px #0003)}
.ttl{position:relative;flex:1}.ttl h1{margin:0;font-size:28px;font-weight:800}.ttl p{margin:4px 0 0;opacity:.92}
.hbtn{position:relative}button{font-family:inherit;cursor:pointer}
.ghost{background:#ffffff26;border:1.5px solid #ffffff80;color:#fff;padding:9px 14px;border-radius:12px;font-weight:700}.ghost.on{background:#fff;color:var(--dk)}
.bgdeco{position:fixed;z-index:-1;opacity:.8;pointer-events:none}.bgdeco.l{left:-20px;top:120px;width:160px}.bgdeco.r{right:-10px;bottom:20px;width:200px}
.wrap{display:grid;grid-template-columns:370px 1fr;gap:20px;padding:22px;max-width:1400px;margin:auto}
.card{background:#fffffff2;border-radius:20px;box-shadow:0 4px 16px #2e7d3214;padding:18px;border:1px solid #e3f2df;margin-bottom:16px}
.leftcol{align-self:start;min-width:0}
h3{margin:0 0 12px;color:#2e7d32;font-size:18px}label{display:block;font-size:14px;margin:9px 0 4px;font-weight:600}label small{font-weight:400;opacity:.7}
input,select,textarea{width:100%;padding:10px;border:1.5px solid #cfe5cb;border-radius:12px;font:inherit;background:#fbfffa;color:inherit}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--g2);box-shadow:0 0 0 3px #43a04722}
.row{display:flex;gap:10px}.row>div{flex:1;min-width:0}.row.g select{flex:1}
.seg{display:flex;gap:6px}.seg label{margin:0;flex:1}.seg input{display:none}.seg span{display:block;text-align:center;padding:9px;border:1.5px solid #cfe5cb;border-radius:12px;font-weight:600}.seg input:checked+span{background:var(--g2);color:#fff;border-color:var(--g2)}
.file input{display:none}.file span{display:block;padding:12px;border:2px dashed #a5d6a7;border-radius:12px;text-align:center;font-weight:600;color:#388e3c;background:#f4fbf2}
#prev img{max-width:100%;max-height:160px;border-radius:12px;margin-top:8px}
.btn{flex:1;margin-top:14px;background:linear-gradient(90deg,#43a047,#2e9d4f);color:#fff;border:0;padding:13px;border-radius:14px;font-weight:800;font-size:16px;box-shadow:0 4px 10px #2e9d4f40}.btn.sec{background:#eef5ec;color:var(--tx);box-shadow:none}
.mini{border:0;background:#e8f5e9;color:#2e7d32;border-radius:12px;padding:0 14px;font-size:20px;font-weight:800}.mini.w{font-size:13px;padding:8px 12px}
#msg{margin-top:8px;font-weight:700}.note{background:#fff8e1;border-radius:12px;padding:10px;font-size:14px;margin-bottom:6px}
form.locked{opacity:.55;pointer-events:none}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.s{border-radius:18px;padding:14px;color:#fff;position:relative;overflow:hidden;box-shadow:0 4px 12px #0001}.s b{font-size:26px;display:block;font-weight:800}.s small{display:block;opacity:.92;font-size:13px}
.s:after{content:"";position:absolute;right:-14px;bottom:-14px;width:70px;height:40px;background:#fff3;border-radius:0 100% 0 100%;transform:rotate(-20deg)}
.ch{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.ch h3{margin-bottom:8px}.tools{display:flex;gap:6px}
.legend span{display:inline-flex;align-items:center;gap:5px;margin-left:10px;font-size:13px;font-weight:600}.legend i{width:14px;height:4px;border-radius:2px;display:inline-block}
.chart svg{width:100%;height:auto;display:block}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid2 .card{margin-bottom:0}.grid2{margin-bottom:16px}
.gb{margin:10px 0}.gb .bar{height:22px;background:#eef5ec;border-radius:11px;overflow:hidden}.gb .bar div{height:100%;border-radius:11px;color:#fff;font-size:12px;font-weight:700;padding-left:8px;line-height:22px;min-width:34px}
.gallery{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}.gallery figure{margin:0;flex:none;width:120px;text-align:center;font-size:12px}.gallery img{width:120px;height:120px;object-fit:cover;border-radius:14px;cursor:zoom-in;border:3px solid #e8f5e9}.muted{color:#789;font-size:14px}
.tw{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{border-bottom:1px solid #e3eee3;padding:7px 6px;text-align:center;white-space:nowrap}th{background:#f1f8f1;font-weight:700}td.nt{white-space:normal;min-width:120px;text-align:left}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.tb{border:0;background:none;font-size:16px;padding:2px 4px}td img{width:36px;height:36px;object-fit:cover;border-radius:8px;cursor:zoom-in}
.ed{display:none}body.edit .ed{display:table-cell}
#lb{position:fixed;inset:0;background:#000c;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9}#lb[hidden]{display:none}#lb img{max-width:92vw;max-height:80vh;border-radius:12px}#lb p{color:#fff}
.empty{text-align:center;padding:30px}footer{text-align:center;padding:20px;color:#5a7a5f;font-size:13px}
@media(max-width:900px){.wrap{grid-template-columns:1fr;padding:12px;gap:12px}.form{position:static}.grid2{grid-template-columns:1fr}.top{padding:14px;flex-wrap:wrap;border-radius:0 0 20px 20px}.seedling{width:60px;height:60px}.ttl h1{font-size:21px}.ttl p{font-size:13px}.hbtn{width:100%}.ghost{width:100%}.bgdeco{display:none}.s b{font-size:22px}.stats{grid-template-columns:1fr 1fr}}
@media print{.form,.hbtn,.tools,.ed,.bgdeco,#lb{display:none!important}.wrap{display:block;padding:0}.top{border-radius:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.s{-webkit-print-color-adjust:exact;print-color-adjust:exact}.card{box-shadow:none;break-inside:avoid}body{background:#fff}}
.right,.form{min-width:0}input,select,textarea{min-width:0}
@media(max-width:900px){.wrap{grid-template-columns:minmax(0,1fr)}}
.seeds{flex-wrap:wrap}.seeds label{min-width:40px}
.tabs{display:flex;gap:6px;margin-bottom:12px}.tab{flex:1;border:1.5px solid #cfe5cb;background:#f4fbf2;border-radius:12px;padding:9px;font-weight:700;color:#2e7d32}.tab.on{background:#2e9d4f;color:#fff;border-color:#2e9d4f}
.gt td,.gt th{padding:4px 3px}.gt input[type=number]{padding:7px;text-align:center}.gt input[type=checkbox]{width:22px;height:22px;accent-color:#2e9d4f}
.proto ul{padding:0;margin:0;list-style:none}.proto li{margin:7px 0;font-size:14px;display:flex;gap:8px;align-items:flex-start}.proto p{font-size:14px;margin:8px 0}.rule{background:#eef8ea;border-radius:12px;padding:10px}
.tg{display:inline-flex;flex:none;width:24px;height:24px;border-radius:8px;color:#fff;align-items:center;justify-content:center;font-size:13px}
.dayline{display:flex;align-items:center;gap:10px;margin-bottom:10px}.dayline label{margin:0}.dayline select{width:auto}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:12px 16px}.legend span{margin:0}
.s{font-size:14px}.s b{font-size:22px}.cmpt td{text-align:left}.cmpt td.n{text-align:right;font-weight:800}
form.locked{opacity:.55;pointer-events:none}
