/* NVIDIAddict — Sudoku (2026-10-03). Everything is scoped under .ag-sudoku. */

.ag-sudoku {
  --sd-cell: var(--surface);
  --sd-thin: color-mix(in srgb, var(--muted) 32%, var(--surface));
  --sd-thick: color-mix(in srgb, var(--ink) 78%, var(--surface));
  --sd-peer: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --sd-same: color-mix(in srgb, var(--accent) 24%, var(--surface));
  --sd-sel: color-mix(in srgb, var(--accent) 36%, var(--surface));
  --sd-given: var(--ink);
  --sd-user: color-mix(in srgb, var(--accent) 72%, var(--ink));
  --sd-note: color-mix(in srgb, var(--muted) 85%, var(--ink));
  --sd-hint: color-mix(in srgb, var(--gold) 85%, var(--ink));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ag-sudoku {
    --sd-thin: color-mix(in srgb, var(--muted) 26%, var(--surface));
    --sd-thick: color-mix(in srgb, var(--muted) 72%, var(--surface));
    --sd-peer: color-mix(in srgb, var(--ink) 8%, var(--surface));
    --sd-same: color-mix(in srgb, var(--accent) 17%, var(--surface));
    --sd-sel: color-mix(in srgb, var(--accent) 27%, var(--surface));
    --sd-user: var(--accent);
    --sd-note: var(--muted);
    --sd-hint: var(--gold);
  }
}
:root[data-theme="dark"] .ag-sudoku {
  --sd-thin: color-mix(in srgb, var(--muted) 26%, var(--surface));
  --sd-thick: color-mix(in srgb, var(--muted) 72%, var(--surface));
  --sd-peer: color-mix(in srgb, var(--ink) 8%, var(--surface));
  --sd-same: color-mix(in srgb, var(--accent) 17%, var(--surface));
  --sd-sel: color-mix(in srgb, var(--accent) 27%, var(--surface));
  --sd-user: var(--accent);
  --sd-note: var(--muted);
  --sd-hint: var(--gold);
}

/* ---- layout ---- */
.ag-sudoku .sd { position: relative; --g: 320px; --s: 33px; --T: 3px; --pw: 328px; --kh: 52px; --gap: 5px; }
.ag-sudoku .sd-play { position: relative; display: grid; justify-content: center; margin: 0 auto; }
.ag-sudoku .sd[data-mode="stack"] .sd-play { grid-template-columns: var(--pw); grid-template-areas: "strip" "board" "pad"; }
.ag-sudoku .sd[data-mode="side"] .sd-play { grid-template-columns: var(--g) var(--sw); grid-template-rows: auto 1fr; grid-template-areas: "board strip" "board pad"; column-gap: 18px; }

