@charset "UTF-8";
:root{--bg:#f4f5ee;--ink:#263e31;--muted:#778176;--line:#e0e5da;--green:#42684e;--light:#e4ebdb;--white:#fffefa;--orange:#a87536}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}.shell{max-width:1232px;margin:auto;padding:0 40px}header{height:102px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:19px;letter-spacing:1px}.brand-icon{font-size:36px;color:var(--green)}.brand small{display:block;font-size:9px;letter-spacing:2.2px;margin-top:4px;color:var(--muted)}.header-right{display:flex;gap:18px;align-items:center}.live{color:var(--muted);font-size:12px}.live:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:100%;background:#a4aaa0}.live.online{color:var(--green)}.live.online:before{background:#6d9560;box-shadow:0 0 0 4px #e3ebdd}.device-tag{border:1px solid #d6dfd0;padding:7px 10px;border-radius:6px;color:var(--muted);font-size:11px;letter-spacing:.6px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:46px 0 26px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:600}h1{font-family:"Songti SC","Noto Serif SC",Georgia,serif;font-size:39px;line-height:1.48;font-weight:500;letter-spacing:2px;margin:15px 0}h1+p{color:var(--muted);font-size:12px;letter-spacing:1px;margin:15px 0}.plant-card{width:355px;height:258px;background:#eaf0e3;border:1px solid #e1e8d8;border-radius:140px 140px 20px 20px;position:relative;margin-right:30px}.plant-card svg{height:233px;width:100%}.plant-note{display:block;text-align:center;font-size:10px;color:#77896e;letter-spacing:1px;margin-top:-9px}.plant-note i{display:inline-block;border:1px solid #b4c4a7;border-radius:10px;width:5px;height:5px;margin-right:6px}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:18px 0}.device-select{display:flex;align-items:center;gap:9px}.section-dot{width:7px;height:7px;background:var(--green);border-radius:3px}select{font:inherit;border:0;background:transparent;color:var(--ink);font-weight:600;max-width:240px;cursor:pointer}#sensorLabel{font-size:10px;color:var(--muted);border-left:1px solid #cdd5c7;padding-left:10px}.update{font-size:11px;color:var(--muted)}.update b{font-weight:500;color:#52664f;margin-left:7px}.banner{background:#fff3dc;border:1px solid #eedab7;border-radius:10px;padding:12px 16px;color:#8d6b36;font-size:12px;margin-bottom:15px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{position:relative;overflow:hidden;min-height:164px;padding:22px;background:var(--white);border:1px solid var(--line);border-radius:15px}.metric.primary{background:#36553e;color:#f5f7ee;border-color:#36553e}.metric-label{font-size:12px;display:flex;justify-content:space-between;gap:8px;color:#657460}.metric-label span{font-size:10px;opacity:.65}.primary .metric-label{color:#d4decb}.metric strong{display:block;font-size:35px;letter-spacing:-1.5px;font-weight:500;margin:17px 0 8px;font-variant-numeric:tabular-nums}.metric>div:not(.metric-label){font-size:10px;color:#8a9583}.primary>div:not(.metric-label){color:#c4d2b8}.metric small{font-size:9px;color:#9aA08f}.raw-track{height:3px;background:#e5e9dd;width:90%;border-radius:4px;margin-bottom:7px}.raw-track i{display:block;width:0;height:100%;background:#a2b385;border-radius:4px;transition:width .4s}.metric-decoration{position:absolute;right:-8px;bottom:-17px;font-size:100px;color:#b4c59712;transform:rotate(30deg)}.chart-card,.records-card,.about-card{border:1px solid var(--line);border-radius:17px;background:var(--white)}.chart-card{padding:26px 26px 16px;margin-top:24px}.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.chart-heading .eyebrow{font-size:8px;letter-spacing:1.5px}h2{font-size:17px;font-weight:600;margin:8px 0}.date-tools{display:flex;align-items:center;gap:6px}button,input{font:inherit}button{border:1px solid var(--line);background:#fffefa;color:var(--ink);border-radius:7px;cursor:pointer;padding:8px 11px;transition:background .15s}button:hover{background:#eaf0e1}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #799366;outline-offset:3px}input[type=date]{background:#f8f9f3;border:1px solid var(--line);border-radius:7px;padding:7px;color:var(--ink);font-size:12px;width:137px;min-width:0}.date-tools button{font-size:11px}.chart-controls{display:flex;justify-content:space-between;align-items:center;margin:22px 0 0}.tabs{display:flex;background:#f1f3eb;border-radius:8px;padding:3px;gap:1px}.tabs button{border:0;background:none;font-size:11px;padding:7px 13px;color:#8c9585}.tabs button.active{background:var(--white);box-shadow:0 1px 4px #263e3110;color:#40583c}.export{font-size:11px;color:#829074}.chart-wrap{position:relative;height:310px}#chart{width:100%;height:100%}.empty{position:absolute;inset:30px 0 0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--white);color:#87917e;pointer-events:none}.empty[hidden]{display:none}.empty span{font-size:55px;color:#c6d1b9;line-height:1}.empty b{font-size:14px;font-weight:500;margin:14px 0 0}.empty p{font-size:11px}.chart-foot{border-top:1px solid #edf0e6;padding-top:14px;display:flex;justify-content:space-between;color:#9aa28f;font-size:10px}.legend-dot{display:inline-block;width:6px;height:6px;background:#7a9664;border-radius:100%;margin-right:7px}.bottom-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:20px;margin:22px 0 28px}.records-card{padding:21px 24px}.card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.card-heading h2{font-size:15px}.card-heading>span{font-size:10px;color:#9ca48f}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:11px;font-variant-numeric:tabular-nums}th{font-weight:500;font-size:10px;color:#9aa28e;padding:12px 7px;border-bottom:1px solid #e8edde}td{padding:11px 7px;border-bottom:1px solid #f0f2eb;white-space:nowrap}tbody tr:last-child td{border:0}.badge{display:inline-block;font-size:9px;border-radius:4px;padding:4px 6px;background:#edf2e4;color:#668056}.badge.warn{background:#fff1d8;color:#a0793a}.table-empty{text-align:center;height:150px;color:#9ba48f}.about-card{background:#edf1e5;padding:27px}.about-card h2{font-size:20px;margin:10px 0 22px}.device-row{display:flex;justify-content:space-between;font-size:11px;margin:13px 0;color:#89927f}.device-row b{color:#526549;font-size:11px;font-weight:500}.hint{font-size:10px;line-height:1.8;color:#8e9880;border-top:1px solid #dbe3d1;padding-top:15px;margin-top:20px}details{font-size:11px;line-height:1.9;color:#6f8061}summary{cursor:pointer}details p{overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;padding:22px 0 28px;border-top:1px solid var(--line);font-size:9px;letter-spacing:.7px;color:#9ba38e}footer i{font-style:normal;color:#739064;padding:0 8px}button:disabled{opacity:.4;cursor:default}@media(min-width:1400px){.intro{padding-top:52px}}@media(max-width:850px){.shell{padding:0 25px}.intro{padding-top:35px}.plant-card{width:280px;height:231px;margin-right:0}.plant-card svg{height:210px}h1{font-size:31px}.metric{padding:17px;min-height:152px}.metric strong{font-size:30px}.bottom-grid{grid-template-columns:1.4fr 1fr;gap:14px}.chart-heading{align-items:flex-start}.date-tools{flex-wrap:wrap;justify-content:flex-end}.chart-card{padding:22px 19px 15px}}@media(max-width:600px){.shell{padding:0 16px}header{height:79px}.brand{font-size:16px;gap:7px}.brand-icon{font-size:29px}.brand small{font-size:7px;letter-spacing:1.7px}.device-tag{display:none}.header-right{gap:0}.live{font-size:10px}.intro{padding:29px 0 17px;gap:0}.intro>.intro-text{min-width:0}.intro .eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:25px;letter-spacing:0;line-height:1.55;margin:12px 0}h1+p{font-size:9px;letter-spacing:0;line-height:1.8;max-width:200px}.plant-card{width:137px;height:163px;border-radius:75px 75px 14px 14px;flex-shrink:0;margin-left:-14px}.plant-card svg{width:150px;height:150px;margin-left:-7px}.plant-note{font-size:7px;letter-spacing:0;margin-top:-13px}.plant-note i{display:none}.toolbar{margin:14px 0}.update{font-size:9px}.update b{margin-left:3px}.device-select{gap:5px}select{font-size:11px;max-width:151px}#sensorLabel{font-size:8px;padding-left:6px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:144px;padding:17px}.metric-label{font-size:11px}.metric strong{font-size:32px;margin-top:16px}.metric>div:not(.metric-label){font-size:9px}.chart-card{margin-top:16px;padding:19px 13px 12px}.chart-heading{display:block}.chart-heading .eyebrow{font-size:7px;letter-spacing:1px}h2{font-size:16px}.date-tools{justify-content:flex-start;gap:5px;margin-top:15px}.date-tools button{padding:7px 11px}input[type=date]{font-size:11px;width:139px}.chart-controls{margin-top:15px;gap:5px}.tabs button{font-size:10px;padding:7px 9px}.export{font-size:10px;white-space:nowrap}.chart-wrap{height:260px}.chart-foot{font-size:8px}.bottom-grid{grid-template-columns:1fr;gap:15px;margin-top:16px}.records-card{padding:16px 14px}.about-card{padding:23px}.device-row{margin:12px 0}.about-card h2{margin-bottom:16px}footer{font-size:8px;gap:8px;letter-spacing:0;padding-top:18px}.banner{font-size:11px;line-height:1.7}}@media(max-width:359px){h1{font-size:22px}.plant-card{width:118px}.plant-card svg{width:135px}.date-tools{gap:4px}.date-tools button{padding:7px 9px}.export{font-size:9px}.tabs button{padding:7px 7px}.metric-label span{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.preview-note{font-size:10px;color:#7d8c72;border-bottom:1px solid #e2e7db;padding:10px 0;line-height:1.7}@media(max-width:359px){h1{font-size:20px}}

.manage-card{margin-top:24px;padding:24px;background:#fffefa;border:1px solid #e1e7d8;border-radius:20px}.manage-card summary{cursor:pointer;font-size:14px;color:#45623e}.manage-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:20px}.manage-fields label{font-size:12px;color:#697961;min-width:0}.manage-fields input{display:block;width:100%;min-width:0;margin-top:8px;padding:11px;border:1px solid #dce3d2;border-radius:8px;background:#f8faf4;color:#345039;font:inherit}.manage-actions{display:flex;gap:9px;flex-wrap:wrap}.manage-actions button,.trash-row button{cursor:pointer;border:1px solid #d7e0cc;background:#edf2e7;color:#3f603d;border-radius:8px;padding:10px 13px;font:inherit;font-size:12px}#clearConfirm{background:#9b5039;color:white;border-color:#9b5039}#clearConfirm[hidden]{display:none}#clearResult{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.trash-row{padding:12px 0;border-top:1px solid #e6ebdf;display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:11px}.trash-row span{overflow-wrap:anywhere}.manage-card button:disabled{opacity:.5;cursor:wait}@media(max-width:650px){.manage-fields{grid-template-columns:1fr}.manage-card{padding:18px}.manage-fields input{font-size:16px}.trash-row{align-items:flex-start}}

/* v1.4 interactive history */
[hidden]{display:none!important}.follow{display:flex;align-items:center;gap:5px;font-size:11px;color:#71836a;white-space:nowrap}input[type=checkbox]{accent-color:#64875c}.trend-tools{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;margin:18px 0 12px}.trend-tools .tabs{flex-wrap:wrap}.trend-options,.trend-caption{display:flex;justify-content:space-between;align-items:center;gap:10px}.trend-options label{font-size:11px;color:#71836a;margin-right:14px;white-space:nowrap}.zoom-tools{display:flex;gap:5px}.zoom-tools button{padding:5px 10px;font-size:11px}.trend-caption{font-size:11px;color:#87927e;margin:15px 0}.trend-panel{border-top:1px solid #e7ecdf;padding-top:14px;margin-top:12px}.trend-title{display:flex;align-items:center;justify-content:space-between}.trend-title h3{font-size:14px;margin:0}.trend-title small{font-size:11px;font-weight:400;color:#93a085;margin-left:5px}.trend-title>span{font-size:10px;color:#93a085}.trend-stats{font-size:11px;color:#71836a;margin:10px 0;font-variant-numeric:tabular-nums}.trend-plot{position:relative}.history-chart{height:310px;width:100%}.trend-empty{position:absolute;inset:40px 0 60px;display:grid;place-items:center;background:#fffefa;color:#8e9a82;font-size:12px;pointer-events:none}.readout{font-size:10px;line-height:1.8;color:#87957c;min-height:18px}.dates-list{margin-top:15px}#recordedDates{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}#recordedDates button{font-size:11px;padding:6px 9px}.daily-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.daily-controls label{font-size:11px;color:#849378;display:flex;gap:7px;align-items:center;min-width:0}.daily-metrics{width:max-content;max-width:100%}.daily-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.daily-tiles>div{padding:15px;background:#f2f5ec;border-radius:10px}.daily-tiles span{display:block;color:#8b977f;font-size:10px;margin-bottom:8px}.daily-tiles strong{font-size:20px;font-weight:500;color:#526c48;font-variant-numeric:tabular-nums}.daily-tiles small{font-size:11px;color:#849378}#dailyChart{height:290px;width:100%;margin-top:16px}#dailyWarning{color:#a0793a}button.active{color:#40583c;background:#e8efdf}.tabs button.active{background:#fffefa}.chart-card>.date-tools{justify-content:flex-start;margin-top:16px}@media(max-width:600px){.header-right{gap:10px}.follow{font-size:10px}.trend-tools{gap:10px}.range-tabs,.metric-tabs{width:100%;justify-content:space-between}.trend-tools .tabs button{padding:8px 7px;min-height:34px}.trend-options{flex-wrap:wrap}.trend-options label{margin-right:10px;font-size:10px}.trend-caption{font-size:9px;gap:8px}.history-chart{height:280px}.trend-stats{font-size:10px;line-height:1.8}.daily-controls{gap:10px}.daily-controls label{flex:1}.daily-controls input[type=date]{width:100%;font-size:11px}.daily-tiles{gap:6px}.daily-tiles>div{padding:12px 8px}.daily-tiles strong{font-size:16px}.daily-metrics{width:100%}.daily-metrics button{flex:1}.trend-title h3{font-size:13px}.chart-foot{gap:8px;line-height:1.7}.readout{font-size:9px}#dailyChart{height:260px}}

@media(max-width:600px){.chart-card>.date-tools{flex-wrap:nowrap;gap:4px}.chart-card>.date-tools input{width:120px;min-width:85px;flex:1}.chart-card>.date-tools button{padding:7px 8px;font-size:10px}.trend-options label{cursor:pointer}}
