:root {
  color-scheme: light;
  --surface: #f5f4ee;
  --raised: #eeefe8;
  --paper: #fffefa;
  --ink: #26342c;
  --muted: #626c60;
  --accent: #386446;
  --line: #d9ddd2;
  --focus: #38714c;
  --board-light: #eeeedc;
  --board-dark: #88a17b;
  --board-last: #e1d86c;
  --positive: #386446;
  --negative: #a94739;
}
body {
  min-width: 0;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  touch-action: manipulation;
  transition:
    background-color 0.14s,
    color 0.14s;
}
button:disabled {
  opacity: 0.46;
  cursor: default;
}
[hidden] {
  display: none !important;
}
h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
a {
  color: var(--accent);
}
a:hover {
  color: #1e4f30;
}
::selection {
  background: #d2e1ca;
  color: #183a25;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
textarea {
  caret-color: var(--accent);
}
svg {
  flex-shrink: 0;
}
small {
  font-size: 12px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 230px;
  padding: 12px;
  background: var(--paper);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
body[data-board-theme='walnut'] {
  --board-light: #f0dfbf;
  --board-dark: #ac855e;
  --board-last: #e1c46b;
}
body[data-board-theme='blue'] {
  --board-light: #e6edf0;
  --board-dark: #7798ad;
  --board-last: #d9d081;
}
body[data-board-theme='slate'] {
  --board-light: #edede8;
  --board-dark: #969e97;
  --board-last: #dad68a;
}
body[data-coordinates='false'] .file-label,
body[data-coordinates='false'] .rank-label {
  display: none;
}
body[data-legal-moves='false'] .square.legal::after,
body[data-legal-moves='false'] .square.legal-capture::after {
  display: none;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 212px;
  display: flex;
  flex-direction: column;
  background: #eceee5;
  border-right: 1px solid var(--line);
  z-index: 30;
}
.wordmark {
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 27px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark #brand,
.wordmark #brand svg {
  display: flex;
  width: 25px;
  height: 32px;
}
.brand-period {
  color: var(--accent);
  margin-left: -8px;
}
.main-navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}
.main-navigation > a,
.main-navigation > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #53604f;
  text-decoration: none;
  background: transparent;
  min-height: 47px;
}
.main-navigation [data-icon] {
  display: flex;
}
.main-navigation svg {
  width: 21px;
  height: 21px;
}
.main-navigation > a:hover,
.main-navigation > button:hover {
  background: #e0e5d8;
  color: var(--ink);
}
.main-navigation [aria-current='page'] {
  background: #d5e0cc;
  color: #285538;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 16px;
}
.sidebar-engine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 3px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
#engine-badge {
  font-size: 12px;
  line-height: 1.5;
}
.sidebar-account {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #dbe0d3;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
}
.avatar svg {
  width: 18px;
  height: 18px;
}
.sidebar-account > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.sidebar-account strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-account small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-account > span:last-child svg {
  width: 14px;
  height: 14px;
}
.app-main {
  margin-left: 212px;
  min-height: 100vh;
}
.study-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
#page-label {
  font-weight: 650;
  font-size: 13px;
}
.header-spacer {
  flex: 1;
}
.header-signin {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sync-status {
  max-width: 230px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sync-status.sync-error {
  color: var(--negative);
}
.study-header .quiet-button {
  font-size: 12px;
  min-height: 34px;
}
.study-header .quiet-button svg {
  width: 15px;
  height: 15px;
}
.page {
  padding: 32px;
  max-width: 1420px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 30px;
}
.page-heading p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.primary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fffefa;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 18px;
  min-height: 44px;
}
.primary-link:hover,
.primary-button:hover {
  background: #2a5338;
  color: white;
}
.primary-link svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}
.quiet-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  min-height: 35px;
  padding: 8px 12px;
}
.quiet-button:hover,
.icon-button:hover {
  background: #e8ecdf;
  border-color: #c1ccb8;
}
.icon-button {
  width: 35px;
  height: 35px;
  padding: 8px;
  flex-shrink: 0;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.text-button,
.text-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 4px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #abbba3;
  background: #e9eee3;
  color: var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
}
.secondary-button:hover {
  background: #dce6d4;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title > a {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.section-title > a svg {
  width: 14px;
  height: 14px;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.inline-status,
.hint,
.storage-note,
.section-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.inline-status {
  margin-top: 10px;
}
.inline-status:empty {
  display: none;
}
.hint {
  margin: 12px 0 0;
}
.app-error {
  font-size: 13px;
  color: var(--negative);
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.app-error:empty {
  display: none;
}
.section-rule {
  margin: 22px 0;
}
.study-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 32px;
  color: var(--muted);
  font-size: 12px;
  max-width: 1420px;
  margin: auto;
}
.study-footer a {
  color: var(--muted);
}
input:not([type='checkbox']):not([type='range']),
select,
textarea {
  border: 1px solid #c5cdbd;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
  min-height: 39px;
  font-size: 13px;
}
input:not([type='checkbox']):not([type='range']),
textarea {
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #71796b;
  opacity: 1;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
label {
  font-size: 12px;
  font-weight: 600;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 5px;
  background: #e2e7db;
}
progress::-webkit-progress-bar {
  background: #e2e7db;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 5px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 106px);
  transform: translateX(-50%);
  background: #294532;
  color: white;
  border-radius: 7px;
  padding: 12px 20px;
  max-width: calc(100vw - 32px);
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 8px 28px #26342c25;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(300px, 1.05fr);
  gap: 48px;
}
.home-training {
  min-width: 0;
}
.home-training > .section-title {
  margin-bottom: 18px;
}
.home-puzzle-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  max-width: 470px;
}
.mini-chessboard {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
}
.mini-square {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.mini-square.light {
  background: var(--board-light);
}
.mini-square.dark {
  background: var(--board-dark);
}
.mini-square img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.home-board-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
.home-board-caption > span:last-child {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.home-board-caption svg {
  width: 16px;
  height: 16px;
}
.daily-plan {
  padding-top: 1px;
}
.daily-plan > h2 {
  margin-bottom: 20px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.plan-row:hover strong {
  color: var(--accent);
}
.plan-row > .plan-icon {
  width: 30px;
  color: var(--accent);
}
.plan-row .plan-icon svg {
  width: 24px;
  height: 24px;
}
.plan-row > span:nth-child(2) {
  flex: 1;
}
.plan-row strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
}
.plan-row small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.plan-row > span:last-child svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.training-record {
  margin-top: 30px;
}
.training-record h3 {
  font-size: 13px;
  font-weight: 600;
}
.training-record dl {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
}
.training-record dl div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.training-record dt {
  font-size: 12px;
  color: var(--muted);
}
.training-record dd {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.training-record > p {
  font-size: 12px;
  color: var(--muted);
}
.account-invite {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #e9ede2;
  padding: 17px;
  margin-top: 26px;
  border-radius: 7px;
}
.account-invite > span {
  margin-top: 2px;
  color: var(--accent);
}
.account-invite strong {
  font-size: 12px;
  font-weight: 700;
}
.account-invite p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.account-invite a {
  font-size: 12px;
  font-weight: 700;
}
.recent-section {
  margin-top: 38px;
}
.recent-section > .section-title {
  margin-bottom: 14px;
}
.recent-game,
.game-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 88px 100px 18px;
  gap: 16px;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  padding: 17px 8px;
}
.recent-game:hover,
.game-item:hover {
  background: #edf0e6;
}
.recent-game svg {
  width: 16px;
  height: 16px;
}
.game-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.recent-players {
  min-width: 0;
}
.recent-players strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-players strong span {
  color: var(--muted);
  margin: 0 5px;
}
.recent-players small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.game-state {
  font-size: 12px;
  color: var(--muted);
}
.game-state.complete {
  color: var(--accent);
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  background: #eeefe7;
  border-radius: 7px;
  margin: 12px 0;
}
.empty-symbol {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: #627b57;
}
.empty-symbol svg {
  width: 29px;
  height: 29px;
}
.empty-state h3 {
  font-size: 15px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.empty-state .text-link {
  justify-content: center;
}
.empty-state .text-link svg {
  width: 15px;
  height: 15px;
}
.library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0 34px;
}
.library > .section-title {
  grid-column: 1;
  margin-bottom: 18px;
}
.library-select-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.library-select-row > input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--accent);
}
.library-select-row .game-item {
  flex: 1;
  min-width: 0;
}
.library-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
}
.library-actions #library-delete-all {
  color: var(--negative, #a94739);
}
.library-filters {
  flex-wrap: wrap;
  grid-column: 1;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.library-filters input {
  flex: 1 1 220px;
  min-width: 0;
}
.library-filters select {
  max-width: 170px;
}
.library #import-panel {
  grid-column: 2;
  grid-row: 1/7;
  align-self: start;
  background: #eeefe6;
  border-radius: 7px;
  padding: 20px;
  margin: 0;
}
.library #import-panel > summary {
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
}
.library #import-panel label {
  display: block;
  margin: 14px 0 7px;
}
.source-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.source-row input {
  width: 100%;
}
.library #import-username {
  width: 100%;
  margin-top: 12px;
}
.import-or {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 12px;
}
.file-button {
  position: relative;
  text-align: center;
  border: 1px dashed #9aa98f;
  padding: 11px;
  border-radius: 5px;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid var(--focus);
}
.library #pgn-input {
  margin-top: 12px;
}
.library #import-pgn {
  margin-top: 10px;
  font-size: 12px;
}
.game-list {
  grid-column: 1;
  min-width: 0;
}
.game-item[aria-current='true'] {
  background: #e5ecdd;
}
.demo-game {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin: 18px 0 0;
}
.storage-note {
  grid-column: 1;
  font-size: 12px;
  margin-top: 12px;
}
.library .game-item {
  grid-template-columns: 44px minmax(0, 1fr) 80px 78px 14px;
  gap: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 22px 28px;
  max-width: 1500px;
  margin: auto;
  align-items: start;
}
.position-workspace {
  min-width: 0;
  max-width: min(100%, var(--board-fit, 960px));
  width: 100%;
  justify-self: center;
}
.game-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.game-heading > div:first-child {
  flex: 1 0 min(100%, 220px);
  min-width: 0;
}
.game-heading h1 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.game-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.game-actions {
  position: relative;
  font-size: 12px;
}
.game-actions > summary {
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.export-row {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}
.board-stage {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  max-width: 100%;
  margin: auto;
}
.study-eval {
  position: relative;
  background: #364139;
  overflow: hidden;
  border-radius: 3px;
}
.eval-white {
  position: absolute;
  inset: 0;
  background: #fffdf3;
  transform-origin: bottom;
  transform: scaleY(0.5);
  transition: transform 0.25s ease-out;
}
.eval-midpoint {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #7c8877;
}
.eval-score {
  position: absolute;
  left: 1px;
  right: 1px;
  top: calc(50% - 10px);
  text-align: center;
  background: #304035;
  color: white;
  padding: 3px 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.eval-depth {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: #26342c;
  font-size: 12px;
  font-weight: 700;
}
.study-eval.flipped {
  transform: rotate(180deg);
}
.study-eval.flipped .eval-score,
.study-eval.flipped .eval-depth {
  transform: rotate(180deg);
}
#study-board,
#puzzle-board {
  width: 100%;
  position: relative;
  aspect-ratio: 1;
  outline-offset: 3px;
  min-width: 0;
  overflow: visible;
}
.square-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
}
.square {
  border: 0;
  border-radius: 0;
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  outline-offset: -3px !important;
  touch-action: none;
}
.square.light {
  background: var(--board-light);
}
.square.dark {
  background: var(--board-dark);
}
.square.last-move {
  background: var(--board-last);
}
.square.selected {
  background: #d1cf5b;
}
.square img {
  display: block;
  width: 89%;
  height: 89%;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #00000012);
  pointer-events: none;
}
.square.movable {
  cursor: grab;
}
.board-dragging .square {
  cursor: grabbing;
}
.drag-source img,
.drag-source .piece-letter {
  visibility: hidden;
}
.square-grid {
  user-select: none;
  -webkit-user-select: none;
}
.square.legal::after {
  content: '';
  width: 24%;
  height: 24%;
  background: #263b3c35;
  border-radius: 50%;
  position: absolute;
}
.square.legal-capture::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 5px solid #263b3c40;
  border-radius: 50%;
}
.square:focus-visible {
  z-index: 5;
}
.file-label,
.rank-label {
  position: absolute;
  font-size: clamp(11px, 0.78vw, 12px);
  font-weight: 750;
  color: #294932;
  pointer-events: none;
  line-height: 1;
}
.dark .file-label,
.dark .rank-label {
  color: #fffdf0;
}
.file-label {
  bottom: 3px;
  left: 4px;
}
.rank-label {
  top: 3px;
  right: 4px;
}
.board-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}
.board-mark {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 4px #0002;
  z-index: 9;
}
.square.marked-square {
  z-index: 10;
}
.board-mark.blunder,
.board-mark.miss {
  background: #b34d3b;
}
.board-mark.mistake {
  background: #bd762e;
}
.board-mark.inaccuracy {
  background: #a68c24;
}
.board-mark.brilliant {
  background: #237d81;
}
.piece-letter {
  display: none;
  font-size: clamp(19px, 3.4vw, 45px);
  font-weight: 800;
  line-height: 1;
  color: #fffef2;
  text-shadow:
    1px 1px 0 #26342c,
    -1px -1px 0 #26342c,
    1px -1px 0 #26342c,
    -1px 1px 0 #26342c;
}
.piece-letter.black {
  color: #26342c;
  text-shadow: none;
}
body[data-piece-style='letters'] .square img,
body[data-piece-style='letters'] .mini-square img {
  display: none;
}
body[data-piece-style='letters'] .piece-letter {
  display: block;
}
.piece-drag-ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  object-fit: contain;
}
.square-grid > .board-motion-piece {
  position: absolute;
  z-index: 15;
  pointer-events: none;
  background: transparent;
  will-change: transform;
}
.motion-destination > img,
.motion-destination > .piece-letter {
  visibility: hidden;
}
.board-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.board-toolbar .navigation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.move-steps,
.move-jumps,
.board-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-tools {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.board-toolbar .navigation .icon-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
}
.move-steps .icon-button {
  background: #e5eadf;
}
.move-jumps .icon-button {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
#position-label {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
#analyze-position,
#copy-fen,
#return-game {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 8px;
}
.board-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-top: 10px;
  min-height: 22px;
}
.keyboard-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.graph-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.graph-heading h2 {
  font-size: 12px;
  font-weight: 700;
}
.graph-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.eval-graph {
  height: 75px;
  padding: 8px;
  margin-top: 6px;
  background: #ecede4;
  border-radius: 4px;
  overflow: hidden;
}
.eval-graph svg {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.graph-cursor {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.empty-graph {
  font-size: 12px;
  color: var(--muted);
  height: 100%;
  display: grid;
  place-items: center;
}
.analysis-panel {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
  max-height: calc(100vh - 106px);
  overflow: auto;
}
.analysis-panel .section-title h2 {
  font-size: 13px;
}
.analysis-panel .section-title > span {
  font-size: 12px;
}
.review-controls > .primary-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
}
.review-progress {
  margin-top: 12px;
}
.review-progress p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-block: 1px solid var(--line);
  padding: 17px 0;
  margin-top: 20px;
}
.summary > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.player-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary strong {
  font-size: 24px;
  font-weight: 750;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.player-detail {
  font-size: 12px;
  color: var(--muted);
}
.move-feedback {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-height: 80px;
}
.classification {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.classification.blunder,
.classification.miss {
  color: #a53f2e;
}
.classification.mistake {
  color: #98561d;
}
.classification.inaccuracy {
  color: #82691c;
}
.classification.brilliant {
  color: #217073;
}
.class-symbol {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e1e7d7;
  font-size: 12px;
}
.move-feedback p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.lines-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
#engine-lines {
  margin-top: 10px;
}
.engine-line {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e3e6db;
  padding: 9px 0;
}
.engine-line:hover {
  background: #edf0e6;
}
.line-head {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.line-head strong {
  color: var(--ink);
  font-size: 12px;
}
.line-head em {
  font-style: normal;
  font-size: 12px;
  margin-left: auto;
  color: var(--accent);
}
.line-san {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
  color: #4e5f4c;
  font-variant-numeric: tabular-nums;
}
.panel-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.moves-section {
  padding-top: 18px;
}
.moves-section select {
  padding: 4px 6px;
  min-height: 28px;
  font-size: 12px;
}
.move-list {
  margin-top: 10px;
  max-height: 250px;
  overflow: auto;
}
.move-pair {
  display: grid;
  grid-template-columns: 27px 1fr 1fr;
  gap: 3px;
  align-items: center;
  min-height: 31px;
}
.move-number {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.move-button {
  border: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  min-height: 29px;
}
.move-button:hover {
  background: #e8ede0;
}
.move-button[aria-current='true'] {
  background: #d8e3cd;
  color: #24482f;
}
.move-symbol {
  font-size: 12px;
  color: var(--accent);
}
.blunder .move-symbol,
.miss .move-symbol {
  color: #a53f2e;
}
.mistake .move-symbol {
  color: #98561d;
}
.inaccuracy .move-symbol {
  color: #82691c;
}
.classification-note,
.game-note {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.classification-note > summary,
.game-note > summary {
  cursor: pointer;
  font-weight: 600;
}
.classification-note p {
  font-size: 12px;
  margin-top: 10px;
}
.game-note textarea {
  font-size: 12px;
  margin-top: 10px;
}
.promotion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #e4ebdb;
  font-size: 12px;
  border-radius: 5px;
  margin-top: 10px;
}
.promotion button {
  padding: 7px;
  border: 1px solid #a6b797;
  background: var(--paper);
  border-radius: 4px;
}
dialog.promotion:not([open]) {
  display: none;
}
dialog.promotion[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: max-content;
  max-width: calc(100vw - 32px);
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 20px;
  color: var(--ink);
}
dialog.promotion::backdrop {
  background: #0008;
}
dialog.promotion button {
  min-height: 44px;
  min-width: 44px;
}
.study-settings {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 100%;
  padding: 24px;
  background: var(--paper);
  box-shadow: -8px 0 35px #24392c1a;
  z-index: 60;
  overflow: auto;
  border-left: 1px solid var(--line);
}
.study-settings .section-title {
  margin-bottom: 18px;
}
.study-settings label,
#server-fields > label {
  display: block;
  margin: 15px 0 7px;
  font-size: 12px;
}
.study-settings > select,
#server-fields > input {
  width: 100%;
}
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}
.option-row input,
.option-row select {
  max-width: 110px;
}
.option-row label {
  margin: 0;
}
.study-settings .check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.study-settings #test-server {
  margin-top: 12px;
}
body[data-skill='beginner'] .engine-line:not(:first-child) {
  display: none;
}
body[data-skill='beginner'] .line-head em {
  display: none;
}
body[data-skill='advanced'] .analysis-panel .line-san {
  font-size: 12px;
}
.analytics-workspace {
  padding: 32px;
  max-width: 1420px;
  margin: auto;
}
.analytics-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.analytics-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.share-action {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
}
.share-action > span {
  font-size: 12px;
  color: var(--muted);
}
.player-setup {
  background: #e9ede2;
  padding: 22px;
  border-radius: 7px;
}
.report-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) 1fr 0.9fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.report-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.report-form select,
.report-form input {
  width: 100%;
  font-size: 12px;
}
.report-form .primary-button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}
#report-complete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
#report-complete-summary {
  font-size: 13px;
}
.report-complete .report-form,
.report-complete #report-status {
  display: none;
}
#report-selection-details {
  margin-top: 18px;
}
#report-selection-details summary {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#report-selected {
  margin-left: 10px;
  font-weight: 400;
  color: var(--muted);
}
.report-check-all {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
}
#report-game-list {
  max-height: 240px;
  overflow: auto;
}
.report-game {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 5px;
  border-bottom: 1px solid #d5ddcc;
}
.report-game > span {
  flex: 1;
  min-width: 0;
}
.report-game strong {
  display: block;
  font-size: 12px;
}
.report-game strong span {
  color: var(--muted);
}
.report-game small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.report-game button {
  font-size: 12px;
}
.report-start {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.report-start .primary-button {
  font-size: 12px;
}
.report-start p {
  margin: 0;
  font-size: 12px;
}
#report-progress {
  margin-top: 18px;
}
.report-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.report-progress-row p {
  font-size: 12px;
  color: var(--muted);
}
.insights-filters {
  display: flex;
  gap: 18px;
  align-items: end;
  margin: 25px 0;
}
.insights-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.insights-filters select {
  font-size: 12px;
  min-width: 130px;
}
.analytics-empty {
  padding: 35px 0;
}
.analytics-empty h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.analytics-empty p {
  max-width: 65ch;
  font-size: 13px;
  color: var(--muted);
}
.analytics-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
}
.analytics-overview h2 {
  font-size: 23px;
}
.analytics-overview p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.result-bar {
  height: 10px;
  display: flex;
  overflow: hidden;
  border-radius: 3px;
  background: #e2e5da;
}
.result-bar .win {
  background: #668455;
}
.result-bar .draw {
  background: #c5c9b5;
}
.result-bar .loss {
  background: #ad705f;
}
.result-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 24px;
}
.result-labels span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-labels i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #668455;
}
.result-labels i.draw {
  background: #c5c9b5;
}
.result-labels i.loss {
  background: #ad705f;
}
.analytics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}
.analytics-columns h3 {
  margin: 30px 0 14px;
  font-size: 16px;
}
.analytics-columns table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.analytics-columns td,
.analytics-columns th {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.analytics-columns th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.analytics-columns td:not(:first-child),
.analytics-columns th:not(:first-child) {
  text-align: right;
}
.analytics-columns td:first-child {
  max-width: 200px;
  overflow-wrap: anywhere;
}
.data-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0;
}
.insight {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.insight h4 {
  font-size: 13px;
  margin: 0 0 7px;
}
.insight p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 65ch;
}
.insight .text-button {
  font-size: 12px;
}
.training-list > button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
  font-size: 12px;
}
.training-list > button > span:nth-child(2) {
  flex: 1;
}
.training-list > button:hover {
  background: #e9eee1;
}
.training-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.training-number {
  min-width: 65px;
  font-weight: 700;
}
.quality-distribution > div {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}
.quality-distribution strong {
  margin-left: auto;
}
.quality-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.quality-dot.blunder {
  background: var(--negative);
}
.analytics-detail {
  margin-top: 25px;
  font-size: 12px;
}
.analytics-detail summary {
  cursor: pointer;
}
.analytics-method {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 30px;
}
.puzzles-page {
  padding-top: 26px;
}
.puzzles-page .page-heading {
  margin-bottom: 20px;
}
.puzzle-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.puzzle-rating > span:first-child {
  font-size: 12px;
  color: var(--muted);
}
.puzzle-rating strong {
  font-size: 25px;
  font-weight: 750;
}
.puzzle-rating > span:last-child {
  font-size: 13px;
  font-weight: 700;
}
.positive {
  color: var(--positive);
}
.negative {
  color: var(--negative);
}
.training-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.training-tabs button {
  position: relative;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.training-tabs button[aria-pressed='true'] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.training-tabs button > span {
  font-size: 12px;
  margin-left: 5px;
}
.puzzle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  max-width: 1440px;
}
.puzzle-board-area {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.puzzle-player {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 13px;
}
.puzzle-player .icon-button {
  margin-left: auto;
  border: 0;
  padding: 5px;
  width: 26px;
  height: 26px;
  min-height: 26px;
}
.player-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fffdf2;
  border: 1px solid #bfc8b5;
}
.player-dot.black {
  background: #374139;
  border-color: #374139;
}
.puzzle-board-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.puzzle-panel {
  padding-top: 8px;
}
.puzzle-feedback {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  min-height: 225px;
}
.feedback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e2e9d9;
  color: var(--accent);
  margin-bottom: 20px;
}
.feedback-icon svg {
  width: 25px;
  height: 25px;
}
.puzzle-feedback h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.puzzle-feedback > p {
  font-size: 13px;
  color: var(--muted);
  max-width: 40ch;
}
.puzzle-feedback[data-state='success'] h2 {
  color: #386446;
}
.puzzle-feedback[data-state='incorrect'] h2 {
  color: #a04d38;
}
.puzzle-feedback[data-state='assisted'] h2 {
  color: #87642f;
}
.puzzle-feedback .primary-button {
  width: 100%;
  margin-top: 22px;
  justify-content: space-between;
}
.puzzle-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}
.puzzle-help .text-button {
  font-size: 12px;
}
.puzzle-options {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.puzzle-options > label {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.puzzle-options > select {
  width: 100%;
  margin-bottom: 16px;
  font-size: 12px;
}
.puzzle-options > .hint {
  margin-top: 0;
  font-size: 12px;
}
.puzzle-session {
  padding-top: 22px;
}
.puzzle-session h3 {
  font-size: 12px;
}
.puzzle-session p {
  font-size: 12px;
  color: var(--muted);
}
.puzzle-session strong {
  color: var(--ink);
  font-size: 15px;
  margin-right: 3px;
}
.puzzle-session p > span {
  margin-inline: 4px;
}
.puzzle-credit {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.theme-tags:empty {
  display: none;
}
.theme-tags > span {
  font-size: 12px;
  background: #e7ecdf;
  color: #4d6944;
  padding: 4px 8px;
  border-radius: 4px;
}
#puzzle-solution > p {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  margin: 15px 0 10px;
}
#puzzle-source {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(200px, 1fr);
  gap: 65px;
  align-items: start;
}
.settings-fields > h2 {
  margin: 35px 0 18px;
  font-size: 17px;
}
.settings-fields > h2:first-child {
  margin-top: 0;
}
.settings-fields > label:not(.setting-line) {
  display: block;
  margin: 18px 0 8px;
  font-size: 12px;
}
.settings-fields > select {
  width: 100%;
}
.settings-fields > .primary-button {
  margin-top: 16px;
  min-width: 160px;
}
.settings-fields > .quiet-button {
  margin-top: 18px;
}
.section-description {
  max-width: 62ch;
  margin: 8px 0 16px;
}
.board-swatches {
  display: flex;
  gap: 12px;
  margin: 18px 0 26px;
}
.board-swatches button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 6px;
  border-radius: 5px;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.board-swatches button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.swatch {
  width: 64px;
  height: 49px;
  display: block;
  border-radius: 3px;
  background: conic-gradient(#88a17b 25%, #eeeedc 0 50%, #88a17b 0 75%, #eeeedc 0) 0 0/32px 25px;
}
.swatch.walnut {
  background-image: conic-gradient(#ac855e 25%, #f0dfbf 0 50%, #ac855e 0 75%, #f0dfbf 0);
}
.swatch.blue {
  background-image: conic-gradient(#7798ad 25%, #e6edf0 0 50%, #7798ad 0 75%, #e6edf0 0);
}
.swatch.slate {
  background-image: conic-gradient(#969e97 25%, #edede8 0 50%, #969e97 0 75%, #edede8 0);
}
.setting-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.setting-line select {
  max-width: 160px;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
}
.settings-preview {
  max-width: 360px;
  position: sticky;
  top: 25px;
}
.settings-preview p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.account-content {
  max-width: 820px;
}
.account-signin {
  max-width: 480px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.account-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e6ecdd;
  color: var(--accent);
  margin-bottom: 18px;
}
.account-symbol svg {
  width: 24px;
  height: 24px;
}
.account-signin > h2 {
  font-size: 22px;
}
.account-signin > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.account-signin #google-signin {
  margin: 24px 0 12px;
  min-height: 40px;
  max-width: 100%;
}
.account-signin hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.account-signin h3 {
  font-size: 13px;
}
.account-signin ul {
  padding-left: 18px;
  margin: 12px 0 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.account-signin > a {
  font-size: 12px;
  font-weight: 600;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0 30px;
  border-bottom: 1px solid var(--line);
}
.profile-avatar {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce6d2;
  color: var(--accent);
  font-size: 25px;
  font-weight: 750;
}
.account-profile > div {
  flex: 1;
  min-width: 0;
}
.account-profile h2 {
  font-size: 22px;
}
.account-profile p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.provider-label {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.account-library {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.account-library h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.account-library > p {
  font-size: 13px;
  color: var(--muted);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.account-library .hint {
  font-size: 12px;
}
.danger-zone {
  padding-top: 25px;
  font-size: 12px;
}
.danger-zone > summary {
  cursor: pointer;
  color: var(--negative);
  font-weight: 600;
}
.danger-zone p {
  color: var(--muted);
  font-size: 12px;
  margin: 15px 0;
}
.danger-zone form {
  display: flex;
  gap: 12px;
}
.danger-zone input {
  max-width: 200px;
}
.practice-fullscreen-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 0;
}
[hidden].icon-button {
  display: none;
}
.share-menu > summary {
  list-style: none;
}
.share-menu > summary::-webkit-details-marker {
  display: none;
}
.share-panel {
  position: fixed;
  z-index: 210;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px #18251b20;
}
.share-panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.share-panel input {
  width: 100%;
  min-width: 0;
}
.share-panel .quiet-button {
  text-align: left;
}
.share-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.shared-game-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}
.shared-game-banner[hidden] {
  display: none;
}
.status-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: normal;
}
.game-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
}
.game-status svg {
  width: 10px;
  height: 10px;
  flex: none;
}
.status-pending {
  color: var(--negative, #a94739);
  background: color-mix(in srgb, var(--negative, #a94739) 9%, transparent);
}
.status-complete {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.status-partial {
  color: var(--ink);
  background: color-mix(in srgb, #b39343 18%, transparent);
}
.status-today {
  color: var(--accent);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.library-refresh-options {
  margin: -12px 0 20px;
  color: var(--muted);
  font-size: 12px;
}
.library-refresh-options .check-row {
  justify-content: flex-start;
}
.library-refresh-options p {
  min-height: 1.5em;
  margin: 8px 0 0;
}
.games-page > .page-heading {
  flex-wrap: wrap;
}
