:root {
  color-scheme: dark;
  --cr-bg: #071012;
  --cr-panel: #101b20;
  --cr-panel-2: #13252b;
  --cr-text: #edf7f4;
  --cr-muted: #9bb5b1;
  --cr-line: #25434a;
  --cr-accent: #d8b75a;
  --cr-accent-2: #8bb7ff;
  --cr-warn: #ffbf69;
  --text: var(--cr-text);
  --muted: var(--cr-muted);
  --line-soft: rgba(255,255,255,.12);
  --line-strong: var(--cr-line);
  --chart-bg: #081326;
  --chart-grid: rgba(155, 181, 177, .22);
  --chart-axis: rgba(216, 183, 90, .68);
  --chart-text: #b8cbc7;
  --chart-line: #d8b75a;
}

* { box-sizing: border-box; }
body.cr-body {
  margin: 0;
  background: var(--cr-bg);
  color: var(--cr-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--cr-accent); }
.cr-subtle-link { font-size: 0.86rem; font-weight: 800; }
.cr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--cr-line);
  background: rgba(7, 16, 18, 0.95);
}
.cr-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--cr-text); text-decoration: none; }
.cr-wordmark {
  font-weight: 900;
  letter-spacing: 0;
  font-size: 1.46rem;
  line-height: 1;
  background: linear-gradient(90deg, #ffe19a 0%, var(--cr-accent) 48%, #f7f0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.cr-logo { height: 50px; width: auto; flex: 0 0 auto; }
.cr-elo-logo {
  height: 34px;
  width: auto;
  border-radius: 4px;
}
.cr-topbar-title {
  margin-right: auto;
  padding-left: 22px;
  color: var(--cr-text);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}
.cr-topbar-title:empty { display: none; }
.cr-demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
}
.cr-demo-surprise-button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 0.78rem;
}
.cr-show-me-arrow {
  color: #22c55e;
  font-weight: 950;
  letter-spacing: .02em;
}
.cr-demo-hint[hidden] {
  display: none;
}
.cr-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 0.9rem;
}
.cr-nav-primary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cr-nav-account {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.cr-nav-signed-in {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  max-width: 180px;
  color: var(--cr-muted);
  font-size: 0.74rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-nav-signed-in-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.cr-main { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.cr-history-page .cr-main {
  width: 95vw;
  max-width: none;
}
.cr-last-game-review-page .cr-main {
  width: min(1760px, calc(100vw - 12px));
  max-width: none;
}
.cr-sources-page .cr-topbar {
  min-height: 56px;
  padding: 0 22px;
}
.cr-sources-page .cr-logo {
  height: 32px;
}
.cr-sources-page .cr-wordmark {
  font-size: 1.08rem;
}
.cr-sources-page .cr-nav {
  gap: 12px;
  font-size: 0.78rem;
}
.cr-sources-page .cr-main {
  padding: 20px 0 44px;
}
.cr-sources-page h1 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}
.cr-sources-page fieldset {
  padding: 12px 14px;
}
.cr-sources-page .cr-fieldset-tools {
  margin-bottom: 8px;
}
.cr-hero { display: grid; grid-template-columns: minmax(240px, 0.55fr) minmax(700px, 1.45fr); gap: 36px; align-items: start; }
.cr-hero h1 { font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1.08; }
.cr-hero-copy p { font-size: 0.98rem; margin: 0 0 12px; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1.02; letter-spacing: 0; }
h2 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: 0; }
p { line-height: 1.55; }
.cr-muted { color: var(--cr-muted); }
.cr-choice-grid { display: grid; gap: 14px; }
.cr-launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.86fr);
  gap: 18px;
  align-items: stretch;
}
.cr-launch-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}
.cr-launch-or {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--cr-line);
  border-radius: 50%;
  color: var(--cr-accent);
  font-size: 0.9rem;
  font-weight: 900;
  background: #091210;
}
.cr-launch-panel-reference .cr-choice { min-height: 164px; }
.cr-choice-title {
  margin: 0 0 2px;
  font-size: 1.15rem;
  color: var(--cr-text);
}
.cr-choice, .cr-panel {
  background: var(--cr-panel);
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 22px;
}
.cr-choice-strict { border-color: #58736f; }
.cr-choice { padding: 18px; }
.cr-choice h2 { font-size: 1rem; }
.cr-choice p { font-size: 0.92rem; margin: 0 0 14px; line-height: 1.42; }
button, .cr-button, .cr-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cr-accent);
  border-radius: 6px;
  background: var(--cr-accent);
  color: #06110f;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.cr-button-secondary {
  background: transparent;
  color: var(--cr-accent);
}
.cr-auth { max-width: 520px; margin: 0 auto; }
.cr-wide { max-width: 980px; margin: 0 auto; }
.cr-workflow-wide { width: min(1320px, calc(100vw - 32px)); margin: 0 auto; }
.cr-readable { max-width: 760px; margin: 0 auto; }
.cr-readable h2 { margin-top: 22px; }
.cr-readable-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  line-height: 1.45;
}
.cr-form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.cr-form-grid label {
  display: grid;
  gap: 7px;
}
.cr-form-note {
  margin: 0;
  font-size: 0.9rem;
}
.cr-code-block {
  overflow-x: auto;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: #071113;
  color: var(--cr-text);
  font-size: 0.88rem;
  line-height: 1.45;
}
.cr-curated-samples { margin-top: 18px; }
.cr-supplied-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(255,255,255,.025);
}
.cr-supplied-sample p { margin: 5px 0 0; }
.cr-supplied-sample-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
}
.cr-supplied-sample-compact strong {
  display: block;
  font-size: 0.94rem;
}
.cr-supplied-sample-compact p {
  font-size: 0.84rem;
  line-height: 1.34;
}
.cr-supplied-sample-compact button {
  justify-self: start;
}
.cr-supplied-sample-picker {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}
.cr-supplied-sample-picker > label {
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cr-supplied-sample-select {
  width: 100%;
  min-height: 118px;
  padding: 6px;
  border: 1px solid rgba(245, 205, 106, .22);
  border-radius: 8px;
  background: #071113;
  color: var(--cr-text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}
.cr-supplied-sample-select:focus {
  border-color: rgba(245, 205, 106, .62);
  box-shadow: 0 0 0 3px rgba(245, 205, 106, .12);
}
.cr-supplied-sample-select option {
  padding: 7px 8px;
}
.cr-supplied-sample-select option:checked {
  background: linear-gradient(90deg, rgba(245,205,106,.9), rgba(216,183,90,.72));
  color: #06110f;
}
.cr-supplied-sample-detail {
  min-height: 96px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.028);
}
.cr-supplied-sample-detail strong {
  display: block;
  color: var(--cr-text);
  font-size: 0.94rem;
  line-height: 1.22;
}
.cr-supplied-sample-detail p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
}
.cr-supplied-sample-picker button {
  justify-self: start;
  min-height: 34px;
}
.cr-back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cr-accent);
  font-weight: 800;
  text-decoration: none;
}
.cr-back-link::before { content: "< "; }
.cr-form { display: grid; gap: 14px; }
.cr-form label { display: grid; gap: 6px; color: var(--cr-muted); }
.cr-source-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}
.cr-source-workflow-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}
.cr-expand-panel {
  padding: 0;
  overflow: hidden;
}
.cr-expand-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.cr-expand-panel > summary::-webkit-details-marker {
  display: none;
}
.cr-expand-summary-text {
  display: grid;
  gap: 5px;
}
.cr-expand-title {
  color: var(--cr-text);
  font-size: 1.02rem;
  font-weight: 850;
}
.cr-expand-copy {
  color: var(--cr-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.cr-expand-indicator::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--cr-line);
  border-radius: 50%;
  color: var(--cr-accent);
  font-size: 1.05rem;
  font-weight: 800;
}
.cr-expand-panel[open] .cr-expand-indicator::before {
  content: "-";
}
.cr-expand-body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}
.cr-workflow-control-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}
.cr-workflow-control-grid > fieldset,
.cr-workflow-control-grid > .cr-game-type-panel {
  min-height: 100%;
}
.cr-workflow-control-grid > fieldset,
.cr-compact-game-type-panel fieldset {
  position: relative;
  padding-top: 18px;
}
.cr-workflow-control-grid legend,
.cr-compact-game-type-panel legend {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 7px;
  background: var(--cr-panel);
  color: var(--cr-text);
  font-size: 0.82rem;
  line-height: 1;
}
.cr-compact-game-type-panel legend {
  background: var(--cr-panel);
}
.cr-source-inline-row {
  display: grid !important;
  grid-template-columns: 104px minmax(180px, 1fr);
  gap: 10px !important;
  align-items: center;
  margin-bottom: 8px;
  color: var(--cr-muted);
}
.cr-source-inline-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cr-muted);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}
.cr-source-inline-row input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.cr-source-inline-row input[type="text"],
.cr-source-inline-row input:not([type]) {
  min-height: 32px;
  padding: 5px 8px;
}
.cr-sources-page input[name="lichess_username"],
.cr-sources-page input[name="chesscom_username"] {
  min-height: 32px;
  padding: 5px 8px;
}
.cr-pgn-file-input {
  margin-top: 9px;
}
.cr-source-workflow-panel h2 {
  margin: 0;
  font-size: 1.12rem;
}
.cr-reference-entry {
  background: rgba(8, 18, 16, 0.74);
  padding: 18px;
}
.cr-reference-entry h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}
.cr-reference-entry p {
  font-size: 0.92rem;
  margin: 0 0 14px;
}
.cr-source-choice-or {
  margin-top: 0;
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
}
.cr-game-type-panel {
  margin-top: 12px;
}
.cr-game-type-panel fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px 18px;
}
.cr-compact-game-type-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.cr-compact-game-type-panel fieldset {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 7px 12px;
  min-height: 100%;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 18px 14px 12px;
}
.cr-compact-game-type-panel .cr-fieldset-tools {
  margin-bottom: 4px;
}
.cr-compact-game-type-panel .cr-game-type-row,
.cr-compact-game-type-panel .cr-count-status,
.cr-compact-game-type-panel .cr-source-count-summary {
  font-size: 0.84rem;
}
.cr-compact-game-type-panel .cr-count-badge {
  font-size: 0.78rem;
}
.cr-game-type-panel legend,
.cr-game-type-panel .cr-fieldset-tools {
  grid-column: 1 / -1;
}
.cr-decision-panel {
  border: 1px solid rgba(216, 183, 90, .48);
  border-radius: 8px;
  padding: 16px;
  background: rgba(216, 183, 90, .08);
}
.cr-decision-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.cr-decision-panel p {
  margin: 0 0 10px;
  color: var(--cr-muted);
}
.cr-decision-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cr-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #081316;
  color: var(--cr-text);
}
.cr-source-inline-row input[type="checkbox"],
.cr-compact-game-type-panel input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
}
.cr-source-inline-row input[name="lichess_username"],
.cr-source-inline-row input[name="chesscom_username"] {
  min-height: 32px;
  padding: 5px 8px;
}
.cr-sources-page .cr-expand-body .cr-check {
  font-size: 0.86rem;
}
.cr-form input:focus {
  outline: 2px solid rgba(216, 183, 90, .4);
  outline-offset: 1px;
}
.cr-form label.is-invalid input,
.cr-form input[aria-invalid="true"] {
  border-color: var(--cr-warn);
  box-shadow: 0 0 0 2px rgba(255, 191, 105, .16);
}
.cr-field-message {
  min-height: 17px;
  color: var(--cr-warn);
  font-size: 0.82rem;
  line-height: 1.25;
}
.cr-field-line {
  min-height: 17px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-inline-action {
  color: var(--cr-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}
.cr-inline-action:hover { text-decoration: underline; }
button:disabled,
.cr-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.cr-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }
.cr-check input { width: auto; min-height: auto; }
.cr-game-type-row {
  justify-content: flex-start;
}
.cr-game-type-row.is-disabled {
  opacity: .5;
}
.cr-count-badge {
  color: var(--cr-muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.cr-fieldset-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cr-small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}
.cr-count-status {
  font-size: 0.86rem;
}
.cr-source-count-summary {
  grid-column: 1 / -1;
  margin: -1px 0 2px;
  color: var(--cr-muted);
  font-weight: 750;
  line-height: 1.25;
}
.cr-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset { border: 1px solid var(--cr-line); border-radius: 8px; padding: 16px; }
legend { color: var(--cr-text); font-weight: 800; }
.cr-alert { color: var(--cr-warn); }
.cr-progress { display: grid; gap: 10px; color: var(--cr-muted); }
.cr-admin-log {
  max-height: 260px;
  overflow: auto;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  background: rgba(3, 8, 10, 0.76);
  color: #c9ddd8;
  font-size: 0.78rem;
  line-height: 1.42;
  white-space: pre-wrap;
}
.cr-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.cr-puzzleprint-toggle {
  gap: 7px;
  min-height: 32px;
  white-space: nowrap;
}
.cr-topbar-lgr-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-topbar-coach-provider {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid rgba(245, 205, 106, .22);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
}
.cr-topbar-coach-provider-label {
  padding: 0 6px;
  color: var(--cr-muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}
.cr-topbar-coach-provider-button {
  min-height: 22px;
  padding: 2px 7px;
  border-color: transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--cr-muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}
.cr-topbar-coach-provider-button:hover,
.cr-topbar-coach-provider-button:focus-visible {
  border-color: rgba(245, 205, 106, .28);
  color: var(--cr-text);
}
.cr-topbar-coach-provider-button.is-active {
  border-color: rgba(245, 205, 106, .42);
  background: rgba(245, 205, 106, .16);
  color: #fff7d6;
}
.cr-topbar-puzzleprint {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-top: 2px;
  border-top: 1px solid rgba(245, 205, 106, .2);
  text-align: right;
}
.cr-puzzleprint-topbar-toggle {
  min-height: 24px;
  padding: 3px 7px;
  border-color: rgba(245, 205, 106, .22);
  background: rgba(255, 255, 255, .035);
  color: var(--cr-muted);
  font-size: 0.68rem;
  font-weight: 750;
  opacity: .82;
}
.cr-puzzleprint-topbar-toggle:not(:disabled):hover,
.cr-puzzleprint-topbar-toggle:not(:disabled):focus-visible {
  opacity: 1;
  color: var(--cr-text);
}
.cr-puzzleprint-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.cr-puzzleprint-topbar-toggle .cr-puzzleprint-logo {
  width: 14px;
  height: 14px;
}
.cr-puzzleprint-ready {
  max-width: 260px;
  font-size: 0.72rem;
  line-height: 1.25;
}
.cr-topbar-puzzleprint .cr-puzzleprint-ready {
  max-width: 190px;
  font-size: 0.63rem;
  line-height: 1.12;
}
.cr-report-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 1.4rem;
  line-height: 1.15;
}
.cr-report-page-title {
  align-self: center;
  margin-left: 8px;
  padding-bottom: 0;
  color: var(--cr-text);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.cr-report-identity-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cr-report-identity-separator {
  color: var(--cr-muted);
  font-weight: 650;
}
.cr-source-identity-icon {
  width: .54em;
  height: .54em;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.cr-history-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-history-top-actions .cr-back-button,
.cr-history-top-actions #append-new-games-button {
  position: relative;
  top: -8px;
  width: 176px;
  justify-content: center;
}
.cr-back-button {
  margin-bottom: 0;
}
.cr-download-group,
.cr-summary-combined {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px 9px;
  border: 1px solid rgba(216, 183, 90, .34);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.cr-download-group {
  justify-content: flex-end;
}
.cr-summary-row .cr-download-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  justify-content: stretch;
  justify-items: stretch;
  width: 100%;
}
.cr-download-group legend,
.cr-summary-combined legend {
  padding: 0 6px;
  color: var(--cr-muted);
  font-weight: 750;
  white-space: nowrap;
}
.cr-download-group legend {
  font-size: 0.82rem;
}
.cr-summary-combined legend {
  font-size: 0.78rem;
}
.cr-download-button {
  gap: 8px;
  justify-content: center;
  border-color: #2f3a3d;
  background: #050708;
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.cr-summary-row .cr-download-button {
  width: 100%;
}
.cr-download-button:hover {
  border-color: var(--cr-accent);
  background: #0b0f10;
}
.cr-download-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.cr-pgn-download-icon {
  filter: drop-shadow(0 1px 4px rgba(216, 183, 90, .18));
}
.cr-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .62);
}
.cr-confirm-box {
  width: min(480px, 100%);
  border: 1px solid rgba(216, 183, 90, .42);
  border-radius: 10px;
  background: #071011;
  color: var(--cr-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
  padding: 18px;
}
.cr-confirm-box h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cr-confirm-box p {
  margin: 0 0 14px;
  color: var(--cr-muted);
  line-height: 1.45;
}
.cr-confirm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cr-muted);
  font-size: .9rem;
}
.cr-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.cr-support-link { color: var(--cr-muted); text-decoration: none; }
.cr-nav .cr-support-link {
  font-size: 0.82rem;
  line-height: 1.1;
}
.cr-support-heart {
  color: #ef4444;
  font-weight: 900;
}
.cr-dataset-display-summary {
  margin: 4px 0 2px;
  font-size: 0.86rem;
}
.cr-append-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cr-append-status {
  font-size: 0.82rem;
}
.cr-history-top-actions .cr-append-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.cr-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  align-items: stretch;
  gap: 14px;
  margin: 18px 0;
}
.cr-summary-row > fieldset {
  padding: 14px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: var(--cr-panel-2);
}
.cr-summary-combined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  width: 100%;
}
.cr-summary-combined span { display: block; margin-top: 6px; color: var(--cr-muted); font-size: 0.9rem; }
.card {
  background: var(--cr-panel);
  border: 1px solid var(--cr-line);
  border-radius: 8px;
}
.section-title-row {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 16px 18px 8px;
}
.section-title-row h2 { margin: 0; font-size: 1rem; }
.game-selector-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-column-docs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.cr-clear-game-filters-button {
  margin-left: 12px;
}
.cr-header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cr-muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.cr-header-toggle input { accent-color: var(--cr-accent); }
.cr-game-picker-card { margin-top: 18px; padding-bottom: 14px; }
.column-theme-name,
.column-theme-select,
.elo-scale-select {
  min-height: 32px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 5px 8px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
}
.column-theme-name { width: 132px; }
.column-theme-select { width: 220px; }
.elo-scale-select { width: 116px; }
.column-theme-field,
.elo-scale-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cr-muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.elo-scale-help-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(216, 183, 90, .45);
  text-underline-offset: 3px;
}
.elo-scale-help-link:hover {
  color: var(--cr-accent);
  text-decoration-color: currentColor;
}
.column-picker-panel {
  margin: 0 14px 10px;
  padding: 12px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.column-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.column-picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.column-picker-search {
  width: 180px;
  max-width: 100%;
}
.column-picker-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 9px;
  margin-bottom: 8px;
}
.column-picker-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.column-picker-tab span {
  color: var(--cr-accent);
  font-weight: 900;
}
.column-picker-tab.is-active {
  background: rgba(216, 183, 90, .18);
  border-color: rgba(216, 183, 90, .54);
  color: var(--text);
}
.column-picker-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0,0,0,.15);
}
.column-picker-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}
.column-picker-table th,
.column-picker-table td {
  padding: 8px 9px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.column-picker-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d1a1f;
  color: var(--text);
  text-align: left;
}
.column-picker-table td {
  color: var(--muted);
  line-height: 1.35;
}
.column-picker-table strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}
.column-picker-table code {
  display: block;
  color: var(--cr-accent);
  font-size: 0.72rem;
  white-space: normal;
  word-break: break-word;
}
.column-picker-select-cell {
  width: 42px;
  text-align: center;
}
.column-picker-select-cell input { accent-color: var(--cr-accent); }
.column-calc-status {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(216, 183, 90, .14);
  color: var(--cr-accent);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.column-picker-note { margin: 10px 0 0; font-size: 0.82rem; }
.column-picker-note-inline { color: var(--cr-muted); font-size: 0.76rem; }
.game-selector { display: grid; gap: 7px; padding: 0 14px; }
.cr-puzzleprint-panel {
  margin: 12px 14px 6px;
  padding: 14px;
  border: 1px solid rgba(216, 183, 90, .36);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 25, 28, .96), rgba(6, 12, 14, .92));
}
.cr-puzzleprint-panel[hidden] { display: none; }
.cr-puzzleprint-panel legend {
  padding: 0 8px;
  color: var(--cr-accent);
  font-size: 0.88rem;
  font-weight: 850;
}
.cr-puzzleprint-controls,
.cr-puzzleprint-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-puzzleprint-actions {
  justify-content: stretch;
}
.cr-puzzleprint-go-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.cr-puzzleprint-go-row[hidden],
.cr-puzzleprint-review-row[hidden] {
  display: none;
}
.cr-puzzleprint-go-button {
  min-width: 92px;
  justify-content: center;
}
.cr-puzzleprint-review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.cr-puzzleprint-title-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 240px;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.cr-puzzleprint-title-field input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(0,0,0,.22);
  color: var(--cr-text);
  padding: 6px 9px;
  font-size: 0.78rem;
}
.cr-puzzleprint-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.cr-puzzleprint-field select {
  min-width: 240px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(0,0,0,.22);
  color: var(--cr-text);
  padding: 6px 9px;
  font-size: 0.78rem;
}
.cr-puzzleprint-candidate-count {
  font-size: 0.76rem;
}
.cr-puzzleprint-theme-description {
  flex: 1 1 480px;
  min-width: min(100%, 420px);
  max-width: 760px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 183, 90, .24);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
  color: var(--cr-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.cr-puzzleprint-theme-description strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cr-text);
  font-size: 0.88rem;
}
.cr-puzzleprint-theme-description p {
  margin: 5px 0 0;
}
.cr-puzzleprint-candidate-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  color: var(--cr-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cr-puzzleprint-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cr-puzzleprint-card-head strong {
  display: block;
  color: var(--cr-text);
  font-size: 0.92rem;
}
.cr-puzzleprint-card-head span {
  display: block;
  margin-top: 2px;
  color: var(--cr-muted);
}
.cr-puzzleprint-score {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(216, 183, 90, .16);
  color: var(--cr-accent);
  font-size: 0.72rem;
  font-weight: 900;
}
.cr-puzzleprint-meta {
  margin: 8px 0;
  color: var(--cr-text);
  font-weight: 750;
}
.cr-puzzleprint-candidate-card ul {
  margin: 7px 0 0 18px;
  padding: 0;
}
.cr-puzzleprint-fen {
  margin: 9px 0 0;
  color: #9ee7c6;
  font-size: 0.76rem;
}
.cr-puzzleprint-fen.is-missing {
  color: #e8c16f;
}
.cr-puzzleprint-added {
  color: var(--cr-text);
  font-size: 0.78rem;
  font-weight: 850;
}
.cr-puzzleprint-export {
  gap: 7px;
}
.game-selector-bottom-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-surprise-status {
  position: relative;
  padding: 8px 10px;
  border: 1px solid rgba(216, 183, 90, .32);
  border-radius: 7px;
  background: rgba(216, 183, 90, .08);
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.cr-surprise-status.has-close {
  padding-right: 36px;
}
.cr-surprise-status[hidden] {
  display: none;
}
.cr-surprise-status-close {
  position: absolute;
  top: 6px;
  right: 7px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: rgba(5, 13, 16, .78);
  color: var(--cr-muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}
.cr-inline-control {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid rgba(216, 183, 90, .42);
  border-radius: 6px;
  background: rgba(5, 13, 16, .72);
  color: var(--cr-text);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.1;
  vertical-align: middle;
}
.cr-surprise-status > div {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 2px 0;
}
.cr-surprise-control {
  pointer-events: none;
  opacity: 1 !important;
  cursor: default !important;
  vertical-align: middle;
}
.cr-surprise-control-button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
}
.cr-surprise-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px;
  white-space: nowrap;
}
.cr-surprise-control-label {
  color: var(--cr-muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.cr-surprise-control-select-wrap .column-theme-select,
.cr-surprise-control-select-wrap .elo-scale-select,
.cr-surprise-control-select-wrap .cr-surprise-filter-select,
.cr-surprise-control-select-wrap .cr-surprise-tool-select {
  min-height: 28px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 4px 24px 4px 8px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
}
.cr-surprise-control-select-wrap .column-theme-select { width: 112px; }
.cr-surprise-control-select-wrap .elo-scale-select { width: 124px; }
.cr-surprise-control-select-wrap .cr-surprise-filter-select { width: 126px; }
.cr-surprise-control-select-wrap .cr-surprise-tool-select { width: 164px; max-width: 36vw; }
.cr-surprise-control-select-wrap .cr-surprise-wide-select { width: 222px; }
.cr-surprise-number-input {
  min-height: 28px;
  width: 64px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
}
.cr-surprise-control-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px;
  color: var(--cr-text);
  font-size: 0.72rem;
  font-weight: 850;
}
.cr-surprise-wood-control {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid rgba(46, 21, 8, .55);
  border-radius: 999px;
  background-color: #deb982;
  background-image:
    linear-gradient(rgba(255, 245, 217, .24), rgba(93, 45, 19, .10)),
    url("/static/img/board_textures/american-hard-maple.webp");
  background-size: 190% 190%;
  background-position: 50% 45%;
  color: #241306;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}
.cr-surprise-control-checkbox input {
  width: 13px;
  height: 13px;
  accent-color: #6f3e22;
}
.cr-surprise-control-slider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cr-text);
  font-size: 0.72rem;
  font-weight: 850;
}
.cr-surprise-control-slider input[type="range"] {
  width: 86px;
}
.cr-surprise-control-close {
  position: static;
  width: 22px;
  height: 22px;
  font-size: 16px;
}
.cr-surprise-exchange-chip {
  border-color: rgba(107, 154, 255, .55);
  color: #dbe8ff;
}
.cr-surprise-mistake-chip {
  border-color: rgba(237, 72, 78, .68);
  color: #ffd7d9;
}
.game-selector-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.game-selector-table-wrap {
  height: var(--cr-game-table-height, 430px);
  max-height: calc(100vh - 190px);
  min-height: 220px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d1a1f;
}
body.is-connectedrooks-board-detached .cr-game-picker-card {
  min-height: calc(100vh - 170px);
}
body.is-connectedrooks-board-detached .game-selector-table-wrap {
  max-height: calc(100vh - 210px);
}
.game-selector-resize-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: ns-resize;
}
.game-selector-resize-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 72px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(216, 183, 90, .36);
}
.game-selector-resize-bar:hover::before,
.game-selector-resize-bar:focus-visible::before {
  background: rgba(216, 183, 90, .74);
}
body.is-game-table-resizing,
body.is-game-table-resizing * {
  cursor: ns-resize !important;
  user-select: none !important;
}
.game-selector-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10.8px;
  line-height: 1.15;
}
.game-selector-table thead {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #0d1a1f;
  box-shadow: 0 -1px 0 #0d1a1f, 0 1px 0 var(--line-strong), 0 10px 16px rgba(0,0,0,.24);
}
.game-selector-table th,
.game-selector-table td {
  padding: 3px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.game-selector-table.is-verbose-headers th {
  vertical-align: bottom;
}
.game-selector-table.is-verbose-headers .game-selector-sort {
  min-height: 34px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.12;
}
.game-selector-table th {
  position: relative;
  z-index: 3;
  background: rgba(13, 26, 31, .99);
  user-select: none;
  font-size: 9.6px;
}
.game-selector-table th.is-dragging { opacity: .58; }
.game-selector-table th.is-drag-over { box-shadow: inset 3px 0 0 var(--cr-accent); }
.game-selector-table thead tr:nth-child(2) th {
  z-index: 2;
  background: rgba(13, 26, 31, .99);
}
.game-selector-sort {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 9.6px;
  font-weight: 560;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-selector-table th.has-hide-column .game-selector-sort {
  padding-right: 14px;
}
.game-selector-hide-column {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(5, 12, 15, .78);
  color: rgba(225, 235, 232, .78);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  opacity: .72;
  z-index: 5;
}
.game-selector-hide-column:hover,
.game-selector-hide-column:focus-visible {
  opacity: 1;
  color: #071012;
  background: var(--cr-accent);
  border-color: var(--cr-accent);
}
.cr-header-help-link {
  color: var(--cr-accent);
  text-decoration: none;
}
.cr-header-help-link:hover {
  color: #ffe19a;
}
.cr-header-info-link {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  margin-left: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  vertical-align: text-top;
}
.board-score-help-link {
  color: var(--cr-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.board-score-help-link:hover {
  color: #ffe19a;
}
.board-score-residual-line {
  display: block;
  margin-top: 2px;
}
.column-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
}
.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 3px;
  width: 1px;
  background: rgba(216, 183, 90, .38);
}
body.is-column-resizing,
body.is-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
.game-selector-filter {
  width: 100%;
  min-width: 0;
  height: 20px;
  padding: 1px 3px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: 8px;
}
.game-selector-filter option {
  color: #172016;
  background: #f8f4e8;
}
.game-selector-filter-input {
  line-height: 16px;
}
.game-selector-filter-input::placeholder {
  color: rgba(226, 238, 234, .42);
}
.game-date-filter-group {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.game-date-filter-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cr-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.game-date-filter-field input {
  min-height: 30px;
  width: 132px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 4px 7px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color-scheme: dark;
}
.game-selector-table tbody tr:first-child td { padding-top: 9px; }
.game-selector-row { cursor: pointer; }
.game-selector-table.is-virtualized .game-selector-row { height: 30px; }
.game-selector-table.is-virtualized tbody tr:first-child td { padding-top: 3px; }
.game-selector-table.is-virtualized .game-selector-virtual-spacer td {
  padding: 0;
  border: 0;
  background: transparent;
}
.game-selector-row:hover { background: rgba(216, 183, 90, .14); }
.game-selector-row.is-selected,
.game-selector-row.is-selected:hover { background: rgba(123, 95, 28, .9); }
.game-selector-row.is-selected td { color: #fff8df; }
.cr-tool-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.cr-global-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 8px 18px 4px;
  max-width: calc(100% - 36px);
}
.cr-global-search-field,
.cr-global-search-not {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cr-muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.cr-global-search-field input {
  width: clamp(260px, 38vw, 430px);
  min-height: 30px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
}
.cr-global-search-not input {
  accent-color: var(--cr-accent);
}
.cr-current-filters-panel {
  margin: 8px 18px 10px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 8px 10px 9px;
  background: rgba(255, 255, 255, 0.025);
}
.cr-current-filters-panel > legend {
  margin-left: 8px;
  padding: 0 8px;
  color: var(--cr-text);
  font-size: 0.82rem;
  font-weight: 850;
}
.cr-current-filters-count {
  color: var(--cr-muted);
  font-size: 0.76rem;
  font-weight: 750;
}
.cr-current-filters-list {
  min-height: 34px;
  overflow: visible;
  padding-bottom: 10px;
  color: var(--cr-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 650;
}
.cr-current-filters-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
}
.cr-current-filters-panel .cr-clear-game-filters-button {
  margin-left: 0;
  min-width: 176px;
}
.cr-current-filters-panel .cr-clear-selected-filter-button {
  min-width: 154px;
}
.cr-current-filters-panel .cr-clear-game-filters-button:disabled,
.cr-current-filters-panel .cr-clear-selected-filter-button:disabled {
  opacity: 0.68;
  cursor: default;
}
.cr-current-filters-list ul {
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
}
.cr-current-filters-list li + li {
  margin-top: 3px;
}
.cr-current-filter-item {
  width: 100%;
  border: 1px solid rgba(216, 183, 90, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cr-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1.28;
  padding: 4px 7px;
  text-align: left;
}
.cr-current-filter-item:hover {
  border-color: rgba(216, 183, 90, 0.38);
  color: var(--cr-text);
}
.cr-current-filter-item.is-selected {
  background: rgba(216, 183, 90, 0.14);
  border-color: rgba(216, 183, 90, 0.68);
  color: var(--cr-text);
}
.cr-current-filters-list strong {
  color: var(--cr-text);
  font-weight: 800;
}
.cr-current-filters-empty {
  color: var(--cr-muted);
}
.cr-tool-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 18px -2px;
}
.cr-tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(360px, 46vw);
  border: 1px solid var(--cr-line);
  border-radius: 7px 7px 0 0;
  padding: 4px 8px;
  background: #091518;
  color: var(--cr-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.08;
  cursor: pointer;
}
.cr-tool-tab-label {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.cr-tool-tab.is-active {
  border-color: rgba(232, 184, 92, 0.62);
  background: #122124;
  color: var(--cr-accent);
}
.cr-tool-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  color: var(--cr-muted);
  font-size: 0.86rem;
  line-height: 1;
}
.cr-tool-tab-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cr-text);
}
.stockfish-bulk-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: 12px 0 14px;
}
.stockfish-bulk-button {
  gap: 7px;
  min-height: 34px;
  white-space: nowrap;
}
.stockfish-button-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
  flex: 0 0 auto;
}
.stockfish-bulk-status {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 183, 90, .28);
  border-radius: 7px;
  background: rgba(216, 183, 90, .07);
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.stockfish-bulk-status[hidden] {
  display: none;
}
.stockfish-bulk-status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.stockfish-bulk-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.stockfish-bulk-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, var(--cr-accent));
  transition: width .22s ease;
}
.stockfish-analyzed-check {
  display: inline-grid;
  place-items: center;
  width: 100%;
  color: #15803d;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
}
.stockfish-not-applicable {
  display: inline-grid;
  place-items: center;
  width: 100%;
  color: #c9a24a;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}
.cr-scatter-toggle,
.cr-histogram-toggle,
.cr-outcome-toggle,
.cr-time-series-toggle,
.cr-time-management-toggle,
.cr-surprise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cr-scatter-toggle.is-active,
.cr-histogram-toggle.is-active,
.cr-outcome-toggle.is-active,
.cr-time-series-toggle.is-active,
.cr-time-management-toggle.is-active {
  border-color: rgba(216, 183, 90, .74);
  color: var(--cr-accent);
  background: rgba(216, 183, 90, .12);
}
.cr-surprise-toggle {
  border-color: rgba(216, 183, 90, .55);
  color: var(--cr-accent);
}
.cr-surprise-toggle.is-active,
.cr-surprise-toggle[aria-pressed="true"] {
  border-color: rgba(34, 197, 94, .72);
  color: #d8f7df;
  background: rgba(34, 197, 94, .12);
}
.cr-surprise-toggle:disabled {
  opacity: .72;
  cursor: wait;
}
.cr-demo-mode-line {
  min-height: 14px;
  margin: 0;
  color: var(--cr-muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
}
.cr-scatter-panel,
.cr-histogram-panel,
.cr-outcome-panel,
.cr-time-series-panel {
  position: relative;
  margin: 12px 14px 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d1a1f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.cr-scatter-click-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(5, 13, 16, .4);
  color: var(--cr-muted);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}
.cr-scatter-click-mode[hidden] {
  display: none;
}
.cr-scatter-click-mode span {
  color: var(--cr-text);
  font-weight: 850;
}
.cr-scatter-click-mode label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cr-scatter-click-mode input {
  width: 12px;
  height: 12px;
  accent-color: var(--cr-accent);
}
.cr-scatter-panel > legend,
.cr-histogram-panel > legend,
.cr-outcome-panel > legend,
.cr-time-series-panel > legend {
  margin-left: 12px;
  padding: 0 8px;
  color: var(--cr-text);
  font-size: 0.95rem;
  font-weight: 850;
}
.cr-scatter-head,
.cr-histogram-head,
.cr-outcome-head,
.cr-time-series-head {
  position: relative;
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cr-tool-close-button {
  position: absolute;
  top: 7px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: rgba(5, 13, 16, .78);
  color: var(--cr-muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.cr-tool-close-button:hover {
  border-color: rgba(216, 183, 90, .66);
  color: var(--cr-accent);
  background: rgba(216, 183, 90, .12);
}
.cr-scatter-head h3,
.cr-histogram-head h3,
.cr-outcome-head h3,
.cr-time-series-head h3 {
  margin: 0 0 3px;
  font-size: 0.95rem;
}
.cr-scatter-head p,
.cr-histogram-head p,
.cr-outcome-head p,
.cr-time-series-head p {
  margin: 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.cr-scatter-head #scatterplot-status,
.cr-histogram-head #histogram-status,
.cr-outcome-head #outcome-status,
.cr-time-series-head #time-series-status {
  position: static;
  max-width: none;
  min-height: 24px;
  padding-right: 390px;
  text-align: left;
  font-size: 0.72rem;
}
.cr-tool-panel-actions,
.cr-outcome-panel-actions {
  position: absolute;
  top: 4px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-tool-image-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.cr-tool-image-actions .cr-small-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.cr-scatter-panel .cr-tool-close-button,
.cr-histogram-panel .cr-tool-close-button,
.cr-outcome-panel .cr-tool-close-button,
.cr-time-series-panel .cr-tool-close-button,
.game-time-management-card .cr-tool-close-button {
  position: static;
  flex: 0 0 auto;
}
.cr-scatter-controls,
.cr-histogram-controls,
.cr-time-series-controls {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.cr-outcome-controls {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}
.cr-outcome-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-outcome-extra-group-row[hidden] {
  display: none !important;
}
.cr-scatter-field,
.cr-histogram-field,
.cr-outcome-field,
.cr-time-series-field {
  display: grid;
  gap: 4px;
  color: var(--cr-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cr-outcome-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.cr-outcome-field span {
  flex: 0 0 auto;
}
.cr-scatter-field select,
.cr-histogram-field select,
.cr-histogram-field input,
.cr-outcome-field select,
.cr-outcome-field input,
.cr-time-series-field select {
  min-height: 32px;
  width: 190px;
  max-width: 34vw;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 5px 8px;
  background: #081316;
  color: var(--cr-text);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.cr-scatter-field {
  min-width: min(100%, 260px);
}
.cr-scatter-field select {
  width: var(--cr-scatter-axis-select-width, 360px);
  min-width: 260px;
  max-width: min(720px, 72vw);
}
.cr-scatter-compact-field {
  min-width: 190px;
}
.cr-scatter-compact-field select {
  width: 210px;
  min-width: 190px;
  max-width: min(260px, 72vw);
}
.cr-histogram-field input#histogram-bins,
.cr-histogram-field input#histogram-required-points,
.cr-histogram-field input#histogram-max-groups,
.cr-histogram-field select#histogram-mode,
.cr-outcome-field input#outcome-bins,
.cr-outcome-field input#outcome-min-games {
  width: 98px;
}
.cr-histogram-field select#histogram-column {
  width: 430px;
  max-width: min(76vw, 520px);
}
.cr-histogram-field select#histogram-stack-by {
  width: 300px;
  max-width: min(58vw, 420px);
}
.cr-histogram-label-toggle {
  margin-left: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}
.cr-histogram-label-toggle input {
  accent-color: var(--cr-accent);
}
#outcome-source {
  width: 180px;
}
#outcome-column {
  width: 260px;
  max-width: 44vw;
}
.cr-outcome-description {
  padding: 9px 14px 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.cr-outcome-description:empty {
  display: none;
}
.cr-outcome-description strong {
  color: var(--cr-text);
}
.cr-outcome-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.cr-outcome-filter-row #outcome-clear-filter {
  flex: 0 0 auto;
}
.cr-scatter-body,
.cr-histogram-body,
.cr-outcome-body,
.cr-time-series-body {
  padding: 10px 12px 12px;
}
.cr-scatter-svg,
.cr-histogram-svg,
.cr-outcome-svg,
.cr-time-series-svg {
  display: block;
  width: 100%;
  min-height: 260px;
}
.cr-outcome-chart-status {
  margin: 6px 2px 10px;
  color: var(--cr-muted);
  font-size: 0.99rem;
  font-weight: 750;
  text-align: left;
}
.cr-outcome-chart-status:empty {
  display: none;
}
.cr-outcome-role-section {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.cr-outcome-role-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.cr-outcome-role-section h4 {
  margin: 2px 2px 8px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 650;
}
.cr-outcome-summary-combined-wrap {
  margin-top: 8px;
}
.cr-outcome-summary-section td {
  padding-top: 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(245, 205, 106, .08);
}
.cr-histogram-bg,
.cr-outcome-bg,
.cr-time-series-bg {
  fill: rgba(2, 7, 9, .42);
  stroke: rgba(255,255,255,.06);
}
.cr-scatter-bg {
  fill: rgba(2, 7, 9, .42);
  stroke: rgba(255,255,255,.06);
}
.cr-scatter-bg-reference {
  fill: #788696;
  stroke: rgba(255,255,255,.14);
}
.cr-scatter-grid line,
.cr-histogram-grid line,
.cr-outcome-grid line,
.cr-time-series-grid line {
  stroke: rgba(255,255,255,.09);
  stroke-width: 1;
}
.cr-scatter-grid text,
.cr-histogram-grid text,
.cr-outcome-grid text,
.cr-time-series-grid text {
  fill: var(--cr-muted);
  font-size: 11px;
  font-weight: 700;
}
.cr-scatter-axis,
.cr-histogram-axis,
.cr-time-series-axis {
  stroke: rgba(216, 183, 90, .72);
  stroke-width: 1.4;
}
.cr-scatter-axis-label,
.cr-histogram-axis-label,
.cr-outcome-axis-label,
.cr-time-series-axis-label {
  fill: var(--cr-text);
  font-size: 12px;
  font-weight: 900;
}
.cr-outcome-label-plus {
  fill: #7dd3fc;
  font-weight: 950;
}
.cr-histogram-bar {
  fill: rgba(72, 178, 214, .74);
  stroke: rgba(207, 241, 248, .55);
  stroke-width: .7;
}
.cr-histogram-bar:hover {
  fill: #fff8df;
  stroke: var(--cr-accent);
}
.cr-histogram-stack-segment:hover {
  stroke: #fff8df;
  stroke-width: 1.2;
}
.cr-histogram-legend text {
  fill: var(--cr-text);
  font-size: 10.5px;
  font-weight: 650;
}
.cr-histogram-group-title {
  fill: var(--cr-text);
  font-size: 11px;
  font-weight: 750;
}
.cr-histogram-small-grid {
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}
.cr-histogram-small-tick {
  fill: var(--cr-muted);
  font-size: 10px;
  font-weight: 650;
}
.cr-histogram-small-bar {
  stroke: rgba(255,255,255,.52);
  stroke-width: .65;
}
.cr-histogram-bar-value {
  fill: var(--cr-text);
  font-size: 9.5px;
  font-weight: 650;
  pointer-events: none;
}
.cr-scatter-point {
  fill: rgba(72, 178, 214, .78);
  stroke: rgba(207, 241, 248, .74);
  stroke-width: .7;
  cursor: pointer;
}
.cr-scatter-point:hover {
  fill: #fff8df;
  stroke: var(--cr-accent);
  stroke-width: 1.4;
}
.cr-scatter-point.is-selected {
  stroke: #f8fafc;
  stroke-width: 1.8;
}
.cr-scatter-aggregate-point.is-overlap {
  stroke: rgba(216, 183, 90, .94);
  stroke-width: 1.35;
}
.cr-scatter-current-ring {
  fill: none;
  stroke: #ef4444;
  stroke-width: 2.4;
  pointer-events: none;
}
.cr-histogram-current-line {
  stroke: #ef4444;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  pointer-events: none;
}
.cr-histogram-current-label {
  fill: #ef4444;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.cr-scatter-empty,
.cr-histogram-empty,
.cr-outcome-empty,
.cr-time-series-empty {
  fill: var(--cr-muted);
  font-size: 15px;
  font-weight: 800;
}
.cr-scatter-panel.is-collapsed .cr-scatter-head,
.cr-histogram-panel.is-collapsed .cr-histogram-head,
.cr-outcome-panel.is-collapsed .cr-outcome-head,
.cr-time-series-panel.is-collapsed .cr-time-series-head {
  border-bottom: 0;
}
.cr-outcome-panel.is-collapsed .cr-outcome-controls,
.cr-outcome-panel.is-collapsed .cr-outcome-description,
.cr-outcome-panel.is-collapsed .cr-outcome-filter-row,
.cr-outcome-panel.is-collapsed #outcome-detach,
.cr-outcome-panel.is-collapsed #outcome-close {
  display: none;
}
.cr-time-series-svg {
  min-height: 360px;
}
.cr-time-series-line {
  fill: none;
  stroke: var(--cr-accent);
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cr-time-series-line-right {
  fill: none;
  stroke: #48b2d6;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cr-time-series-selected-cursor {
  stroke: #ef4444;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 4;
  pointer-events: none;
}
.cr-time-series-legend text {
  fill: var(--cr-text);
  font-size: 12px;
  font-weight: 900;
}
.cr-time-series-right-tick {
  fill: #9adced;
}
.cr-time-series-point {
  fill: rgba(72, 178, 214, .88);
  stroke: rgba(207, 241, 248, .8);
  stroke-width: .8;
  cursor: pointer;
}
.cr-time-series-point-right {
  stroke: rgba(255, 248, 223, .82);
}
.cr-time-series-point:hover {
  fill: #fff8df;
  stroke: var(--cr-accent);
  stroke-width: 1.4;
}
.cr-time-series-point.is-selected {
  stroke: #f8fafc;
  stroke-width: 1.5;
}
.chart-outcome-win {
  fill: #22c55e;
  stroke: rgba(187, 247, 208, .88);
}
.chart-outcome-loss {
  fill: #ef4444;
  stroke: rgba(254, 202, 202, .9);
}
.chart-outcome-draw {
  fill: #f8fafc;
  stroke: rgba(226, 232, 240, .9);
}
.chart-outcome-white-win {
  fill: #f8fafc;
  stroke: rgba(15, 23, 42, .95);
  stroke-width: 1.2;
}
.chart-outcome-draw-reference {
  fill: none;
  stroke: rgba(248, 250, 252, .9);
  stroke-width: 2;
}
.chart-outcome-black-win {
  fill: #050505;
  stroke: rgba(248, 250, 252, .95);
  stroke-width: 1.2;
}
.chart-outcome-unknown {
  fill: rgba(148, 163, 184, .88);
  stroke: rgba(226, 232, 240, .8);
}
.cr-scatter-neutral-dot {
  fill: #f8fafc;
  stroke: rgba(226, 232, 240, .9);
}
.chart-outcome-legend text {
  fill: var(--cr-text);
  font-size: 11px;
  font-weight: 850;
}
.chart-outcome-dot {
  stroke-width: .8;
}
.cr-time-series-plot-capture {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
  touch-action: none;
}
.cr-scatter-plot-capture {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
  touch-action: none;
}
.cr-zoom-selection-rect {
  fill: rgba(216, 183, 90, .16);
  stroke: rgba(255, 225, 154, .92);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  pointer-events: none;
}
.cr-scatter-panel.is-detached .cr-scatter-body,
.cr-scatter-panel.is-detached .cr-scatter-field,
.cr-scatter-panel.is-detached #scatterplot-collapse,
.cr-histogram-panel.is-detached .cr-histogram-body,
.cr-histogram-panel.is-detached .cr-histogram-field,
.cr-histogram-panel.is-detached #histogram-collapse,
.cr-outcome-panel.is-detached .cr-outcome-body,
.cr-outcome-panel.is-detached .cr-outcome-field,
.cr-outcome-panel.is-detached #outcome-clear-filter,
.cr-outcome-panel.is-detached #outcome-reset,
.cr-outcome-panel.is-detached #outcome-collapse,
.cr-time-series-panel.is-detached .cr-time-series-body,
.cr-time-series-panel.is-detached .cr-time-series-field,
.cr-time-series-panel.is-detached #time-series-reset-zoom,
.cr-time-series-panel.is-detached #time-series-collapse {
  display: none;
}
.cr-scatter-panel.is-detached .cr-scatter-head,
.cr-histogram-panel.is-detached .cr-histogram-head,
.cr-outcome-panel.is-detached .cr-outcome-head,
.cr-time-series-panel.is-detached .cr-time-series-head {
  align-items: center;
  border-bottom: 0;
}
.cr-outcome-svg {
  min-height: 390px;
}
.cr-outcome-bar,
.cr-outcome-residual-bar,
.cr-outcome-residual-point {
  cursor: pointer;
}
.cr-outcome-win { fill: rgba(34, 197, 94, .82); }
.cr-outcome-draw { fill: rgba(216, 183, 90, .86); }
.cr-outcome-loss { fill: rgba(239, 68, 68, .78); }
.cr-outcome-legend text {
  fill: var(--cr-text);
  font-size: 11px;
  font-weight: 900;
}
.cr-outcome-legend rect {
  stroke: rgba(255,255,255,.24);
  stroke-width: .7;
}
.cr-outcome-bar:hover,
.cr-outcome-residual-bar:hover,
.cr-outcome-residual-point:hover {
  filter: brightness(1.2);
  stroke: #fff8df;
  stroke-width: 1.2;
}
.cr-outcome-zero-line {
  stroke: rgba(248, 250, 252, .58);
  stroke-width: 1.3;
}
.cr-outcome-residual-bar {
  stroke: rgba(7, 16, 18, .72);
  stroke-width: .8;
}
.cr-outcome-residual-avg-bar {
  fill: rgba(248, 250, 252, .86);
}
.cr-outcome-residual-line {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cr-outcome-residual-avg-line {
  stroke: #f8fafc;
}
.cr-outcome-residual-point {
  fill: #f8fafc;
  stroke: #071012;
  stroke-width: 1.1;
}
.cr-outcome-residual-avg {
  fill: #f8fafc;
}
.cr-outcome-x-label,
.cr-outcome-sample-label {
  fill: var(--cr-muted);
  font-size: 10px;
  font-weight: 800;
}
.cr-outcome-x-label {
  font-size: 9.5px;
}
.cr-outcome-summary-wrap {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0,0,0,.14);
}
.cr-outcome-summary {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.76rem;
}
.cr-outcome-summary th,
.cr-outcome-summary td {
  padding: 7px 8px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.cr-outcome-summary th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d1a1f;
  color: var(--cr-text);
}
.cr-outcome-summary-sort {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.cr-outcome-summary-sort:hover {
  color: var(--cr-accent);
}
.cr-outcome-summary td {
  color: var(--cr-muted);
}
.cr-outcome-summary tbody tr {
  cursor: pointer;
}
.cr-outcome-summary tbody tr:hover {
  background: rgba(216, 183, 90, .12);
}
.cr-outcome-summary tbody tr.cr-outcome-summary-total {
  cursor: default;
  background: rgba(216, 183, 90, .08);
  font-weight: 850;
}
.cr-outcome-summary tbody tr.cr-outcome-summary-total:hover {
  background: rgba(216, 183, 90, .08);
}
.game-selector-country { display: inline-flex; align-items: center; gap: 6px; }
.game-selector-flag,
.game-selector-flag-placeholder {
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 2px;
  object-fit: cover;
  background: rgba(255,255,255,.14);
}
.cr-table-wrap {
  overflow: auto;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
}
.cr-table { width: 100%; border-collapse: collapse; min-width: 1120px; font-size: 0.9rem; }
.cr-table th, .cr-table td { padding: 10px 12px; border-bottom: 1px solid var(--cr-line); text-align: left; vertical-align: top; }
.cr-table th { position: sticky; top: 0; background: #0d1a1f; color: #cfe5df; }
.cr-game-row { cursor: pointer; }
.cr-game-row:hover { background: rgba(216, 183, 90, 0.08); }
.cr-game-row.is-selected { background: rgba(216, 183, 90, 0.16); }
.cr-embedded-viewer { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--cr-line); }
.game-level-analysis-section {
  margin-top: 18px;
  padding: 0 24px 18px;
  position: relative;
}
.game-level-analysis-section > legend {
  margin-left: 12px;
  padding: 0 8px;
  color: var(--cr-text);
  font-size: 0.95rem;
  font-weight: 850;
}
.game-level-analysis-title-row {
  position: relative;
  min-height: 42px;
  padding: 10px 0 12px;
  margin-bottom: 12px;
}
.game-level-analysis-title-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 178px;
  bottom: 0;
  border-bottom: 1px solid var(--line-soft);
}
.game-level-analysis-toggle {
  min-width: 86px;
}
.game-level-analysis-actions {
  top: 4px;
  right: 0;
}
.game-level-analysis-section.is-collapsed .game-viewer-main {
  display: none;
}
.game-level-analysis-section.is-board-detached .game-viewer-main {
  display: none;
}
.game-level-analysis-section.is-board-detached .game-level-analysis-toggle {
  display: none;
}
.game-board-detached-placeholder {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 183, 90, .34);
  border-radius: 8px;
  background: rgba(216, 183, 90, .08);
  color: var(--cr-muted);
}
.game-board-detached-placeholder[hidden] {
  display: none !important;
}
.game-level-analysis-section.is-board-detached .game-board-detached-placeholder:not([hidden]) {
  display: flex;
}
.game-board-detached-placeholder strong {
  display: block;
  color: var(--cr-text);
  font-size: .94rem;
}
.game-board-detached-placeholder span {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
}
.game-viewer-main {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(240px, 320px);
  gap: 18px;
  align-items: start;
}
.board-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.principal-line-review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(216, 183, 90, .34);
  border-radius: 8px;
  background: rgba(216, 183, 90, .09);
  color: var(--cr-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}
.principal-line-review-bar[hidden] {
  display: none;
}
.principal-line-review-bar strong {
  display: block;
  color: var(--cr-text);
  font-size: 0.86rem;
}
.principal-line-review-bar button {
  flex: 0 0 auto;
}
.cr-shared-line-pause-button[hidden] {
  display: none !important;
}
.board-panel.is-principal-line-review .board-meta {
  display: none;
}
.board-panel.is-multi-line-review .board-meta,
.board-panel.is-multi-line-review .viewer-board-wrap > :not(.cr-shared-bottom-review-stack),
.board-panel.is-multi-line-review .cr-shared-bottom-player-action-row,
.board-panel.is-multi-line-review .viewer-state-bar,
.board-panel.is-multi-line-review .cr-shared-simple-respawn-button {
  display: none !important;
}
.viewer-board-wrap[hidden] {
  display: none !important;
}
.board-panel.is-principal-line-review .viewer-nav-btn[data-nav="-10"],
.board-panel.is-principal-line-review .viewer-nav-btn[data-nav="move10"],
.board-panel.is-principal-line-review .viewer-nav-btn[data-nav="10"],
.board-panel.is-multi-line-review .viewer-nav-btn[data-nav="-10"],
.board-panel.is-multi-line-review .viewer-nav-btn[data-nav="move10"],
.board-panel.is-multi-line-review .viewer-nav-btn[data-nav="10"] {
  display: none;
}
.board-panel.is-principal-line-review .viewer-controls {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(118px, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}
.board-panel.is-multi-line-review .viewer-controls {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.board-panel.is-multi-line-review .viewer-board-stage {
  grid-template-areas:
    "lines"
    "controls";
}
.board-panel.is-multi-line-review .viewer-board-wrap {
  display: contents;
}
.board-panel.is-multi-line-review .cr-shared-multi-line-review {
  grid-area: lines;
}
.board-panel.is-multi-line-review .cr-shared-bottom-review-stack {
  display: grid;
  grid-area: controls;
  grid-template-columns: minmax(260px, 560px);
  justify-content: center;
  margin-top: 4px;
}
.board-panel.is-multi-line-review .cr-shared-bottom-review-stack .viewer-controls {
  display: grid !important;
  grid-column: 1;
}
.board-panel.is-principal-line-review .viewer-nav-btn,
.board-panel.is-multi-line-review .viewer-nav-btn {
  padding: 6px 10px;
  min-height: 30px;
  line-height: 1.05;
}
.board-panel.is-principal-line-review .viewer-nav-icon-btn,
.board-panel.is-multi-line-review .viewer-nav-icon-btn {
  font-size: 16px;
}
.board-panel.is-principal-line-review .cr-shared-line-pause-button {
  white-space: nowrap;
}
.board-panel.is-principal-line-review .cr-shared-line-hidden-control,
.board-panel.is-multi-line-review .cr-shared-line-hidden-control {
  display: none !important;
}
.board-panel.is-maia-candidate-preview .viewer-controls,
.board-panel.is-maia-candidate-preview .move-animation-controls {
  display: none;
}
.cr-shared-multi-line-review[hidden] {
  display: none !important;
}
.cr-shared-multi-line-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
  width: 100%;
}
.cr-shared-line-board-card {
  min-width: 0;
  border: 1px solid rgba(240, 217, 181, .18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(7, 16, 18, .78);
  display: flex;
  flex-direction: column;
}
.cr-shared-line-board-header {
  min-height: 104px;
  display: flex;
  flex-direction: column;
}
.cr-shared-line-board-card h3 {
  margin: 0 0 4px;
  color: var(--cr-text);
  font-size: 0.86rem;
  line-height: 1.15;
  min-height: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-shared-line-board-full-line {
  margin-bottom: 6px;
  color: #f0d9b5;
  font-size: 0.74rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
  min-height: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-shared-line-board-meta {
  min-height: 18px;
  margin-bottom: 7px;
  color: var(--cr-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}
.cr-shared-line-board-tablebase {
  margin: -2px 0 7px;
  color: #e5e7eb;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
}
.cr-shared-line-board-header .cr-shared-line-board-tablebase {
  min-height: 1.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-shared-line-board-header .cr-shared-line-board-tablebase.is-empty {
  visibility: hidden;
}
.cr-shared-line-board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
}
.cr-shared-line-board {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
}
.cr-shared-line-board .viewer-piece-img {
  width: 92%;
  height: 92%;
}
.cr-shared-line-board-row .cr-shared-stockfish-eval-meter {
  min-height: 100%;
}
.cr-shared-line-stockfish-eval-meter {
  align-self: stretch;
}
.cr-shared-line-horizon-note {
  grid-column: 1 / -1;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  background: rgba(15, 23, 42, .74);
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.35;
}
.cr-shared-line-horizon-note a {
  color: #93c5fd;
  font-weight: 760;
  text-decoration: none;
}
.cr-shared-line-horizon-note a:hover,
.cr-shared-line-horizon-note a:focus-visible {
  color: #bfdbfe;
  text-decoration: underline;
}
.cr-shared-line-captured-row {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 22px;
  margin: 4px 0;
  gap: 4px;
}
.cr-shared-line-captured-row .captured-pieces-side {
  min-height: 22px;
}
.cr-shared-line-captured-row .captured-pieces-tray {
  min-height: 22px;
  padding: 1px 5px;
}
.cr-shared-line-captured-row .captured-piece-icon {
  width: 14px;
  height: 14px;
}
.cr-shared-line-captured-row .cr-captured-material {
  min-width: 24px;
  height: 19px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 0.7rem;
}
.cr-shared-line-board-fen {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
  margin-top: 7px;
  padding: 5px 6px;
  border: 1px solid rgba(240, 217, 181, .16);
  border-radius: 6px;
  background: rgba(0, 0, 0, .26);
  color: var(--cr-muted);
  font-size: 0.66rem;
  line-height: 1.25;
}
.cr-shared-line-board-fen[hidden] {
  display: none !important;
}
.cr-shared-line-board-fen code {
  min-width: 0;
  color: var(--cr-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}
.cr-shared-line-board-fen-copy {
  align-self: start;
  padding: 2px 7px;
  font-size: 0.64rem;
  line-height: 1.2;
}
.board-meta-primary { display: grid; gap: 4px; }
.board-meta-secondary { display: grid; gap: 8px; justify-items: end; }
.board-meta-secondary {
  width: 148px;
  justify-items: stretch;
}
.board-meta-secondary .detach-game-board-btn {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  column-gap: 6px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-color: rgba(145, 103, 20, .72);
  background: linear-gradient(180deg, #f5d76b 0%, #d8b75a 100%);
  color: #151006;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 4px 10px rgba(18, 14, 6, .18);
}
.board-meta-secondary .cr-board-image-row {
  width: 100%;
  margin-top: 0;
}
.board-meta-secondary .detach-game-board-btn:hover {
  border-color: rgba(104, 73, 12, .88);
  background: linear-gradient(180deg, #ffe58a 0%, #e0bd56 100%);
  color: #0f0b04;
}
.board-meta-secondary .detach-game-board-btn.is-disabled,
.board-meta-secondary .detach-game-board-btn.is-disabled:hover {
  cursor: not-allowed;
  opacity: .48;
  border-color: rgba(116, 116, 116, .45);
  background: linear-gradient(180deg, #d4d4d4 0%, #aaa 100%);
  color: #2f2f2f;
  box-shadow: none;
}
.cr-board-action-label {
  min-width: 0;
  text-align: center;
}
.cr-board-action-spacer,
.cr-original-game-source-icon {
  width: 18px;
  height: 18px;
}
.cr-original-game-source-icon {
  display: block;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255,255,255,.65);
}
.cr-original-game-source-icon[hidden] {
  display: block;
  visibility: hidden;
}
.board-detail-list { display: grid; gap: 3px; color: var(--muted); font-size: 0.9rem; }
.viewer-board-stage { display: grid; gap: 12px; }
.viewer-board-wrap { display: grid; gap: 6px; }
.viewer-board-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px auto;
  gap: 8px;
  align-items: stretch;
}
.cr-shared-stockfish-eval-meter {
  position: relative;
  width: 12px;
  min-width: 12px;
  border: 1px solid rgba(248, 250, 252, .42);
  border-radius: 4px;
  overflow: visible;
  background: var(--chart-bg);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, .42);
}
.cr-shared-stockfish-eval-meter[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.cr-shared-stockfish-eval-meter.is-pending {
  visibility: hidden;
  pointer-events: none;
}
.cr-shared-stockfish-eval-fill {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,.72) 0%, rgba(255,255,255,.72) 50%, rgba(203,213,225,.16) 50%, rgba(203,213,225,.16) 100%);
}
.cr-shared-stockfish-eval-midline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(248, 250, 252, .72);
  box-shadow: 0 0 0 1px rgba(2, 6, 23, .55);
}
.cr-shared-stockfish-eval-label {
  position: absolute;
  left: 50%;
  bottom: -19px;
  transform: translateX(-50%);
  min-width: 36px;
  color: rgba(203, 213, 225, .94);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(2, 6, 23, .95);
  pointer-events: none;
}
.board-coords {
  display: grid;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.board-coords-top,
.board-coords-bottom {
  grid-template-columns: repeat(8, 1fr);
  padding: 0 32px;
}
.board-coords-left,
.board-coords-right {
  grid-template-rows: repeat(8, 1fr);
  align-items: center;
}
.viewer-board {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.viewer-square {
  position: relative;
  display: grid;
  place-items: center;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: #101010;
}
.viewer-square.is-light { background: #f1e0c5; }
.viewer-square.is-dark { background: #b8895b; }
.viewer-board.is-wood-grain .viewer-square.is-light {
  background-color: #f1dfbd;
  background-image:
    linear-gradient(rgba(255, 248, 224, .08), rgba(255, 248, 224, .08)),
    url("/static/img/board_textures/american-hard-maple.webp");
}
.viewer-board.is-wood-grain .viewer-square.is-dark {
  background-color: #8e5232;
  background-image:
    linear-gradient(rgba(72, 30, 13, .08), rgba(72, 30, 13, .08)),
    url("/static/img/board_textures/american-cherry-vertical.webp");
}
.viewer-state-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.viewer-state-bar strong { color: var(--text); }
.move-animation-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.move-animation-range { display: inline-flex; gap: 8px; align-items: center; }
.move-list-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  align-content: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(139,183,255,.04);
  overflow: hidden;
}
.move-list-header,
.cr-shared-maia-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 10px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 800;
  font-size: 13px;
  color: #eef5ff;
  min-height: 44px;
  box-sizing: border-box;
}
.cr-shared-panel-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px 5px;
  border-bottom: 1px solid var(--line-soft);
  box-sizing: border-box;
}
.move-list-header.cr-shared-panel-action-row {
  justify-content: flex-end;
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 5px;
}
.move-list-analysis-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.move-list-stockfish-details {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px 9px;
  margin: 0 0 4px;
  padding: 4px 7px;
  border: 1px solid rgba(216, 183, 90, .22);
  border-radius: 6px;
  background: rgba(216, 183, 90, .045);
  line-height: 1.1;
}
.move-list-stockfish-details[hidden] {
  display: none !important;
}
.move-list-stockfish-details-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.move-list-stockfish-detail-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--cr-muted);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.move-list-stockfish-details-label {
  color: var(--cr-accent);
  font-weight: 900;
}
.move-list-stockfish-details select {
  min-height: 23px;
  border: 1px solid rgba(216, 183, 90, .34);
  border-radius: 6px;
  background: #071012;
  color: #edf7f4;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  padding: 2px 24px 2px 7px;
}
.analyze-game-button,
.tag-good-moves-button,
.mistake-details-button {
  width: 100%;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 0.72rem;
  line-height: 1.15;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.analyze-game-button.is-active,
.tag-good-moves-button.is-active,
.mistake-details-button.is-active {
  border-color: rgba(74, 222, 128, .55);
  background: rgba(22, 163, 74, .2);
  color: #dcfce7;
}
.engine-analysis-status {
  margin: 0 0 4px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(216, 183, 90, .08);
  color: var(--cr-muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
}
.engine-analysis-status.is-error {
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}
.engine-analysis-help-link {
  color: var(--cr-accent);
  font-weight: 900;
  white-space: nowrap;
}
.move-list-columns {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 8px 7px 6px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02);
}
.move-list-column-label {
  color: var(--cr-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.move-list-body {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 2px;
  max-height: 760px;
  overflow: auto;
  padding: 7px 11px 7px 7px;
}
.move-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}
.move-engine-note-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  margin: -1px 0 4px;
}
.move-engine-note-row-single .move-engine-note-number {
  display: none;
}
.move-engine-note-row-single .move-engine-note,
.move-engine-note-row-single .move-engine-note-cell {
  grid-column: 1 / 4;
}
.move-engine-note-row-lines .move-engine-note-cell {
  grid-column: 1 / 4;
}
.move-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.move-engine-note-number {
  min-height: 0;
}
.move-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 6px;
  background: rgba(255,255,255,.055);
  color: #d9e8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.move-row .move-cell:nth-child(2) {
  background: rgba(255,255,255,.102);
}
.move-row .move-cell:nth-child(3) {
  background: rgba(203, 213, 225, .074);
}
.move-cell.is-coach-cache-ready {
  color: #ffffff;
}
.move-cell.is-coach-cache-loading {
  color: #edf7f4;
}
.move-cell-san {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.move-cell-san-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.move-cell-figurine {
  display: inline-block;
  font-size: 22px;
  line-height: 0.72;
  margin-right: 1px;
  vertical-align: -0.1em;
}
.move-cell-hard-best-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9a8d4;
}
.move-cell-hard-best-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.move-cell-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.move-cell-eval {
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(203, 213, 225, .82);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.move-list-deep-thought-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.move-list-deep-thought-icon .board-deep-thought-icon {
  width: 13px;
  height: 13px;
  filter: none;
}
.move-list-coach-cache-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.coach-whistle-icon,
.coach-whistle-frame-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url("img/coach_whistle_frames/whistle_0300.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.move-list-coach-cache-icon .coach-whistle-frame-icon {
  width: 21px;
  height: 21px;
}
@keyframes cr-coach-whistle-frame-cycle {
  0%, 12.49% { background-image: url("img/coach_whistle_frames/whistle_0300.png"); }
  12.5%, 24.99% { background-image: url("img/coach_whistle_frames/whistle_0430.png"); }
  25%, 37.49% { background-image: url("img/coach_whistle_frames/whistle_0600.png"); }
  37.5%, 49.99% { background-image: url("img/coach_whistle_frames/whistle_0730.png"); }
  50%, 62.49% { background-image: url("img/coach_whistle_frames/whistle_0900.png"); }
  62.5%, 74.99% { background-image: url("img/coach_whistle_frames/whistle_1030.png"); }
  75%, 87.49% { background-image: url("img/coach_whistle_frames/whistle_1200.png"); }
  87.5%, 100% { background-image: url("img/coach_whistle_frames/whistle_0130.png"); }
}
.cr-shared-notation-mode {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  padding: 5px 0 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.cr-shared-notation-prefix {
  color: #9fb4d0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.cr-shared-notation-mode label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  color: #dceafe;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.cr-shared-notation-mode input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #93c5fd;
}
.cr-shared-notation-letters {
  word-spacing: 3px;
}
.cr-shared-notation-figurines {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  word-spacing: 4px;
}
.move-engine-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  padding: 0 1px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  border: 0;
  background: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.move-engine-note-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  min-width: 0;
}
.move-engine-note-cell-wide {
  grid-template-columns: minmax(0, 1fr) auto;
}
.move-engine-note,
.move-engine-note-empty {
  min-width: 0;
  min-height: 34px;
}
.move-engine-note {
  display: grid;
  align-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  padding: 6px 7px;
  background: rgba(255,255,255,.035);
  color: #d9e8ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.move-engine-note:hover {
  border-color: rgba(216, 183, 90, .5);
  background: rgba(216, 183, 90, .08);
}
.move-engine-note-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  white-space: normal;
  font-size: 10px;
  line-height: 1.16;
  font-weight: 750;
}
.move-engine-note-wide {
  min-height: 18px;
  padding: 3px 7px;
}
.move-engine-note-wide .move-engine-note-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  line-height: 1.05;
  white-space: normal;
}
.move-engine-note-wide .move-engine-note-line {
  display: inline-flex;
  align-items: center;
}
.move-engine-note-wide .move-engine-note-title {
  white-space: nowrap;
  overflow-wrap: normal;
}
.move-engine-note-wide .move-engine-note-line + .move-engine-note-line::before {
  content: "";
  width: 1px;
  height: 10px;
  margin-right: 8px;
  background: rgba(255,255,255,.16);
}
.move-engine-note-lines {
  min-height: 42px;
  padding: 7px 8px;
}
.move-engine-note-lines .move-engine-note-text {
  display: grid;
  gap: 4px;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: normal;
}
.move-engine-note-lines .move-engine-note-line {
  display: block;
}
.move-engine-note-lines .move-engine-note-line + .move-engine-note-line::before {
  display: none;
}
.move-engine-note-lines-head {
  display: flex !important;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.move-engine-note-line-prefix {
  flex: 0 0 auto;
  color: rgba(203, 213, 225, .82);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.move-engine-line-move-number {
  color: rgba(203, 213, 225, .82);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.move-engine-note-best {
  color: #e2e8f0;
  font-weight: 800;
}
.move-engine-note-stockfish-line {
  color: rgba(226, 232, 240, .9);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.24;
}
.move-engine-note-line {
  display: block;
  overflow-wrap: anywhere;
}
.move-engine-note-title {
  font-size: 10.5px;
  font-weight: 900;
}
.move-engine-note-inaccuracy .move-engine-note-title {
  color: #7dd3fc;
}
.move-engine-note-inaccuracy {
  border-color: rgba(125, 211, 252, .62);
}
.move-engine-note-mistake .move-engine-note-title {
  color: #facc15;
}
.move-engine-note-mistake {
  border-color: rgba(250, 204, 21, .62);
}
.move-engine-note-blunder .move-engine-note-title {
  color: #ef4444;
}
.move-engine-note-blunder {
  border-color: rgba(239, 68, 68, .68);
}
.move-engine-note-best .move-engine-note-title {
  color: #bbf7d0;
}
.move-engine-note-excellent .move-engine-note-title {
  color: #99f6e4;
}
.move-engine-note-good .move-engine-note-title {
  color: #bfdbfe;
}
.move-engine-brilliant {
  color: #34d399;
}
.move-engine-inaccuracy {
  color: #7dd3fc;
}
.move-engine-mistake {
  color: #facc15;
}
.move-engine-blunder {
  color: #ef4444;
}
.move-engine-good-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
}
.move-engine-good-best {
  background: rgba(21, 128, 61, .9);
}
.move-engine-good-excellent {
  background: rgba(13, 148, 136, .9);
}
.move-engine-good-good {
  background: rgba(37, 99, 235, .86);
}
.move-engine-board-brilliant {
  background: rgba(5, 150, 105, .92);
}
.move-engine-board-inaccuracy {
  background: rgba(2, 132, 199, .92);
}
.move-engine-board-mistake {
  background: rgba(202, 138, 4, .94);
  color: #111827;
}
.move-engine-board-blunder {
  background: rgba(185, 28, 28, .94);
}
.board-engine-tag {
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-right: 1px;
}
.board-engine-good-tag {
  font-size: 9px;
  padding: 2px 5px;
  text-shadow: none;
}
.move-origin-time-overlay.is-white-move .board-engine-tag,
.move-origin-time-overlay.is-black-move .board-engine-tag,
.move-origin-time-overlay.is-white-move .board-engine-good-tag,
.move-origin-time-overlay.is-black-move .board-engine-good-tag {
  text-shadow: 0 1px 2px rgba(0,0,0,.72);
}
.move-origin-maia-rank {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 5;
  min-width: 20px;
  border: 1px solid rgba(251, 207, 232, .8);
  border-radius: 999px;
  padding: 2px 4px;
  background: rgba(219, 39, 119, .86);
  color: #fff1f7;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.34);
  pointer-events: none;
}
.move-engine-board-review {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 5px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.move-engine-board-review:hover {
  filter: brightness(1.08);
}
.move-engine-state-line-button {
  align-self: center;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.move-engine-state-maia-line-button {
  border: 1px solid rgba(244, 114, 182, .72);
  background: linear-gradient(180deg, rgba(244, 114, 182, .3), rgba(219, 39, 119, .23));
  color: #ffe4f2;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
}
.move-engine-state-maia-line-button:hover {
  border-color: rgba(251, 207, 232, .92);
  background: linear-gradient(180deg, rgba(244, 114, 182, .42), rgba(219, 39, 119, .32));
}
.move-engine-state-maia-line-button.is-comparison {
  border-color: rgba(190, 24, 93, .82);
  background: linear-gradient(180deg, rgba(190, 24, 93, .4), rgba(131, 24, 67, .32));
  color: #ffd8ea;
}
.move-engine-state-maia-line-button.is-comparison:hover {
  border-color: rgba(244, 114, 182, .96);
  background: linear-gradient(180deg, rgba(190, 24, 93, .52), rgba(131, 24, 67, .42));
}
.move-engine-state-line-button[hidden] {
  display: none !important;
}
.viewer-state-bar {
  display: grid;
  gap: 5px;
  align-items: start;
}
.viewer-state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.viewer-state-position-row {
  line-height: 1.25;
}
.viewer-state-position-row strong {
  color: var(--cr-text);
}
.viewer-state-position-row .muted {
  color: var(--cr-muted);
}
.viewer-state-maia-row:empty,
.viewer-state-line-row:empty {
  display: none;
}
.move-engine-state-show-all-button {
  border: 1px solid rgba(245, 181, 63, .66);
  background: linear-gradient(180deg, rgba(245, 181, 63, .28), rgba(143, 206, 66, .2));
  color: #fff7d6;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
}
.move-engine-state-show-all-button:hover {
  border-color: rgba(245, 181, 63, .92);
  background: linear-gradient(180deg, rgba(245, 181, 63, .4), rgba(143, 206, 66, .3));
}
.cr-shared-state-maia-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: center;
  min-width: min(100%, 360px);
  max-width: min(100%, 560px);
  border: 1px solid rgba(244, 114, 182, .34);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(244, 114, 182, .1);
  color: #ffe4f2;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-shared-state-maia-summary[hidden] {
  display: none !important;
}
.move-cell:hover {
  background: rgba(139,183,255,.12);
  border-color: rgba(139,183,255,.22);
}
.move-row .move-cell:hover {
  background: rgba(139,183,255,.12);
}
.move-cell.is-active {
  background: linear-gradient(180deg, rgba(216,183,90,.24), rgba(216,183,90,.14));
  border-color: rgba(216,183,90,.55);
  color: #fff5cf;
}
.move-row .move-cell.is-active {
  background: linear-gradient(180deg, rgba(216,183,90,.24), rgba(216,183,90,.14));
}
.move-cell-empty { min-height: 28px; }
.captured-pieces-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 6px;
  min-height: 19px;
  align-items: center;
}
.cr-shared-board-top-player-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 6px;
  align-items: center;
  min-height: 28px;
}
.cr-shared-board-top-player-row.is-game-type-hidden .cr-shared-board-player-panel-top {
  grid-column: 2;
}
.cr-shared-board-game-type {
  justify-self: stretch;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid rgba(240, 217, 181, .46);
  border-radius: 7px;
  background: rgba(15, 23, 42, .74);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.captured-pieces-side {
  display: flex;
  align-items: center;
  min-height: 28px;
}
.captured-pieces-row-top .captured-pieces-material,
.captured-pieces-row-bottom .captured-pieces-clock {
  justify-content: flex-end;
}
.captured-pieces-row-top .captured-pieces-clock,
.captured-pieces-row-bottom .captured-pieces-material {
  justify-content: flex-start;
}
.cr-shared-board-player-panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  margin-left: 64px;
  margin-right: 64px;
  padding: 4px 8px;
  border: 1px solid rgba(240, 217, 181, .58);
  border-radius: 7px;
  background: #946f51;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.cr-shared-board-top-player-row .cr-shared-board-player-panel-top {
  margin-left: 0;
  margin-right: 0;
}
.cr-shared-board-player-panel-top {
  margin-bottom: 5px;
}
.cr-shared-board-player-panel-bottom {
  margin-top: 5px;
}
.cr-shared-board-player-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}
.cr-shared-board-player-outcome {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  border: 1px solid rgba(248, 250, 252, .22);
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(15, 23, 42, .24);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: lowercase;
}
.cr-shared-board-player-main .cr-player-color-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-shared-board-player-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.cr-shared-bot-icon,
.cr-last-game-bot-icon {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.respawn-bot-panel-icon,
.respawn-bot-icon {
  width: 22px;
  height: 16px;
  max-width: 22px;
  max-height: 16px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 22px;
  vertical-align: middle;
}
.respawn-bot-takeover {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}
.cr-shared-board-player-elo {
  color: #f8ead0;
  font-weight: 700;
  font-size: .88rem;
  flex: 0 0 auto;
}
.captured-pieces-tray {
  position: relative;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  max-width: 100%;
  overflow: visible;
  padding: 2px 7px;
  border: 1px solid rgba(106, 62, 28, .28);
  border-radius: 5px;
  background-color: #e6c28c;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 18%, rgba(89,48,22,.08) 52%, rgba(255,255,255,.12)),
    repeating-linear-gradient(0deg, rgba(109,68,35,.11) 0 1px, rgba(255,244,211,.08) 1px 3px, rgba(159,101,48,.09) 3px 5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(89,48,22,.14);
}
.captured-pieces-tray-top {
  justify-content: flex-start;
}
.captured-pieces-tray-bottom {
  justify-content: flex-end;
}
.cr-captured-material {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(51,65,85,.66);
  color: #fff7d6;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
.cr-captured-material.is-ahead {
  background: rgba(17,94,89,.78);
  color: #dcfce7;
}
.cr-captured-material.is-behind {
  background: rgba(127,29,29,.78);
  color: #fee2e2;
}
.captured-pieces-tray-top .cr-captured-material {
  position: static;
}
.captured-pieces-tray-bottom .cr-captured-material {
  position: static;
}
.cr-board-clock {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: 21px;
  padding: 2px 5px;
  border: 1px solid rgba(34, 197, 94, .62);
  border-radius: 5px;
  background: #020617;
  color: #86efac;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.38), inset 0 0 12px rgba(34,197,94,.08);
}
.captured-pieces-tray-top .cr-board-clock {
  position: static;
}
.captured-pieces-tray-bottom .cr-board-clock {
  position: static;
}
.cr-board-clock-time {
  color: #22c55e;
  text-shadow: 0 0 5px rgba(34,197,94,.34);
}
.cr-board-clock.is-low-clock {
  border-color: rgba(248, 113, 113, .68);
  color: #fca5a5;
  box-shadow: 0 1px 4px rgba(0,0,0,.38), inset 0 0 12px rgba(248,113,113,.10);
}
.cr-board-clock.is-low-clock .cr-board-clock-time {
  color: #ef4444;
  text-shadow: 0 0 5px rgba(239,68,68,.42);
}
.captured-piece-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
  user-select: none;
}
.viewer-piece-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.check-board-alert {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(127, 29, 29, .36);
  pointer-events: none;
}
.resignation-board-flag {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: 31px;
  height: 28px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.42));
}
.resignation-flag-pole {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 2px;
  height: 25px;
  border-radius: 999px;
  background: #111827;
}
.resignation-flag-cloth {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 22px;
  height: 13px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, .58);
  border-radius: 2px 7px 6px 2px;
  clip-path: polygon(0 0, 100% 14%, 78% 100%, 0 72%);
}
.terminal-board-result-icon {
  position: absolute;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .38);
  pointer-events: none;
}
.terminal-board-thumbs-up {
  right: 3px;
  bottom: 3px;
  background: #16a34a;
}
.terminal-board-timeout {
  left: 3px;
  bottom: 3px;
  background: #dc2626;
}
.abandoned-board-door {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 68px;
  height: 56px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, .48));
}
.abandoned-board-door-frame {
  position: absolute;
  left: 20px;
  top: 3px;
  width: 30px;
  height: 40px;
  border: 3px solid rgba(255, 247, 214, .94);
  border-bottom-width: 4px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(1, 7, 13, .94);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .74);
  overflow: hidden;
}
.abandoned-board-door-frame.is-black-abandoned {
  background: rgba(255, 251, 235, .96);
  box-shadow: inset 0 0 12px rgba(148, 119, 66, .32);
}
.abandoned-board-door-panel {
  position: absolute;
  left: 19px;
  top: 8px;
  width: 28px;
  height: 35px;
  background: linear-gradient(135deg, #7c3f1d 0%, #c98a45 100%);
  border: 1px solid rgba(255, 247, 214, .55);
  border-radius: 2px;
  transform-origin: right center;
  transform: perspective(100px) translateX(-26px) rotateY(75deg) skewY(-2deg);
  box-shadow: inset -5px 0 8px rgba(0, 0, 0, .24);
}
.abandoned-board-king-distance {
  position: absolute;
  left: 6px;
  top: 11px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .92;
}
.viewer-piece-img.is-checkmated-king {
  transform: rotate(45deg);
  transform-origin: 50% 50%;
}
.move-origin-time-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.move-origin-time-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(7,18,38,.74);
  color: #fff7d6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.move-origin-time-overlay.is-white-move .move-origin-time-text {
  background: rgba(255,247,214,.88);
  color: #071226;
}
.move-origin-time-overlay.is-white-move .deep-thought-cog { stroke: #071226; }
.engine-best-move-arrow-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.engine-best-move-arrow-shape {
  fill: rgba(143, 206, 66, .68);
  stroke: rgba(143, 206, 66, .18);
  stroke-width: .35;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}
.engine-actual-move-arrow .engine-best-move-arrow-shape {
  fill: rgba(239, 68, 68, .54);
  stroke: rgba(127, 29, 29, .28);
}
.maia-move-arrow-overlay {
  z-index: 8;
}
.maia-move-arrow-shape {
  fill: rgba(244, 114, 182, .72);
  stroke: rgba(244, 114, 182, .92);
  stroke-width: .35;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.maia-move-arrow-outline {
  fill: none;
  stroke: rgba(0, 0, 0, .92);
  stroke-width: .72;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.maia-move-arrow.is-focused .maia-move-arrow-shape {
  fill: rgba(244, 114, 182, .86);
  stroke: rgba(244, 114, 182, 1);
}
.maia-move-arrow.is-comparison .maia-move-arrow-shape {
  fill: rgba(190, 24, 93, .78);
  stroke: rgba(190, 24, 93, .98);
}
.maia-move-arrow.is-comparison.is-focused .maia-move-arrow-shape {
  fill: rgba(190, 24, 93, .9);
  stroke: rgba(190, 24, 93, 1);
}
.maia-move-arrow.is-both .maia-move-arrow-shape {
  fill: rgba(244, 114, 182, .76);
  stroke: rgba(244, 114, 182, .96);
}
.maia-move-arrow-shape.is-current-shape {
  fill: rgba(244, 114, 182, .76);
  stroke: rgba(244, 114, 182, .98);
}
.maia-move-arrow-shape.is-comparison-shape {
  fill: rgba(190, 24, 93, .82);
  stroke: rgba(190, 24, 93, .98);
}
.maia-move-arrow-inner {
  filter: drop-shadow(0 0 1px rgba(0,0,0,.18));
}
.maia-move-arrow-stockfish-hash {
  opacity: .45;
  stroke: rgba(59, 130, 21, .54);
  stroke-width: .12;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}
.maia-move-arrow-rank-text {
  font-size: 2.05px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke-width: .22px;
}
.maia-move-arrow-rank-text.is-current-rank {
  fill: #fff7fb;
  stroke: rgba(80, 7, 36, .82);
}
.maia-move-arrow-rank-text.is-comparison-rank {
  fill: #020617;
  stroke: rgba(255, 228, 242, .9);
}
.maia-move-arrow-rank-text.is-same-rank {
  fill: #fff7fb;
  stroke: rgba(2, 6, 23, .96);
  stroke-width: .3px;
}
.board-deep-thought-icon {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.32));
}
.deep-thought-cog {
  fill: none;
  stroke: #f6e7b0;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.deep-thought-marker { cursor: pointer; }
.deep-thought-marker:hover .deep-thought-cog { stroke: #ffffff; }
.viewer-square.is-animation-hidden .viewer-piece-img {
  visibility: hidden;
}
.viewer-piece-animation-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.2, .74, .22, 1);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.24));
}
.viewer-captured-piece-animation-overlay {
  z-index: 7;
  transition-property: opacity;
  transition-timing-function: ease-out;
}
.viewer-captured-piece-animation-overlay.is-fading {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .viewer-piece-animation-overlay {
    transition-duration: 0ms !important;
  }
}
.viewer-board.is-wood-grain .viewer-square {
  background-size: 360% 360%;
  background-position: var(--wood-x, 50%) var(--wood-y, 50%);
}
.viewer-square.is-highlight {
  box-shadow: inset 0 0 0 4px rgba(255, 215, 0, .52);
}
.viewer-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.viewer-nav-btn {
  min-width: 0;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(106, 62, 28, .35);
  background-color: #f1dfbd;
  background-image:
    linear-gradient(rgba(255, 248, 224, .18), rgba(255, 248, 224, .18)),
    url("/static/img/board_textures/american-hard-maple.webp");
  background-size: 260% 260%;
  background-position: 48% 52%;
  color: #17100a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 5px 12px rgba(36, 23, 10, .12);
}
.viewer-nav-btn:hover,
.detach-game-board-btn:hover {
  border-color: rgba(78, 42, 18, .52);
  background-position: 58% 46%;
  color: #120c06;
}
.viewer-nav-icon-btn {
  font-size: 18px;
  font-weight: 800;
}
.viewer-nav-center-btn {
  font-size: 13px;
  font-weight: 900;
}
.move-animation-controls {
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(106, 62, 28, .32);
  border-radius: 8px;
  background-color: #f1dfbd;
  background-image:
    linear-gradient(rgba(255, 248, 224, .16), rgba(255, 248, 224, .16)),
    url("/static/img/board_textures/american-hard-maple.webp");
  background-size: 280% 280%;
  background-position: 42% 54%;
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 8px 18px rgba(44, 28, 14, .12);
}
.board-grain-toggle,
.move-animation-label,
.move-animation-range {
  color: #111;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.board-grain-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #6f3e22;
}
.move-animation-range input[type="range"] {
  width: clamp(96px, 16vw, 160px);
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.move-animation-range input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 21, 8, .55);
  background-color: #7b4326;
  background-image:
    linear-gradient(rgba(35, 14, 5, .15), rgba(255, 222, 174, .10)),
    url("/static/img/board_textures/american-cherry-vertical.webp");
  background-size: 260% 260%;
  background-position: 50% 45%;
}
.move-animation-range input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border: 1px solid rgba(42, 18, 7, .74);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #9a5c35;
  background-image:
    radial-gradient(circle at 35% 30%, rgba(255, 222, 166, .36), transparent 34%),
    url("/static/img/board_textures/american-cherry-vertical.webp");
  background-size: 320% 320%;
  background-position: 62% 48%;
  box-shadow: 0 2px 5px rgba(34, 16, 6, .45), inset 0 1px 0 rgba(255,255,255,.22);
}
.move-animation-range input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 21, 8, .55);
  background-color: #7b4326;
  background-image:
    linear-gradient(rgba(35, 14, 5, .15), rgba(255, 222, 174, .10)),
    url("/static/img/board_textures/american-cherry-vertical.webp");
  background-size: 260% 260%;
  background-position: 50% 45%;
}
.move-animation-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(42, 18, 7, .74);
  border-radius: 50%;
  background-color: #9a5c35;
  background-image:
    radial-gradient(circle at 35% 30%, rgba(255, 222, 166, .36), transparent 34%),
    url("/static/img/board_textures/american-cherry-vertical.webp");
  background-size: 320% 320%;
  background-position: 62% 48%;
  box-shadow: 0 2px 5px rgba(34, 16, 6, .45), inset 0 1px 0 rgba(255,255,255,.22);
}
.cr-viewer-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.cr-viewer-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cr-viewer-grid { display: grid; grid-template-columns: minmax(320px, 560px) minmax(260px, 1fr); gap: 20px; align-items: start; }
.cr-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border: 1px solid var(--cr-line); }
.cr-square { min-height: 0; border: 0; border-radius: 0; font-size: clamp(1.6rem, 5vw, 3.4rem); color: #0b1117; }
.cr-square.light { background: #d7e4dc; }
.cr-square.dark { background: #52796f; }
.cr-moves { margin: 0; padding: 14px 14px 14px 34px; max-height: 560px; overflow: auto; border: 1px solid var(--cr-line); border-radius: 8px; background: var(--cr-panel); }
.cr-moves li { padding: 4px 2px; color: var(--cr-muted); cursor: pointer; }
.game-time-management-card {
  margin-top: 20px;
  padding: 0 24px 18px;
  position: relative;
  min-width: 0;
}
.game-time-management-card > legend {
  margin-left: 12px;
  padding: 0 8px;
  color: var(--cr-text);
  font-size: 0.95rem;
  font-weight: 850;
}
.cr-shared-time-card > legend,
.cr-shared-detached-time > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.game-time-management-head {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0 18px;
  margin-bottom: 12px;
}
.cr-shared-time-card > .game-time-management-head,
.cr-shared-detached-time > .game-time-management-head {
  min-height: 0;
  padding: 0;
  margin: 0;
}
.cr-shared-time-card > .game-time-management-head::after,
.cr-shared-detached-time > .game-time-management-head::after {
  display: none;
}
.cr-shared-time-card .time-management-actions,
.cr-shared-detached-time .time-management-actions {
  top: 0;
  z-index: 3;
}
.game-time-management-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 220px;
  bottom: 0;
  border-bottom: 1px solid var(--line-soft);
}
.game-time-management-head p {
  margin: 0;
  min-height: 24px;
  padding-right: 250px;
  color: var(--cr-muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.time-management-actions {
  top: 4px;
  right: 0;
}
.game-time-management-card.is-collapsed .game-time-management-panel {
  display: none;
}
.game-time-management-card.is-detached .game-time-management-panel {
  display: none;
}
.game-time-management-card.is-detached #time-management-collapse-toggle {
  display: none;
}
.game-time-management-panel {
  display: grid;
  gap: 14px;
  padding: 0;
}
.time-curve-copy {
  color: var(--cr-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 1180px;
}
.time-curve-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-shared-time-card #cr-shared-time-panel .time-curve-legend,
.cr-shared-detached-time #cr-shared-detached-time-panel .time-curve-legend {
  margin: 2px 0 0;
}
.cr-shared-time-card #cr-shared-time-panel .cr-shared-time-controls,
.cr-shared-detached-time #cr-shared-detached-time-panel .cr-shared-time-controls {
  margin: 3px 0 4px;
}
.cr-shared-stockfish-panel-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  margin: 2px 0 -1px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.cr-shared-stockfish-tabbed-panel {
  display: grid;
  gap: 0;
  align-items: start;
}
.cr-shared-stockfish-tabbed-panel.is-history {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
}
body:not(.cr-lgr-simple-mode) #cr-shared-time-panel .cr-shared-stockfish-tabbed-panel.is-history,
body:not(.cr-lgr-simple-mode) #cr-shared-detached-time-panel .cr-shared-stockfish-tabbed-panel.is-history {
  margin-left: 0;
  margin-right: 0;
}
body:not(.cr-lgr-simple-mode) #cr-shared-time-panel .cr-shared-stockfish-tabbed-panel.is-history > .time-curve-panel,
body:not(.cr-lgr-simple-mode) #cr-shared-detached-time-panel .cr-shared-stockfish-tabbed-panel.is-history > .time-curve-panel {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  background: var(--chart-bg);
  border-radius: 16px;
  overflow: hidden;
}
.time-curve-mode-toggle {
  display: inline-flex;
  width: max-content;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.time-curve-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.time-curve-mode-btn.is-active {
  background: var(--cr-accent);
  color: #1f2937;
}
.cr-shared-stockfish-panel-tab {
  border: 1px solid rgba(148, 163, 184, .34);
  border-bottom: 0;
  border-radius: 0;
  background: rgba(255,255,255,.06);
  color: var(--cr-muted);
  padding: 7px 7px;
  font-size: 10px;
  line-height: 1;
  min-height: 0;
}
.cr-shared-stockfish-panel-tab + .cr-shared-stockfish-panel-tab {
  margin-left: -1px;
}
.cr-shared-stockfish-panel-tab.is-active {
  background: var(--chart-bg);
  color: var(--cr-text);
  box-shadow: inset 0 3px 0 var(--cr-accent);
}
.time-curve-mode-btn:disabled,
.time-curve-mode-btn.is-disabled {
  cursor: not-allowed;
  opacity: .42;
}
.time-curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.time-curve-legend-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--cr-muted);
  font-size: 15px;
  font-weight: 800;
}
.time-curve-legend-item span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}
.time-curve-legend-item .time-curve-deep-thought-key {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.time-curve-deep-thought-key .board-deep-thought-icon {
  width: 18px;
  height: 18px;
  filter: none;
}
.time-curve-user-key {
  background: var(--chart-line);
  height: 4px !important;
}
.time-curve-opponent-key {
  background: #ef4444;
  height: 4px !important;
}
.time-curve-material-key {
  background: #f8fafc;
  height: 4px !important;
}
.time-curve-stockfish-key {
  background: #9ca3af;
  height: 8px !important;
  opacity: .72;
}
.time-curve-hard-best-key {
  width: 11px !important;
  height: 11px !important;
  border-radius: 999px;
  background: rgba(244, 114, 182, .86);
  border: 2px solid rgba(80, 7, 36, .82);
  box-shadow: 0 0 0 1px rgba(255, 247, 251, .56);
}
.stockfish-eval-dot circle {
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.stockfish-eval-dot:hover circle {
  stroke: #f8fafc;
  stroke-width: 1.8;
}
.hard-to-spot-best-dot circle {
  fill: rgba(244, 114, 182, .86);
  stroke: rgba(80, 7, 36, .88);
  stroke-width: 1.7;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.hard-to-spot-best-dot:hover circle {
  fill: rgba(244, 114, 182, .98);
  stroke: #fff7fb;
  stroke-width: 2.1;
}
.engine-chart-marker-text {
  font-size: 17px;
  font-weight: 400;
  paint-order: normal;
  stroke: none;
}
.time-curve-grid {
  display: grid;
  gap: 16px;
}
.time-curve-panel {
  position: relative;
  min-width: 0;
  align-self: stretch;
  min-height: 0;
}
.cr-shared-move-counts-panel {
  overflow: hidden;
}
.cr-shared-accuracy-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 3px 16px 14px;
  box-sizing: border-box;
  overflow: hidden;
}
.cr-shared-accuracy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cr-shared-accuracy-head h3 {
  margin: 0;
  color: #edf7f4;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 950;
  line-height: 1.05;
}
.cr-shared-accuracy-help {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(245,205,106,.48);
  background: rgba(245,205,106,.12);
  color: #f5cd6a;
  font-weight: 950;
  cursor: help;
}
.cr-shared-accuracy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(2, 6, 23, .34);
}
.cr-shared-accuracy-table th,
.cr-shared-accuracy-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #edf7f4;
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 850;
  text-align: right;
}
.cr-shared-accuracy-table thead th {
  color: #d8b75a;
  background: rgba(255,255,255,.055);
  font-size: clamp(12px, 1vw, 14px);
  text-transform: none;
}
.cr-shared-accuracy-player-column {
  width: 33%;
}
.cr-shared-accuracy-table th:first-child {
  text-align: left;
}
.cr-shared-accuracy-table tbody tr:last-child th,
.cr-shared-accuracy-table tbody tr:last-child td {
  border-bottom: 0;
}
.cr-shared-accuracy-table tbody td {
  font-size: clamp(17px, 1.75vw, 24px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.cr-shared-accuracy-player {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(240, 217, 181, .58);
  border-radius: 7px;
  background: #946f51;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
  color: #f8fafc;
}
.cr-shared-accuracy-player-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.cr-shared-accuracy-player-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.cr-shared-accuracy-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
  font-weight: 950;
}
.cr-shared-accuracy-player-elo {
  color: #f8ead0;
  font-size: .88em;
  font-weight: 800;
  flex: 0 0 auto;
}
.cr-shared-accuracy-empty {
  color: #94a3b8;
}
.cr-side-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: 1px;
}
.cr-side-dot-white {
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.75);
}
.cr-side-dot-black {
  background: #020617;
  border: 1px solid rgba(248,250,252,.75);
}
.cr-shared-accuracy-note {
  margin: 0;
  color: #a9bdc0;
  font-size: 12px;
  font-weight: 750;
}
.game-time-curve-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}
.cr-shared-move-counts-svg path,
.cr-shared-move-counts-svg circle {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.cr-shared-move-counts-svg path:hover,
.cr-shared-move-counts-svg circle:hover {
  opacity: .88;
}
.chart-empty {
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--cr-muted);
  padding: 18px;
}
.material-change-dot circle {
  fill: #f8fafc;
  stroke: #111827;
  stroke-width: 1.4;
  cursor: pointer;
}
.material-change-dot:hover circle {
  fill: #ffffff;
  stroke: #67b3ff;
  stroke-width: 2;
}
.material-metric-callout { cursor: pointer; }
.material-metric-callout:hover rect {
  fill: rgba(30, 41, 59, .96);
  stroke: #fbbf24;
}

