:root{--bg:#0b0e14;--panel:#11151c;--text:#e6e6e6;--muted:#9aa4b2;--accent:#3aa675;--border:#222733;--panel-2:#0f131a}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
.container{max-width:980px;margin:0 auto;padding:24px}
h1{font-size:24px;margin:0 0 16px}
h2{font-size:18px;margin:0;color:var(--text)}
.topbar{position:sticky;top:0;z-index:10;background:var(--panel-2);border-bottom:1px solid var(--border);padding:10px 16px;display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:700;letter-spacing:.4px}
.status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}
.dot{width:10px;height:10px;border-radius:50%;background:#777;display:inline-block}
.dot.ok{background:var(--accent)}
.dot.err{background:#ba3a3a}
h2{font-size:18px;margin:0;color:var(--text)}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.section-desc{font-size:13px;color:var(--muted);font-weight:normal}
h1{font-size:24px;margin:0 0 16px}
h2{font-size:18px;margin:24px 0 12px;color:var(--muted)}
section{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;margin-top:16px}
label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:14px}
input[type="text"],input[type="number"],select{background:#0d1117;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px;outline:none;font-family:inherit;font-size:14px}
input:focus,select:focus{border-color:var(--accent)}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa4b2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px}
.checkbox-label{flex-direction:row;align-items:center;gap:8px;cursor:pointer}
.checkbox-label input[type="checkbox"]{width:18px;height:18px;cursor:pointer;accent-color:var(--accent)}
button{appearance:none;background:var(--accent);color:#08130e;border:0;border-radius:8px;padding:10px 14px;font-weight:600;cursor:pointer;font-size:14px;transition:opacity 0.2s}
button:hover:not(:disabled){opacity:0.9}
button:disabled{opacity:0.5;cursor:not-allowed}
button.loading{position:relative;color:transparent}
button.loading::after{content:"";position:absolute;width:16px;height:16px;top:50%;left:50%;margin:-8px 0 0 -8px;border:2px solid #08130e;border-top-color:transparent;border-radius:50%;animation:spin 0.6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}
.ghost:hover:not(:disabled){background:rgba(58,166,117,0.1);border-color:var(--accent);color:var(--accent)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.stack{display:grid;gap:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.grid-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.card-row{display:flex;align-items:flex-end;gap:8px;min-width:0}
.card-row > label:first-of-type{flex:1;min-width:0}
.card-row > label:first-of-type input{width:100%}
.checkbox-label-small{flex-direction:row;align-items:center;gap:4px;cursor:pointer;flex-shrink:0;margin-bottom:0;min-width:fit-content}
.checkbox-label-small input[type="checkbox"]{width:16px;height:16px;cursor:pointer;accent-color:var(--accent);flex-shrink:0}
.checkbox-label-small span{font-size:12px;color:var(--muted);white-space:nowrap}
.energy{margin-top:12px}
.result{background:#0d1117;border:1px solid var(--border);border-radius:10px;padding:16px;margin-top:10px;min-height:60px}
.result pre{white-space:pre-wrap;word-wrap:break-word;margin:0;font-family:monospace;font-size:13px}
.result-content{line-height:1.6}
.result-header{font-size:15px;font-weight:600;color:var(--accent);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.result-intro{font-size:14px;color:var(--muted);margin-bottom:12px;padding:10px;background:rgba(58,166,117,0.1);border-radius:6px;border-left:3px solid var(--accent)}
.result-text{font-size:15px;line-height:1.7;color:var(--text);margin-bottom:8px}
.result-question{font-size:14px;color:var(--muted);margin-bottom:10px;font-style:italic}
.result-chars{font-size:12px;color:var(--muted);margin-top:8px}
.loading-text{color:var(--muted);font-style:italic}
.error{color:#ba3a3a;padding:10px;background:rgba(186,58,58,0.1);border-radius:6px;border-left:3px solid #ba3a3a}
.forecast-section{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.forecast-section:last-child{border-bottom:none}
.forecast-section h3{font-size:16px;color:var(--accent);margin:0 0 8px}
.forecast-section p{font-size:14px;line-height:1.6;margin:0;color:var(--text)}
.forecast-cards{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.forecast-cards summary{cursor:pointer;color:var(--muted);font-size:13px;user-select:none}
.forecast-cards summary:hover{color:var(--accent)}
.forecast-cards pre{margin-top:8px;font-size:12px}
@media(max-width:640px){.grid-cards{grid-template-columns:1fr}.card-row{flex-wrap:nowrap}}


