:root { color-scheme: light; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif; background: #eef0ef; color: #182523; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 62rem); margin: auto; padding: clamp(1.3rem, 5vw, 3.8rem) 0 2rem; }
h1, p, figure { margin: 0; }
h1 { font-size: clamp(2.35rem, 7vw, 4.3rem); letter-spacing: -.09em; line-height: 1.04; }
header { margin-bottom: clamp(1.2rem, 4vw, 2.35rem); }
header p { margin-top: .75rem; color: #455853; }
.comparison { display: grid; grid-template-columns: minmax(16rem, .65fr) minmax(0, 1.35fr); gap: 1.15rem; align-items: start; }
.panel, .chart { padding: clamp(.95rem, 3vw, 1.6rem); border: 1px solid #d5ddda; border-radius: .95rem; background: #fafcfb; }
.inputs { display: grid; gap: .9rem; }
.field, .person { --ink: #175a4d; }
.second { --ink: #664f80; }
label { display: flex; align-items: center; font-size: .9rem; gap: .35rem; font-weight: 750; margin-bottom: .4rem; white-space: nowrap; }
label i { width: .56rem; height: .56rem; background: var(--ink); border-radius: 50%; }
.entry { display: flex; align-items: center; border: 1px solid #b9c7c1; border-radius: .5rem; background: white; padding-right: .65rem; }
.entry:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.entry:has([aria-invalid="true"]) { border-color: #ac4139; }
input { min-width: 0; width: 100%; padding: .62rem .25rem .62rem .7rem; border: 0; outline: none; color: #182523; background: transparent; font: 700 1.15rem system-ui, sans-serif; }
.entry span { color: #4c5855; font-size: .85rem; }
#range, #error { margin-top: .62rem; color: #52665f; font-size: .84rem; }
#error { color: #8c251f; }
.difference { display: grid; gap: .25rem; margin-top: 1rem; padding: .8rem .9rem; border-radius: .6rem; background: #e5eeea; color: #164f44; }
.difference span { font-size: .9rem; font-weight: 700; }
.difference output { font: 800 clamp(1.55rem, 4vw, 2.25rem)/1.1 system-ui, sans-serif; }
.actions { display: flex; margin-top: .75rem; }
.actions button { flex: 1; min-height: 2.9rem; padding: .25rem .4rem; border: 0; border-radius: .55rem; color: white; background: #175a4d; font: inherit; font-weight: 750; cursor: pointer; }
.actions button:hover { background: #12483e; }
.actions button:focus-visible { outline: 2px solid #175a4d; outline-offset: 2px; }
.chart { padding-top: 1.5rem; }
.plot { position: relative; margin-left: 3.3rem; height: clamp(14rem, 48vw, 24rem); }
.grid, .tick { position: absolute; inset: 0; }
.tick { top: auto; height: 1px; background: #d9e2df; }
.tick:nth-child(odd) { background: #c0ceca; }
.tick:last-child { background: #778c84; }
.tick span { position: absolute; right: calc(100% + .4rem); transform: translateY(-50%); font: 600 .71rem/1 system-ui, sans-serif; color: #4f635d; white-space: nowrap; }
.person { position: absolute; bottom: 0; height: var(--height, 0%); left: 31%; transform: translateX(-50%); }
.person.second { left: 70%; }
.person img { display: block; width: auto; height: 100%; max-width: none; }
.model-note { margin-top: .6rem; color: #52665f; font-size: .82rem; }
.gap { position: absolute; left: calc(50.5% - 1px); width: 11px; border: solid #687771; border-width: 1px 0 1px 1px; }
figcaption { margin: .45rem 13% 0 calc(3.3rem + 12%); display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: .82rem; color: #495b55; white-space: nowrap; }
figcaption b { display: block; color: #175a4d; font: 750 .94rem/1.3 system-ui, sans-serif; }
figcaption span + span b { color: #664f80; }
@media (max-width: 680px) { .comparison { grid-template-columns: 1fr; gap: .65rem; } .inputs { grid-template-columns: 1fr 1fr; gap: .55rem; } .difference { grid-template-columns: 1fr auto; align-items: center; margin-top: .65rem; } }
@media (max-width: 350px) { main { width: calc(100% - 1.25rem); } .panel, .chart { padding-inline: .7rem; } .plot { margin-left: 2.8rem; } .tick span { font-size: .67rem; } figcaption { margin-left: calc(2.8rem + 12%); } }