.cr-docs-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.cr-docs-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
}
.cr-docs-head p {
  margin: 0;
  max-width: 980px;
}
.cr-docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cr-docs-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}
.cr-docs-search {
  display: grid;
  gap: 6px;
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 800;
}
.cr-docs-search input {
  width: 100%;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255,255,255,.05);
  color: var(--cr-text);
}
.cr-docs-tabs {
  display: grid;
  gap: 6px;
}
.cr-docs-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255,255,255,.04);
  color: var(--cr-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.cr-docs-tab strong {
  color: var(--cr-accent);
  font-size: 12px;
}
.cr-docs-tab.is-active {
  border-color: rgba(245, 197, 92, .72);
  background: rgba(245, 197, 92, .12);
  color: var(--cr-text);
}
.cr-docs-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.cr-docs-themes,
.cr-docs-panel {
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.cr-docs-themes {
  padding: 16px;
}
.cr-docs-themes h2,
.cr-docs-panel h2 {
  margin: 0;
  font-size: 1rem;
}
.cr-docs-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cr-docs-theme {
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0,0,0,.15);
}
.cr-docs-theme div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.cr-docs-theme strong {
  color: var(--cr-text);
}
.cr-docs-theme span,
.cr-docs-flags span,
.cr-docs-status {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(245, 197, 92, .14);
  color: var(--cr-accent);
  font-size: 11px;
  font-weight: 900;
}
.cr-docs-theme p {
  margin: 8px 0;
  color: var(--cr-muted);
  font-size: 13px;
  line-height: 1.45;
}
.cr-docs-theme small {
  color: var(--cr-muted);
}
.cr-docs-panel {
  display: none;
}
.cr-docs-panel.is-active {
  display: block;
}
.cr-docs-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cr-line);
}
.cr-docs-panel-title span {
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 800;
}
.cr-docs-table-wrap {
  overflow: auto;
}
.cr-docs-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.cr-docs-table th,
.cr-docs-table td {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.42;
}
.cr-docs-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: var(--cr-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.cr-docs-table td {
  color: var(--cr-text);
}
.cr-docs-table td:nth-child(1) {
  width: 210px;
}
.cr-docs-table td:nth-child(3) {
  width: 34%;
}
.cr-docs-table code {
  display: block;
  margin-top: 4px;
  color: var(--cr-accent);
  white-space: normal;
}
.cr-docs-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.cr-docs-status {
  display: inline-block;
  margin: 0 6px 4px 0;
}

.cr-share-game-status {
  min-height: 18px;
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.cr-share-game-status a {
  color: var(--cr-accent);
}
.cr-share-game-status.is-error {
  color: #fecaca;
}
.cr-shared-game-shell {
  display: grid;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}
.cr-shared-game-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.cr-shared-game-head h1 {
  margin: 0;
  font-size: 1.8rem;
}
.cr-shared-game-head p {
  margin: 5px 0 0;
  color: var(--cr-muted);
}
.cr-shared-game-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  grid-column: 1 / -1;
}
.cr-shared-game-head-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  justify-items: end;
  align-items: center;
}
.cr-lgr-mode-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-lgr-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(6, 18, 20, 0.52);
  padding: 3px;
  margin: 0;
}
.cr-lgr-mode-toggle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cr-lgr-mode-toggle label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.cr-lgr-mode-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cr-lgr-mode-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.cr-lgr-mode-toggle input:checked + span {
  background: rgba(245, 205, 106, 0.95);
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.cr-lgr-tactics-gallery-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.cr-shared-game-nav .btn.is-disabled,
.cr-shared-game-nav .btn:disabled {
  opacity: .45;
  pointer-events: none;
}
.cr-key-hint {
  font-size: .78em;
  opacity: .8;
}
.cr-inline-refresh-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 5px;
  vertical-align: -0.16em;
}
.cr-last-game-current {
  max-width: 860px;
}
.cr-last-game-outcome-line {
  font-size: 1.24rem;
  font-weight: 900;
  color: #f8fafc;
}
.cr-last-game-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cr-last-game-analysis-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 38px;
}
.cr-last-game-analysis-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(240, 217, 181, .22);
  border-radius: 999px;
  padding: 7px 11px;
  color: #f8fafc;
  background: rgba(6, 18, 20, .74);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.cr-last-game-analysis-item > img {
  display: block;
  flex: 0 0 17px;
  width: 17px !important;
  min-width: 17px;
  max-width: 17px;
  height: 17px !important;
  min-height: 17px;
  max-height: 17px;
  object-fit: contain;
}
.cr-last-game-analysis-item.is-running > img {
  animation: cr-last-game-analysis-spin 1.25s linear infinite;
}
.cr-last-game-coach-status-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}
.cr-last-game-analysis-item.is-running .cr-last-game-coach-status-icon {
  animation: cr-coach-whistle-frame-cycle 1.25s steps(1, end) infinite;
}
@keyframes cr-last-game-analysis-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cr-last-game-analysis-item strong {
  color: #f5b53f;
  font-variant-numeric: tabular-nums;
}
.cr-player-color-name {
  font-weight: 800;
}
.cr-player-color-white {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .62);
}
.cr-player-color-black {
  color: #101010;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .34);
}
.cr-last-game-versus {
  color: #f0d9b5;
  font-size: .72em;
  font-weight: 700;
  text-transform: uppercase;
}
.cr-shared-board-panel .board-meta-primary > strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  background: #946f51;
  border: 1.2px solid #f0d9b5;
  border-radius: 8px;
  padding: 7px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.cr-last-game-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
}
.cr-lgr-bot-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
  padding: 9px 12px;
  border: 1px solid rgba(245, 181, 63, .42);
  border-radius: 8px;
  background: rgba(37, 31, 18, .84);
  color: #f8f4ea;
}
.cr-lgr-bot-privacy span {
  font-size: .92rem;
  font-weight: 650;
}
.cr-lgr-bot-privacy input {
  width: 96px;
  min-height: 34px;
  border: 1px solid rgba(240, 217, 181, .38);
  border-radius: 7px;
  background: rgba(5, 10, 12, .82);
  color: #fff7e8;
  padding: 6px 8px;
  font: inherit;
}
.cr-lgr-bot-privacy small {
  color: #cbd5e1;
}
.cr-lgr-bot-privacy-landing {
  margin: 12px 0;
}
.cr-last-game-chip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 4px 8px;
  min-width: 350px;
  min-height: 118px;
  border: 1px solid rgba(240, 217, 181, .22);
  border-radius: 8px;
  padding: 34px 10px 10px;
  color: #edf7f4;
  text-decoration: none;
  background: rgba(6, 18, 20, .72);
}
.cr-last-game-chip:hover,
.cr-last-game-chip.is-current {
  border-color: rgba(245, 181, 63, .74);
  background: rgba(37, 31, 18, .84);
}
.cr-last-game-chip .cr-last-game-index {
  grid-row: 1 / span 3;
  align-self: center;
  color: #f5b53f;
  font-weight: 700;
}
.cr-last-game-chip .cr-last-game-players,
.cr-last-game-chip em,
.cr-last-game-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-last-game-chip .cr-last-game-players {
  display: grid;
  gap: 2px;
  overflow: visible;
  white-space: normal;
}
.cr-last-game-player-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}
.cr-last-game-player-name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.cr-last-game-inline-vs {
  flex: 0 0 auto;
  color: #f0d9b5;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cr-last-game-country-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.cr-last-game-stockfish-icon,
.cr-last-game-maia-icon,
.cr-last-game-coach-icon {
  position: absolute;
  top: 7px;
  display: block;
  width: 17px !important;
  min-width: 17px;
  max-width: 17px;
  height: 17px !important;
  min-height: 17px;
  max-height: 17px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .16s ease, transform .16s ease;
}
.cr-last-game-stockfish-icon {
  right: 66px;
}
.cr-last-game-maia-icon {
  right: 40px;
  border-radius: 5px;
}
.cr-last-game-coach-icon {
  right: 7px;
  width: 26px !important;
  min-width: 26px;
  max-width: 26px;
  height: 26px !important;
  min-height: 26px;
  max-height: 26px;
  top: 3px;
}
.cr-last-game-stockfish-icon.is-ready,
.cr-last-game-maia-icon.is-ready,
.cr-last-game-coach-icon.is-ready,
.cr-last-game-coach-icon.is-running {
  opacity: .95;
  transform: scale(1);
}
.cr-last-game-stockfish-icon.is-failed,
.cr-last-game-maia-icon.is-failed {
  opacity: .72;
  filter: grayscale(1);
  outline: 2px solid rgba(185, 28, 28, .82);
  outline-offset: 1px;
  transform: scale(1);
}
.cr-last-game-coach-icon.is-running {
  animation: cr-coach-whistle-frame-cycle 1.25s steps(1, end) infinite;
}
.cr-last-game-chip em,
.cr-last-game-chip small {
  color: var(--cr-muted);
  font-style: normal;
  font-size: .82rem;
}
.cr-shared-title-player {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.cr-shared-title-country-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.cr-form-error {
  border: 1px solid rgba(239, 68, 68, .55);
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}
.cr-shared-game-layout {
  display: grid;
  grid-template-columns: minmax(440px, 620px) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}
.cr-shared-review-grid {
  display: grid;
  grid-template-columns: minmax(340px, min(52vw, 620px)) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cr-shared-review-grid.is-multi-line-review {
  grid-template-columns: minmax(0, 1fr);
}
.cr-shared-review-grid.is-multi-line-review .cr-shared-board-panel {
  grid-column: 1 / -1;
}
.cr-shared-review-grid.is-multi-line-review .cr-shared-right-rail {
  display: none !important;
}
.cr-shared-review-grid > * {
  min-width: 0;
}
.cr-shared-time-panel,
.cr-shared-game-empty {
  padding: 18px;
}
.cr-shared-board-panel {
  padding: 22px;
}
.cr-shared-board-annotation-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 4px;
  overflow: visible;
  box-sizing: border-box;
}
.cr-shared-board-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.54);
  color: rgba(248, 250, 252, 0.88);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}
