:root{font-family:system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif;color:#18342e;background:#f3f6f5;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:80px;background:#102d29;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));gap:20px}.brand{font-size:23px;font-weight:800;letter-spacing:-1px;text-decoration:none;color:inherit}.brand span{font-size:15px;font-weight:400;margin-left:12px;color:#c1d5cd}.tag{padding:7px 12px;border:1px solid #8da69d;border-radius:30px;font-size:14px;white-space:nowrap}main{max-width:1208px;padding:44px 24px 24px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.eyebrow{letter-spacing:2px;font-size:12px;font-weight:700;color:#517568;margin:0 0 10px}h1{font-size:40px;letter-spacing:-2px;margin:0 0 12px;font-weight:750}h2{font-size:23px;letter-spacing:-.7px;margin:0 0 10px}h3{font-size:17px;margin:0}.sub,.muted,.note{color:#536b63;line-height:1.7;margin:0}.connection{display:flex;align-items:flex-end;flex-direction:column;gap:9px;font-size:15px}.connection small{color:#64766e}button,select{font:inherit;color:inherit;background:#fff;border:1px solid #b8c8c0;border-radius:8px;padding:10px 14px;min-height:44px}button{cursor:pointer}button:hover{background:#e6efea}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #dd9200;outline-offset:3px}.weather{background:#e2ece6;border:1px solid #cbdcd0;border-radius:16px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.weather p{font-size:15px;color:#4b6659;margin-bottom:0;line-height:1.7}.weather-values{display:flex;align-items:center;gap:38px}.weather-values div{display:flex;flex-direction:column;gap:8px;min-width:70px}.weather-values span{font-size:14px}.weather-values strong{font-size:32px}.weather-values small{font-size:17px;font-weight:400}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.metrics article{background:#fff;border:1px solid #dce5df;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:12px}.metrics article>span{font-size:15px;color:#526b60}.metrics strong{font-size:34px;font-weight:650;letter-spacing:-1px}.metrics small{font-size:13px;color:#5d7268}.panel{background:#fff;border:1px solid #dce5df;border-radius:16px;padding:28px;margin:24px 0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.section-head label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}select{max-width:100%;font-size:14px}.power-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.power{background:#f6f8f7;border:1px solid #e0e8e3;border-radius:10px;padding:20px}.power h3{font-size:21px;margin-bottom:16px}.power .ratio{font-size:28px;font-weight:650}.power p{color:#526b60;font-size:14px;margin:10px 0 0;line-height:1.6}.power .loss{color:#914b25}.note{font-size:14px}.chart-head{display:flex;justify-content:space-between;gap:12px;margin-top:32px;margin-bottom:12px}.chart-head span{font-size:14px;color:#61746a}#chart{display:block;width:100%;height:auto;min-height:150px}.legend{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;color:#61746a}.legend .p5{color:#19715f}.legend .p8{color:#2875bd}.legend .p11{color:#a85b1f}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left;white-space:nowrap}th{color:#586e63;font-weight:500;background:#f6f8f7}th,td{padding:15px 14px;border-bottom:1px solid #e5ebe7}td:last-child{white-space:normal;min-width:150px;max-width:300px;overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#60766b;padding:14px 0;line-height:1.8}.alert{background:#fff0d6;border:1px solid #d9ad5c;padding:14px;border-radius:8px;margin-bottom:20px}.mobile{display:none}@media(max-width:760px){header{height:68px;padding:0 18px}.brand{font-size:21px}.brand span{font-size:14px;margin-left:7px}main{padding:28px 16px}.intro{align-items:flex-start}.mobile{display:block}h1{font-size:33px}.sub{font-size:14px}.connection{min-width:112px;font-size:14px}.weather{padding:22px;align-items:flex-start;flex-direction:column}.weather-values{width:100%;gap:22px;justify-content:space-between}.metrics{grid-template-columns:repeat(2,1fr);gap:12px}.metrics article{padding:18px}.metrics strong{font-size:28px}.panel{padding:20px 16px}.section-head{align-items:flex-start;flex-direction:column}.section-head label{width:100%}.power-grid{gap:8px}.power{padding:14px 10px}.power h3{font-size:18px}.power .ratio{font-size:22px}.power p{font-size:14px}.chart-head{flex-direction:column}footer{flex-direction:column;gap:4px}.legend{gap:12px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}

select{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,#526b60 50%),linear-gradient(135deg,#526b60 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
@media(max-width:480px){.power-grid{grid-template-columns:1fr}.power{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px}.power h3{margin:0}.power .ratio{text-align:right}.power p{margin:0}.power p:nth-of-type(1){grid-column:1 / -1}}

header a{color:inherit}header nav{display:flex;gap:16px;align-items:center;font-size:14px}header button{font-size:14px;color:#18342e}input,textarea{font:inherit;color:inherit;border:1px solid #b8c8c0;border-radius:8px;padding:12px;background:white;width:100%;min-width:0}textarea{resize:vertical;min-height:100px}form{display:grid;gap:14px;margin:20px 0}form label{display:grid;gap:8px;font-size:14px}.login-main{max-width:550px}.login-main h1{font-size:30px}.primary{background:#195a47;color:white}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.control-block{border-top:1px solid #dce5df;padding-top:20px;min-width:0}.control-block h3{margin-bottom:10px}.control-block pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6f5;padding:12px;font-size:14px}.empty-state{text-align:center;padding:45px 15px;color:#61746a;line-height:1.8}#notice{white-space:pre-wrap;overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:760px){.control-grid{grid-template-columns:1fr}.login-main{padding-top:25px}header nav{gap:9px}.member-metrics article{min-height:140px}}

h1,h2,h3{word-break:keep-all}.legend .p6{color:#627b20}.legend .p7{color:#8254a8}.legend .p9{color:#a63d67}.legend .p10{color:#6c6576}

#wind-chart{width:100%;height:220px}.toolbar,.device-status{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.device-status p{flex-basis:100%;margin-bottom:0}.toolbar label{display:flex;align-items:center;gap:8px}.toolbar input[type=checkbox]{width:auto}.download-link{display:block;padding:8px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px}dialog{border:1px solid #c8d8cf;border-radius:16px;width:min(450px,90vw);max-height:85vh;overflow:auto}dialog::backdrop{background:#102d2980}dialog form{display:grid;gap:12px}td button{margin:3px}.control-block{min-width:0}#database button{white-space:normal}

#wind-compass{display:block;width:100px;height:100px;max-width:100%;margin:6px 0}#wind-bearing{font-weight:600;color:#19715f}

.direction-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.direction-row>div{min-width:0}.direction-row strong{white-space:nowrap}.direction-row #wind-bearing{display:block;margin-top:2px;font-size:12px}.direction-card #wind-compass{width:72px;height:72px;flex:0 0 72px;margin:0}.member-metrics .direction-card{gap:6px;padding-top:20px;padding-bottom:20px}.direction-card>small{font-size:12px;line-height:1.5}@media(max-width:760px){.direction-card #wind-compass{width:56px;height:56px;flex-basis:56px}.direction-row strong{font-size:24px}.member-metrics .direction-card{padding:18px 12px}.direction-row{gap:4px}}

.history-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.history-controls .note{margin-right:auto}

#database .db-scroll{max-height:480px;overflow:auto;margin-top:14px;scrollbar-gutter:stable}#database .db-scroll th{position:sticky;top:0;z-index:1}#database input[type=checkbox],#db-editor input[type=checkbox]{width:18px;height:18px;flex:none}#database .db-filter{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}#database .note{margin:8px 0}#database .db-pager{margin:16px 0 24px}#db-files{max-height:230px;overflow:auto;margin:12px 0 24px}.backup-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e5ebe7}.backup-row a{overflow-wrap:anywhere}#db-editor label{align-items:start}#db-editor{max-width:95vw}@media(max-width:760px){#database .db-filter{grid-template-columns:1fr 1fr}#database .db-filter label:nth-child(2){grid-column:1/-1}#database .db-scroll{max-height:380px}.backup-row{flex-wrap:wrap}}

#database .db-scroll th,#database .db-scroll td{padding:10px 12px}#database .db-scroll td:last-child{white-space:nowrap;min-width:150px}#database .db-scroll button{padding:7px 10px;min-height:36px;margin:0 3px}#database input[type=checkbox],#db-editor input[type=checkbox]{padding:0}
