:root{color-scheme:light;--ink:#172d26;--green:#215b47;--paper:#f4f7f2;--line:#bbc9bf;--accent:#e1a650;font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}main{width:min(calc(100% - 28px),500px);margin:20px auto 0}header,.bar,.actions,.levels{display:flex;align-items:center;gap:8px}header{padding:0 0 16px;border-bottom:1px solid var(--line)}h1{font-size:26px;margin:0;letter-spacing:0}time{margin-left:auto;font:600 16px ui-monospace,monospace;color:var(--green);min-width:55px;text-align:right}.bar{justify-content:space-between;margin:15px 0 12px;gap:6px}.levels{gap:2px;padding:3px;border-radius:7px;background:#e6eee7}
button{cursor:pointer;color:inherit;font:inherit;border:0;border-radius:6px;background:#e6eee7;touch-action:manipulation}button:focus-visible{outline:2px solid #9a5e14;outline-offset:2px;z-index:1}.bar button{min-height:34px;padding:3px 10px;font-size:14px;white-space:nowrap}.levels button[aria-pressed=true],.actions button[aria-pressed=true]{color:white;background:var(--green)}#next{background:var(--green);color:white}
#board{width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr));border:2px solid var(--ink);background:white}.cell{display:grid;place-items:center;border-radius:0;background:white;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:clamp(16px,1.35rem,22px);font-weight:600;min-width:0;padding:0;color:#277140;line-height:1}.cell.given{color:var(--ink);font-weight:750}.cell.major-r{border-right:2px solid var(--ink)}.cell.major-b{border-bottom:2px solid var(--ink)}.cell.end-r{border-right:0}.cell.end-b{border-bottom:0}.cell.peer{background:#edf3ec}.cell.match{background:#dceadc}.cell.selected{background:#99c4aa;color:#142c22}.cell.conflict{color:#a12623;background:#f9dddd}.notes{display:grid;width:100%;height:100%;grid-template:repeat(3,1fr)/repeat(3,1fr);font-size:9px;font-weight:500;color:#365b4c}.notes span{display:grid;place-items:center}
#numbers{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;margin:12px 0 8px}#numbers button{height:40px;font-weight:700;font-size:17px;color:var(--green)}.actions{justify-content:center}.actions button{width:45px;height:40px;display:grid;place-items:center}.actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button:disabled{opacity:.43;cursor:default}#status{text-align:center;margin:8px 0 12px;font-size:13px;min-height:1.4em;color:var(--green)}
@media(min-height:850px){main{margin-top:38px}}@media(max-width:370px){main{width:calc(100% - 18px)}.bar button{padding-inline:8px}.cell{font-size:17px}.notes{font-size:8px}}