/* ---- strip: level, mistakes, pause, new ---- */
.ag-sudoku .sd-strip { grid-area: strip; display: flex; align-items: center; gap: 12px; height: 44px; margin-bottom: 8px; min-width: 0; }
.ag-sudoku .sd[data-mode="stack"] .sd-strip { width: var(--g); justify-self: center; }
.ag-sudoku .sd[data-mode="stack"][data-pad="split"] .sd-strip { width: 100%; }
.ag-sudoku .sd-lv, .ag-sudoku .sd-mis { display: grid; line-height: 1.15; min-width: 0; }
.ag-sudoku .sd-mis { flex: 0 0 auto; }
.ag-sudoku .sd-lv small, .ag-sudoku .sd-mis small { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-sudoku .sd-lv b { font: 800 17px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-sudoku .sd-mis b { font: 700 16px/1.15 var(--mono); }
.ag-sudoku .sd-mis.has b { color: var(--crit); }
.ag-sudoku .sd-mis[hidden] { display: none; }
.ag-sudoku .sd-flex { flex: 1 1 0; }
.ag-sudoku .sd-ib { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
.ag-sudoku .sd-ib svg, .ag-sudoku .sd-resume svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ag-sudoku .sd-ib:disabled { opacity: .4; cursor: default; }
.ag-sudoku .sd-newbtn { flex: 0 0 auto; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 14.5px var(--sans); cursor: pointer; }

/* ---- the grid ---- */
.ag-sudoku .sd-board { grid-area: board; position: relative; width: var(--g); height: var(--g); justify-self: center; margin-bottom: 10px; }
.ag-sudoku .sd[data-mode="side"] .sd-board { margin-bottom: 0; align-self: start; }
.ag-sudoku .sd-grid { display: grid; grid-template-columns: repeat(3, auto); gap: var(--T); padding: var(--T); width: var(--g); height: var(--g); background: var(--sd-thick); border-radius: 10px; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ag-sudoku .sd-box { display: grid; grid-template-columns: repeat(3, var(--s)); grid-template-rows: repeat(3, var(--s)); gap: 1px; background: var(--sd-thin); overflow: hidden; }
.ag-sudoku .sd-box:nth-child(1) { border-top-left-radius: 7px; }
.ag-sudoku .sd-box:nth-child(3) { border-top-right-radius: 7px; }
.ag-sudoku .sd-box:nth-child(7) { border-bottom-left-radius: 7px; }
.ag-sudoku .sd-box:nth-child(9) { border-bottom-right-radius: 7px; }
.ag-sudoku .sd-cell { position: relative; display: flex; align-items: center; justify-content: center; background: var(--sd-cell); color: var(--sd-user); cursor: pointer;
  font: 500 calc(var(--s) * .6)/1 var(--sans); font-variant-numeric: tabular-nums; transition: background-color .12s; }
.ag-sudoku .sd-cell::after { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; pointer-events: none; }
.ag-sudoku .sd-v { display: block; }
.ag-sudoku .sd-given { color: var(--sd-given); font-weight: 700; }
.ag-sudoku .sd-peer { background: var(--sd-peer); }
.ag-sudoku .sd-same { background: var(--sd-same); }
.ag-sudoku .sd-tiparea { background: color-mix(in srgb, var(--gold) 13%, var(--sd-cell)); }
.ag-sudoku .sd-tippat { background: color-mix(in srgb, var(--gold) 16%, var(--sd-cell)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 80%, transparent); }
.ag-sudoku .sd-sel { background: var(--sd-sel); box-shadow: inset 0 0 0 2px var(--accent); }
.ag-sudoku .sd-tiptarget { background: color-mix(in srgb, var(--gold) 30%, var(--sd-cell)); box-shadow: inset 0 0 0 2px var(--gold); }
.ag-sudoku .sd-hinted { color: var(--sd-hint); }
.ag-sudoku .sd-clash { background: color-mix(in srgb, var(--crit) 13%, var(--sd-cell)); }
.ag-sudoku .sd-bad { color: var(--crit); background: color-mix(in srgb, var(--crit) 15%, var(--sd-cell)); }
.ag-sudoku .sd-bad.sd-sel { background: color-mix(in srgb, var(--crit) 24%, var(--sd-cell)); box-shadow: inset 0 0 0 2px var(--crit); }
.ag-sudoku .sd-notes { position: absolute; inset: 1px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.ag-sudoku .sd-notes i { display: flex; align-items: center; justify-content: center; font: 600 max(8.5px, calc(var(--s) * .27))/1 var(--sans); font-style: normal; color: var(--sd-note); }
.ag-sudoku .sd-notes i.on { color: var(--sd-user); font-weight: 800; }
.ag-sudoku .is-done .sd-cell { cursor: default; }
.ag-sudoku .is-loading .sd-cell { color: transparent; }
@media (hover: hover) { .ag-sudoku .sd-cell:hover:not(.sd-sel) { filter: brightness(1.08); } }

/* ---- motion: under 300ms per element, nothing at all with reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .ag-sudoku .sd-pop .sd-v { animation: sdPop .17s cubic-bezier(.2, .9, .3, 1.3); }
  .ag-sudoku .sd-shake .sd-v { animation: sdShake .22s ease-in-out; }
  .ag-sudoku .sd-wave::after { animation: sdWave .24s ease-out var(--dl, 0ms) both; }
  .ag-sudoku .sd-tip { animation: sdIn .18s ease-out; }
  .ag-sudoku .sd-key.sd-justdone { animation: sdDone .28s ease-out; }
  .ag-sudoku .sd-card { animation: sdIn .2s ease-out; }
  .ag-sudoku .sd-wait i { animation: sdDot 1.2s ease-in-out infinite; }
  .ag-sudoku .sd-wait i:nth-child(2) { animation-delay: .15s; }
  .ag-sudoku .sd-wait i:nth-child(3) { animation-delay: .3s; }
}
@keyframes sdPop { from { transform: scale(.55); opacity: .25; } to { transform: scale(1); opacity: 1; } }
@keyframes sdShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes sdWave { 0% { opacity: 0; } 35% { opacity: .34; } 100% { opacity: 0; } }
@keyframes sdIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sdDone { 40% { transform: scale(1.06); } }
@keyframes sdDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ---- the pad: tools and digits ---- */
.ag-sudoku .sd-pad { grid-area: pad; display: grid; width: var(--pw); justify-self: center; gap: var(--gap); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ag-sudoku .sd[data-pad="split"] .sd-pad { grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: repeat(2, var(--kh)); row-gap: 4px; }
.ag-sudoku .sd[data-pad="row"] .sd-pad { grid-template-columns: repeat(36, minmax(0, 1fr)); grid-template-rows: 48px 58px; column-gap: 6px; row-gap: 8px; }
.ag-sudoku .sd[data-pad="keys"] .sd-pad { width: var(--sw); grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 52px repeat(3, var(--kh)); gap: 8px; align-self: start; margin-top: 4px; }
.ag-sudoku .sd[data-pad="keys"] .sd-tool { margin-bottom: 4px; }

.ag-sudoku .sd-key, .ag-sudoku .sd-tool { position: relative; min-width: 0; padding: 0; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .08s, background-color .15s, opacity .15s, border-color .15s; }
.ag-sudoku .sd-key { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--raised); }
.ag-sudoku .sd-key b { font: 600 clamp(22px, calc(var(--kh) * .5), 38px)/1 var(--sans); font-variant-numeric: tabular-nums; }
.ag-sudoku .sd[data-pad="row"] .sd-key b { font-size: 29px; }
.ag-sudoku .sd-key small { position: absolute; right: 5px; bottom: 3px; font: 600 10px/1 var(--mono); color: var(--muted); }
.ag-sudoku .sd[data-pad="keys"] .sd-key small { right: 8px; bottom: 6px; font-size: 11px; }
.ag-sudoku .sd-key:active:not(:disabled), .ag-sudoku .sd-tool:active:not(:disabled) { transform: scale(.95); }
.ag-sudoku .sd-key.sd-focus { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); background: var(--accent-soft); }
.ag-sudoku .sd-key.sd-out { opacity: .3; }
.ag-sudoku .sd-key.sd-out small, .ag-sudoku .notes-on .sd-key small { visibility: hidden; }
/* Notes mode: each digit moves to the corner it will take inside a cell, so the mode is obvious at a glance. */
.ag-sudoku .notes-on .sd-key { background: color-mix(in srgb, var(--accent) 7%, var(--raised)); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ag-sudoku .notes-on .sd-key b { position: absolute; left: calc(var(--nx) * 30% + 20%); top: calc(var(--ny) * 30% + 20%); transform: translate(-50%, -50%); font-size: clamp(15px, calc(var(--kh) * .34), 26px); font-weight: 600; color: var(--sd-user); }
.ag-sudoku .sd-key[data-d="1"] { --nx: 0; --ny: 0; } .ag-sudoku .sd-key[data-d="2"] { --nx: 1; --ny: 0; } .ag-sudoku .sd-key[data-d="3"] { --nx: 2; --ny: 0; }
.ag-sudoku .sd-key[data-d="4"] { --nx: 0; --ny: 1; } .ag-sudoku .sd-key[data-d="5"] { --nx: 1; --ny: 1; } .ag-sudoku .sd-key[data-d="6"] { --nx: 2; --ny: 1; }
.ag-sudoku .sd-key[data-d="7"] { --nx: 0; --ny: 2; } .ag-sudoku .sd-key[data-d="8"] { --nx: 1; --ny: 2; } .ag-sudoku .sd-key[data-d="9"] { --nx: 2; --ny: 2; }

.ag-sudoku .sd-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); background: var(--surface); font: 600 11px/1.1 var(--sans); }
.ag-sudoku .sd-tool svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ag-sudoku .sd[data-pad="row"] .sd-tool, .ag-sudoku .sd[data-pad="keys"] .sd-tool { flex-direction: row; gap: 7px; font-size: 13px; }
.ag-sudoku .sd-tool:disabled { opacity: .38; cursor: default; }
.ag-sudoku .sd-tool[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ag-sudoku .sd-onoff { font: 700 9.5px/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 2px 5px; border-radius: 999px; background: var(--raised); color: var(--muted); }
.ag-sudoku .sd-tool[aria-pressed="true"] .sd-onoff { background: rgba(0, 0, 0, .18); color: inherit; }
.ag-sudoku .sd[data-pad="split"] .sd-onoff, .ag-sudoku .sd[data-pad="keys"] .sd-onoff { display: none; }
.ag-sudoku .sd-hn { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #1A1305; font: 700 10px/16px var(--mono); font-style: normal; text-align: center; }
.ag-sudoku .sd-hn[hidden] { display: none; }
.ag-sudoku .is-done .sd-pad, .ag-sudoku .is-loading .sd-pad, .ag-sudoku .is-paused .sd-pad { opacity: .45; pointer-events: none; }

/* ---- hint card, loading and pause cover ---- */
.ag-sudoku .sd-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; justify-content: center; padding: 10px 40px 11px 12px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: 0 -6px 24px rgba(0, 0, 0, .28); }
.ag-sudoku .sd-tip:not(.over) { box-shadow: none; }
.ag-sudoku .sd-tip b { align-self: flex-start; margin-bottom: 5px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #1A1305; font: 700 10.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.ag-sudoku .sd-tip p { font-size: 14.5px; line-height: 1.42; color: var(--ink); }
.ag-sudoku .sd-tipx { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 20px; color: var(--muted); }
.ag-sudoku .sd-aside { position: absolute; display: grid; gap: 6px; align-content: start; padding: 2px 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ag-sudoku .sd-aside b { color: var(--ink); font: 700 13px var(--sans); }
.ag-sudoku .sd-cover { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; border-radius: 10px; text-align: center;
  background: color-mix(in srgb, var(--bg) 93%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); color: var(--muted); }
.ag-sudoku .sd-cover p { font-size: 14.5px; }
.ag-sudoku .sd-cover.paused p { font: 800 21px var(--display); color: var(--ink); }
.ag-sudoku .sd-resume { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--sans); cursor: pointer; }
.ag-sudoku .sd-resume svg { fill: currentColor; stroke: none; }
.ag-sudoku .sd-wait { display: flex; gap: 8px; }
.ag-sudoku .sd-wait i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .6; }

/* ---- sheets: new puzzle and result ---- */
.ag-sudoku .sd-sheet { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 12px; background: rgba(5, 8, 5, .58); }
.ag-sudoku .sd-card { width: min(100%, 420px); max-height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; gap: 12px; padding: 16px; border-radius: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.ag-sudoku .sd-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-sudoku .sd-card h4 { font-size: 21px; }
.ag-sudoku .sd-x { flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.ag-sudoku .sd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ag-sudoku .sd-row span { display: grid; line-height: 1.2; }
.ag-sudoku .sd-row small { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ag-sudoku .sd-row b { font-size: 15.5px; }
.ag-sudoku .sd-row em { font-style: normal; font: 600 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.ag-sudoku .sd-row em.ok { color: var(--good); }
.ag-sudoku .sd-sub { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: -4px; }
.ag-sudoku .sd-note { font-size: 12.5px; color: var(--warn); }
.ag-sudoku .sd-lvgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ag-sudoku .sd-lvgrid.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-sudoku .sd-lvbtn { display: grid; gap: 1px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ag-sudoku .sd-lvgrid.sm .sd-lvbtn { min-height: 44px; padding: 6px 10px; text-align: center; }
.ag-sudoku .sd-lvbtn b { font-size: 15px; }
.ag-sudoku .sd-lvbtn small { font: 500 11.5px var(--mono); color: var(--muted); }
.ag-sudoku .sd-lvgrid.sm .sd-lvbtn small { display: none; }
.ag-sudoku .sd-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ag-sudoku .sd-time b { font: 800 44px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ag-sudoku .sd-time em { font-style: normal; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.ag-sudoku .sd-time i { margin-left: auto; font-style: normal; font: 700 13px var(--mono); color: var(--accent); }
.ag-sudoku .sd-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-sudoku .sd-chips span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--raised); }
.ag-sudoku .sd-chips small { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ag-sudoku .sd-chips b { font-size: 15px; }
.ag-sudoku .sd-statline { font-size: 13px; color: var(--muted); }
.ag-sudoku .sd-line { font-size: 13.5px; line-height: 1.45; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.ag-sudoku .sd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-sudoku .sd-acts .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; font-size: 14.5px; border-radius: 11px; }
.ag-sudoku .sd-res { display: grid; gap: 12px; align-content: start; min-width: 0; }
/* A phone on its side: the result card goes wide and two-column instead of tall. */
@media (max-height: 560px) and (min-width: 640px) {
  .ag-sudoku .sd-sheet[data-kind="result"] .sd-card { width: min(100%, 640px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; padding: 14px 16px; }
  .ag-sudoku .sd-sheet[data-kind="result"] .sd-card-head { grid-column: 1 / -1; }
  .ag-sudoku .sd-sheet[data-kind="result"] .sd-res { gap: 10px; }
  .ag-sudoku .sd-sheet[data-kind="result"] .sd-time b { font-size: 38px; }
  .ag-sudoku .sd-sheet[data-kind="new"] .sd-card { width: min(100%, 560px); gap: 10px; padding: 14px 16px; }
  .ag-sudoku .sd-sheet[data-kind="new"] .sd-lvgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- below the fold ---- */
.ag-sudoku .sd-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 26px; }
.ag-sudoku .sd-panel { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ag-sudoku .sd-panel h3 { font-size: 16px; }
.ag-sudoku .sd-muted { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ag-sudoku .sd-muted.small { font-size: 12.5px; }
.ag-sudoku .sd-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ag-sudoku .sd-week span { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 9px; background: var(--raised); border: 1px solid transparent; }
.ag-sudoku .sd-week span.now { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ag-sudoku .sd-week small { font: 600 10.5px var(--mono); color: var(--muted); }
.ag-sudoku .sd-week i { font-style: normal; height: 16px; line-height: 16px; font-weight: 800; color: var(--good); }
.ag-sudoku .sd-week em { font-style: normal; font: 500 10px var(--mono); color: var(--muted); white-space: nowrap; }
.ag-sudoku .sd-week span.ok em { color: var(--ink); }
.ag-sudoku .sd-kv { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.ag-sudoku .sd-kv b { color: var(--ink); font-family: var(--mono); }
.ag-sudoku .sd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ag-sudoku .sd-table th, .ag-sudoku .sd-table td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ag-sudoku .sd-table thead th { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ag-sudoku .sd-table tbody th { text-align: left; font-weight: 600; }
.ag-sudoku .sd-table td { font-family: var(--mono); }
.ag-sudoku .sd-tog { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.ag-sudoku .sd-tog input { flex: 0 0 auto; appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); cursor: pointer; transition: background-color .15s; }
.ag-sudoku .sd-tog input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background-color .15s; }
.ag-sudoku .sd-tog input:checked { background: var(--accent); border-color: transparent; }
.ag-sudoku .sd-tog input:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.ag-sudoku .sd-tog span { display: grid; gap: 1px; }
.ag-sudoku .sd-tog b { font-size: 14px; }
.ag-sudoku .sd-tog small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ag-sudoku .sd-fill { justify-self: start; min-height: 44px; }
.ag-sudoku .sd-levels { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.ag-sudoku .sd-levels dt { font-weight: 700; }
.ag-sudoku .sd-levels dd { margin: 0; color: var(--muted); line-height: 1.4; }
