*{box-sizing:border-box}body{margin:0;background:#f3f8f8;color:#163e4b;font:16px/1.65 Tahoma,Arial,sans-serif}.top{background:white;border-bottom:1px solid #d7e5e8;padding:16px 5%;display:flex;align-items:center;justify-content:space-between}.top img{width:165px;height:auto}a{color:#008689}main{max-width:1200px;margin:30px auto;padding:0 24px 60px}h1{font-size:32px;margin:8px 0}h2{font-size:22px;margin:12px 0}.eyebrow{font-size:12px;letter-spacing:2px;color:#138487}.muted{color:#607b84;font-size:14px}.card,.report{background:#fff;border:1px solid #d7e5e8;border-radius:16px;padding:26px;margin:20px 0}.grid,.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:block;font-weight:bold}input,select,textarea{display:block;border:1px solid #bacfd3;border-radius:8px;padding:12px;width:100%;font:inherit;background:white;color:inherit;margin:8px 0 16px}.check{display:flex;align-items:flex-start;gap:10px;font-size:14px;margin:14px 0}.check input{width:18px;flex-shrink:0;margin:5px 0}.check:has(input:checked){color:#007676}button{background:#008b8e;border:1px solid #008b8e;color:white;border-radius:9px;padding:11px 18px;cursor:pointer;font:inherit}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:white;color:#087d80}.summary{padding:16px;background:#dcf2ec;border-radius:10px}.table-wrap{overflow:auto;background:white;border:1px solid #d7e5e8;border-radius:12px}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;border-bottom:1px solid #e3ecef;padding:12px;vertical-align:top}th{background:#edf6f6}.pager{display:flex;justify-content:center;align-items:center;gap:18px;margin:18px}.error{background:#fff0e4;padding:14px;border-radius:10px;color:#894d16}.report-head{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #008b8e;padding-bottom:12px}.report-head img{width:145px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{background:#f0f9f8;padding:14px;border-radius:10px}.metric strong{display:block;font-size:25px}.metric small{color:#607b84}.callout{border-left:4px solid #008b8e;background:#f0f9f8;padding:16px}.report p{overflow-wrap:anywhere}.report table td{padding:8px}.report section{break-inside:avoid;margin:22px 0}.report .notes{white-space:pre-wrap}.illustration{width:160px;max-height:165px;object-fit:cover;float:right;margin:0 0 10px 18px}.source{font-size:12px;color:#526f78}.draft{font-weight:bold;color:#965414}body:not(.reviewed) .review-status{color:#965414}body.reviewed .review-status{color:#007676}[hidden]{display:none!important}@media(max-width:700px){main{padding:0 14px 40px}.grid,.toolbar{grid-template-columns:1fr;gap:0}.metric-grid{grid-template-columns:1fr 1fr}.card,.report{padding:16px}.report-head{display:block}h1{font-size:26px}}@page{size:A4;margin:14mm}@media print{body{background:white;color:#183742;font-size:11px}.no-print{display:none!important}main{margin:0;padding:0;max-width:none}.report{margin:0;padding:0;border:0;border-radius:0}.report-head img{width:115px}.report h2{font-size:17px}.metric-grid{grid-template-columns:repeat(4,1fr)}.metric strong{font-size:20px}table{font-size:11px}.report section{margin:14px 0}.source{font-size:9px}.illustration{width:120px;max-height:120px}body:not(.reviewed) .report:before{content:'ฉบับร่าง — ยังไม่ได้ตรวจยืนยันบุคคลและผลตรวจ';display:block;color:#9a4b11;font-size:15px;margin-bottom:10px}button{display:none}a{color:inherit;text-decoration:none}}
/* Instrument layout reconstructed from the two supplied screen photographs. */
main:has(.machine-report){max-width:1440px}.machine-report{border:0;padding:0;background:transparent;border-radius:0}.instrument-identity{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;padding:10px 5px;color:#3d576a}.instrument-identity small{white-space:nowrap}.instrument-screen{background:#c6d0d1;color:#344960;border:1px solid #a5b6bf;font-family:Tahoma,Arial,sans-serif}.instrument-columns{display:grid;grid-template-columns:1.02fr 1fr;gap:15px;padding:14px 18px 20px}.instrument-screen h3{font-size:clamp(16px,1.65vw,25px);line-height:1.3;font-weight:400;margin:0 0 5px}.instrument-top{display:grid;grid-template-columns:1.06fr 1fr;gap:8px;margin-bottom:6px}.height-weight,.bmi-card,.stat-card,.trend-card{background:#f6faf8;border-radius:6px}.height-weight{padding:0 16px}.height-weight>div{display:flex;align-items:center;justify-content:space-between;height:65px;font-size:22px;gap:8px}.height-weight>div:first-child{border-bottom:1px solid #9cb1bd}.height-weight strong,.stat-card>strong{font-size:clamp(27px,2.9vw,39px);font-weight:400;color:#217ccc;white-space:nowrap}.bmi-card{padding:10px 16px 3px}.bmi-card h3{margin-bottom:4px}.body-composition{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:58px 61px 61px 75px;background:#bdd4f3;border-top:1px solid #89a4c3;border-left:1px solid #89a4c3;margin-bottom:7px}.body-cell{border-bottom:1px solid #89a4c3;border-right:1px solid #89a4c3;padding:5px 10px;font-size:clamp(15px,1.6vw,23px);line-height:1.25;display:flex;align-items:center;gap:14px;min-width:0}.body-cell strong{font-size:clamp(24px,2.65vw,37px);font-weight:400;white-space:nowrap}.bc-weight{grid-area:1/1/2/5}.bc-ffm{grid-area:2/1/3/4}.bc-muscle{grid-area:3/1/4/3}.bc-water{grid-area:4/1/5/2}.bc-protein{grid-area:4/2/5/3}.bc-mineral{grid-area:3/3/5/4}.bc-fat{grid-area:2/4/5/5}.bc-weight span{width:27%}.bc-ffm span{width:37%}.bc-muscle{justify-content:space-between}.bc-mineral,.bc-fat,.bc-water,.bc-protein{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px}.bc-mineral strong,.bc-fat strong{align-self:center}.bc-water strong,.bc-protein strong{font-size:clamp(23px,2.5vw,35px)}.instrument-pairs{display:grid;grid-template-columns:1fr 1fr;gap:7px}.stat-card{padding:8px 16px 4px;text-align:center;min-height:83px}.stat-card>strong{display:block;line-height:1.3;text-align:right}.stat-card h3{white-space:nowrap}.instrument-gauge{position:relative;padding-top:33px;margin:0 auto;max-width:245px}.gauge-pointer{position:absolute;top:0;transform:translateX(-50%);background:var(--pointer);color:white;line-height:1.25;font-size:15px;padding:2px 11px;border-radius:2px}.gauge-pointer:after{content:'';position:absolute;bottom:-7px;left:calc(50% - 7px);border-top:7px solid var(--pointer);border-left:7px solid transparent;border-right:7px solid transparent}.gauge-track{height:10px;display:flex;overflow:hidden;border-radius:10px}.gauge-track i{flex:1;background:#009fee}.gauge-track i:nth-child(2){background:#07c776}.gauge-track i:nth-child(3){background:#fa5d7e}.visceral .gauge-track i:first-child{background:#07c776}.visceral .gauge-track i:nth-child(2){background:#f2a151}.gauge-labels{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;font-size:13px;line-height:1.2;margin-top:5px;color:#64747b}.gauge-missing{display:block;font-size:10px;line-height:1.2;text-align:center;color:#64747b;margin:4px 0}.instrument-right{display:grid;grid-template-rows:repeat(5,1fr);gap:8px}.instrument-trend{min-width:0;display:flex;flex-direction:column}.instrument-trend h3{font-size:clamp(12px,1.2vw,17px);white-space:nowrap;margin:0 0 4px}.trend-card{flex:1;min-height:90px;padding:0 8px}.trend-card svg{width:100%;height:100%;max-height:119px;display:block;overflow:visible}.trend-grid{stroke:#dce8df;stroke-width:1}.trend-line{stroke:#35424a;stroke-width:1.5}.trend-card circle{fill:#35424a}.trend-card text{font-family:Arial,sans-serif;text-anchor:middle;fill:#35424a;font-size:10px}.trend-card .trend-date,.trend-card .trend-year{fill:#9aafb0;font-size:8px}.trend-card .trend-empty{fill:#7f9098;font-family:Tahoma,sans-serif;font-size:13px}.instrument-actions{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#007de9,#0052d4);padding:13px 22px;gap:10px}.instrument-actions>div{display:flex;gap:20px}.instrument-actions button{font-size:24px;border:1px solid #218fef;border-radius:7px;background:#168eed;color:#ecfbff;padding:10px 22px;font-weight:400}.instrument-actions #instrument-exit{border:0;background:none;padding-left:0}.instrument-actions button:disabled{opacity:.65}.instrument-footnote{font-size:11px;color:#5f7581;line-height:1.55;padding:8px 6px}.instrument-footnote p{margin:5px 0}.instrument-footnote .error{padding:8px;margin:6px 0}.machine-report .notes{white-space:pre-wrap}.machine-report .instrument-columns{break-inside:avoid}@media(max-width:900px){.instrument-columns{grid-template-columns:1fr;padding:10px}.instrument-screen h3{font-size:20px}.instrument-trend h3{font-size:15px;white-space:normal}.instrument-right{gap:12px}.trend-card svg{height:126px;max-height:none}.body-cell{font-size:17px}.body-cell strong{font-size:28px}.height-weight>div{font-size:18px}.stat-card h3{font-size:18px}.instrument-identity{flex-wrap:wrap}.instrument-actions button{font-size:16px;padding:9px}.instrument-actions>div{gap:8px}}@media(max-width:460px){.body-cell{padding:4px;font-size:13px;gap:4px}.body-cell strong,.bc-water strong,.bc-protein strong{font-size:20px}.height-weight{padding:0 8px}.height-weight>div{font-size:15px}.height-weight strong,.stat-card>strong{font-size:25px}.bmi-card{padding:8px}.stat-card{padding:7px}.stat-card h3,.instrument-screen h3{font-size:16px}.gauge-labels{font-size:10px}.gauge-pointer{font-size:12px}.instrument-trend h3{font-size:13px}.instrument-actions{padding:10px}.instrument-actions button{font-size:13px}.gauge-missing{font-size:8px}}
@page{size:A4 landscape;margin:8mm}@media print{.machine-report{width:100%;font-size:11px}.instrument-identity{font-size:10px;padding:0 0 5px}.instrument-columns{grid-template-columns:1.02fr 1fr;gap:10px;padding:10px}.instrument-screen{-webkit-print-color-adjust:exact;print-color-adjust:exact}.instrument-screen h3{font-size:17px}.height-weight>div{height:48px;font-size:17px}.height-weight strong,.stat-card>strong{font-size:28px}.bmi-card{padding:6px 10px}.body-composition{grid-template-rows:43px 46px 46px 56px}.body-cell{font-size:16px;padding:4px 8px;gap:8px}.body-cell strong,.bc-water strong,.bc-protein strong{font-size:27px}.stat-card{padding:5px 10px;min-height:64px}.stat-card h3{font-size:17px}.gauge-labels{font-size:10px}.gauge-pointer{font-size:12px}.gauge-missing{font-size:8px}.instrument-gauge{padding-top:27px}.instrument-trend h3{font-size:12px;white-space:nowrap}.instrument-right{gap:6px}.trend-card{min-height:65px}.trend-card svg{max-height:92px;height:100%}.instrument-footnote{font-size:8px;padding:4px 0}.instrument-actions{display:none!important}.machine-report .instrument-columns{break-inside:avoid}body:not(.reviewed) .machine-report:before{font-size:10px;margin:0 0 4px}}

