:root{color-scheme:light;--ink:#242528;--line:#b9babe;--hover:#f1f1f1;--dark:#303238;--focus:#0056a6}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:1rem/1.5 system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif}
main{width:min(calc(100% - 2rem),39rem);margin:0 auto;padding:1rem 0 1.5rem}
[hidden]{display:none!important}
.comparison{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line)}
.comparison>div{background:#fff;min-width:0}
.comparison span{display:block;padding:.35rem .6rem;font-size:.875rem;font-weight:650}
.swatch{height:clamp(6rem, 22vw, 9rem);border-top:1px solid var(--line)}
.panel{margin-top:1rem;border:1px solid var(--line)}
.mode{display:flex;border-bottom:1px solid var(--line);padding:.25rem;gap:.25rem}
.mode button{border-color:transparent;background:white;min-width:5.4rem}
.mode [aria-pressed=true]{border-color:var(--dark);background:var(--dark);color:white}
.mode [aria-pressed=true]:hover{background:#46484c}
.channels{padding:.2rem .7rem}
.channel{display:grid;grid-template-columns:1.4rem minmax(3rem,1fr) 5.6rem;gap:.65rem;align-items:center;min-height:54px}
.channel+.channel{border-top:1px solid #e1e1e1}
.channel label{font-size:.875rem;font-weight:750}
input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:44px;min-width:0;margin:0;background:transparent;cursor:ew-resize;accent-color:#242528;touch-action:pan-y}
input[type=range]::-webkit-slider-runnable-track{height:9px;background:var(--track);border:1px solid #3336}
input[type=range]::-moz-range-track{height:7px;background:var(--track);border:1px solid #3336}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:24px;background:#303238;border:2px solid white;box-shadow:0 0 0 1px #303238;margin-top:-9px;border-radius:2px}
input[type=range]::-moz-range-thumb{width:13px;height:22px;background:#303238;border:2px solid white;box-shadow:0 0 0 1px #303238;border-radius:2px}
.number{display:flex;align-items:center;justify-content:flex-end;gap:.26rem;font-size:.875rem}
.number input{width:4.5rem;height:40px;font:inherit;font-size:1rem;text-align:right;padding:0 .4rem;border:1px solid #919399;background:#fff;color:#242528;border-radius:2px;font-variant-numeric:tabular-nums}
.number input:read-only{background:white}
button{font:inherit;font-weight:650;color:inherit;min-height:44px;min-width:44px;background:#fff;padding:.28rem .8rem;border:1px solid #777a7d;border-radius:2px;cursor:pointer;touch-action:manipulation}
button:hover{background:var(--hover)}
:where(button,input,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.primary,.primary:hover{color:#fff;background:var(--dark);border-color:var(--dark)}
.primary:hover{background:#46484c}
.actions{display:flex;gap:.5rem;padding:.6rem .7rem}
.panel .actions{border-top:1px solid var(--line);justify-content:flex-end}
.panel .actions button{min-width:7rem}
.result{margin-top:.85rem}
.result p{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
.result strong{font-size:2rem;margin-left:.25em}
.result .actions{padding:.65rem 0 0}
.result button{flex:1}
footer{font-size:.875rem;color:#55575a;margin-top:.7rem;text-align:right}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
