/* GREEN CLUB AEROMODELISMO · Premium dark responsive · backend/API unchanged */
:root{color-scheme:dark;--bg:#080f11;--aside:#081012;--card:#101b1e;--card2:#111d20;--stroke:rgba(206,242,225,.125);--text:#f4f9f7;--muted:#91a7a7;--muted2:#667c7e;--green:#66f32d;--green2:#30d76b;--yellow:#ffcd45;--bad:#ff8885;--radius:19px;--glass:linear-gradient(137deg,rgba(24,39,41,.93),rgba(10,19,21,.92));--shadow:0 20px 52px #0004}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 76% 0%,#14261d 0%,transparent 39%),#070e10;color:var(--text);font:14px/1.5 Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;transition:.17s ease}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}button:disabled,select:disabled{opacity:.5;cursor:not-allowed}h1,h2,h3,p{margin-top:0}.hidden{display:none!important}.icon-sprite{display:none}.ico{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;fill:none;flex-shrink:0}.site-shell{display:flex;min-height:100vh}
.sidebar{width:236px;flex:0 0 236px;position:sticky;top:0;height:100vh;background:linear-gradient(175deg,#0b1717 0%,#071112 65%,#062207 100%);border-right:1px solid rgba(120,223,152,.16);padding:38px 19px 26px;display:flex;flex-direction:column;overflow:hidden}.sidebar:after{content:"";position:absolute;left:-110px;bottom:-205px;width:350px;height:350px;border-radius:50%;background:#4aff19;filter:blur(135px);opacity:.19;pointer-events:none}.brand{display:flex;align-items:center;gap:9px;padding:5px 3px;white-space:nowrap;position:relative;z-index:1}.brand-plane{display:grid;place-items:center;color:#f1fff2;width:37px;height:35px;background:#152620;border:1px solid #294638;border-radius:11px;transform:rotate(-14deg)}.brand-plane .ico{width:27px;height:27px;fill:#f7fff9;stroke:none}.brand-name{display:flex;align-items:baseline;line-height:1;font-size:24px;font-weight:850;letter-spacing:-1.2px;font-style:italic}.brand-name em{color:var(--green);font-style:italic}.brand-name span{color:#fff}.brand-sub{font-weight:650;letter-spacing:2.2px;font-size:8px;color:#ccd9d5;text-align:center;margin-top:6px}.menu-label{font-size:10px;color:#657c78;letter-spacing:1.8px;font-weight:750;margin:62px 9px 15px}.side-menu{display:flex;flex-direction:column;gap:7px}.nav{border:1px solid transparent;background:transparent;color:#a3b7b4;display:flex;align-items:center;gap:15px;text-align:left;padding:13px 15px;width:100%;font-size:13px;font-weight:600;border-radius:13px}.nav:hover{background:rgba(160,250,174,.08);color:white}.nav.active{background:linear-gradient(95deg,rgba(38,166,17,.44),rgba(12,103,41,.25));color:#f5fff4;border-color:rgba(105,243,47,.37);box-shadow:inset 3px 0 var(--green)}.nav.active .ico{color:var(--green)}.sidebar-spacer{flex:1}.sidebar-bottom{position:relative;z-index:1;padding:19px 8px 0;border-top:1px solid #ffffff19;color:#b7c5be;font-size:11px}.sidebar-bottom>div{display:flex;gap:10px;align-items:center}.sidebar-bottom strong{font-weight:600}.sidebar-bottom small{display:block;margin:6px 0 0 18px;color:#68867f;font-size:10px}.pulse,.hero-dot,.live-dot{display:inline-block;width:9px;height:9px;flex-shrink:0;background:#d49b44;border-radius:50%;box-shadow:0 0 0 4px #f2a34419}.pulse.online,.live-dot,.hero-dot{background:var(--green);box-shadow:0 0 0 4px #66f32d22,0 0 12px #66f32d99}
.main{flex:1;min-width:0;max-width:1740px;padding:30px clamp(20px,3.4vw,55px) 18px;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:750;color:var(--green);margin:0 0 6px}.dot-separator{color:#5c7570;padding:0 5px}.topbar h1{margin:0;font-size:28px;letter-spacing:-.7px;font-weight:750;line-height:1.2}.top-actions{display:flex;align-items:center;gap:13px}.stamp{color:#8ca5a2;font-size:11px;white-space:nowrap}.pill{border:1px solid #3ad35366;background:#173d2780;color:#a9f8b6;border-radius:100px;font-weight:700;font-size:11px;padding:8px 14px;white-space:nowrap;max-width:210px;text-overflow:ellipsis;overflow:hidden}.view{animation:fade .22s ease}@keyframes fade{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.hero{height:252px;border-radius:21px;position:relative;overflow:hidden;margin-bottom:17px;border:1px solid #ffffff1f;background:#19271f url('greenclub-hero.webp') center 49%/cover no-repeat;box-shadow:var(--shadow)}.hero:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,#071014fa 0%,#071014e7 29%,#08101391 52%,transparent 80%),linear-gradient(0deg,#08121677,transparent 55%)}.hero-shade{position:absolute;inset:0;box-shadow:inset 0 0 90px #05101280}.hero-content{position:absolute;z-index:1;top:32px;left:36px}.hero-kicker{display:inline-flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.8px;color:#c5e1d2;font-weight:650}.hero-kicker .hero-dot{width:7px;height:7px}.hero-content h2{font-size:39px;line-height:1.05;letter-spacing:-1.5px;font-weight:800;margin:13px 0 8px}.hero-content h2 em{font-style:normal;color:var(--green)}.hero-content>p{color:#c3d0cd;font-size:13px;margin-bottom:19px}.hero-caption{font-size:10px;color:#8fa9a0;letter-spacing:.8px}.hero-caption b{color:var(--green);padding:0 5px}.hero-side{position:absolute;right:22px;bottom:19px;z-index:1;display:flex;flex-direction:column;gap:4px;text-align:right;background:#080f1399;border:1px solid #ffffff2b;padding:9px 14px;border-radius:9px;backdrop-filter:blur(9px)}.hero-side span{color:#bbc9be;font-size:9px;letter-spacing:1.8px}.hero-side strong{font-size:10px;letter-spacing:.8px}
.alert{background:#42311b;border:1px solid #a97139a1;color:#ffcb83;border-radius:12px;padding:12px 16px;font-size:12px;margin:0 0 16px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.stat{position:relative;overflow:hidden;border:1px solid var(--stroke);background:var(--glass);border-radius:17px;padding:20px 18px 18px;min-height:151px;box-shadow:0 8px 25px #0002}.stat-solar{border-color:#53ce4b70;background:linear-gradient(140deg,#113023ed,#0c1918fa 75%);box-shadow:inset 0 1px #5cff1c16}.stathead{display:flex;gap:11px;align-items:center;color:#c4d2ce;font-size:12px;font-weight:650}.stathead .ico{width:25px;height:25px;color:var(--green)}.stat-consumption .stathead .ico{color:var(--yellow);fill:#ffcd4520}.stat-output .stathead .ico{color:#d3e5e4}.statvalue{display:flex;align-items:baseline;gap:6px;margin:12px 0 7px;font-variant-numeric:tabular-nums}.statvalue strong{font-size:37px;line-height:1.02;letter-spacing:-1.5px;font-weight:750}.statvalue span{font-size:17px;color:#a3b4b1;font-weight:500}.statfoot{font-size:10px;line-height:1.5;color:var(--muted)}.stat-trace{position:absolute;pointer-events:none;height:23px;width:100%;bottom:0;left:0;opacity:.75}.green-trace{background:linear-gradient(0deg,#45ef2d1c,transparent),url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 22" preserveAspectRatio="none"%3E%3Cpath d="M0 16Q20 4 42 14T86 9T132 12T173 6T212 13T258 6T300 10" fill="none" stroke="%2354ed45" stroke-width="1.3"/%3E%3C/svg%3E') center / 100% 100% no-repeat}.yellow-trace{background:linear-gradient(0deg,#ffc14512,transparent),url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 22" preserveAspectRatio="none"%3E%3Cpath d="M0 16Q20 7 42 14T86 8T132 13T173 5T212 14T258 7T300 9" fill="none" stroke="%23ffd13a" stroke-width="1.3"/%3E%3C/svg%3E') center / 100% 100% no-repeat}.chargebar{height:7px;background:#273737;border-radius:99px;margin-top:14px;overflow:hidden}.chargebar span{height:100%;width:0;display:block;border-radius:99px;background:linear-gradient(90deg,#7eff3a,#32db57);transition:width .5s}.stat-state{margin-top:13px;font-size:9px;letter-spacing:1.1px;font-weight:650;color:#9dcfbb;display:flex;gap:8px;align-items:center}.stat-state .live-dot{width:6px;height:6px}
.dashboard-grid{display:grid;grid-template-columns:minmax(225px,.78fr) minmax(330px,1.38fr) minmax(260px,1fr);gap:14px;align-items:stretch}.panel{border:1px solid var(--stroke);background:var(--glass);border-radius:17px;padding:22px 22px 18px;min-width:0;box-shadow:0 8px 30px #0002}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel-head h3,.config-card h3{font-size:15px;font-weight:720;margin:0 0 4px;letter-spacing:-.25px}.panel-head p,.config-card p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.panel-head>.ico{color:var(--green);width:22px;height:22px}.gauge{position:relative;max-width:325px;margin:16px auto 5px}.gauge>svg{width:100%;display:block}.gauge-track,.gauge-progress{fill:none;stroke-width:22;stroke-linecap:round}.gauge-track{stroke:#34423c}.gauge-progress{stroke:url('#gaugeGrad');stroke-dasharray:0 384;transition:stroke-dasharray .4s}.gauge-main{position:absolute;left:0;right:0;top:45%;display:flex;justify-content:center;align-items:baseline;gap:4px}.gauge-main strong{font-size:31px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.gauge-main span{color:#9cb3a9}.gauge-footer{display:flex;justify-content:space-between;color:#b3c3b8;font-size:11px;font-weight:650;margin:-21px 9px 0;position:relative}.range{display:flex;gap:3px;padding:4px;border-radius:9px;background:#071315;border:1px solid #ffffff15;flex-shrink:0}.range button{border:none;border-radius:7px;background:transparent;color:#92a69d;padding:6px 9px;font-weight:650;font-size:10px}.range button:hover{color:#fff}.range button.selected{background:#264b2d;color:#a0ff7c}.legend{display:flex;gap:7px;align-items:center;font-size:10px;color:#a5b5b2;margin:14px 0 7px}.legend-solar{color:var(--green);font-size:17px}.legend-load{color:var(--yellow);font-size:17px;margin-left:12px}.chart{height:194px;width:100%;position:relative}.chart canvas{width:100%;height:100%;display:block}.chart-note{color:#728d85;font-size:10px;line-height:1.6;margin:8px 0 0}.detail{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #ffffff15;gap:11px;padding:12px 0;font-size:11px}.detail span{color:#9ab0a9}.detail strong{color:#f3faf5;font-weight:650;font-variant-numeric:tabular-nums;text-align:right}.detail:first-of-type{margin-top:9px}.detail:last-of-type{border-bottom:0}.warnings{margin-top:9px}.warning{background:#4c2a21;border:1px solid #bd5e4555;color:#ffc8aa;border-radius:9px;font-size:11px;padding:10px;margin-top:8px}.warning.info{background:#23332a;color:#bdd8bd;border-color:#3a5b42}
.system-strip{border:1px solid #82e94d27;background:linear-gradient(110deg,#12241a,#0d1a1c);margin-top:15px;padding:17px 19px;border-radius:16px;display:flex;align-items:center;gap:13px}.strip-icon{width:42px;height:42px;border:1px solid #61eb4561;background:#244124;border-radius:12px;display:grid;place-items:center;color:var(--green)}.system-strip strong{font-size:12px}.system-strip p{color:var(--muted);font-size:11px;margin:2px 0 0}.strip-hint{margin-left:auto;color:#789789;font-size:9px;letter-spacing:1.3px;white-space:nowrap}
.page-intro{padding:15px 0 27px}.page-intro h2{font-size:28px;letter-spacing:-.6px;margin:4px 0 8px}.page-intro p{font-size:12px;color:var(--muted);margin:0}.history-chart{height:min(48vh,420px);min-height:260px;margin-top:12px}.history-panel{padding:26px}.alerts-panel{max-width:860px}.alerts-heading{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--stroke);padding-bottom:22px}.alerts-heading strong{font-size:15px}.alerts-heading p{color:var(--muted);font-size:12px;margin:4px 0 0}.alerts-circle{width:47px;height:47px;border:1px solid #83e95366;border-radius:15px;background:#23412a;color:var(--green);display:grid;place-items:center}.alerts-list{margin-top:10px}.alert-row{padding:17px 4px;border-bottom:1px solid var(--stroke);display:flex;gap:15px;align-items:flex-start}.alert-row:last-child{border-bottom:0}.alert-mark{color:#ffbd6b;font-size:18px;width:21px}.alert-text strong{font-size:13px}.alert-text small{display:block;margin-top:3px;font-size:11px;color:var(--muted)}.empty-state{color:#9ab3a4;font-size:12px;padding:16px 4px}.alerts-note{margin-top:15px}
/* Configurações herdadas e preservadas, com acabamento do novo tema */
.settings-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:9px 0 23px}.settings-intro h2{font-size:25px;letter-spacing:-.6px;margin:7px 0}.settings-intro p:last-child{color:var(--muted);font-size:12px;margin:0}.auth-wrap{display:flex;justify-content:center;padding:25px 0 75px}.auth-card{text-align:center;background:var(--glass);border:1px solid var(--stroke);border-radius:20px;padding:38px 34px;width:min(100%,440px);box-shadow:var(--shadow)}.shield{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 18px;border-radius:16px;background:#2a4828;color:var(--green);font-size:27px}.auth-card h3{font-size:21px;margin:0 0 9px}.auth-card p{color:var(--muted);font-size:12px;margin:0 0 23px}.auth-card label,.config-card label{display:block;font-size:12px;font-weight:600;text-align:left;color:#b8cdc5;margin-bottom:8px}.auth-card input,.config-card select{width:100%;background:#0a1518;color:var(--text);border:1px solid #395149;border-radius:10px;padding:12px 14px;outline:none}.auth-card input:focus,.config-card select:focus{border-color:var(--green)}.primary{border:1px solid #52dc31;border-radius:10px;background:#4fdc29;color:#051206;font-weight:800;padding:12px 18px}.primary:hover:enabled{background:#84fa51}.auth-card .primary{width:100%;margin-top:17px}.auth-note{color:var(--muted2);font-size:11px;margin-top:19px}.form-error{background:#472b2d;border:1px solid #a75555;color:#ffd1cd;border-radius:10px;padding:12px;font-size:12px;margin:15px 0}.notice{background:#1c3b2d;border:1px solid #416647;color:#b8e7c0;border-radius:11px;padding:15px 17px;font-size:12px;margin-bottom:18px}.settings-toolbar{display:flex;align-items:center;justify-content:space-between;color:#a5b8ad;font-size:11px;gap:12px;margin:17px 0 24px}.ghost{border:1px solid #446058;color:#cbdbd3;border-radius:9px;padding:10px 14px;background:#132224;font-size:12px;font-weight:650}.ghost:hover:enabled{background:#263b36}.section-label{color:#779489;font-size:10px;letter-spacing:1.5px;font-weight:800;margin:28px 0 14px}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.config-card{background:var(--glass);border:1px solid var(--stroke);border-radius:15px;padding:22px 24px}.config-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.config-card p{margin-bottom:20px}.tag{font-size:10px;color:#bcdfb9;background:#284330;padding:6px 9px;border-radius:7px}.config-card select{margin-bottom:16px}.save{border:1px solid #45ca2c;background:#358e2b;color:#f0fff0;padding:11px 16px;font-weight:750;border-radius:9px;font-size:12px}.save:hover:enabled{background:#4cab36}.setting-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #ffffff15;padding:11px 0;font-size:12px}.setting-row:last-child{border-bottom:0}.setting-row span{color:#96aba0}.setting-row strong{font-variant-numeric:tabular-nums}.audit{margin-top:23px}.audit-items{margin-top:17px}.audit-entry{border-top:1px solid var(--stroke);padding:11px 0;display:flex;justify-content:space-between;gap:16px;font-size:12px}.audit-entry small{color:var(--muted)}.modal{position:fixed;inset:0;background:#010706c9;display:flex;align-items:center;justify-content:center;z-index:10;padding:20px}.modal-content{width:min(100%,450px);border:1px solid #486a50;border-radius:16px;background:#142225;padding:26px;box-shadow:0 25px 90px #000a}.modal-content h3{margin:0 0 9px}.modal-content p{font-size:13px;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}footer{font-size:10px;color:#527168;text-align:center;letter-spacing:1px;padding:28px 0 14px}footer span{color:var(--green);margin:0 5px}.mobile-nav{display:none}
@media(max-width:1390px){.main{padding:26px 25px}.sidebar{width:205px;flex-basis:205px;padding-left:15px;padding-right:15px}.brand-name{font-size:21px}.statvalue strong{font-size:31px}.stat{padding:18px 14px}.dashboard-grid{grid-template-columns:minmax(210px,.83fr) minmax(290px,1.4fr) minmax(230px,1fr)}.panel{padding:18px}}
@media(max-width:1120px){.dashboard-grid{grid-template-columns:minmax(245px,.85fr) minmax(360px,1.5fr)}.details-panel{grid-column:1/-1}.details-panel .detail{display:inline-flex;width:calc(50% - 12px);margin-right:9px}.stats{gap:10px}.statvalue strong{font-size:31px}}
@media(max-width:860px){.sidebar{width:180px;flex-basis:180px}.brand-name{font-size:19px}.brand-plane{display:none}.main{padding:24px 16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:140px}.dashboard-grid{grid-template-columns:1fr 1.3fr}.hero{height:218px}.hero-content h2{font-size:33px}.topbar h1{font-size:23px}.stamp{font-size:10px}.config-grid{grid-template-columns:1fr}}
@media(max-width:690px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.site-shell{display:block}.sidebar{display:none}.main{width:100%;padding:0 12px 16px}.topbar{position:sticky;top:0;z-index:6;margin:0 -12px 13px;padding:12px 15px 11px;background:#071011f2;border-bottom:1px solid #83ef4522;backdrop-filter:blur(14px);gap:10px}.topbar-title .eyebrow{font-size:9px;letter-spacing:1.2px}.topbar h1{font-size:17px;margin:0}.top-actions{flex-direction:column-reverse;align-items:flex-end;gap:4px}.stamp{font-size:9px}.pill{font-size:9px;padding:5px 9px;max-width:135px}.hero{height:201px;border-radius:15px;margin-bottom:11px;background-position:center}.hero:after{background:linear-gradient(90deg,#061012f8 0%,#061012d9 29%,#0711134a 72%,#06101226 100%),linear-gradient(0deg,#08121691,transparent 65%)}.hero-content{left:19px;top:23px}.hero-kicker{font-size:8px;letter-spacing:1.3px}.hero-content h2{font-size:29px;margin:15px 0 8px}.hero-content>p{font-size:10px;max-width:182px;margin-bottom:16px}.hero-caption{font-size:7.2px;max-width:220px;display:block;line-height:1.7}.hero-side{display:none}.stats{gap:9px;margin-bottom:11px}.stat{padding:14px 12px 14px;border-radius:13px;min-height:129px}.stathead{gap:6px;font-size:10px}.stathead .ico{height:18px;width:18px}.statvalue{margin:13px 0 8px;gap:3px}.statvalue strong{font-size:28px;letter-spacing:-1.2px}.statvalue span{font-size:13px}.statfoot{font-size:9px}.chargebar{margin-top:9px;height:5px}.stat-state{font-size:8px}.dashboard-grid{grid-template-columns:1fr;gap:11px}.panel{padding:17px 16px;border-radius:15px}.power-panel{min-height:226px}.gauge{max-width:290px;margin:6px auto 0}.gauge-main{top:47%}.gauge-footer{margin:-24px 9px 0}.chart{height:218px}.details-panel .detail{width:100%;margin-right:0}.panel-head h3{font-size:14px}.panel-head p{font-size:10px}.system-strip{padding:14px;margin-top:11px}.strip-hint{display:none}.system-strip strong{font-size:11px}.system-strip p{font-size:10px}.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:8;display:flex;gap:3px;justify-content:space-around;align-items:center;background:#081314f7;border-top:1px solid #65ec3c40;padding:9px 8px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(18px);box-shadow:0 -12px 28px #0004}.mobile-nav .nav{width:auto;flex:1;display:flex;flex-direction:column;justify-content:center;gap:3px;border:0;padding:4px 2px;color:#b5c6bf;background:none;border-radius:9px;text-align:center;font-size:10px;min-height:43px}.mobile-nav .nav .ico{width:20px;height:20px}.mobile-nav .nav.active{color:var(--green);box-shadow:none;background:none}.mobile-nav .nav.active .ico{filter:drop-shadow(0 0 5px #68fd3a44)}.page-intro{padding:20px 5px}.page-intro h2{font-size:24px}.history-panel{padding:16px 12px}.history-chart{height:330px;min-height:270px}.settings-intro{margin:17px 0}.settings-intro h2{font-size:20px}.auth-wrap{padding:15px 0 35px}.auth-card{padding:26px 19px}.settings-toolbar{flex-wrap:wrap}.config-card{padding:20px 16px}.modal-actions{flex-wrap:wrap}.modal-actions button{flex:1}.audit-entry{display:block}.audit-entry small{display:block;margin-top:5px}footer{font-size:8px;line-height:1.8;padding:18px 4px}}
@media(max-width:355px){.statvalue strong{font-size:24px}.stat{padding:12px 10px}.stathead{font-size:9px}.hero-content h2{font-size:26px}.range button{font-size:9px;padding:6px 7px}}
@media(prefers-reduced-motion:reduce){.view{animation:none}button{transition:none}.chargebar span,.gauge-progress{transition:none}}
