* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", Roboto, sans-serif; background: #171a15; color: #eef2e6; }
header { padding: 14px 16px 6px; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.sub { color: #b9c4a8; font-size: 13px; margin: 0 0 8px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { color: #ffd98a; background: #262b21; padding: 6px 10px; border-radius: 999px; text-decoration: none; font-size: 13px; }
.card { background: #20241d; border: 1px solid #39412f; border-radius: 12px; margin: 12px; padding: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #b9c4a8; }
select, input[type="range"], button, textarea { font-size: 14px; }
select { background: #2c3325; color: #eef2e6; border: 1px solid #4a553c; border-radius: 8px; padding: 7px; max-width: 210px; }
button { background: #3d4a2e; color: #fff; border: 1px solid #5a6b45; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
button:active { transform: scale(.98); }
.wipeWrap { position: relative; width: fit-content; max-width: 100%; margin: 4px auto; line-height: 0; background: #101210; border: 1px solid #4a553c; border-radius: 8px; overflow: hidden; }
.wipeWrap canvas { display: block; image-rendering: pixelated; }
.wipeWrap canvas.top { position: absolute; left: 0; top: 0; }
.tag { position: absolute; top: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.65); color: #ffd98a; padding: 3px 7px; border-radius: 6px; line-height: 1.2; pointer-events: none; }
.tagL { left: 6px; } .tagR { right: 6px; color: #9be29b; }
.wipeCtl { display: flex; align-items: center; gap: 8px; margin: 8px auto 2px; max-width: 520px; }
.wipeCtl input { flex: 1; }
.hint { color: #9aa78c; font-size: 12px; }
.verdict { margin-top: 12px; border-top: 1px dashed #4a553c; padding-top: 10px; }
.verdict .vrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verdict .vlabel { font-size: 13px; color: #ffd98a; font-weight: 600; }
.verdict button.vbtn { background: #2c3325; }
.verdict button.vbtn.on-dat { background: #2e7d32; border-color: #66bb6a; }
.verdict button.vbtn.on-chua { background: #a03428; border-color: #e57373; }
.verdict textarea { width: 100%; margin-top: 8px; min-height: 44px; background: #171a15; color: #eef2e6; border: 1px solid #4a553c; border-radius: 8px; padding: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border: 1px solid #39412f; padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #262b21; color: #ffd98a; }
.pass { color: #9be29b; font-weight: 700; }
.fail { color: #ff9d8a; font-weight: 700; }
.ramp { margin-bottom: 10px; }
.ramp h3 { font-size: 13px; margin: 0 0 4px; color: #ffd98a; font-weight: 600; }
.ramp .desc { color: #9aa78c; font-weight: 400; font-size: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.sw { width: 34px; height: 34px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); position: relative; }
.sw span { position: absolute; bottom: 1px; left: 2px; font-size: 8px; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
img.wide { width: 100%; height: auto; border-radius: 8px; }
details { margin-top: 10px; }
summary { cursor: pointer; color: #ffd98a; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
footer { padding: 4px 16px 20px; color: #77816a; font-size: 12px; }
canvas.checker { background: repeating-conic-gradient(#3a3a3a 0 25%, #555 0 50%) 0 0/16px 16px; }
