/* XiBai: a quiet garden workspace, with account and device ownership. */
:root{--ink:#18362d;--sage:#668373;--leaf:#237752;--paper:#f6f8f3}
[hidden]{display:none!important}
header{height:auto;position:relative;min-height:72px;box-sizing:border-box}
nav{height:auto;min-height:54px;top:0;box-sizing:border-box}
body{background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif}
header{max-width:1240px;margin:auto;padding:26px 28px;background:transparent;gap:16px}.brand b{font-size:20px;letter-spacing:.4px}.brand small{color:#859487;letter-spacing:1px}.logo{border-radius:16px;background:#234b3a;box-shadow:0 6px 20px #284c3920}
.header-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.header-tools select{max-width:235px;padding:10px 14px;border:1px solid #d9e2d7;border-radius:12px;background:#fff;color:#244537}.account-chip{display:flex;align-items:center;gap:9px;color:#687c6e;font-size:12px}.account-chip button{border:0;background:none;color:#75867c;padding:4px;cursor:pointer}
nav{max-width:1184px;margin:0 auto 22px;background:#e8eee5;padding:6px;border-radius:16px;display:flex;border:1px solid #e0e8dc;gap:3px;overflow:auto}nav button{flex:1;white-space:nowrap;border-radius:11px;padding:12px 15px}nav button.active{background:#fff;color:#22573d;box-shadow:0 3px 9px #273f2910}nav button[hidden]{display:none}
main{max-width:1240px;padding:0 28px}.hero{position:relative;overflow:hidden;min-height:224px;background:#244b39;border-radius:24px;padding:38px 40px;box-shadow:0 14px 32px #28402c0b;color:white}.hero h1{font-size:38px;font-weight:600;margin:14px 0}.hero small{color:#c4d5bc;letter-spacing:2px}.hero p{color:#c8d8c5;max-width:460px;line-height:1.8}.hero .plant-emoji{background:#ffffff0b;width:170px;height:170px;border:1px solid #ffffff16;border-radius:50%;font-size:90px;z-index:1}.hero:after{content:'';position:absolute;width:420px;height:420px;border:1px solid #a7bf9930;border-radius:50%;right:-100px;top:-160px}.hero-kicker{display:flex;align-items:center;gap:9px}.hero-kicker i{width:7px;height:7px;border-radius:50%;background:#cce497}.hero-bottom{display:flex;gap:10px;margin-top:22px}.hero-bottom span{background:#ffffff10;border:1px solid #ffffff13;padding:6px 12px;border-radius:8px;font-size:11px;color:#d8e4ce}
.overview-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 2px 15px}.overview-heading h2{font-size:18px;margin:0}.overview-heading small{font-size:11px;color:#859080}.metrics{gap:16px}.metrics article{border:1px solid #e1e8dc;box-shadow:0 4px 18px #273b2003;border-radius:18px;padding:24px 22px;align-items:flex-start}.metrics article b{font-size:30px;font-weight:600;letter-spacing:-1px}.metrics article small{font-size:12px;color:#758378}.metrics article em{font-size:11px}.ico{width:40px;height:40px;border-radius:13px;font-size:14px}.freshness{background:#fff;border:1px solid #e3e9de;border-radius:13px;margin-top:16px;padding:13px 18px}.freshness b{font-size:12px}.freshness small{font-size:11px}.panel{border:1px solid #e0e7da;border-radius:19px;box-shadow:none}.panel-head h2{font-size:19px}.cols{margin-top:20px;gap:20px}.ai{background:#eef3e8}.ai-button{border-radius:11px}.quick-grid button{border-radius:13px;background:#f6f8f2}.quick-grid button:hover{background:#e7eedf}.firmware-notice{max-width:1184px;margin:0 auto 16px;border-radius:12px}
.account-panel h2{margin-top:0}.binding-intro{display:flex;justify-content:space-between;gap:20px;align-items:center}.bind-form{display:flex;align-items:center;gap:10px}.bind-form input{width:160px;letter-spacing:3px;padding:13px;border:1px solid #d9e1d4;border-radius:10px;font-size:17px}.bound-device{display:flex;gap:17px;align-items:center;padding:20px 0;border-top:1px solid #e6ebdf}.device-mark{width:48px;height:48px;display:grid;place-items:center;background:#e9f0e3;color:#315b3e;border-radius:14px;font-size:21px}.bound-device h3{margin:0 0 8px;font-size:16px}.bound-device p{margin:0 0 7px;color:#6e7f72;font-size:12px}.bound-device small{color:#8c988b;font-size:11px}.device-actions{margin-left:auto;display:flex;gap:10px}.device-actions button,.admin-row button{padding:8px 12px;border:1px solid #d9e2d3;border-radius:9px;background:#fff;color:#56785d;cursor:pointer}.live{color:#258359}.muted{color:#97a190;font-size:12px}.empty-device{text-align:center;padding:40px 10px;color:#7b8878}.empty-device>span{font-size:40px}.empty-device h3{color:#36553f}.empty-device p{font-size:13px}
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.admin-stats article{background:#fff;border:1px solid #dce4d5;border-radius:16px;padding:22px}.admin-stats small{display:block;color:#7a8975;margin-bottom:10px}.admin-stats b{font-size:30px}.admin-row{display:flex;align-items:center;gap:16px;justify-content:space-between;border-top:1px solid #e3eadd;padding:17px 0;font-size:13px}.admin-row small{display:block;margin-top:6px;color:#8a9782}.admin-row>div:last-child{display:flex;gap:8px}
.auth-screen{display:none;min-height:100vh;padding:40px;box-sizing:border-box;background:#f5f7f0;align-items:center;justify-content:center}.auth-locked>header,.auth-locked>nav,.auth-locked>main,.auth-locked>footer,.auth-locked>.firmware-notice{display:none}.auth-locked .auth-screen{display:flex}.auth-shell{display:grid;grid-template-columns:1.1fr 1fr;max-width:920px;width:100%;background:#fff;border-radius:26px;overflow:hidden;border:1px solid #e2e8db;box-shadow:0 30px 80px #2842220b}.auth-art{position:relative;background:#264c39;padding:52px 42px;color:#fff;overflow:hidden}.auth-art:after{content:'';position:absolute;width:270px;height:270px;border:1px solid #a5c39440;border-radius:50%;right:-80px;bottom:-90px}.auth-art .auth-brand{font-size:27px;letter-spacing:2px}.auth-art h1{font-size:30px;line-height:1.65;margin-top:38px;font-weight:500}.auth-art p{color:#c9d8bd;font-size:13px;line-height:1.9}.auth-leaf{width:170px;display:block;margin:28px auto 0;opacity:.95}.auth-form{padding:52px 44px;display:flex;flex-direction:column;justify-content:center}.auth-form small{color:#8a9980;font-size:11px;letter-spacing:2px}.auth-form h2{font-size:24px;margin:14px 0 28px}.auth-form label{font-size:12px;color:#61745b;margin:0 0 8px}.auth-form input{box-sizing:border-box;width:100%;border:1px solid #dde5d5;background:#fafbf7;padding:14px;border-radius:11px;font-size:15px;margin-bottom:21px}.auth-form button.primary{width:100%;margin-top:5px;padding:14px}.auth-switch{border:0;background:none;color:#799165;padding:22px 0 0;font-size:12px;cursor:pointer}.auth-error{min-height:18px;color:#b15b45;font-size:12px;line-height:1.6}.auth-tip{font-size:11px;color:#9ba691;line-height:1.8;margin-top:23px}footer{color:#9aa48f;font-size:11px;margin-top:30px}
@media(max-width:700px){header{padding:18px;align-items:flex-start;flex-direction:column}.brand b{font-size:17px}.header-tools{width:100%;justify-content:space-between;gap:9px}.header-tools select{max-width:220px;font-size:11px}.online{font-size:11px}.account-chip{font-size:11px}nav{margin:0 16px 18px;justify-content:flex-start}nav button{flex:0 0 auto;padding:10px 14px;font-size:12px}main{padding:0 16px}.hero{padding:26px 23px;min-height:180px;border-radius:20px}.hero h1{font-size:30px}.hero .plant-emoji{width:94px;height:94px;font-size:54px;position:absolute;right:17px;top:23px}.hero p{max-width:220px;font-size:12px}.hero small{font-size:10px}.hero-bottom{margin-top:18px}.hero-bottom span{font-size:10px}.metrics{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.metrics article{position:relative;display:block;padding:18px 14px;gap:10px}.metrics article b{font-size:22px;margin:15px 0 9px}.ico{width:30px;height:30px;font-size:12px;position:absolute;right:13px;top:17px}.metrics article small{font-size:10px}.overview-heading small{font-size:10px}.freshness{padding:12px}.freshness b{font-size:10px}.freshness small{font-size:10px}.binding-intro{flex-direction:column;align-items:flex-start}.bind-form{width:100%}.bind-form input{flex:1;width:0;min-width:0}.device-actions{flex-direction:column}.bound-device{gap:10px}.bound-device h3{font-size:14px}.device-mark{width:35px;height:35px;flex-shrink:0}.admin-row{flex-wrap:wrap;font-size:12px}.admin-stats{gap:10px}.admin-stats article{padding:15px}.admin-stats small{font-size:10px}.auth-screen{padding:20px}.auth-shell{display:block;max-width:440px}.auth-art{padding:25px 28px}.auth-art h1{font-size:22px;margin:13px 0 0}.auth-art p,.auth-leaf{display:none}.auth-art .auth-brand{font-size:23px}.auth-form{padding:30px 28px}.auth-form h2{font-size:21px}.firmware-notice{margin:0 16px 14px} .brand small{letter-spacing:0}}