.cr-shared-board-legend-toggle {
  cursor: pointer;
}
.cr-shared-board-legend-toggle.is-muted {
  opacity: 0.52;
}
.cr-shared-board-legend-toggle:focus-visible {
  outline: 2px solid rgba(245, 205, 106, 0.92);
  outline-offset: 2px;
}
.cr-shared-board-legend-arrow {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 14px;
  flex: 0 0 34px;
}
.cr-shared-board-legend-arrow::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  opacity: 0.72;
}
.cr-shared-board-legend-arrow::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0.78;
}
.cr-shared-board-legend-arrow-stockfish::before {
  background: #16a34a;
}
.cr-shared-board-legend-arrow-stockfish::after {
  border-left: 11px solid #16a34a;
}
.cr-shared-board-legend-arrow-maia::before {
  background: #f9a8d4;
}
.cr-shared-board-legend-arrow-maia::after {
  border-left: 11px solid #f9a8d4;
}
.cr-shared-board-legend-actual {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
}
.cr-shared-board-legend-actual::before,
.cr-shared-board-legend-actual::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(250, 204, 21, 0.95);
  border-radius: 3px;
  box-sizing: border-box;
  background: rgba(250, 204, 21, 0.08);
}
.cr-shared-board-legend-actual::before {
  left: 2px;
  top: 2px;
}
.cr-shared-board-legend-actual::after {
  left: 8px;
  top: -2px;
}
.cr-shared-board-actions {
  align-self: start;
  width: auto;
  justify-self: end;
}
.cr-shared-board-actions .viewer-nav-btn {
  min-height: 28px;
  padding: 5px 8px;
  font-size: .72rem;
  line-height: 1.1;
  white-space: nowrap;
}
.cr-shared-board-panel .move-animation-range input[type="range"] {
  width: clamp(62px, 7vw, 92px);
}
.cr-shared-board-image-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, auto));
  gap: 5px;
  justify-content: end;
}
body:not(.cr-lgr-simple-mode) .cr-shared-board-panel .board-meta {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 6px;
  align-items: start;
}
body:not(.cr-lgr-simple-mode) .cr-shared-board-panel .board-meta-primary {
  grid-column: 1 / -1;
  min-width: 0;
}
body:not(.cr-lgr-simple-mode) .cr-shared-board-panel .cr-shared-board-actions {
  grid-column: 2 / 3;
  justify-self: stretch;
  width: 100%;
}
body:not(.cr-lgr-simple-mode) .cr-shared-board-panel .cr-shared-board-image-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
}
body:not(.cr-lgr-simple-mode) .cr-shared-board-panel .cr-shared-board-image-row .viewer-nav-btn {
  flex: 1 1 0;
  width: auto;
}
.cr-shared-board-action-button,
.cr-shared-board-image-button {
  min-width: 0;
}
.cr-shared-bottom-player-action-row {
  display: block;
}
.cr-shared-simple-respawn-button {
  display: none;
}
.cr-shared-bottom-review-stack {
  display: contents;
}
.cr-shared-maia-review-banner {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(236, 72, 153, .45);
  border-radius: 8px;
  background: rgba(80, 20, 56, .62);
  color: #fce7f3;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cr-shared-maia-review-banner[hidden] {
  display: none !important;
}
.cr-shared-maia-review-banner:hover {
  border-color: rgba(244, 114, 182, .75);
  background: rgba(109, 40, 84, .7);
}
.cr-shared-fen-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(240, 217, 181, .2);
  border-radius: 8px;
  background: rgba(4, 10, 12, .52);
}
.cr-shared-fen-row[hidden] {
  display: none !important;
}
.cr-shared-fen-label {
  color: var(--cr-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.cr-shared-fen-row code {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  color: #f8fafc;
  font-size: .74rem;
  line-height: 1.4;
  scrollbar-width: thin;
}
.cr-shared-fen-row .cr-small-button {
  min-width: 0;
  padding: 5px 9px;
  white-space: nowrap;
}
.cr-shared-opening-panel {
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(6, 18, 20, 0.48);
  padding: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
}
.cr-shared-game-history-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 3px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  background: rgba(6, 18, 20, 0.2);
  padding: 3px 7px;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.72rem;
  line-height: 1.1;
}
.cr-shared-game-history-mode legend {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 2px 0 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}
.cr-shared-game-history-mode label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 850;
  cursor: pointer;
}
.cr-shared-game-history-mode input {
  accent-color: var(--cr-accent);
  width: 12px;
  height: 12px;
}
.cr-shared-compact-history-panel,
.cr-shared-detailed-history-panel {
  margin: 4px 0 3px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  background: rgba(6, 18, 20, 0.28);
  padding: 0;
  display: grid;
  overflow: hidden;
}
.cr-shared-move-panel + .cr-shared-opening-panel {
  margin-top: 8px;
}
.cr-shared-move-stack .cr-shared-opening-panel {
  margin-top: 0;
}
.cr-shared-opening-panel h5,
.cr-shared-compact-history-panel h5,
.cr-shared-detailed-history-panel h5 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.82rem;
}
.cr-shared-opening-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  border: 0;
  min-height: 24px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, .035);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}
