/* Clinical tools visual polish — 2026-10-08 */
:root{--h-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;}
html,body{font-family:var(--h-font);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;background:var(--h-bg);color:var(--h-text)}
button,input,select{font-family:var(--h-font)}:focus-visible{outline:3px solid rgba(4,123,144,.24);outline-offset:2px}
.brand{font-size:16px;font-weight:700;color:var(--h-ink)}
.main{max-width:1240px;padding:0 26px 72px}.hero{padding:58px 20px 42px}
.eyebrow{font-size:12px;letter-spacing:.16em;color:#768a8f}
.hero h1{font-size:48px;line-height:1.08;letter-spacing:-.035em;font-weight:700;color:var(--h-ink)}
.hero>p:last-child{max-width:700px;margin-top:16px;font-size:16px;line-height:1.7;color:var(--ds-muted)}
.notice{border:1px solid var(--h-line);border-radius:12px;padding:15px 17px;margin-bottom:30px;box-shadow:none}.notice strong,.notice span{font-size:14px;line-height:1.75}
.formula-toolbar{margin:-4px 0 34px}.formula-search{height:44px;border-radius:10px;border-color:var(--ds-line)}
.section{margin-bottom:42px}.sectionhead{margin-bottom:14px}.sectionhead h2{font-size:23px;letter-spacing:-.02em;font-weight:700;color:var(--h-ink)}.sectionhead p{font-size:13px}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.card{min-height:210px;padding:20px;border-radius:13px;border-color:var(--ds-line);box-shadow:none;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.card:hover{transform:translateY(-1px);border-color:#cbd8db;box-shadow:0 6px 16px rgba(5,27,32,.05)}
.icon{height:31px;min-width:34px;border-radius:8px;font-size:12px}.card h3{font-size:19px;line-height:1.35;letter-spacing:-.01em;margin:15px 0 6px}.card p{font-size:14px;line-height:1.75}
.bottom{padding-top:13px}.bottom button,.openext{font-size:14px;font-weight:600;color:var(--h-blue)}
.sourcebox{border-radius:14px;padding:24px;background:var(--ds-ink)}
dialog{border-radius:14px;box-shadow:0 20px 70px rgba(5,27,32,.18)}.dhead{padding:18px 20px 13px}.dhead h2{font-size:21px}.dhead button{border-radius:9px}.body{padding:18px 20px 22px}
.field input,.field select{border-radius:8px}.check{border-radius:8px}.calc,.reset{border-radius:8px}.result{border-radius:10px}
@media(max-width:950px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.main{padding:0 12px 54px}.hero{padding:42px 10px 32px}.hero h1{font-size:38px}.hero>p:last-child{font-size:16px}.grid{grid-template-columns:1fr}.card{min-height:160px;padding:15px}.section{margin-bottom:34px}.formula-toolbar{margin-bottom:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Comfortable form sizes also prevent mobile browsers zooming on input focus. */
.field{font-size:14px}.field input,.field select{font-size:16px;min-height:46px}
.check{font-size:15px;line-height:1.65}.calc,.reset{font-size:15px;min-height:44px}
.result span{font-size:14px;line-height:1.75}.cite,.warn{font-size:13px;line-height:1.75}
.top,.source-tag,.bottom>a:not(.openext){font-size:12px}
.bottom{margin-top:auto;align-items:center}.bottom button,.openext{min-height:40px;display:inline-flex;align-items:center}
.dhead button{width:44px;height:44px;flex-shrink:0}.formula-search{min-height:48px}
.sourcebox p{font-size:14px}.card{min-width:0}.card h3,.card p{overflow-wrap:anywhere}
@media(max-width:760px){
  .hero{padding-top:34px}.card{padding:18px;min-height:190px}
  .formgrid{grid-template-columns:1fr}.body{padding:20px 18px 24px}
}
