:root { --bg:#f6f7f9; --card:#fff; --ink:#1d2433; --muted:#6b7488; --line:#e2e5ec; --brand:#0b6e99; --elia:#c2410c; --entsoe:#1d4ed8; --jao:#047857; --rmi:#7c3aed; --ecmwf:#0e7490; --era5:#4d7c0f; --mvb:#a16207; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
header { background:#fff; color:var(--ink); padding:5px 20px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; border-bottom:3px solid #f59e0b; box-shadow:0 1px 4px rgba(15,42,61,.12); }
header .brand { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--muted); font-size:12px; }
header .brand img { display:block; height:30px; width:auto; }
header nav a { color:#0f2a3d; text-decoration:none; margin-right:12px; font-weight:500; font-size:13px; }
header nav a:hover, header nav a.active { color:var(--brand); text-decoration:underline; }
header .badge { margin-left:auto; font-size:11px; color:var(--muted); white-space:nowrap; }
header .design-toggle { font-size:11px; color:var(--muted); white-space:nowrap; border:1px solid var(--line); border-radius:10px; padding:1px 8px; text-decoration:none; }
header .design-toggle:hover { color:var(--brand); border-color:var(--brand); }
main { padding:14px 20px; }
.grid { display:grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap:18px; align-items:start; }
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; }
.card h2 { margin:0 0 10px; font-size:15px; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select { padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; background:#fff; }
input[type=text], input[type=email], textarea { width:100%; box-sizing:border-box; }
.hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.row { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0; align-items:end; }
.row label { display:flex; flex-direction:column; font-size:12px; color:var(--muted); gap:3px; }
button, .btn { background:var(--brand); color:#fff; border:0; border-radius:6px; padding:7px 12px; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button.secondary, .btn.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
button.link { background:none; color:var(--brand); padding:0 4px; }
button:disabled { opacity:.5; cursor:default; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:5px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:12px; color:var(--muted); font-weight:600; }
td code { word-break: break-all; }
td.num { text-align:right; font-variant-numeric: tabular-nums; }
.tag { display:inline-block; font-size:11px; padding:1px 6px; border-radius:10px; color:#fff; }
.tag.elia { background:var(--elia); } .tag.entsoe { background:var(--entsoe); } .tag.jao { background:var(--jao); }
.tag.rmi { background:var(--rmi); } .tag.ecmwf { background:var(--ecmwf); } .tag.era5 { background:var(--era5); } .tag.mvb { background:var(--mvb); }
.muted { color:var(--muted); } .small { font-size:12px; }
code, pre { font:12px ui-monospace,SFMono-Regular,Menlo,monospace; }
pre { background:#0f2a3d; color:#e5eef4; padding:10px 12px; border-radius:6px; overflow:auto; }
.cart-item { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px dashed var(--line); gap:10px; }
.empty { color:var(--muted); padding:12px 0; }
.htmx-request { opacity:.6; transition: opacity .2s; }
details { margin-top:8px; } summary { cursor:pointer; color:var(--brand); }
.err { color:#b91c1c; background:#fef2f2; border:1px solid #fecaca; padding:8px 10px; border-radius:6px; }
.cart-item code { word-break: break-all; }
h3 { font-size:13px; margin:14px 0 6px; color:var(--muted); font-weight:600; }
.scroll { max-height:300px; overflow:auto; }
.ds { padding:6px 8px; border-bottom:1px solid var(--line); cursor:pointer; }
.ds:hover { background:#eef5f9; }
fieldset { border:1px solid var(--line); border-radius:6px; margin:6px 0; padding:4px 10px 8px; }
legend { font-size:12px; font-weight:600; padding:0 4px; }
.vals { max-height:120px; overflow:auto; display:flex; flex-wrap:wrap; gap:2px 14px; }
label.inl { display:inline-flex; gap:4px; align-items:center; font-weight:400; font-size:12px; color:var(--ink); }
.viewbar { display:flex; gap:6px; margin:8px 0 6px; }
.scatter { margin-top:6px; }
.scatter h3 { margin:6px 0; font-size:14px; }
.row label.inl { flex-direction:row; padding-bottom:6px; }
label.blk { display:block; font-size:12px; color:var(--muted); margin:6px 0; }
textarea { width:100%; padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.sel { display:flex; gap:6px; margin:4px 0; align-items:center; }
.sel input.alias { width:130px; flex:none; font:12px ui-monospace,monospace; }
.sel input.seltext { flex:1; font:12px ui-monospace,monospace; }
.ok { color:#047857; } div.ok { background:#ecfdf5; border:1px solid #a7f3d0; padding:6px 10px; border-radius:6px; margin:6px 0; }
.warn { color:#b45309; }
.ok-box { background:#ecfdf5; border:1px solid #a7f3d0; padding:6px 10px; border-radius:6px; margin:10px 0 4px; }
.dcheck .err { margin:10px 0 4px; }
.sel.derived { background:#f3f7fb; border-radius:6px; padding:2px 4px; }
.sel .unit { font-size:12px; color:var(--muted); min-width:56px; }
.sel label.inl { flex:none; }
input[type=color] { width:30px; height:26px; padding:0; border:1px solid var(--line); border-radius:4px; background:#fff; flex:none; cursor:pointer; }
.note { border-left:4px solid #94a3b8; background:#f8fafc; border-radius:4px; padding:6px 10px; margin:8px 0; }
.note.warning { border-left-color:#f59e0b; background:#fffbeb; }
.note .sev { margin-right:4px; }
.notes-compact { margin:8px 0; }
.notes-compact ul { margin:4px 0 0 18px; padding:0; }
.notes-compact li.warning a { color:#92400e; }
.manual-wrap { display:grid; grid-template-columns: 230px minmax(0, 1fr); gap:18px; align-items:start; }
@media (max-width: 900px) { .manual-wrap { grid-template-columns: 1fr; } }
.manual-nav { display:flex; flex-direction:column; gap:2px; position:sticky; top:12px; }
.manual-nav a { color:#0f2a3d; text-decoration:none; padding:3px 6px; border-radius:4px; font-size:13px; }
.manual-nav a:hover { background:#eef5f9; } .manual-nav a.active { background:var(--brand); color:#fff; }
.manual-section { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin:10px 6px 2px; }
.manual { max-width:880px; line-height:1.55; }
.manual h1 { font-size:24px; margin:0 0 10px; } .manual h2 { font-size:18px; margin:26px 0 8px; border-bottom:1px solid var(--line); padding-bottom:3px; } .manual h3 { font-size:15px; color:var(--ink); margin:18px 0 6px; }
.manual code { background:#f1f5f9; padding:1px 4px; border-radius:3px; } .manual pre code { background:none; padding:0; }
.manual table { margin:10px 0; } .manual td, .manual th { border:1px solid var(--line); padding:4px 8px; }
.manual blockquote { border-left:4px solid #f59e0b; background:#fffbeb; margin:10px 0; padding:6px 12px; border-radius:4px; }
.manual img { max-width:100%; border:1px solid var(--line); border-radius:6px; }
.manual-pager { display:flex; justify-content:space-between; margin-top:28px; padding-top:10px; border-top:1px solid var(--line); }
details.cat { border-bottom:1px solid var(--line); padding:6px 0; } details.cat summary { cursor:pointer; color:var(--ink); }
.design-switch { float:right; } .design-switch a.on { font-weight:600; text-decoration:none; color:var(--ink); }
.about img { display:block; max-width:100%; width:1100px; height:auto; border:1px solid var(--line); border-radius:6px; margin:6px 0 12px; }
.kind { display:inline-block; padding:1px 8px; border-radius:10px; border:1px solid var(--border, #ccc); font-size:11px; }