.cr-shared-opening-toggle:hover {
  background: rgba(255, 255, 255, .065);
}
.cr-shared-opening-icon {
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}
.cr-shared-opening-body {
  display: grid;
  gap: 4px;
  padding: 6px 7px 7px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.cr-shared-opening-body[hidden] {
  display: none !important;
}
.cr-shared-compact-history-toggle,
.cr-shared-detailed-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  border: 0;
  min-height: 24px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, .035);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}
.cr-shared-compact-history-toggle:hover,
.cr-shared-detailed-history-toggle:hover {
  background: rgba(255, 255, 255, .065);
}
.cr-shared-compact-history-icon,
.cr-shared-detailed-history-icon {
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}
.cr-shared-compact-history-body,
.cr-shared-detailed-history-body {
  display: grid;
  gap: 5px;
  padding: 6px 7px 7px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.cr-shared-compact-history-body[hidden],
.cr-shared-detailed-history-body[hidden] {
  display: none !important;
}
.cr-shared-compact-history-actions {
  display: flex;
  justify-content: flex-end;
}
.cr-shared-compact-history-text {
  max-height: 118px;
  overflow: auto;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cr-shared-compact-history-token {
  border-radius: 4px;
  padding: 1px 2px;
}
.cr-shared-compact-history-token.is-current {
  background: rgba(245, 205, 106, .86);
  color: #111827;
  font-weight: 900;
}
.cr-shared-opening-field {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 0.8rem;
  min-width: 0;
}
.cr-shared-opening-field.is-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.cr-shared-opening-field span,
.cr-shared-opening-empty {
  color: rgba(203, 213, 225, 0.78);
}
.cr-shared-opening-field strong {
  min-width: 0;
  max-width: 100%;
  color: #f8fafc;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cr-shared-opening-field a {
  color: #bfdbfe;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cr-shared-opening-field a:hover {
  text-decoration: underline;
}
.cr-shared-opening-wiki-link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-left: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
.cr-wikipedia-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, .5);
  color: #f8fafc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1;
  background: rgba(15, 23, 42, .78);
}
.cr-shared-actual-coach {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(3, 7, 10, 0.62);
  border-radius: 8px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cr-shared-actual-coach h5 {
  margin: 0 0 5px;
  color: #f8fafc;
  font-size: 0.82rem;
}
.cr-shared-actual-coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.cr-shared-actual-coach-head h5 {
  margin: 0;
}
.cr-shared-actual-coach-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}
.cr-shared-actual-coach-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 7px;
  background: radial-gradient(circle at 50% 46%, rgba(245, 205, 106, .16), rgba(15, 23, 42, .2));
}
.cr-shared-coach-whistle-icon.cr-shared-actual-coach-icon {
  width: 42px;
  height: 42px;
  background-image: url("img/coach_whistle_frames/whistle_0300.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: rgba(15, 23, 42, .24);
}
.cr-shared-actual-coach-head .cr-small-button {
  padding: 4px 8px;
}
.cr-shared-actual-coach-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cr-shared-coach-voice-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.cr-shared-coach-voice-control label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: rgba(203, 213, 225, 0.86);
  font-size: 0.72rem;
  font-weight: 850;
}
.cr-shared-coach-voice-control select {
  max-width: 90px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 6px;
}
.cr-shared-actual-coach p {
  margin: 5px 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.cr-shared-actual-coach-loading {
  padding: 10px 0 2px;
  color: #dbe7e3;
  font-weight: 760;
}
.cr-shared-stockfish-progress-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100% - 20px));
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .36);
  border-radius: 8px;
  background: rgba(2, 6, 23, .78);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
}
.cr-shared-stockfish-progress-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  animation: cr-stockfish-progress-spin 1.1s linear infinite;
}
@keyframes cr-stockfish-progress-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cr-shared-actual-coach .cr-shared-stockfish-sees-box {
  margin: 7px 0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.16);
}
.cr-shared-actual-coach .cr-shared-stockfish-sees-box h5,
.cr-shared-actual-coach .cr-shared-stockfish-sees-box p {
  color: #bbf7d0;
}
.cr-shared-actual-coach .cr-shared-ai-narration-headline {
  color: #f8fafc !important;
}
.cr-shared-actual-coach .cr-shared-ai-narration-lesson strong,
.cr-shared-actual-coach .cr-shared-ai-narration-list span {
  color: #cbd5e1;
}
.cr-shared-actual-coach .cr-shared-ai-narration-list li {
  color: rgba(255, 255, 255, 0.86);
}
.cr-game-coach-intro {
  display: grid;
  gap: 7px;
}
.cr-game-coach-intro-row {
  display: grid;
  gap: 2px;
}
.cr-game-coach-intro-row strong {
  color: #cbd5e1;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cr-game-coach-intro-row p {
  margin: 0;
}
.cr-game-coach-intro-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.cr-game-coach-intro-row li {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 760;
}
.cr-shared-opening-transition-box {
  margin: 8px 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
  padding: 7px 9px;
}
.cr-shared-opening-transition-box h5 {
  margin: 0 0 5px;
  color: #e5e7eb;
  font-size: 0.74rem;
  font-weight: 850;
}
.cr-shared-opening-transition-rows {
  display: grid;
  gap: 3px;
}
.cr-shared-opening-transition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.74rem;
  line-height: 1.25;
}
.cr-shared-opening-transition-row span {
  min-width: 0;
  color: rgba(248, 250, 252, 0.88);
  overflow-wrap: anywhere;
}
.cr-shared-opening-transition-row strong {
  color: #fef08a;
  font-variant-numeric: tabular-nums;
}
.cr-shared-opening-reference {
  margin: 4px 0 6px;
  font-size: 0.78rem;
  line-height: 1.25;
}
.cr-shared-opening-reference a {
  color: #93c5fd;
  font-weight: 750;
  text-decoration: none;
}
.cr-shared-opening-reference a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
.cr-shared-tablebase-box {
  margin: 7px 0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
}
.cr-shared-tablebase-box h5 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.cr-shared-tablebase-box p {
  margin: 0 0 6px;
  color: #d1d5db;
}
.cr-shared-tablebase-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cr-shared-tablebase-facts span,
.cr-shared-tablebase-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}
.cr-shared-tablebase-chip.is-win {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(20, 83, 45, 0.28);
  color: #bbf7d0;
}
.cr-shared-tablebase-chip.is-draw {
  border-color: rgba(163, 230, 53, 0.38);
  background: rgba(63, 98, 18, 0.24);
  color: #d9f99d;
}
.cr-shared-tablebase-chip.is-loss {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(51, 65, 85, 0.48);
  color: #cbd5e1;
}
.cr-shared-maia-tablebase-head {
  white-space: nowrap;
}
.cr-shared-tablebase-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.cr-shared-tablebase-info-link:hover,
.cr-shared-tablebase-info-link:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(148, 163, 184, 0.18);
}
.cr-shared-actual-coach-empty {
  color: rgba(255, 255, 255, 0.68);
}
.cr-shared-coach-provider-status {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 7px;
  background: rgba(120, 53, 15, 0.28);
  color: #fef3c7;
}
.cr-shared-coach-provider-status strong {
  display: block;
  margin-bottom: 3px;
  color: #fde68a;
  font-size: 0.8rem;
}
.cr-shared-coach-provider-status p {
  margin: 0;
  color: rgba(254, 243, 199, 0.92);
  font-size: 0.76rem;
  line-height: 1.34;
}
.cr-shared-actual-coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cr-shared-actual-coach-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}
.cr-shared-coaching-feedback {
  margin-top: 10px;
  margin-bottom: 2px;
  padding-top: 8px;
  padding-bottom: 3px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
.cr-shared-coaching-feedback-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.65rem;
  font-weight: 800;
}
.cr-shared-coaching-feedback-label {
  display: inline-flex;
  align-items: center;
}
.cr-coach-route-summary {
  flex: 0 0 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.15;
}
.cr-coach-route-summary-text {
  color: rgba(226, 232, 240, 0.82);
  white-space: nowrap;
}
.cr-coach-route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  font-size: 0.54rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}
.cr-coach-route-icon-chatgpt {
  border-color: rgba(45, 212, 191, 0.44);
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
}
.cr-coach-route-icon-gemini {
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(37, 99, 235, 0.22);
  color: #dbeafe;
}
.cr-coach-route-icon-gemini-label {
  min-width: 42px;
  padding: 0 6px;
  font-size: 0.58rem;
}
.cr-coach-route-icon-deterministic {
  border-color: rgba(255, 255, 255, 0.95);
  background: #ffffff;
  color: #000000;
}
.cr-coach-route-stats {
  color: rgba(203, 213, 225, 0.76);
  font-size: 0.6rem;
  font-weight: 850;
  white-space: nowrap;
}
.cr-shared-coaching-feedback-votes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cr-coach-feedback-vote {
  width: 20px;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.56);
  color: #f8fafc;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cr-coach-feedback-vote:hover,
