@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');
:root{--forest:#123b32;--green:#176b50;--green2:#23835f;--mint:#eaf5ef;--ink:#172b25;--muted:#74827a;--line:#dce7e1;--bg:#f4f8f5;--white:#fff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}.topbar{height:76px;background:var(--forest);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1160px)/2));color:white}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:white}.brand-mark{width:42px;height:42px;border:1px solid #86b99f;border-radius:12px;display:grid;place-items:center;color:#c4efd4;font:800 15px Manrope}.brand strong{display:block;font:800 16px Manrope;letter-spacing:1.4px}.brand small{display:block;color:#c4d9ce;font-size:10px;margin-top:3px}.version{font-size:10px;letter-spacing:1px;font-weight:800;color:#d1ebdc;border:1px solid #5e9278;padding:7px 11px;border-radius:20px}.container{max-width:1160px;margin:auto;padding:39px 24px 20px}.hero{margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:var(--green);margin:0 0 8px}.hero h1{font:800 clamp(30px,4vw,42px) Manrope;letter-spacing:-1.5px;line-height:1.12;margin:0}.hero h1 em{font-style:normal;color:var(--green)}.hero>p:last-child{max-width:610px;color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0 0}.main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:19px;align-items:stretch}.panel{background:var(--white);border:1px solid var(--line);border-radius:17px;padding:24px;box-shadow:0 8px 28px #173d2b08}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.section-title h2{font:700 19px Manrope;margin:0}.round-icon{width:34px;height:34px;border-radius:11px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 13px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700}.field span small{font-size:10px;color:var(--muted);font-weight:500;margin-left:3px}.field input{height:44px;width:100%;border:1px solid #cad9d0;border-radius:8px;padding:0 11px;background:#fbfdfb;color:var(--ink);font:600 15px 'DM Sans';outline:none}.field input:focus{border-color:var(--green);box-shadow:0 0 0 3px #176b5018}.gender-field{border:0;padding:0;margin:0;min-width:0}.gender-field legend{font-size:12px;font-weight:700;margin-bottom:11px}.gender-options{height:44px;display:flex;gap:15px;align-items:center}.gender-options label{display:flex;align-items:center;gap:6px;color:#4f6057;font-size:12px;cursor:pointer}.gender-options input{accent-color:var(--green);width:15px;height:15px}.helper{font-size:10px;color:var(--muted);line-height:1.55;margin:17px 0}.primary-btn{width:100%;height:48px;border:0;border-radius:9px;background:var(--green);color:white;font:700 13px 'DM Sans';cursor:pointer;box-shadow:0 5px 12px #176b5025}.primary-btn:hover{background:#10583f}.primary-btn span{font-size:20px;margin-left:8px;vertical-align:-1px}.reset-btn{display:block;margin:10px auto 0;border:0;background:none;color:var(--muted);font:600 11px 'DM Sans';cursor:pointer;padding:6px}.error{display:none;background:#fff1ef;border:1px solid #f1ceca;color:#a13c35;padding:10px 12px;border-radius:8px;font-size:11px;margin-bottom:12px}.error.show{display:block}.empty-state{min-height:380px;border:1px dashed #cddbd3;border-radius:13px;background:#fbfdfb;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-art{width:60px;height:60px;border-radius:19px;background:var(--mint);display:grid;place-items:center;color:var(--green);font-size:34px;margin-bottom:15px}.empty-state h3{font:700 16px Manrope;margin:0 0 8px}.empty-state p{font-size:11px;line-height:1.6;color:var(--muted);max-width:250px;margin:0}.result-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px;background:linear-gradient(145deg,#fff,#fbfdfb)}.result-label{display:flex;align-items:center;justify-content:space-between;color:#66766d;font-size:9px;font-weight:800;letter-spacing:1px}.result-label span{background:var(--mint);color:var(--green);padding:5px 7px;border-radius:5px;font-size:8px}.result-line{display:flex;align-items:center;gap:10px;margin:10px 0 12px}.result-line>strong{font:800 32px Manrope;letter-spacing:-1px}.status{font-size:10px;font-weight:700;color:var(--green);background:var(--mint);padding:5px 9px;border-radius:20px}.bmi-track{height:8px;border-radius:20px;background:linear-gradient(90deg,#e8c46f 0 23%,#5da77c 23% 62.5%,#e8a34f 62.5% 75%,#c85d52 75%);position:relative}.bmi-track i{position:absolute;top:-4px;left:50%;width:3px;height:16px;background:#182c25;border-radius:3px;transform:translateX(-50%)}.track-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:8px;margin-top:7px}.result-note{font-size:9px;line-height:1.5;color:var(--muted);margin:9px 0 0}.two-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.two-stats div{background:#f0f7f2;padding:10px;border-radius:8px}.two-stats small,.energy-row small{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.two-stats b{font:700 16px Manrope}.energy-card{background:linear-gradient(145deg,#f4faf6,#fff)}.energy-row strong{display:block;font:800 25px Manrope;color:var(--green);letter-spacing:-.5px;margin:2px 0}.calorie-note,.disclaimer{font-size:9px;color:var(--muted);line-height:1.55;margin:12px 0 0}.bottom-info{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:19px}.bottom-info>div{display:flex;gap:10px;align-items:flex-start;background:#edf5f0;border:1px solid #dfebe3;border-radius:11px;padding:14px}.bottom-info p{font-size:10px;line-height:1.55;color:#607067;margin:0}.bottom-info b{color:var(--ink);font-size:11px}.info-dot{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#d7eadf;color:var(--green);font-weight:800;font-size:11px}footer{text-align:center;color:#89968f;font-size:9px;padding:23px 0 7px}footer span{padding:0 5px}.hidden{display:none!important}
@media(max-width:760px){.topbar{height:66px;padding:0 15px}.container{padding:27px 14px 17px}.main-grid{grid-template-columns:1fr}.panel{padding:19px}.empty-state{min-height:220px}.bottom-info{grid-template-columns:1fr}.hero h1{font-size:31px}.section-title h2{font-size:17px}}
@media(max-width:370px){.form-grid{grid-template-columns:1fr}.gender-options{height:auto}.version{font-size:9px;padding:6px 8px}}

/* GUI v1.0.1: body-fat range indicator */
.fat-track-wrap{margin:5px 0 0}
.fat-track{height:9px;border-radius:20px;position:relative;overflow:visible;background:linear-gradient(90deg,#e8c46f 0 15%,#5da77c 15% 78%,#c85d52 78% 100%)}
.fat-track i{position:absolute;top:-4px;left:50%;width:3px;height:17px;background:#172b25;border:1px solid #fff;border-radius:3px;transform:translateX(-50%);box-shadow:0 1px 3px #172b2540}
.fat-track-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:8px;margin-top:7px}
.fat-range-note{font-size:9px;color:var(--muted);line-height:1.45;margin:8px 0 0}
.result-label{gap:8px}
.result-label span{letter-spacing:.5px}

/* GUI v1.0.2: equal-width input and results columns */
@media(min-width:761px){
  .main-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* GUI v1.0.3: align the Step 01 and Step 02 panels to equal outer height */
@media (min-width:761px){
  .main-grid{align-items:stretch}
  .input-panel,.results-panel{height:100%;min-width:0}
}

/* GUI v1.0.1: optional body-fat measurements */
.fat-unavailable{margin-top:12px;padding:22px 14px;min-height:100px;display:flex;align-items:center;justify-content:center;text-align:center;border:1px dashed #cbd9d0;border-radius:9px;background:#f7faf8;color:#66766d;font-size:13px;font-weight:700}

/* GUI v1.1: personal report, BMR and activity calorie estimates */
.full-width-field{grid-column:1 / -1}
.full-width-field input{text-transform:none}
.report-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px;padding:19px 18px 17px;border:0;border-top:8px solid #08a878;border-radius:5px;background:#25262d;box-shadow:0 5px 14px #142b2412;overflow:hidden}
.report-heading>div{min-width:0;flex:1}
.report-heading .eyebrow{margin:0 0 8px;color:#55d7ad;font-size:9px;letter-spacing:2px;font-weight:900}
.report-heading h2{font-family:Manrope,'DM Sans',Arial,sans-serif;font-size:clamp(19px,2vw,25px);font-weight:800;line-height:1.18;letter-spacing:.1px;text-transform:none;margin:0;color:#fff;text-shadow:0 1px 0 #0003}
.report-meta{font-size:10px;color:#c7d0d0;margin:9px 0 0;line-height:1.5}
.report-heading::after{content:'🏋️';flex:0 0 auto;order:2;font-size:clamp(29px,4vw,43px);line-height:1;filter:drop-shadow(0 2px 2px #0005);margin:0 4px}
.print-btn{position:relative;z-index:1;flex:0 0 auto;border:1px solid #5b766d;background:#303b38;color:#e9fff4;border-radius:6px;padding:10px 12px;font:800 10px 'DM Sans';cursor:pointer}
.print-btn:hover{background:#176b50;border-color:#58b995}
.energy-card{background:linear-gradient(145deg,#f1f9f4,#fff)}
.energy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.energy-row strong{display:block;font:800 27px Manrope;color:var(--green);letter-spacing:-.5px;margin:3px 0}
.energy-row small{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}
.energy-icon{width:42px;height:42px;border-radius:13px;background:#e0f1e7;display:grid;place-items:center;font-size:21px}
.calorie-note,.activity-intro{font-size:9px;color:var(--muted);line-height:1.55;margin:10px 0 0}
.calorie-table-wrap{overflow-x:auto;margin-top:10px}
.calorie-table{width:100%;border-collapse:collapse;font-size:10px}
.calorie-table th{text-align:left;color:#64756b;background:#f0f7f2;font-size:9px;letter-spacing:.3px}
.calorie-table th,.calorie-table td{padding:9px 8px;border-bottom:1px solid #e6eee8}
.calorie-table td:last-child,.calorie-table th:last-child{text-align:right;white-space:nowrap;font-weight:700}
.calorie-table tbody tr:last-child td{border-bottom:0}
@media(max-width:760px){.report-heading{flex-direction:column}.print-btn{width:100%}}
@media print{
  @page{size:A4;margin:13mm}
  body{background:#fff!important;color:#172b25!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .topbar,.hero,.input-panel,.bottom-info,footer,.section-title,.empty-state,.print-btn{display:none!important}
  .container{max-width:none;margin:0;padding:0}
  .main-grid{display:block!important}
  .results-panel{border:0!important;box-shadow:none!important;padding:0!important;height:auto!important}
  #results{display:block!important}
  .report-heading{display:block!important;margin-bottom:12px;break-after:avoid}
  .result-card{break-inside:avoid;box-shadow:none!important}
  .disclaimer{font-size:9px!important}
}

/* GUI v1.1.1: athletic personal-report banner inspired by the supplied reference */
@media(max-width:760px){
  .report-heading{gap:10px;padding:16px 14px}
  .report-heading::after{font-size:30px;margin:0}
  .report-heading h2{font-size:clamp(18px,4.8vw,22px);line-height:1.2}
}
@media print{
  .report-heading{background:#25262d!important;border-top:8px solid #08a878!important}
  .report-heading h2{color:#fff!important}
  .report-heading .eyebrow{color:#55d7ad!important}
  .report-meta{color:#c7d0d0!important}
  .print-btn{display:none!important}
}

/* GUI v1.1.2: refined report title typography */
.report-heading h2{text-transform:none;font-size:clamp(19px,2vw,25px);font-weight:800;letter-spacing:0;line-height:1.2}
@media(max-width:760px){.report-heading h2{font-size:clamp(18px,4.8vw,22px)}}
