
:root{--bg:#050b17;--surface:#0d223f;--surface2:#102b4c;--border:#2e527b;--text:#eaf2ff;--muted:#a6c2df;--accent:#DC9DAA;--accent2:#8FC8F5;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:15px}body{line-height:1.5}header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px max(22px,calc((100% - 1150px)/2));background:linear-gradient(90deg,#050b17,#0c213e);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:24px}.cmAppLogo{width:38px;height:38px;flex-shrink:0}.headerControls{display:flex;gap:9px;align-items:center}.themeChoices{display:flex;gap:7px}.themeChoices button{display:grid;place-items:center;width:39px;height:39px;padding:7px}.themeChoices svg{width:21px;height:21px}.themeChoices button[aria-pressed=true]{background:var(--accent);color:#182d48;border-color:var(--accent)}main{max-width:1150px;margin:auto;padding:26px 18px}section{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px;margin:16px 0}h1,h2,h3{color:var(--text);line-height:1.25}h1{font-size:26px}h2{font-size:22px}.small,footer{font-size:13px;color:var(--muted)}.notice,#message:not(:empty){background:var(--surface2);padding:12px 14px;border-left:3px solid var(--accent2);border-radius:5px}#message:empty{display:none}button{font:inherit;cursor:pointer;background:#0b203b;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px 13px}button:hover{border-color:var(--accent2)}button:disabled{opacity:.55;cursor:default}.primary{background:var(--accent);color:#142742;border-color:var(--accent);font-weight:700}.actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}#account nav button{flex:1;min-width:175px;font-weight:600;padding:14px}label{display:block;margin:11px 0}input,select{width:100%;padding:10px;margin-top:5px;background:#081a31;color:var(--text);border:1px solid var(--border);border-radius:7px;font:inherit}input[type=checkbox]{width:auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.generalCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.generalCard,.userCard{background:var(--surface2);border:1px solid var(--border);padding:16px;border-radius:10px}.generalResult{font-weight:700;color:var(--accent2)}#calculator{width:100%;height:1150px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}summary{cursor:pointer;font-weight:700}a{color:var(--accent2)}[hidden]{display:none!important}footer{padding:15px 0}.localLabel{font-size:12px;color:var(--muted);margin:0 0 12px}.cmCredit{color:var(--muted)}
html.cm-light{--bg:#f5f8fc;--surface:#fff;--surface2:#eaf2fa;--border:#c5d6e7;--text:#173454;--muted:#496480;color-scheme:light}html.cm-light header{background:#e8f1fa}html.cm-light .brand{color:#173454}html.cm-light button{background:#f7faff;color:#173454}html.cm-light .themeChoices button[aria-pressed=true],html.cm-light .primary{background:var(--accent);color:#142742}html.cm-light input,html.cm-light select{background:#fff;color:#173454}html.cm-light #calculator{background:#fff}

/* CardioMetric: primary calculation buttons */
button.primary,html.cm-light button.primary{background:#DC9DAA!important;color:#102644!important;border-color:#DC9DAA!important;font-weight:700!important}
button.primary:hover:not(:disabled){background:#e9b5c0!important}