.cr-coach-feedback-vote:focus-visible {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(30, 41, 59, 0.86);
}
.cr-shared-coaching-feedback-detail {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.cr-shared-coaching-feedback-detail[hidden] {
  display: none;
}
.cr-coach-feedback-reason,
.cr-coach-feedback-note {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.72rem;
  padding: 4px 6px;
}
.cr-coach-feedback-reason {
  width: 100%;
  min-height: 28px;
}
.cr-coach-feedback-note {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  resize: vertical;
  line-height: 1.35;
}
.cr-coach-feedback-add {
  min-height: 28px;
}
.cr-shared-coaching-feedback-drafts {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 18px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.68rem;
  line-height: 1.35;
}
.cr-shared-coaching-feedback-drafts ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cr-shared-coaching-feedback-drafts li {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.46);
}
.cr-shared-coaching-feedback-drafts strong {
  color: rgba(248, 250, 252, 0.92);
}
.cr-shared-coaching-feedback-drafts em,
.cr-coach-feedback-empty {
  color: rgba(203, 213, 225, 0.72);
  font-style: normal;
}
.cr-shared-coaching-feedback-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.cr-shared-coaching-feedback-status {
  flex: 1 0 100%;
  min-height: 16px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.68rem;
  line-height: 1.3;
}
.cr-shared-coaching-feedback-previous {
  flex: 1 0 100%;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.67rem;
  line-height: 1.35;
}
.cr-shared-coaching-feedback-previous:empty {
  display: none;
}
.cr-coach-previous-feedback-title {
  margin: 2px 0 4px;
  color: rgba(250, 204, 21, 0.82);
  font-weight: 850;
}
.cr-shared-coaching-feedback-previous ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cr-shared-coaching-feedback-previous li {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.38);
}
.cr-shared-coaching-feedback-previous strong {
  color: rgba(248, 250, 252, 0.92);
}
.cr-shared-coaching-version-debug {
  margin-top: 6px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 0.68rem;
}
.cr-shared-coaching-version-debug pre {
  max-height: 180px;
  overflow: auto;
  margin: 5px 0 0;
  padding: 6px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.72);
}
.cr-shared-board-export-card {
  width: 100%;
  box-sizing: border-box;
  background: #0b1517;
  color: #edf7f4;
}
.cr-shared-move-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.cr-shared-right-rail.is-move-collapsed .cr-shared-opening-panel,
.cr-shared-right-rail.is-move-detached .cr-shared-opening-panel {
  display: none !important;
}
.cr-shared-move-panel {
  min-width: 0;
}
.cr-shared-maia-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.cr-shared-right-rail {
  display: grid;
  grid-template-columns: minmax(270px, .9fr) minmax(330px, 1.1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.cr-shared-right-rail.is-move-collapsed {
  grid-template-columns: 62px minmax(330px, 1fr);
}
.cr-shared-right-rail.is-move-collapsed.is-move-detached {
  grid-template-columns: 78px minmax(330px, 1fr);
}
.cr-shared-right-rail.is-maia-collapsed {
  grid-template-columns: minmax(280px, 1fr) 78px;
}
.cr-shared-right-rail.is-maia-collapsed.is-maia-detached {
  grid-template-columns: minmax(280px, 1fr) 78px;
}
.cr-shared-right-rail.is-move-collapsed.is-maia-collapsed {
  grid-template-columns: 62px 78px;
}
.cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-move-detached.is-maia-detached {
  grid-template-columns: 78px 78px;
}
.cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-move-detached:not(.is-maia-detached) {
  grid-template-columns: 78px 78px;
}
.cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-maia-detached:not(.is-move-detached) {
  grid-template-columns: 62px 78px;
}
.cr-shared-simple-coach-slot,
.cr-shared-simple-history-slot {
  min-width: 0;
}
.cr-shared-simple-coach-slot[hidden],
.cr-shared-simple-history-slot[hidden] {
  display: none !important;
}
.cr-shared-advanced-coach-panel[hidden],
.cr-shared-advanced-coach-body[hidden] {
  display: none !important;
}
.cr-shared-advanced-coach-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(7, 12, 16, 0.84);
}
.cr-shared-advanced-coach-toggle {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  color: var(--cr-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
  padding: 7px 10px;
}
.cr-shared-advanced-coach-toggle:hover {
  background: rgba(255, 255, 255, 0.045);
}
.cr-shared-advanced-coach-whistle {
  width: 26px;
  height: 26px;
}
.cr-shared-advanced-coach-caret {
  justify-self: end;
  color: var(--cr-muted);
  font-size: 0.78rem;
}
.cr-shared-advanced-coach-body {
  padding: 8px 10px 10px;
}
.cr-shared-advanced-coach-body .cr-shared-actual-coach {
  margin-top: 0;
}
.cr-shared-right-rail.is-maia-collapsed .cr-shared-advanced-coach-panel,
.cr-shared-right-rail.is-maia-detached .cr-shared-advanced-coach-panel {
  display: none !important;
}
body.cr-lgr-simple-mode .cr-shared-review-grid {
  grid-template-columns: minmax(340px, min(46vw, 610px)) minmax(560px, 1fr);
  align-items: stretch;
}
body.cr-lgr-simple-mode .cr-shared-board-panel {
  height: auto;
  align-self: start;
  align-content: start;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 10px;
}
body.cr-lgr-simple-mode .cr-shared-right-rail,
body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-collapsed,
body.cr-lgr-simple-mode .cr-shared-right-rail.is-maia-collapsed,
body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed,
body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-detached,
body.cr-lgr-simple-mode .cr-shared-right-rail.is-maia-detached {
  display: grid;
  grid-template-columns: minmax(230px, .86fr) minmax(360px, 1.14fr);
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
body.cr-lgr-simple-mode .cr-shared-move-stack {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  align-content: stretch;
}
body.cr-lgr-simple-mode .cr-shared-simple-coach-slot {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
}
body.cr-lgr-simple-mode .cr-shared-simple-history-slot {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}
body.cr-lgr-simple-mode .cr-shared-board-actions,
body.cr-lgr-simple-mode .cr-shared-board-panel .board-meta,
body.cr-lgr-simple-mode .viewer-state-maia-row,
body.cr-lgr-simple-mode .viewer-state-line-row,
body.cr-lgr-simple-mode .move-animation-controls,
body.cr-lgr-simple-mode .viewer-nav-btn[data-nav="-10"],
body.cr-lgr-simple-mode .viewer-nav-btn[data-nav="10"],
body.cr-lgr-simple-mode .cr-shared-panel-actions,
body.cr-lgr-simple-mode #cr-shared-game-history-mode,
body.cr-lgr-simple-mode #cr-shared-compact-history-panel,
body.cr-lgr-simple-mode #cr-shared-detailed-history-toggle,
body.cr-lgr-simple-mode #cr-shared-stockfish-details,
body.cr-lgr-simple-mode #cr-shared-engine-status,
body.cr-lgr-simple-mode #cr-shared-opening-panel,
body.cr-lgr-simple-mode .cr-shared-maia-panel,
body.cr-lgr-simple-mode .cr-shared-maia-stack,
body.cr-lgr-simple-mode #cr-shared-time-card > legend,
body.cr-lgr-simple-mode #cr-shared-time-card .game-time-management-head,
body.cr-lgr-simple-mode #cr-shared-time-panel .time-curve-copy,
body.cr-lgr-simple-mode #cr-shared-time-panel .time-curve-controls,
body.cr-lgr-simple-mode .cr-shared-actual-coach-head .cr-small-button,
body.cr-lgr-simple-mode .cr-shared-actual-coach-meta {
  display: none !important;
}
body.cr-lgr-simple-mode .cr-shared-bottom-review-stack {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: auto auto auto;
  gap: 6px;
  align-items: stretch;
}
body.cr-lgr-simple-mode .cr-shared-bottom-player-action-row .cr-shared-board-player-panel-bottom {
  margin-top: 0;
}
body.cr-lgr-simple-mode .cr-shared-bottom-player-action-row {
  grid-column: 2 / 3;
  grid-row: 1;
  display: block;
  min-width: 0;
}
body.cr-lgr-simple-mode .cr-shared-bottom-player-action-row .cr-shared-board-player-panel-bottom {
  margin-left: 0;
  margin-right: 0;
}
body.cr-lgr-simple-mode .cr-shared-bottom-review-stack .viewer-state-bar {
  grid-column: 2 / 3;
  grid-row: 2;
  width: auto;
  margin: 0;
}
body.cr-lgr-simple-mode .cr-shared-bottom-review-stack .viewer-controls {
  grid-column: 2 / 3;
  grid-row: 3;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}
body.cr-lgr-simple-mode .cr-shared-simple-respawn-button {
  display: inline-flex;
  flex-direction: column;
  grid-column: 3;
  grid-row: 2 / 4;
  width: 58px;
  height: auto;
  justify-self: stretch;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 4px 3px;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: .88;
  font-size: .68rem;
  border-radius: 8px;
}
@media (max-width: 480px) {
  .cr-shared-board-annotation-legend {
    gap: 4px;
  }
  .cr-shared-board-annotation-legend .cr-shared-board-legend-item {
    gap: 4px;
    padding: 4px 3px;
    font-size: 0.61rem;
  }
  .cr-shared-board-annotation-legend .cr-shared-board-legend-arrow {
    width: 26px;
    height: 13px;
    flex-basis: 26px;
  }
  .cr-shared-board-annotation-legend .cr-shared-board-legend-arrow::before {
    width: 17px;
  }
  .cr-shared-board-annotation-legend .cr-shared-board-legend-arrow::after {
    left: 16px;
  }
}
body.cr-lgr-simple-mode .viewer-state-bar,
body.cr-lgr-simple-mode .viewer-controls {
  width: calc(100% - 128px);
  margin-left: 64px;
  margin-right: 64px;
  box-sizing: border-box;
  align-self: start;
}
body.cr-lgr-simple-mode .viewer-state-bar {
  gap: 2px;
  margin-top: 0;
  margin-bottom: 0;
}
body.cr-lgr-simple-mode .viewer-state-position-row {
  justify-content: flex-start;
}
body.cr-lgr-simple-mode .viewer-controls {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
  margin-top: 3px;
  margin-bottom: 0;
}
body.cr-lgr-simple-mode .viewer-nav-btn {
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
  line-height: 1;
}
body.cr-lgr-simple-mode .viewer-nav-icon-btn {
  font-size: 13px;
}
body.cr-lgr-simple-mode .viewer-nav-center-btn {
  font-size: 0.68rem;
}
body.cr-lgr-simple-mode .cr-shared-bottom-review-stack .cr-shared-simple-respawn-button {
  height: auto;
  min-height: 100%;
  max-height: none;
  padding: 4px 3px;
  font-size: .68rem;
  line-height: .88;
}
body.cr-lgr-simple-mode .cr-shared-bottom-review-stack .cr-shared-simple-respawn-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
body.cr-lgr-simple-mode #cr-shared-detailed-history-panel {
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}
body.cr-lgr-simple-mode #cr-shared-detailed-history-body {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  padding: 0;
  border-top: 0;
}
body.cr-lgr-simple-mode .cr-shared-move-panel,
body.cr-lgr-simple-mode .cr-shared-actual-coach,
body.cr-lgr-simple-mode #cr-shared-time-card {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
body.cr-lgr-simple-mode #cr-shared-best-spotting-card {
  display: none !important;
}
body.cr-lgr-simple-mode .cr-shared-move-panel {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
body.cr-lgr-simple-mode #cr-shared-detailed-history-panel,
body.cr-lgr-simple-mode #cr-shared-detailed-history-body {
  min-height: 0;
  height: 100%;
}
body.cr-lgr-simple-mode .cr-shared-move-panel .move-list-body {
  min-height: 0;
  max-height: none;
  overflow: auto;
}
body.cr-lgr-simple-mode .cr-shared-actual-coach {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  overflow: auto;
  padding: 11px 13px;
}
body.cr-lgr-simple-mode #cr-shared-time-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.cr-lgr-simple-mode #cr-shared-time-panel {
  margin-top: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  align-content: stretch;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-stockfish-panel-tabs {
  margin-left: 5px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-stockfish-tabbed-panel.is-accuracy {
  align-self: start;
  align-content: start;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .time-curve-legend {
  display: none !important;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .time-curve-panel {
  margin-top: 0;
  height: 100%;
  min-height: 150px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .game-time-curve-svg {
  width: 100%;
  height: 100%;
  min-height: 150px;
  margin-left: 0;
  margin-right: 0;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-panel {
  align-self: start;
  justify-content: flex-start;
  gap: 2px;
  padding: 0 8px 8px;
  height: auto;
  min-height: 0;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-head h3 {
  font-size: 14px;
  line-height: 1;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-help {
  width: 20px;
  height: 20px;
  font-size: 11px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-table th,
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-table td {
  padding: 5px 6px;
  font-size: 11px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-table tbody td {
  font-size: 15px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-player {
  gap: 4px;
  padding: 3px 5px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-player-flag {
  width: 16px;
  height: 12px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-player-text {
  gap: 3px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-player-name {
  max-width: 78px;
}
body.cr-lgr-simple-mode #cr-shared-time-panel .cr-shared-accuracy-note {
  font-size: 10px;
  line-height: 1.15;
}
body.cr-lgr-simple-mode .time-curve-engine-key {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #020617;
  color: #020617;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}
body.cr-lgr-simple-mode .time-curve-engine-key.is-blunder {
  background: #ef4444;
  color: #ffffff;
}
body.cr-lgr-simple-mode .time-curve-engine-key.is-mistake {
  background: #facc15;
}
body.cr-lgr-simple-mode .time-curve-engine-key.is-inaccuracy {
  background: #7dd3fc;
}
body.cr-lgr-simple-mode .time-curve-engine-legend {
  gap: 3px;
  white-space: nowrap;
  font-size: 0.68rem;
}
body.cr-lgr-simple-mode .engine-chart-marker-text {
  font-size: 16px;
}
body.cr-lgr-simple-mode .cr-shared-simple-coach-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: start;
  align-items: center;
  gap: 10px;
}
body.cr-lgr-simple-mode .cr-shared-simple-coach-head .cr-shared-actual-coach-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
body.cr-lgr-simple-mode .cr-shared-simple-coach-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 46%, rgba(245, 205, 106, .18), rgba(15, 23, 42, .18));
}
body.cr-lgr-simple-mode .cr-shared-coach-whistle-icon.cr-shared-simple-coach-icon {
  width: 72px;
  height: 72px;
  background-image: url("img/coach_whistle_frames/whistle_0300.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: rgba(15, 23, 42, .18);
}
body.cr-lgr-simple-mode .cr-shared-simple-coach-head h5 {
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.cr-lgr-simple-mode .cr-shared-coach-voice-control label > span {
  display: none;
}
body.cr-lgr-simple-mode .cr-shared-coach-voice-control select {
  max-width: 86px;
}
body.cr-lgr-simple-mode .cr-shared-actual-coach .cr-shared-ai-narration-headline {
  margin-top: 9px;
  color: #f8fafc !important;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.32;
}
body.cr-lgr-simple-mode .cr-shared-actual-coach p:not(.cr-shared-ai-narration-headline) {
  font-size: 0.84rem;
  line-height: 1.43;
}
.cr-shared-maia-panel {
  min-width: 0;
  padding: 0;
  overflow-x: auto;
}
.cr-shared-maia-game-coach-dock {
  margin: 8px 10px 10px;
  background: rgba(3, 7, 10, 0.42);
}
.cr-shared-maia-game-coach-dock .cr-shared-actual-coach-head {
  margin-bottom: 7px;
}
.cr-shared-maia-head {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  gap: 10px;
  color: var(--cr-text);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.cr-shared-maia-head:hover {
  background: rgba(255, 255, 255, .035);
}
.cr-shared-maia-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cr-shared-maia-collapse-icon {
  margin-left: auto;
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}
.cr-shared-panel-title-text {
  min-width: 0;
}
.cr-shared-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
}
.cr-shared-panel-actions .cr-small-button {
  width: 64px;
  height: 27px;
  min-height: 27px;
  padding: 5px 7px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1;
}
.cr-shared-move-panel.is-collapsed-left,
.cr-shared-maia-panel.is-collapsed-left {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
  min-height: 118px;
  padding-left: 7px;
  padding-right: 7px;
  overflow: hidden;
}
.cr-shared-move-panel.is-collapsed-left.is-detached-placeholder,
.cr-shared-maia-panel.is-collapsed-left.is-detached-placeholder {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
}
.cr-shared-maia-panel.is-collapsed-left {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
}
.cr-shared-move-panel.is-collapsed-left > :not(.move-list-header),
.cr-shared-maia-panel.is-collapsed-left > :not(.cr-shared-maia-head) {
  display: none !important;
}
.cr-shared-move-panel.is-collapsed-left .move-list-header,
.cr-shared-maia-panel.is-collapsed-left .cr-shared-maia-head {
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0;
}
.cr-shared-move-panel.is-collapsed-left .cr-shared-panel-title-text,
.cr-shared-maia-panel.is-collapsed-left .cr-shared-panel-title-text,
.cr-shared-move-panel.is-collapsed-left .cr-shared-panel-detach,
.cr-shared-maia-panel.is-collapsed-left .cr-shared-panel-detach {
  display: none;
}
.cr-shared-move-panel.is-collapsed-left .cr-shared-panel-actions,
.cr-shared-maia-panel.is-collapsed-left .cr-shared-panel-actions {
  margin-left: 0;
  justify-content: center;
}
.cr-shared-move-panel.is-collapsed-left .cr-shared-panel-toggle,
.cr-shared-maia-panel.is-collapsed-left .cr-shared-panel-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 92px;
  min-height: 92px;
  padding: 0;
}
.cr-shared-maia-panel.is-collapsed-left .cr-shared-maia-head {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 92px;
  min-height: 92px;
  margin: 0 auto;
}
.cr-shared-maia-panel.is-details-collapsed .cr-shared-maia-status,
.cr-shared-maia-panel.is-details-collapsed .cr-shared-maia-body {
  display: none !important;
}
.cr-shared-maia-panel.is-collapsed-left.is-detached-placeholder .cr-shared-maia-head {
  width: 58px;
  min-width: 58px;
}
.cr-shared-maia-head .cr-shared-maia-detached-icons {
  display: inline-grid;
  grid-template-columns: repeat(2, 24px);
  place-items: center;
  gap: 3px;
  justify-content: center;
  width: 58px;
  min-height: 92px;
  box-sizing: border-box;
  padding: 12px 4px 8px;
  border: 1px solid rgba(244, 196, 71, .42);
  border-radius: 6px;
  background: rgba(7, 12, 16, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.cr-shared-maia-head .cr-shared-maia-detached-icons .cr-shared-collapsed-detached-label {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
}
.cr-shared-maia-collapse-icon[hidden],
.cr-shared-maia-detached-icons .cr-shared-collapsed-detached-label[hidden] {
  display: none !important;
}
.cr-shared-maia-head .cr-shared-maia-detached-icons[hidden] {
  display: none !important;
}
.cr-shared-move-panel.is-collapsed-left.is-detached-placeholder .cr-shared-panel-toggle,
.cr-shared-maia-panel.is-collapsed-left.is-detached-placeholder .cr-shared-panel-toggle {
  width: 58px;
  min-width: 58px;
}
.cr-shared-collapsed-tab-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cr-shared-collapse-triangle {
  display: inline-grid;
  place-items: center;
  width: 100%;
  color: var(--cr-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}
.cr-shared-collapsed-detached-label {
  display: block;
  margin-top: 6px;
  color: var(--cr-muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.cr-shared-maia-title-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: contain;
}
.cr-shared-maia-title-stockfish-icon {
  margin-left: 2px;
}
.cr-shared-maia-title-plus {
  color: var(--cr-accent);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
  margin: 0 3px 0 7px;
}
.cr-shared-maia-status {
  margin: 8px 16px 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.cr-shared-maia-body {
  margin: 12px 16px 16px;
  color: var(--cr-text);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cr-shared-maia-body p {
  margin: 0;
}
.cr-shared-maia-current {
  display: grid;
  grid-template-columns: auto auto minmax(18px, 1fr) auto;
  align-items: baseline;
  column-gap: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .04);
}
.cr-shared-maia-current span,
.cr-shared-state-maia-summary span {
  color: var(--cr-muted);
  font-size: 0.78rem;
}
.cr-shared-maia-current .cr-shared-maia-summary-label,
.cr-shared-state-maia-summary .cr-shared-maia-summary-label {
  color: var(--cr-muted);
}
.cr-shared-maia-current .cr-shared-maia-summary-move,
.cr-shared-state-maia-summary .cr-shared-maia-summary-move {
  color: var(--cr-text);
  font-weight: 850;
}
.cr-shared-maia-current .cr-shared-maia-summary-rank,
.cr-shared-state-maia-summary .cr-shared-maia-summary-rank {
  color: #f9a8d4;
  font-weight: 900;
}
.cr-shared-maia-current .cr-shared-maia-summary-eval,
.cr-shared-state-maia-summary .cr-shared-maia-summary-eval {
  color: #bbf7d0;
  font-weight: 850;
}
.cr-shared-maia-summary-spacer {
  flex: 1 1 auto;
  min-width: 16px;
}
.cr-shared-maia-current .cr-shared-maia-summary-spacer {
  flex: none;
}
.cr-shared-maia-summary-metrics {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  margin-left: auto;
  white-space: nowrap;
}
.cr-shared-maia-panel-display-toggles {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 8px 0 3px;
}
.cr-shared-maia-panel-display-toggle {
  gap: 4px;
  padding: 3px;
}
.cr-shared-maia-panel-display-toggle .time-curve-mode-btn {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 10.5px;
  line-height: 1.05;
}
.cr-shared-maia-stacked-toggle-label {
  display: grid;
  gap: 0;
  line-height: .95;
  text-align: center;
}
.cr-shared-maia-stacked-toggle-label span {
  color: inherit;
  font-size: inherit;
}
.cr-shared-maia-subhead {
  margin: 11px 0 4px;
  color: var(--cr-text);
  font-size: 0.78rem;
  font-weight: 850;
}
.cr-shared-maia-level-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cr-shared-maia-pending {
  margin: 6px 0 0;
  color: var(--cr-muted);
  font-size: 0.76rem;
}
.cr-shared-maia-same-tag {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid rgba(74, 222, 128, .36);
  border-radius: 8px;
  background: rgba(22, 163, 74, .14);
  color: #bbf7d0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.cr-shared-maia-computing-tag {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid rgba(244, 114, 182, .28);
  border-radius: 8px;
  background: rgba(244, 114, 182, .08);
  color: #f9a8d4;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.cr-shared-maia-computing-tag.is-running {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.cr-shared-maia-running-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  animation: cr-shared-maia-spin 2.4s linear infinite;
}
@keyframes cr-shared-maia-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cr-shared-maia-move-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  margin-top: 8px;
  table-layout: auto;
  font-size: 0.78rem;
}
.cr-shared-maia-move-table th {
  padding: 0 6px 5px;
  border-bottom: 1px solid rgba(216, 183, 90, .32);
  color: var(--cr-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}
.cr-shared-maia-move-table.is-comparison-level th {
  border-bottom-color: rgba(219, 39, 119, .42);
}
.cr-shared-maia-move-table td {
  padding: 5px 6px;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--cr-text);
  vertical-align: middle;
  white-space: nowrap;
}
.cr-shared-maia-tablebase-cell {
  text-align: center;
}
.cr-shared-maia-move-row {
  cursor: pointer;
}
.cr-shared-maia-move-row:hover td {
  background: rgba(244, 114, 182, .10);
}
.cr-shared-maia-move-table.is-comparison-level .cr-shared-maia-move-row:hover td {
  background: rgba(219, 39, 119, .12);
}
.cr-shared-maia-move-row.is-selected td {
  background: rgba(244, 114, 182, .17);
  box-shadow: inset 0 1px 0 rgba(251, 207, 232, .16), inset 0 -1px 0 rgba(251, 207, 232, .16);
}
.cr-shared-maia-move-table.is-comparison-level .cr-shared-maia-move-row.is-selected td {
  background: rgba(219, 39, 119, .2);
  box-shadow: inset 0 1px 0 rgba(244, 114, 182, .18), inset 0 -1px 0 rgba(244, 114, 182, .18);
}
.cr-shared-maia-other-row td {
  color: var(--cr-muted);
  background: rgba(255,255,255,.025);
  font-style: italic;
}
.cr-shared-maia-other-row .cr-shared-maia-move-cell {
  color: #d8c7d2;
  font-weight: 750;
}
.cr-shared-maia-move-table td:first-child {
  border-left: 1px solid rgba(255,255,255,.07);
  border-radius: 7px 0 0 7px;
}
.cr-shared-maia-move-table td:last-child {
  border-right: 1px solid rgba(255,255,255,.07);
  border-radius: 0 7px 7px 0;
}
.cr-shared-maia-rank-cell {
  color: #f9a8d4 !important;
  font-weight: 900;
}
.cr-shared-maia-rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f472b6;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.cr-shared-maia-move-table.is-comparison-level .cr-shared-maia-rank-cell {
  color: #db2777 !important;
}
.cr-shared-maia-move-table.is-comparison-level .cr-shared-maia-rank-chip {
  background: #db2777;
  color: #050506;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24), 0 0 0 1px rgba(244,114,182,.18);
}
.cr-shared-maia-eval-cell,
.cr-shared-maia-stockfish-eval-cell {
  color: var(--cr-accent) !important;
  font-weight: 850;
}
.cr-shared-maia-stockfish-eval-cell {
  color: #bbf7d0 !important;
}
.cr-shared-maia-stockfish-cell {
  color: #bbf7d0 !important;
  font-weight: 850;
}
.cr-shared-move-explanation-panel {
  margin: 10px 0 8px;
  border: 1px solid rgba(245, 181, 63, .32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(6, 18, 20, .68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.cr-shared-move-explanation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f5b53f;
}
.cr-shared-move-explanation-head strong {
  font-size: .92rem;
  font-weight: 900;
}
.cr-shared-move-explanation-close {
  flex: 0 0 auto;
}
.cr-shared-move-explanation-summary {
  margin: 6px 0 8px;
  color: #f8fafc;
  font-size: .84rem;
  font-weight: 750;
}
.cr-shared-stockfish-sees-box {
  margin: 0 0 9px;
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(16, 185, 129, .08);
}
.cr-shared-stockfish-sees-box h5 {
  margin: 0 0 4px;
  color: #bbf7d0;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.cr-shared-stockfish-sees-box p {
  margin: 0;
  color: #f8fafc;
  font-size: .79rem;
  line-height: 1.34;
}
.cr-shared-stockfish-sees-line {
  margin-top: 5px;
  color: var(--cr-muted);
  font-size: .72rem;
  line-height: 1.3;
}
.cr-shared-stockfish-sees-line span {
  color: #bbf7d0;
  font-weight: 850;
}
.cr-shared-move-explanation-tip {
  margin: 0 0 9px;
  border-left: 3px solid #f5b53f;
  padding: 6px 8px;
  color: #f8fafc;
  background: rgba(245, 181, 63, .08);
  font-size: .78rem;
  line-height: 1.35;
}
.cr-shared-move-explanation-tip strong {
  color: #f5b53f;
}
.cr-shared-move-explanation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.cr-shared-move-explanation-meta span {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--cr-muted);
  background: rgba(255,255,255,.045);
  font-size: .7rem;
  font-weight: 800;
}
.cr-shared-move-explanation-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.cr-shared-move-explanation-cols h5 {
  margin: 0 0 4px;
  color: #f0d9b5;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.cr-shared-move-explanation-cols ul {
  margin: 0;
  padding-left: 17px;
}
.cr-shared-move-explanation-cols li {
  margin: 2px 0;
  color: var(--cr-text);
  font-size: .76rem;
  line-height: 1.25;
}
.cr-shared-move-explain-empty {
  color: var(--cr-muted) !important;
  font-style: italic;
}
.cr-shared-move-explanation-loading {
  margin-top: 8px;
  color: var(--cr-muted);
  font-size: .74rem;
  font-weight: 750;
}
.cr-shared-move-explanation-json {
  margin-top: 8px;
}
.cr-shared-move-explanation-json summary {
  color: #f5b53f;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 850;
}
.cr-shared-move-explanation-json pre {
  max-height: 240px;
  overflow: auto;
  margin: 6px 0 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 8px;
  color: #dbeafe;
  background: rgba(2, 6, 23, .72);
  font-size: .68rem;
  line-height: 1.3;
}
.cr-shared-maia-best-note {
  margin: 5px 0 8px;
  color: var(--cr-muted);
  font-size: .72rem;
  font-weight: 650;
}
.cr-shared-maia-marker-legend {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin: 6px 0 2px;
  color: var(--cr-muted);
  font-size: 0.72rem;
  font-weight: 750;
}
.cr-shared-maia-marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cr-shared-maia-marker-cell {
  width: 38px;
  text-align: center;
  letter-spacing: 2px;
}
.cr-shared-maia-stockfish-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}
.cr-shared-maia-played-marker {
  color: var(--cr-accent);
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: middle;
}
.cr-shared-maia-panel-control-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-top: 13px;
}
.cr-shared-maia-comparison-control,
.cr-shared-maia-rank-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 850;
}
.cr-shared-maia-comparison-control select {
  min-height: 28px;
  border: 1px solid rgba(216, 183, 90, .32);
  border-radius: 6px;
  padding: 4px 24px 4px 7px;
  background: #081316;
  color: var(--cr-text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
}
.cr-shared-maia-arrow-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px 14px;
  margin-top: 13px;
  padding: 10px 11px 9px;
  border: 1px solid rgba(244, 114, 182, .22);
  border-radius: 8px;
  background: rgba(244, 114, 182, .045);
  color: var(--cr-muted);
  font-size: 0.78rem;
}
.cr-shared-maia-arrow-controls legend {
  padding: 0 6px;
  color: var(--cr-text);
  font-size: 0.76rem;
  font-weight: 850;
}
.cr-shared-maia-line-mode-list {
  display: grid;
  gap: 5px;
}
.cr-shared-maia-line-choice,
.cr-shared-maia-rank-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cr-shared-maia-line-choice.is-current-level span {
  color: #f9a8d4;
}
.cr-shared-maia-line-choice.is-comparison-level span {
  color: #db2777;
}
.cr-shared-maia-line-choice.is-both-levels span {
  color: #f0abfc;
}
.cr-shared-maia-rank-spinner input {
  width: 52px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(216, 183, 90, .32);
  border-radius: 6px;
  background: #081316;
  color: var(--cr-text);
  font-size: 0.78rem;
}
.cr-shared-maia-arrow-note {
  grid-column: 1 / -1;
  min-width: 180px;
}
.cr-shared-move-panel .move-list-body {
  max-height: 720px;
}
.cr-shared-animation-control {
  min-width: 170px;
}
.cr-shared-time-card {
  margin-top: 18px;
}
.cr-shared-best-spotting-card {
  margin-top: 16px;
}
.cr-shared-time-card .game-time-management-panel {
  margin-top: 8px;
}
.cr-shared-best-spotting-card .game-time-management-panel {
  margin-top: 8px;
}
.cr-shared-best-spotting-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px 0 8px;
}
.cr-shared-best-spotting-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 800;
}
.cr-shared-best-spotting-controls select {
  min-width: 180px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 7px;
  background: rgba(15, 23, 42, .86);
  color: var(--cr-text);
  font: inherit;
  padding: 4px 8px;
}
.game-best-spotting-svg {
  width: 100%;
  height: auto;
  display: block;
}
.cr-shared-best-spotting-jump circle {
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.cr-shared-best-spotting-jump:hover circle {
  stroke: #f8fafc;
  stroke-width: 2;
}
.best-spotting-best-key,
.best-spotting-hard-best-key,
.best-spotting-excellent-key,
.best-spotting-good-key,
.best-spotting-inaccuracy-key,
.best-spotting-mistake-key,
.best-spotting-blunder-key,
.best-spotting-first-five-key {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px;
}
.best-spotting-best-key {
  background: #bbf7d0;
}
.best-spotting-hard-best-key {
  background: #f472b6;
}
.best-spotting-excellent-key {
  background: #99f6e4;
}
.best-spotting-good-key {
  background: #bfdbfe;
}
.best-spotting-inaccuracy-key {
  background: #7dd3fc;
}
.best-spotting-mistake-key {
  background: #facc15;
}
.best-spotting-blunder-key {
  background: #ef4444;
}
.best-spotting-first-five-key {
  background: transparent;
  border: 1.25px solid #f8fafc;
}
.cr-shared-best-spotting-side-panel + .cr-shared-best-spotting-side-panel {
  margin-top: 12px;
}
.cr-shared-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.cr-shared-panel-title h2 {
  margin: 0;
  font-size: 1rem;
}
.cr-shared-panel-title p {
  margin: 4px 0 0;
  color: var(--cr-muted);
  font-size: 12px;
}
.cr-shared-state {
  display: grid;
  gap: 3px;
  min-width: 150px;
  text-align: right;
}
.cr-shared-state strong {
  color: var(--cr-text);
}
.cr-shared-state span {
  color: var(--cr-muted);
  font-size: 12px;
}
.cr-shared-board-wrap {
  display: grid;
  gap: 6px;
}
.cr-shared-board-controls {
  margin-top: 12px;
}
.cr-shared-time-panel {
  min-width: 0;
}
.cr-shared-time-panel svg {
  width: 100%;
  height: auto;
}
.cr-shared-time-controls {
  margin-bottom: 10px;
}
.cr-shared-game-empty {
  max-width: 680px;
  margin: 0 auto;
}
.cr-shared-game-empty h1 {
  margin-top: 0;
}
.cr-lgr-landing-card {
  max-width: 880px;
}
.cr-lgr-landing-card h1 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.14;
}
.cr-lgr-landing-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.cr-lgr-inline-fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: rgba(5, 16, 17, .52);
}
.cr-lgr-inline-fieldset legend {
  padding: 0 7px;
  color: var(--cr-accent);
  font-size: .82rem;
  font-weight: 900;
}
.cr-lgr-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--cr-text);
  font-size: .94rem;
  font-weight: 800;
}
.cr-lgr-radio input {
  accent-color: var(--cr-accent);
}
.cr-lgr-username {
  display: grid;
  gap: 5px;
  flex: 1 1 260px;
  min-width: 220px;
}
.cr-lgr-username span {
  color: var(--cr-muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cr-lgr-username input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 0 10px;
  background: #081416;
  color: var(--cr-text);
  font: inherit;
}
.cr-lgr-type-fieldset {
  align-items: center;
}
.cr-lgr-go-button {
  margin-left: auto;
  min-width: 78px;
}
.cr-lgr-browser-import-status {
  min-height: 22px;
  color: var(--cr-muted);
  font-size: .9rem;
  font-weight: 750;
}
.cr-lgr-browser-import-status.is-error {
  color: #fecaca;
}
.cr-shared-ai-narration-box {
  border: 1px solid rgba(236, 72, 153, 0.34);
  background: rgba(75, 16, 49, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}
.cr-shared-ai-narration-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cr-shared-ai-narration-head h5 {
  margin: 0;
  color: #f9a8d4;
  font-size: 0.82rem;
}
.cr-shared-ai-narration-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}
.cr-shared-ai-narration-box p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.42;
}
.cr-shared-ai-narration-headline {
  color: #fce7f3 !important;
  font-weight: 700;
}
.cr-shared-ai-narration-lesson strong,
.cr-shared-ai-narration-list span {
  color: #f9a8d4;
}
.cr-shared-ai-narration-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}
.cr-shared-ai-narration-list ul {
  margin: 0;
}
.cr-shared-opening-projection-panel {
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: rgba(15, 23, 42, 0.52);
  border-radius: 8px;
  margin: 10px 0;
  padding: 8px 10px 10px;
}
.cr-shared-opening-projection-panel summary {
  cursor: pointer;
  color: #bfdbfe;
  font-size: 0.83rem;
  font-weight: 700;
}
.cr-shared-opening-projection-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  margin: 5px 0 8px;
}
.cr-shared-opening-projection-level {
  margin-top: 8px;
}
.cr-shared-opening-projection-level h6 {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
}
.cr-shared-opening-projection-rows {
  display: grid;
  gap: 3px;
}
.cr-shared-opening-projection-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 48px minmax(110px, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
}
.cr-shared-opening-projection-row:last-child {
  border-bottom: 0;
}
.cr-shared-opening-projection-family {
  color: #e0f2fe;
  font-weight: 650;
}
.cr-shared-opening-projection-link {
  color: #bfdbfe;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(191, 219, 254, .45);
  text-underline-offset: 2px;
}
.cr-shared-opening-projection-link:hover {
  color: #f8fafc;
  text-decoration-color: rgba(248, 250, 252, .75);
}
.cr-shared-opening-projection-pct {
  color: #fef08a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cr-shared-opening-projection-line {
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-shared-opening-projection-empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  margin: 6px 0 0;
}

@media (max-width: 1320px) {
  .cr-shared-right-rail { grid-template-columns: 1fr; }
}

@media (max-width: 1060px) {
  .cr-hero { grid-template-columns: 1fr; }
  .cr-shared-game-layout { grid-template-columns: 1fr; }
  .cr-shared-review-grid { grid-template-columns: 1fr; }
  .cr-shared-right-rail { grid-template-columns: 1fr; }
}

@media (min-width: 841px) and (max-width: 1320px) {
  .cr-shared-right-rail.is-move-collapsed {
    grid-template-columns: 62px minmax(300px, 1fr);
  }
  .cr-shared-right-rail.is-move-collapsed.is-move-detached {
    grid-template-columns: 78px minmax(300px, 1fr);
  }
  .cr-shared-right-rail.is-maia-collapsed {
    grid-template-columns: minmax(280px, 1fr) 78px;
  }
  .cr-shared-right-rail.is-maia-collapsed.is-maia-detached {
    grid-template-columns: minmax(280px, 1fr) 78px;
  }
  .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed {
    grid-template-columns: 62px 78px;
  }
  .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-move-detached.is-maia-detached {
    grid-template-columns: 78px 78px;
  }
  .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-move-detached:not(.is-maia-detached) {
    grid-template-columns: 78px 78px;
  }
  .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed.is-maia-detached:not(.is-move-detached) {
    grid-template-columns: 62px 78px;
  }
}

@media (max-width: 840px) {
  .cr-main { padding-top: 24px; }
  .cr-hero, .cr-section-grid, .cr-history-head, .cr-summary-row, .cr-viewer-grid, .game-viewer-main, .cr-docs-layout { grid-template-columns: 1fr; }
  .cr-launch-grid { grid-template-columns: 1fr; }
  .cr-source-choice-grid { grid-template-columns: 1fr; }
  .cr-workflow-control-grid { grid-template-columns: 1fr; }
  .cr-game-type-panel fieldset { grid-template-columns: 1fr; }
  .cr-compact-game-type-panel fieldset { grid-template-columns: 1fr; }
  .cr-source-inline-row { grid-template-columns: 1fr; }
  .cr-launch-or { width: 48px; height: 48px; }
  .cr-source-choice-or { margin-top: 0; }
  .cr-hero { gap: 18px; }
  .cr-hero h1 { font-size: 1.9rem; }
  .cr-hero-copy p, .cr-choice p { font-size: 0.9rem; }
  .cr-history-head, .cr-viewer-head { display: grid; align-items: start; }
  .cr-docs-sidebar { position: static; }
  h1 { font-size: 2.25rem; }
}

@media (max-width: 560px) {
  .cr-shared-game-head {
    display: grid;
    align-items: start;
    gap: 10px;
  }
  .cr-shared-game-head-actions {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 7px;
  }
  .cr-last-game-analysis-status {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .cr-last-game-analysis-item {
    justify-content: center;
    min-width: 0;
    padding: 6px 7px;
    font-size: .72rem;
  }
  .cr-last-game-analysis-item > img {
    flex-basis: 15px;
    width: 15px !important;
    min-width: 15px;
    max-width: 15px;
    height: 15px !important;
    min-height: 15px;
    max-height: 15px;
  }
  .cr-last-game-coach-status-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
  .cr-shared-game-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
  }
  .cr-shared-game-nav .btn {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    font-size: .78rem;
    line-height: 1.05;
  }
  .cr-shared-game-nav .muted {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    font-size: .72rem;
    line-height: 1.1;
  }
  .cr-shared-game-nav .cr-lgr-nav-button:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .cr-shared-game-nav .cr-lgr-nav-button:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .cr-shared-game-nav .cr-lgr-nav-button:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .cr-shared-game-nav .cr-lgr-nav-button:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }
  .cr-key-hint {
    display: none;
  }
}

@media (max-width: 1060px) {
  body.cr-lgr-simple-mode .cr-shared-review-grid {
    grid-template-columns: 1fr;
  }
  body.cr-lgr-simple-mode .cr-shared-right-rail,
  body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-collapsed,
  body.cr-lgr-simple-mode .cr-shared-right-rail.is-maia-collapsed,
  body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-collapsed.is-maia-collapsed,
  body.cr-lgr-simple-mode .cr-shared-right-rail.is-move-detached,
  body.cr-lgr-simple-mode .cr-shared-right-rail.is-maia-detached {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  body.cr-lgr-simple-mode .cr-shared-move-stack,
  body.cr-lgr-simple-mode .cr-shared-simple-coach-slot,
  body.cr-lgr-simple-mode .cr-shared-simple-history-slot {
    grid-column: 1;
    grid-row: auto;
    max-height: none;
  }
}
