/* Supporting UI only. Board workspaces, player strips, rails and playback are protected. */
:root {
  --activity-ink: #242722;
  --activity-muted: #6c6b64;
  --activity-accent: #315d49;
  --activity-line: #d7d0c3;
  --activity-paper: #f5f2eb;
  --activity-surface: #fffcf6;
  --activity-selected: #e7eee5;
}
:root[data-focus-color-scheme="dark"] {
  --activity-ink: #f2ede4;
  --activity-muted: #b0afa5;
  --activity-accent: #a3c9b0;
  --activity-line: #3d473f;
  --activity-paper: #101411;
  --activity-surface: #171c19;
  --activity-selected: #263b2d;
}
.activity-page, .activity-form, .activity-panel { color: var(--activity-ink); }
.activity-page h1, .activity-page h2, .activity-page h3,
.activity-form h2, .activity-form h3, .activity-panel h2, .activity-panel h3,
.learning-header h1, .opening-practice-header h1, .puzzles-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none; letter-spacing: -.025em; font-weight: 500; color: var(--activity-ink);
}
.activity-page h1, .learning-header h1, .opening-practice-header h1, .puzzles-header h1 {
  font-size: clamp(32px, 3.1vw, 46px); line-height: 1.12; margin: 0;
}
.activity-page h2, .activity-form h2 { font-size: clamp(23px, 2vw, 29px); line-height: 1.22; }
.activity-panel h2, .activity-form h3 { font-size: 23px; line-height: 1.25; }
.activity-page :is(.eyebrow, label, legend), .activity-form :is(label, legend) {
  text-transform: none; letter-spacing: normal; font-size: 13px; font-weight: 600;
}
.activity-page p, .activity-form p, .activity-panel p { line-height: 1.55; }
.activity-page :is(button, a, input, select, summary):focus-visible,
.activity-form :is(button:not(.square), a, input, select, summary):focus-visible,
.activity-search input:focus-visible {
  outline: 2px solid var(--activity-accent); outline-offset: 3px;
}
/* Setup controls only; no rule here matches a board control. */
.activity-page button, .activity-form button:not(.square), .activity-preferences button {
  box-shadow: none; border-radius: 4px; border: 1px solid var(--activity-line);
  background: var(--activity-surface); color: var(--activity-ink);
  font-weight: 500; font-size: 13px; min-height: 44px; padding: 9px 15px;
}
.activity-page button:hover:not(:disabled), .activity-form button:not(.square):hover:not(:disabled) {
  border-color: var(--activity-accent); background: var(--activity-selected);
}
.activity-page button:disabled, .activity-form button:not(.square):disabled { opacity: .5; cursor: default; }
.activity-page :is(input:not([type="checkbox"]):not([type="radio"]), select),
.activity-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 44px; border: 1px solid var(--activity-line); border-radius: 4px;
  background: var(--activity-surface); color: var(--activity-ink); padding: 10px 12px;
  font: inherit; font-size: 14px; max-width: 100%; box-sizing: border-box;
}
.activity-page input:is([type="checkbox"], [type="radio"]), .activity-form input:is([type="checkbox"], [type="radio"]) { accent-color: var(--activity-accent); }
.activity-page :is(button.selected, button.active, button[aria-pressed="true"]),
.activity-form :is(button.selected, button.active, button[aria-pressed="true"]):not(.square) {
  color: var(--activity-accent); border-color: var(--activity-accent); background: var(--activity-selected);
}
.activity-page #placement-tournament-create, .activity-page #placement-journey-start-round,
.activity-form :is(#opening-practice-start, #endgame-practice-generate, #maia3-setup-submit, #review-analyze) {
  background: #315d49; color: #fff; border-color: #315d49; font-weight: 600;
}
.activity-search { margin: 15px 0 20px; }
.activity-search > label { display: block; font-size: 12px; font-weight: 600; color: var(--activity-muted); margin-bottom: 6px; }
.activity-search > div { display: flex; gap: 8px; }
.activity-search input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--activity-line); border-radius: 4px; padding: 10px 12px; background: var(--activity-surface); color: var(--activity-ink); font: inherit; }
.activity-search p { font-size: 13px; margin: 8px 0 0; color: var(--activity-muted); }
.activity-search [hidden], [data-activity-filtered="true"] { display: none !important; }
.activity-disclosure { border-top: 1px solid var(--activity-line); margin-top: 16px; padding-top: 8px; }
.activity-disclosure > summary { padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--activity-ink); min-height: 44px; box-sizing: border-box; }
.activity-disclosure[open] > summary { margin-bottom: 10px; }
.activity-note { font-size: 12px; color: var(--activity-muted); }
/* Learning: readable course rows and contents rather than miniature cover cards. */
#learning-library.activity-form { gap: 28px; }
#learning-library .learning-library-panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; min-width: 0; }
#learning-library .learning-panel-heading { padding: 0 0 15px; border-bottom: 1px solid var(--activity-line); }
#learning-library .learning-list { display: flex; flex-direction: column; gap: 0; }
#learning-library .learning-item {
  display: flex; flex-direction: row; align-items: center; gap: 20px; text-align: left; width: 100%;
  border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; background: transparent;
  padding: 20px 10px; min-height: 70px; box-shadow: none;
}
#learning-library .learning-item.selected { background: var(--activity-selected); box-shadow: inset 3px 0 var(--activity-accent); }
#learning-library .learning-item .learning-item-body { min-width: 0; flex: 1; }
#learning-library .learning-item strong { display: block; font: 500 22px/1.25 Georgia, serif; color: var(--activity-ink); }
#learning-library .learning-item span { color: var(--activity-muted); font-size: 13px; line-height: 1.5; }
#learning-library .learning-book-cover { width: 70px; height: 94px; min-width: 70px; max-height: 94px; object-fit: contain; box-shadow: none; border-radius: 0; }
#learning-library :is(#learning-parts .learning-item, #learning-modules .learning-item) { display: grid; gap: 5px; }
#learning-library :is(#learning-parts .learning-item, #learning-modules .learning-item) strong { font-size: 20px; }
.learning-source-panel.activity-panel { background: var(--activity-surface); border-color: var(--activity-line); border-radius: 4px; box-shadow: none; }
.learning-question { max-width: 760px; margin-inline: auto; }
.learning-question h3 { font: 500 30px/1.22 Georgia, serif; text-transform: none; letter-spacing: -.02em; }
.learning-question-prompt { font-size: 18px; line-height: 1.6; }
.learning-question-choice { min-height: 48px; text-align: left; border-radius: 4px; box-shadow: none; }
/* Repertoire keeps its current selection and statistics. */
#opening-practice-setup .opening-practice-panel, #endgame-practice-setup .endgame-practice-panel {
  border: 1px solid var(--activity-line); border-radius: 4px; box-shadow: none; background: var(--activity-surface); padding: 22px;
}
#opening-practice-setup .opening-practice-library-panel { border: 0; padding: 0; background: transparent; }
#opening-practice-setup .opening-practice-setup-tabs { background: transparent; border-bottom: 1px solid var(--activity-line); gap: 20px; }
#opening-practice-setup .opening-practice-setup-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0; }
#opening-practice-setup .opening-practice-setup-tab.selected { border-bottom-color: var(--activity-accent); }
#opening-practice-setup .opening-practice-today-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
#opening-practice-setup :is(.opening-practice-today-task, .opening-practice-repertoire-row) { border-radius: 0; background: transparent; border-width: 0 0 1px; padding-block: 14px; }
#opening-practice-setup .opening-practice-danya-overview { display: none; } /* Same source links remain in the session setup. */
#opening-practice-setup .opening-practice-option { text-align: left; padding: 14px; }
#opening-practice-setup .opening-practice-option strong { font-size: 15px; }
#opening-practice-setup .opening-practice-option span { font-size: 12px; line-height: 1.5; }
#opening-practice-setup .opening-practice-settings { gap: 16px; }
.activity-panel :is(.opening-practice-line-panel, .opening-practice-progress-panel, .puzzles-solve-panel, .puzzles-feedback, .puzzles-catalog-panel) { border-color: var(--activity-line); border-radius: 4px; box-shadow: none; background: var(--activity-surface); }
.activity-panel :is(.opening-practice-progress-panel, .puzzles-catalog-panel) { padding: 8px 14px; }
/* Opponents: six readable compact cards; color choices stay separate. */
#opponent-screen.activity-page { background: var(--activity-paper); }
#opponent-screen .opponent-scout { width: min(1440px, 100%); margin-inline: auto; border: 0; box-shadow: none; background: transparent; border-radius: 0; padding: 30px; }
#opponent-screen .opponent-roster-header { border-bottom: 1px solid var(--activity-line); padding-bottom: 20px; }
#opponent-screen .opponent-time-setup { padding: 20px 0; background: transparent; border: 0; }
#opponent-screen .opponent-card { border: 1px solid var(--activity-line); border-radius: 4px; box-shadow: none; background: var(--activity-surface); padding: 18px; }
#opponent-screen .opponent-card h2 { font-size: 25px; }
#opponent-screen .opponent-rating { font: 26px Georgia, serif; color: var(--activity-ink); }
#opponent-screen .opponent-record { font-size: 12px; color: var(--activity-muted); }
#opponent-screen .opponent-card-actions { display: flex; gap: 8px; margin-top: 16px; }
#opponent-screen .opponent-card-actions button { flex: 1; }
#opponent-screen .opponent-pagination-hint { display: none; }
/* Game setup and supporting headings. Protected live workspace geometry is untouched. */
.maia3-setup-panel.activity-form { background: var(--activity-surface); color: var(--activity-ink); border: 1px solid var(--activity-line); border-radius: 6px; box-shadow: 0 18px 70px #0003; }
.maia3-setup-panel h2 { font: 500 34px/1.15 Georgia, serif; }
#play-side :is(.live-match-event h1, #opponent-game-name) { font-family: Georgia, serif; font-weight: 500; text-transform: none; letter-spacing: -.02em; }
#play-side .live-match-event h1 { font-size: 28px; }
#play-side #opponent-game-details { font-size: 12px; }
#play-side :is(.opponent-game-panel, .opponent-practice-panel, .play-tips-panel) { border-radius: 4px; box-shadow: none; }
#engine-settings { border-radius: 4px; box-shadow: none; }
/* Review entry and supporting content, without resizing the board or playback. */
#game-review-screen:not(.review-board-active) > .review-header h1 { font: 500 42px/1.15 Georgia, serif; }
#review-input-panel { border-radius: 4px; box-shadow: none; border-color: var(--activity-line); }
#review-input-panel-body > label > textarea { min-height: 140px; }
.review-side-panel :is(.review-workspace-heading h1, .review-quality-breakdown-heading h2, .review-career-stats h2) { font-family: Georgia, serif; text-transform: none; font-weight: 500; }
.review-side-panel .review-workspace-heading h1 { font-size: 28px; }
.review-side-panel :is(.review-workspace-mark) { display: none; }
.review-side-panel :is(.review-mode-switch button, .review-import-pgn-button, .review-recent-games-trigger) { border-radius: 4px; box-shadow: none; font-size: 12px; min-height: 36px; }
/* Video catalog and playlist; the embedded player and right board are unchanged. */
#danya-speedruns-library.activity-form .danya-speedruns-video-panel,
#danya-speedruns-library.activity-form .danya-speedruns-next-panel { background: var(--activity-surface); border: 1px solid var(--activity-line); border-radius: 4px; box-shadow: none; padding: 22px; }
#danya-speedruns-library .danya-speedruns-video-list { gap: 0; }
#danya-speedruns-library .danya-speedruns-video-row { border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; padding: 13px 4px; gap: 18px; background: transparent; }
#danya-speedruns-library .danya-speedruns-video-row img { width: 110px; border-radius: 2px; }
#danya-speedruns-library .danya-speedruns-video-row strong { font-size: 16px; font-weight: 500; }
#danya-speedruns-library .danya-speedruns-video-row-body > span { font-size: 12px; color: var(--activity-muted); }
#danya-speedruns-library .danya-speedruns-video-row.next { background: var(--activity-selected); }
.activity-playlist .danya-speedruns-playlist-strip { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.activity-playlist .danya-speedruns-strip-item { display: grid; grid-template-columns: 52px 25px 1fr; gap: 12px; align-items: center; min-height: 50px; width: 100%; text-align: left; background: transparent; color: var(--activity-ink); border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; }
.activity-playlist .danya-speedruns-strip-item img { width: 52px; }
.activity-playlist .danya-speedruns-strip-item strong { font-size: 13px; font-weight: 500; white-space: normal; }
/* Tournament setup and saved event: primary round action, quiet supporting facts. */
#placement-tournament-screen.activity-page { border: 0; background: transparent; box-shadow: none; padding: 24px; }
#placement-tournament-screen .placement-tournament-header { border-bottom: 1px solid var(--activity-line); padding-bottom: 24px; }
#placement-tournament-screen .placement-tournament-header .eyebrow { display: none; }
#placement-tournament-screen :is(.placement-tournament-setup, .placement-tournament-setup-form, .placement-tournament-panel, .placement-tournament-summary, .placement-journey-event) { background: transparent; box-shadow: none; border-radius: 4px; border-color: var(--activity-line); }
#placement-tournament-screen fieldset { border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; margin: 0; padding: 20px 0; }
#placement-tournament-screen legend { font: 500 24px Georgia, serif; padding: 0; }
#placement-tournament-screen :is(.placement-rating-options, .placement-time-options) { gap: 10px; }
#placement-tournament-screen :is(.placement-rating-options label, .placement-time-options label, .placement-fide-option) { box-shadow: none; border-radius: 4px; background: var(--activity-surface); border: 1px solid var(--activity-line); padding: 15px; }
#placement-tournament-screen :is(.placement-rating-options label, .placement-time-options label):has(input:checked) { background: var(--activity-selected); border-color: var(--activity-accent); }
#placement-tournament-screen .placement-tournament-primary-actions { padding-top: 18px; }
#placement-tournament-screen .placement-journey-current { background: var(--activity-surface); border: 1px solid var(--activity-line); border-radius: 4px; box-shadow: none; }
#placement-tournament-screen .placement-journey-rounds { border-radius: 4px; }
/* Statistics and preferences share the existing Career visual language. */
#career-stats-screen.activity-page, #settings-screen.activity-page { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 28px; }
#career-stats-screen .career-stats-tabs { border-bottom: 1px solid var(--activity-line); gap: 22px; }
#career-stats-screen .career-stats-tabs button { border: 0; border-radius: 0; background: transparent; padding-inline: 0; border-bottom: 2px solid transparent; }
#career-stats-screen .career-stats-tabs button.active { border-bottom-color: var(--activity-accent); }
#career-stats-screen :is(.career-stats-card, .career-stats-panel, .career-stats-empty) { border-radius: 4px; box-shadow: none; background: var(--activity-surface); border-color: var(--activity-line); }
#settings-screen .settings-engine-picker { background: transparent; border: 0; padding: 0; }
.activity-preferences { border-block: 1px solid var(--activity-line); padding: 18px 0; display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 15px 30px; align-items: center; }
.activity-preferences :is(h2, h3, p) { margin: 0; }
.activity-preferences .activity-note { grid-column: 2; }
#settings-screen .activity-settings-heading { margin: 8px 0; }
/* Resources: unique tools first, optional checklist after them on a phone. */
#resources-screen.activity-page { background: var(--activity-paper); }
#resources-screen .resources-shell { max-width: 1440px; padding: 30px; display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); gap: 28px; }
#resources-screen .resources-header { grid-column: 1 / -1; border-bottom: 1px solid var(--activity-line); padding-bottom: 20px; }
#resources-screen .resources-top-grid { grid-column: 2; grid-row: 2; display: block; }
#resources-screen .resources-toolkit { grid-column: 1; grid-row: 2; }
#resources-screen .resources-toolkit > h2 { margin: 0 0 15px; }
#resources-screen .resources-checklist { display: block; padding: 22px; background: var(--activity-surface); border: 1px solid var(--activity-line); border-radius: 4px; box-shadow: none; }
#resources-screen .resources-checklist-grid { display: flex; flex-direction: column; gap: 18px; }
#resources-screen .resources-checklist-grid label { line-height: 1.5; display: flex; align-items: flex-start; gap: 10px; }
#resources-screen .resources-toolkit-grid { gap: 0 24px; }
#resources-screen .resources-toolkit-grid button { border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; background: transparent; padding: 22px 8px; }
#resources-screen .resources-toolkit-grid strong { font: 500 23px/1.25 Georgia, serif; }
#resources-screen .resources-toolkit-grid button > span > span { font-size: 13px; color: var(--activity-muted); }
#resources-screen .resources-toolkit-grid small { color: var(--activity-accent); font-weight: 500; }
#resources-screen .resources-icon { border: 0; box-shadow: none; background: none; color: var(--activity-ink); }
#resources-status:empty { display: none; }
.activity-recorder-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; padding: 0; list-style: none; font-size: 13px; color: var(--activity-muted); }
.activity-recorder-steps li { padding-block: 8px; border-bottom: 2px solid var(--activity-line); }
.activity-recorder-steps [aria-current="step"] { border-bottom-color: var(--activity-accent); color: var(--activity-accent); font-weight: 600; }
@media (max-width: 700px) {
  .activity-page h1, .learning-header h1, .opening-practice-header h1, .puzzles-header h1 { font-size: 32px; }
  .activity-page :is(button, select), .activity-form :is(button:not(.square), select) { min-height: 44px; }
  .activity-page input:not([type="checkbox"]):not([type="radio"]), .activity-form :is(input:not([type="checkbox"]):not([type="radio"]), textarea), .activity-search input { font-size: 16px; }
  #opponent-screen .opponent-scout, #placement-tournament-screen.activity-page, #career-stats-screen.activity-page, #settings-screen.activity-page { padding: 18px 12px; }
  #learning-library .learning-item { padding: 16px 6px; gap: 14px; }
  #learning-library .learning-item strong { font-size: 21px; }
  #opening-practice-setup .opening-practice-panel, #endgame-practice-setup .endgame-practice-panel { padding: 16px; }
  #opening-practice-setup .opening-practice-library-panel { padding: 0; }
  #danya-speedruns-library .danya-speedruns-video-row { grid-template-columns: 76px minmax(0, 1fr) 22px; gap: 12px; }
  #danya-speedruns-library .danya-speedruns-video-row img { width: 76px; }
  #danya-speedruns-library .danya-speedruns-video-row strong { font-size: 14px; }
  #resources-screen .resources-shell { display: flex; flex-direction: column; padding: 18px 14px; gap: 24px; }
  #resources-screen .resources-toolkit { order: 2; }
  #resources-screen .resources-top-grid { order: 3; }
  #resources-screen .resources-toolkit-grid { grid-template-columns: 1fr; }
  #resources-screen .resources-toolkit-grid button { min-height: 104px; }
  .activity-preferences { grid-template-columns: 1fr; gap: 12px; }
  .activity-preferences .activity-note { grid-column: 1; }
}
/* Setup-only outer framing, never active workspace dimensions. */
#opening-practice-screen:has(#opening-practice-setup:not([hidden])),
#endgame-practice-screen:has(#endgame-practice-setup:not([hidden])),
#learning-screen:has(#learning-library:not([hidden])):not(:has(#learning-classroom:not([hidden]))) {
  max-width: 1440px; margin-inline: auto; border: 0; box-shadow: none; background: transparent; padding: 28px;
}
#opening-practice-setup .opening-practice-repertoire-grid { grid-template-columns: 1fr; gap: 25px; }
#opening-practice-setup .opening-practice-repertoire-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#opening-practice-setup .opening-practice-repertoire-heading { padding-inline: 0; border-bottom: 1px solid var(--activity-line); }
#opening-practice-setup .opening-practice-repertoire-heading h4 { font: 500 22px Georgia, serif; text-transform: none; }
#opening-practice-setup .opening-practice-repertoire-row { grid-template-columns: minmax(160px, 1fr) 60px 95px 95px 20px; gap: 15px; }
#opening-practice-setup .opening-practice-repertoire-opening strong { white-space: normal; font-weight: 500; font-size: 16px; }
#opening-practice-setup .opening-practice-repertoire-row.header { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--activity-muted); }
#opening-practice-setup .opening-practice-setup-side { background: transparent; border: 0; box-shadow: none; padding: 0; }
#opening-practice-setup .opening-practice-setup-side > .opening-practice-panel { margin: 0 0 16px; }
#review-input-panel-body .review-scoresheet-scan { min-height: 0; }
#review-input-panel-body #review-input { min-height: 150px; max-height: 280px; font-family: ui-monospace, monospace; font-size: 14px; }
#review-input-panel-body #start-review { background: #315d49; color: white; border-color: #315d49; }
.library-review-tabs { border-bottom: 1px solid var(--activity-line); gap: 15px; }
.library-review-tabs button { border-radius: 0; background: transparent; border-bottom: 2px solid transparent; }
.library-review-tabs button[aria-pressed="true"] { background: transparent; border-bottom-color: var(--activity-accent); color: var(--activity-accent); }
#game-review-screen.review-editorial-active[data-study-panel="review"] #review-master-examples,
#game-review-screen.review-editorial-active[data-study-panel="masters"] .review-stage,
#game-review-screen.review-editorial-active[data-study-panel="stats"] :is(#review-master-examples, .review-summary-eval-graph, .review-quality-breakdown, .review-start-walkthrough),
#game-review-screen.review-editorial-active[data-study-panel="review"] #review-career-stats { display: none; }
#game-review-screen.review-editorial-active[data-study-panel="masters"] #review-master-examples { overflow: auto; }
#game-review-screen.review-editorial-active .review-workspace-heading { flex-wrap: wrap; }
@media (max-width: 700px) {
  #opening-practice-screen:has(#opening-practice-setup:not([hidden])),
  #endgame-practice-screen:has(#endgame-practice-setup:not([hidden])),
  #learning-screen:has(#learning-library:not([hidden])):not(:has(#learning-classroom:not([hidden]))) { padding: 18px 12px; }
  #opening-practice-setup .opening-practice-repertoire-row { grid-template-columns: minmax(120px, 1fr) 38px 46px 46px 12px; gap: 6px; padding-inline: 4px; }
  #opening-practice-setup .opening-practice-repertoire-opening strong { font-size: 14px; }
  #opening-practice-setup .opening-practice-meter-track { display: none; }
  .library-review-tabs { gap: 4px; }
  .library-review-tabs button { padding-inline: 8px; min-height: 44px; }
  .review-side-panel :is(.review-mode-switch button, .review-import-pgn-button, .review-recent-games-trigger) { min-height: 44px; }
  #review-input-panel-body #review-input { font-size: 16px; }
}
.learning-question-submit { margin-top: 16px; min-height: 44px; padding: 10px 20px; border: 1px solid #315d49; border-radius: 4px; background: #315d49; color: #fff; }
.learning-question-submit:disabled { opacity: .5; }
.learning-question-choice[aria-pressed="true"] { border-color: var(--activity-accent); background: var(--activity-selected); color: var(--activity-ink); }
/* Non-board navigation shares the Library wordmark without changing header height. */
@media (min-width: 800px) {
  body:has(.activity-page:not([hidden])) .app-home-link { width: auto; gap: 12px; }
  body:has(.activity-page:not([hidden])) .library-header-brand { display: inline; font: 600 26px Georgia, serif; letter-spacing: -.03em; }
}
#opening-practice-setup .opening-practice-setup-tabs { border: 0; border-bottom: 1px solid var(--activity-line); border-radius: 0; padding: 0; }
@media (max-width: 700px) {
  #opening-practice-setup .opening-practice-setup-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  #opening-practice-setup .opening-practice-setup-tab { min-width: 0; padding: 10px 2px; gap: 4px; font-size: 12px; }
}

.activity-catalog-title { font: 500 clamp(32px, 3.1vw, 46px)/1.12 Georgia, serif; letter-spacing: -.025em; margin: 0 0 20px; }
#danya-speedruns-library #danya-openings-disclosure { margin: 0 0 24px; }
#danya-speedruns-library .danya-openings-results { max-height: 580px; overflow: auto; }
@media (max-width: 700px) {
  #danya-speedruns-library .danya-speedruns-library-grid { display: flex; flex-direction: column; }
  #danya-speedruns-library .danya-speedruns-next-panel { order: -1; }
}

#danya-speedruns-library .danya-speedruns-video-row { flex: 0 0 auto; height: auto; min-height: 88px; }
#danya-speedruns-library .danya-speedruns-next-card { height: auto; min-height: 88px; }
#danya-speedruns-library #danya-speedruns-start-next { background: #315d49; color: white; border-color: #315d49; }
@media (max-width: 700px) { #danya-speedruns-library .danya-speedruns-video-row { min-height: 76px; } }

@media (max-width: 700px) {
  #opening-practice-setup .opening-practice-repertoire-row { grid-template-columns: minmax(100px, 1fr) 32px 40px 52px 12px; }
  #opening-practice-setup .opening-practice-repertoire-row.header > span { white-space: normal; overflow: visible; font-size: 10px; letter-spacing: 0; line-height: 1.25; }
}
