html body.sudoku-workspace{background:#101e20!important;color:#f5f1e4!important;--ink:#243a35;--muted:#52675d}
html body.sudoku-workspace [hidden]{display:none!important}
html body.sudoku-workspace .shell,html body.sudoku-workspace .game-shell{max-width:1180px;padding:16px 24px;margin:auto}
html body.sudoku-workspace header{padding:8px 0 14px}body.sudoku-workspace .play-brand img{width:44px;height:55px}body.sudoku-workspace .play-brand span{font-size:18px!important}
body.sudoku-workspace h1{font:38px Georgia!important;margin:18px 0!important;color:#f4efdf!important;letter-spacing:-1px!important}body.sudoku-workspace h1 span{font:12px system-ui;letter-spacing:2px;text-transform:uppercase;display:inline-block;margin-left:15px;color:#c3d9c8}
html body.sudoku-workspace .layout,html body.sudoku-workspace .game-layout{display:grid;grid-template-columns:minmax(0,680px) minmax(200px,1fr);gap:28px;align-items:start}
html body.sudoku-workspace .panel,html body.sudoku-workspace .play-panel{background:#f4f1e7!important;color:#243a35!important;padding:20px;border:1px solid #aeb8a3!important;border-radius:18px;box-shadow:0 20px 60px #0003;min-width:0}
html body.sudoku-workspace #board{width:100%;max-width:600px;margin:auto;touch-action:manipulation;box-shadow:none!important}
html body.sudoku-workspace #board .cell{border-radius:0!important;box-shadow:none;min-height:0!important}html body.sudoku-workspace #board .cell.selected,html body.sudoku-workspace #board .cell.sel{outline:3px solid #0c695e!important;outline-offset:-3px;z-index:2}
html body.sudoku-workspace #board .digit{color:#173e36!important}html body.sudoku-workspace #board .bad .digit{color:#9c2437!important}html body.sudoku-workspace #board .pencil i{color:#3b5148!important}
html body.sudoku-workspace #palette{max-width:600px;margin:12px auto 8px;gap:4px;grid-template-columns:repeat(8,minmax(0,1fr))}html body.sudoku-workspace #palette.sudoku-palette-nine{grid-template-columns:repeat(9,minmax(0,1fr))}
html body.sudoku-workspace #palette button{padding:7px 1px;min-height:48px;border:1px solid #a8b5a8;border-radius:7px;background:#fffdf5!important;color:#203e35!important;box-shadow:0 2px 0 #b5bdaf!important;gap:2px}
html body.sudoku-workspace #palette .token{width:clamp(20px,5vw,34px);height:clamp(20px,5vw,34px)}html body.sudoku-workspace #palette small,html body.sudoku-workspace #palette .remaining{font-size:9px;color:#43594e!important}html body.sudoku-workspace #palette .digit{font-size:23px;color:#193c32!important}
html body.sudoku-workspace .sudoku-tap-tools{max-width:600px;margin:auto;padding:0;border:0;box-shadow:none;background:none;gap:6px}html body.sudoku-workspace .sudoku-tap-tools button{background:#234b43;color:#fff8e9;border:0;border-radius:7px;min-height:44px;box-shadow:none;font-size:12px}body.sudoku-workspace #sudoku-tap-help{display:none}
html body.sudoku-workspace .tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:600px;margin:8px auto;gap:6px}html body.sudoku-workspace .tools button{padding:10px 2px;min-height:46px;border:1px solid #a1b1a3;border-radius:7px;background:#fffdf5;color:#203d33;box-shadow:none;font:600 12px system-ui;white-space:normal;line-height:1.3}html body.sudoku-workspace .tools #notes[aria-pressed=true]{background:#234b43!important;color:#fff!important}
body.sudoku-workspace .sudoku-live-tip,body.sudoku-workspace #message{font:12px/1.5 system-ui!important;color:#3d5549!important;min-height:0!important;margin:10px 0!important}
body.sudoku-workspace .sudoku-options{border-top:1px solid #b4bdb0;margin-top:10px;padding-top:8px}body.sudoku-workspace summary{cursor:pointer;font:600 13px system-ui;min-height:44px;display:flex;align-items:center}body.sudoku-workspace .sudoku-option-content{display:flex;flex-wrap:wrap;gap:8px}body.sudoku-workspace .sudoku-option-content button{min-height:44px;padding:10px;background:#e4e9da;border:1px solid #9cac9c;border-radius:6px;color:#203d33}body.sudoku-workspace .sudoku-option-content p{font:12px/1.5 system-ui;color:#465b50}
body.sudoku-workspace .sudoku-navigation summary{color:#c9dfce}html body.sudoku-workspace .sudoku-navigation nav{flex-wrap:wrap;max-height:none;overflow:visible}body.sudoku-workspace aside,body.sudoku-workspace aside p,body.sudoku-workspace aside h2,body.sudoku-workspace aside .rule,body.sudoku-workspace aside .small{color:#e0e6db!important}body.sudoku-workspace aside .tip{display:none}
body.sudoku-workspace .toolbar{gap:8px;margin-bottom:12px}body.sudoku-workspace .toolbar button,body.sudoku-workspace .toolbar select{min-height:44px;color:#203d33!important;background:#fffdf5!important;border:1px solid #a7b4a4;border-radius:7px;padding:8px}body.sudoku-workspace .run-status{color:#304d3e}
@media(max-width:760px){html body.sudoku-workspace .shell,html body.sudoku-workspace .game-shell{padding:8px 10px max(18px,env(safe-area-inset-bottom))}html body.sudoku-workspace .layout,html body.sudoku-workspace .game-layout{grid-template-columns:1fr;gap:20px}html body.sudoku-workspace .panel,html body.sudoku-workspace .play-panel{padding:10px;border-radius:12px}body.sudoku-workspace h1{font-size:29px!important;margin:8px 0 14px!important}body.sudoku-workspace h1 span{font-size:10px;margin-left:8px}body.sudoku-workspace aside{padding:10px}body.sudoku-workspace header .label,body.sudoku-workspace .intro p{display:none}html body.sudoku-workspace #palette button{min-height:48px}html body.sudoku-workspace .toolbar{font-size:12px}}
html body.sudoku-workspace .shell,html body.sudoku-workspace .game-shell{background:transparent!important;color:#f4efdf!important}html body.sudoku-workspace .sudoku-navigation summary{color:#c9dfce!important;-webkit-text-fill-color:#c9dfce!important}html body.sudoku-workspace h1,html body.sudoku-workspace h1 span{color:#f4efdf!important;-webkit-text-fill-color:#f4efdf!important}
html body.sudoku-workspace #palette button[aria-pressed=true]{outline:3px solid #0a6757;outline-offset:-3px;background:#d9e8d5!important}html body.sudoku-workspace .sudoku-options .premium-controls{display:flex;flex-wrap:wrap;margin:0;padding:0;border:0;background:none;color:#234538}html body.sudoku-workspace #board-fit{max-width:160px}html body.sudoku-workspace aside{background:none!important}body.sudoku-workspace .sudoku-options .statline{font-size:12px;color:#375345}body.sudoku-workspace .sudoku-options .muted{display:none}
/* Keep the nine-value board and its input workspace within a typical laptop view. */
html body.sudoku-workspace .layout,html body.sudoku-workspace .game-layout{grid-template-columns:minmax(0,650px) minmax(200px,1fr)}
html body.sudoku-workspace #board{max-width:min(100%,calc(100dvh - 330px),560px);min-width:280px}
html body.sudoku-workspace .sudoku-rules{border:1px solid #779186;border-radius:9px;padding:0 14px;color:#f4efdf}
html body.sudoku-workspace .sudoku-rules>summary{min-height:48px;color:#f4efdf!important;-webkit-text-fill-color:#f4efdf!important}
html body.sudoku-workspace .sudoku-options button{width:auto!important;flex:1 1 40%;margin:0!important;font-size:12px}
html body.sudoku-workspace .game-guide{background:#f4f1e7!important;color:#243a35!important;padding:18px;border-radius:12px}html body.sudoku-workspace .game-guide :is(h2,p,summary){color:#243a35!important;-webkit-text-fill-color:#243a35!important}
@media(max-width:760px){html body.sudoku-workspace #board{max-width:100%;min-width:0}html body.sudoku-workspace .layout,html body.sudoku-workspace .game-layout{grid-template-columns:1fr}html body.sudoku-workspace .toolbar{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}html body.sudoku-workspace .toolbar button,html body.sudoku-workspace .toolbar select{font-size:12px;min-height:44px}html body.sudoku-workspace .toolbar label{font-size:11px}html body.sudoku-workspace #palette button{min-height:48px}html body.sudoku-workspace .sudoku-tap-tools button{font-size:11px}html body.sudoku-workspace .tools{margin-top:8px}html body.sudoku-workspace h1{margin:8px 0!important}}
@media(max-height:650px) and (min-width:761px){html body.sudoku-workspace #board{max-width:440px}}

/* Highlights change the surround, never the readability of entries. */
html body.sudoku-workspace #board,html body.sudoku-workspace #board .cell,html body.sudoku-workspace #board .cell :is(.digit,.token,.pigment,.shape,.notes-grid,.pencil,.note-slot,.pencil i){opacity:1!important;filter:none!important}
html body.sudoku-workspace #board .pencil:empty,html body.sudoku-workspace #board .note-slot:empty{display:none!important}
html body.sudoku-workspace .layout,html body.sudoku-workspace .game-layout{grid-template-columns:1fr}html body.sudoku-workspace #board{width:100%;max-width:560px;min-width:0}html body.sudoku-workspace #board[data-size="16"]{max-width:680px}html body.sudoku-workspace #board.study-enlarged{max-width:none!important;margin-left:0}html body.sudoku-workspace .boardwrap,html body.sudoku-workspace #board-zone{overflow:auto;max-width:100%;position:relative}html body.sudoku-workspace .study-surface{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}html body.sudoku-workspace .study-surface>div{min-width:0}html body.sudoku-workspace .study-dock{padding:14px;border:1px solid #b5c6af;border-radius:14px;background:#e9ede0}html body.sudoku-workspace .study-dock #palette,html body.sudoku-workspace .study-dock #palette.sudoku-palette-nine{grid-template-columns:repeat(3,minmax(0,1fr))}html body.sudoku-workspace .study-dock #palette[data-size="16"]{grid-template-columns:repeat(4,minmax(0,1fr))}html body.sudoku-workspace .study-dock .tools{grid-template-columns:repeat(2,minmax(0,1fr))}html body.sudoku-workspace .study-summary,html body.sudoku-workspace .study-help{color:#244c3d;font:13px/1.7 system-ui}html body.sudoku-workspace .study-notes:before{content:"NOTES ON · ";font-weight:bold}html body.sudoku-workspace .study-view{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;color:#294e40}html body.sudoku-workspace .study-view button{min-width:40px;min-height:42px;border:1px solid #9aaf9c;border-radius:8px;background:#194c40;color:white}html body.sudoku-workspace .study-coach{padding:18px;margin:12px 0;border:1px solid #b8a875;border-radius:12px;background:#fff3d4;color:#433d25;font:14px/1.7 system-ui}html body.sudoku-workspace .toolbar button,html body.sudoku-workspace .toolbar button span{background:#fffdf5!important;color:#203d33!important;-webkit-text-fill-color:#203d33!important}html body.sudoku-workspace .veil.show,html body.sudoku-workspace #pause-veil:not([hidden]){position:absolute;inset:0;z-index:20!important;background:#f0f1e6!important;color:#234b3b!important}html body.sudoku-workspace .cell:focus-visible{outline:3px solid #0b715b!important;outline-offset:-3px}@media(max-width:900px){html body.sudoku-workspace .study-surface{grid-template-columns:1fr;gap:12px}html body.sudoku-workspace .study-dock #palette.sudoku-palette-nine{grid-template-columns:repeat(5,minmax(0,1fr))}html body.sudoku-workspace .study-dock .tools{grid-template-columns:repeat(4,minmax(0,1fr))}html body.sudoku-workspace .study-dock #palette button{min-height:54px}}
