.dzch{--dzch-ink:#20252b;--dzch-border:#dce0e4;--dzch-accent:#f4cc00;box-sizing:border-box;background:#fff;border:1px solid var(--dzch-border);border-radius:10px;padding:20px;margin:24px 0;color:var(--dzch-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55;max-width:1100px;width:100%;text-align:left}
.dzch *{box-sizing:border-box}.dzch [hidden]{display:none!important}.dzch-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}.dzch-picker-label{flex:1;min-width:0;font-size:12px;font-weight:600}.dzch-picker{display:block;width:100%;max-width:100%;padding:9px;border:1px solid var(--dzch-border);border-radius:5px;background:#fff;color:var(--dzch-ink);font:inherit;font-size:14px}.dzch-download{font-size:13px;color:var(--dzch-ink);text-decoration:underline;text-underline-offset:4px}.dzch-heading{display:flex;flex-direction:column;border-bottom:2px solid var(--dzch-accent);padding:0 0 14px;margin-bottom:20px;overflow-wrap:anywhere}.dzch-heading strong{font-size:21px}.dzch-meta{font-size:13px;color:#59616a;margin-top:4px}.dzch-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.dzch-left{min-width:0}.dzch-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%;aspect-ratio:1;border:2px solid #41494c;border-radius:3px;overflow:hidden;outline-offset:4px}.dzch-square{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;container-type:inline-size}.dzch-light{background:#edf0e8}.dzch-dark{background:#7d9586}.dzch-last.dzch-light{background:#f4e7a0}.dzch-last.dzch-dark{background:#c4bc66}.dzch-piece{display:block;font-family:"DejaVu Sans","Segoe UI Symbol","Noto Sans Symbols 2",serif;font-size:clamp(18px,4vw,48px);font-size:78cqw;line-height:1;position:relative;z-index:1;font-weight:400;user-select:none}.dzch-white-piece{color:#fff;text-shadow:1px 0 #20252b,-1px 0 #20252b,0 1px #20252b,0 -1px #20252b}.dzch-black-piece{color:#151a20;text-shadow:0 1px 0 #ffffff60}.dzch-rank,.dzch-file{position:absolute;font-size:10px;font-size:19cqw;font-family:system-ui,sans-serif;line-height:1;font-weight:600;color:#26382b}.dzch-rank{top:3px;left:3px}.dzch-file{bottom:2px;right:3px}.dzch-controls{display:flex;gap:6px;justify-content:center;margin-top:12px}.dzch .dzch-button{appearance:none;border:1px solid var(--dzch-border);border-radius:5px;background:#f4f5f6;color:var(--dzch-ink);padding:9px 12px;min-width:44px;min-height:44px;line-height:1.2;font-size:17px;font-family:inherit;cursor:pointer;box-shadow:none}.dzch .dzch-button:hover:not(:disabled){background:#fff1a6}.dzch .dzch-button:disabled{opacity:.35;cursor:default}.dzch :focus-visible{outline:3px solid #2661aa;outline-offset:2px}.dzch .dzch-return{display:block;font-size:13px;margin:10px auto 0;width:100%;background:#fff8d8}.dzch-status{margin-top:12px;font-size:13px;text-align:center}.dzch-hint{font-size:12px;color:#59616a;line-height:1.5;margin:10px 0 0}.dzch-moves{max-height:600px;overflow:auto;overscroll-behavior:contain;padding:2px 9px 12px 2px;scrollbar-width:thin;overflow-wrap:anywhere}.dzch .dzch-move{appearance:none;display:inline-block;font:inherit;font-weight:650;line-height:1.65;padding:3px 6px;margin:1px;border:0;border-radius:4px;background:transparent;color:var(--dzch-ink);text-transform:none;cursor:pointer;box-shadow:none}.dzch .dzch-move:hover{background:#f2f3f5}.dzch .dzch-move.dzch-active{background:var(--dzch-accent);color:#16191c}.dzch-comment{display:block;margin:8px 4px 10px;color:#434c55;font-size:14px;font-weight:400;line-height:1.65;white-space:pre-wrap}.dzch-variation{margin:10px 0 10px 5px;padding:5px 0 5px 10px;border-left:3px solid #d1d8df;background:#f8f9fa}.dzch-variation .dzch-variation{margin-left:0;padding-left:8px}.dzch-variation summary{font-size:12px;color:#59616a;cursor:pointer;padding:3px 0}.dzch-variation .dzch-move{font-size:14px}.dzch-result{display:block;margin:14px 6px}.dzch-error{padding:14px;border-left:4px solid #b52b29;background:#fff1ee;color:#84221f}.dzch-editor{padding:20px;border:1px solid #ccd1d7;border-radius:8px}.dzch-editor .dzch{font-size:15px}.dzch-editor textarea{font-family:monospace}
@media(max-width:680px){.dzch{padding:12px}.dzch-layout{grid-template-columns:1fr;gap:18px}.dzch-heading strong{font-size:18px}.dzch-moves{max-height:440px;border-top:1px solid var(--dzch-border);padding-top:12px}.dzch-controls{justify-content:space-between}.dzch-variation{padding-left:7px}.dzch-toolbar{gap:10px}.dzch-picker-label{flex-basis:100%}}
/* 0.1.1 — DZSzach branding, larger board and SVG pieces. */
.dzch{max-width:1280px;padding:20px;border-top:4px solid #f4cc00;border-radius:8px;container-type:inline-size}
.dzch-brand{font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;gap:10px;margin-bottom:18px;color:#454c55}.dzch-brand:before{content:"";width:48px;height:8px;background:repeating-linear-gradient(90deg,#f4cc00 0 8px,#20252b 8px 16px)}
.dzch-layout{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:24px}.dzch-toolbar{gap:10px}.dzch-heading{margin-bottom:18px}.dzch-board{border:3px solid #343c3a;border-radius:4px;box-shadow:0 3px 12px #20252b12}.dzch-light{background:#f0f0df}.dzch-dark{background:#78937b}.dzch-last.dzch-light{background:#f6e895}.dzch-last.dzch-dark{background:#beae53}
.dzch .dzch-piece{position:absolute;inset:2%;width:96%;height:96%;display:block;font-size:initial;text-shadow:none;pointer-events:none}.dzch .dzch-piece svg{display:block;width:100%;height:100%;max-width:none;max-height:none}.dzch-rank,.dzch-file{font-size:clamp(10px,18cqw,14px);font-weight:750;z-index:2;color:#253b2a}.dzch-dark .dzch-rank,.dzch-dark .dzch-file{color:#fff}.dzch-controls{gap:8px;background:#20252b;border-radius:7px;padding:7px;margin-top:14px}.dzch .dzch-controls .dzch-button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;border:0;background:transparent;color:#fff;padding:10px;min-height:48px}.dzch .dzch-controls .dzch-step{background:#f4cc00;color:#20252b;flex:1.25}.dzch .dzch-controls .dzch-button:hover:not(:disabled){background:#40474d;color:#fff}.dzch .dzch-controls .dzch-step:hover:not(:disabled){background:#ffe04a;color:#20252b}.dzch .dzch-controls .dzch-button:disabled{opacity:.3}.dzch .dzch-button.dzch-expand{font-size:14px;font-weight:700;background:#20252b;color:#fff;border-bottom:3px solid #f4cc00;padding:8px 14px}.dzch .dzch-button.dzch-expand:hover{background:#3c434a;color:#fff}.dzch .dzch-button.dzch-fold{font-size:12px;min-height:36px;padding:7px 10px}.dzch-moves{max-height:720px;padding:8px 12px;background:#fafbfc;border:1px solid #e0e4e7;border-radius:6px;font-size:16px}.dzch-comment{font-size:15px;color:#333c43}.dzch-variation{border-left-color:#dbb900;background:#f5f6f7}.dzch-variation summary{font-size:13px}.dzch .dzch-move.dzch-active{box-shadow:inset 0 -2px 0 #c3a200}.dzch-status{font-size:14px;font-weight:600}.dzch :focus-visible{outline-color:#1e64ac}.dzch:focus-visible{outline-offset:4px}
.dzch-dialog{position:fixed;inset:12px;z-index:2147483647;width:calc(100vw - 24px);max-width:1440px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:auto;border:0;border-radius:10px;padding:0;background:#f5f6f7;overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 60px #0005}.dzch-dialog::backdrop{background:#10171dcc}.dzch-dialog .dzch-expanded{margin:0;max-width:none;min-height:100%;border:0;border-top:5px solid #f4cc00;padding:18px 24px}
.dzch-expanded .dzch-layout{grid-template-columns:minmax(240px,min(52%,calc(100dvh - 275px))) minmax(0,1fr)}
.dzch-expanded .dzch-moves{max-height:calc(100dvh - 200px);font-size:17px}.dzch-expanded .dzch-heading{padding-bottom:8px;margin-bottom:12px}.dzch-expanded .dzch-brand{margin-bottom:10px}.dzch-expanded .dzch-hint{font-size:11px}.dzch-expanded .dzch-controls{margin-top:10px}.dzch-expanded .dzch-toolbar{margin-bottom:10px}
@container(max-width:650px){.dzch-layout{grid-template-columns:1fr}.dzch-moves{max-height:520px}.dzch-picker-label{flex-basis:100%}.dzch-heading strong{font-size:19px}}
@media(max-width:680px){.dzch{padding:12px}.dzch .dzch-controls .dzch-button{min-height:44px;padding:8px}.dzch-dialog{inset:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.dzch-dialog .dzch-expanded{padding:12px}.dzch-expanded .dzch-layout{grid-template-columns:1fr}.dzch-expanded .dzch-moves{max-height:480px}.dzch-brand{margin-bottom:12px}}

/* 0.1.2 — compact, quiet navigation. */
.dzch .dzch-controls{justify-content:center;gap:4px;background:transparent;border-radius:0;padding:0;margin-top:10px}
.dzch .dzch-controls .dzch-button{flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border:1px solid #dce1e5;border-radius:4px;background:#f5f6f7;color:#30373c}
.dzch .dzch-controls .dzch-button svg{width:18px;height:18px}
.dzch .dzch-controls .dzch-step{flex:0 0 36px;background:#f5f6f7;color:#30373c}
.dzch .dzch-controls .dzch-button:hover:not(:disabled){background:#fff4be;color:#20252b;border-color:#d8ba30}
.dzch .dzch-button.dzch-expand{min-height:34px;padding:6px 10px;font-size:13px;font-weight:500;border:1px solid #dce1e5;background:#f5f6f7;color:#30373c}
.dzch .dzch-button.dzch-expand:hover{background:#fff4be;color:#20252b}
.dzch .dzch-return{width:auto;min-height:32px;padding:6px 10px;font-size:12px}
.dzch-status{margin-top:8px;font-size:12px;font-weight:400;color:#59616a}
@media(pointer:coarse){.dzch .dzch-controls .dzch-button{flex-basis:44px;width:44px;height:44px;min-height:44px}}

/* 0.1.3 — annotations and reading layout. */
.dzch-board{position:relative}
.dzch-square-mark{position:absolute;inset:0;opacity:.33;pointer-events:none;z-index:0}
.dzch .dzch-arrows{position:absolute;inset:0;width:100%;height:100%;max-width:none;z-index:3;pointer-events:none;opacity:.8}
.dzch-sticky .dzch-left{position:sticky;top:var(--dzch-sticky-top,12px);align-self:start}
.dzch .dzch-moves{background:#fff;border:0;border-radius:0;padding:0 8px 8px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.dzch .dzch-moves>.dzch-move{font-size:16px;font-weight:750}
.dzch .dzch-comment{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.75;font-weight:400;color:#41484e;margin:10px 4px 16px}
.dzch .dzch-variation{border-left:2px solid #c5cbd0;background:#f7f8f9;margin:12px 0 16px 5px;padding:5px 8px 7px 12px}
.dzch .dzch-variation .dzch-move{font-size:14px;font-weight:550;color:#444b51}
.dzch .dzch-variation .dzch-comment{font-size:14px}
.dzch .dzch-variation .dzch-variation{background:#fff;border-left-color:#dce0e4;margin-left:4px;padding-left:10px}
.dzch .dzch-variation .dzch-active{color:#16191c}
.dzch-sticky:not(.dzch-expanded) .dzch-moves{max-height:none;overflow:visible}
.dzch-expanded.dzch-sticky .dzch-left{top:12px}

/* 0.1.4 — figurine notation and opt-in analysis. */
.dzch .dzch-notation-label{font-size:12px;font-weight:400;display:flex;align-items:center;gap:5px}
.dzch .dzch-notation{font:inherit;color:#30373c;background:#fff;border:1px solid #dce1e5;border-radius:4px;padding:5px;min-height:32px}
.dzch .dzch-figurine{display:inline-block;position:relative;width:1.1em;height:1.1em;vertical-align:-.18em}
.dzch .dzch-figurine-svg,.dzch .dzch-figurine svg{display:block;width:100%;height:100%;max-width:none}
.dzch .dzch-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dzch .dzch-evaluation{border-top:1px solid #e5e8eb;margin-top:12px;padding-top:9px;font-size:12px;font-family:system-ui,sans-serif;color:#59616a}
.dzch .dzch-stored-eval{margin-bottom:7px;font-variant-numeric:tabular-nums}
.dzch .dzch-analyze{min-height:32px;padding:5px 10px;font-size:12px;background:#fff}
.dzch .dzch-analyze[aria-pressed=true]{border-color:#c9ac26;background:#fff8da}
.dzch .dzch-engine-output{margin-top:8px;font-size:12px;line-height:1.6}
.dzch .dzch-engine-score{color:#20252b;font-size:15px;font-variant-numeric:tabular-nums}
.dzch .dzch-engine-pv{margin-top:5px;color:#30373c;font-size:13px;line-height:1.8}
.dzch .dzch-pv-move{white-space:nowrap}
