.trainer-page .trainer-start{margin-bottom:18px}.trainer-actions{display:flex;gap:12px;flex-wrap:wrap}.question-meta{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0;color:#f0cf6a}.trainer-page #editPosition,.trainer-page #startPlacement,.trainer-page #showOriginal,.trainer-page #pastCardSection{display:none!important}.trainer-page #builder{margin-bottom:20px}.trainer-page #dailyTimer{font:800 34px/1.2 ui-monospace,monospace;color:#f0cf6a}.trainer-page #countdown{font-size:56px}.trainer-page #timerPanel{display:flex;align-items:center;gap:24px;min-height:110px}.trainer-page #dailyPenalty{font-size:17px;color:#ffb37a}.trainer-page #dailyReview>label{display:block;margin:15px 0}.trainer-page #dailyReview label>span{display:inline}.trainer-page #reviewMemo{display:block;width:100%;min-height:80px;background:#232323;color:white;border:1px solid #4a4a4a;border-radius:8px;padding:10px;font:inherit}.trainer-page #acceptedAnswers label{display:flex;gap:10px;align-items:center;margin:12px 0}.trainer-page .answer-cards{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.trainer-page .answer-cards .playing-card{width:25px;height:35px;font-size:23px}.trainer-page #usageSummary{font-size:12px;text-align:right}.trainer-page .leaderboard-row{display:grid;grid-template-columns:40px 1fr auto auto;gap:15px;border-bottom:1px solid #343434;padding:12px}.trainer-page .leaderboard-row.you{color:#f0cf6a}.trainer-page #trainerStatus{min-height:24px}.trainer-page .trainer-pending{opacity:.6}.trainer-page #dailyReady:disabled{opacity:.4}
@media(max-width:600px){.trainer-page #usageSummary{font-size:10px}.trainer-page .intro{display:block}.trainer-page #usageSummary{text-align:left;margin-top:12px}.trainer-page .study-nav{gap:16px;flex-wrap:wrap}.trainer-page .leaderboard-row{font-size:11px;gap:7px}.trainer-page #timerPanel{gap:12px}.trainer-page #dailyTimer{font-size:27px}}

/* ================================================================ desktop layout
 * mono.css gives .study-main the Study page's three-column work-surface grid: a 232px sidebar,
 * a flexible board column and a 540px deck column. The trainer has neither a sidebar nor a
 * separate deck column, so every builder element was dropped into the 232px first column - the
 * board was squeezed into it and the rest of the screen stayed empty. The trainer gets its own
 * two-column grid here: the board and hand on the left, the analysis on the right. Scoped to
 * :not(.study-fixed) so the one-screen layout keeps its own trainer rules. */
body:not(.study-fixed).trainer-page .study-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
  gap: 18px 26px;
  align-content: start;
  align-items: start;
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding: 22px 26px 48px !important;
}
body:not(.study-fixed).trainer-page .study-main > .intro,
body:not(.study-fixed).trainer-page .study-main > #identityNote,
body:not(.study-fixed).trainer-page .study-main > #trainerError,
body:not(.study-fixed).trainer-page .study-main > .trainer-start,
body:not(.study-fixed).trainer-page .study-main > #timerPanel,
body:not(.study-fixed).trainer-page .study-main > #dailyReview,
body:not(.study-fixed).trainer-page .study-main > #dailyLeaderboard,
body:not(.study-fixed).trainer-page .study-main > footer {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}
body:not(.study-fixed).trainer-page #questionStage {
  grid-column: 1 !important;
  grid-row: auto !important;
  min-width: 0;
}
body:not(.study-fixed).trainer-page #trainerResults {
  grid-column: 2 !important;
  grid-row: auto !important;
  align-self: start;
  position: sticky;
  top: 16px;
  min-width: 0;
  margin-bottom: 0 !important;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
body:not(.study-fixed).trainer-page #trainerRanking { overflow-x: auto; }

@media (max-width: 1100px) {
  /* The desktop rule above is one class heavier than mono.css's own mobile rules, so without
     !important the trainer kept its two columns on a phone: the first track collapsed to 0px
     and every label wrapped one character per line. One column, full width. */
  body:not(.study-fixed).trainer-page .study-main {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 14px 14px 40px !important;
  }
  body:not(.study-fixed).trainer-page .study-main > * { grid-column: auto !important; min-width: 0; }
  /* The mode / seat-map / FL row overflows the phone. It is display:flex (not the grid the
     sheet suggests), so it is forced to a plain vertical stack that fills the width. */
  body:not(.study-fixed).trainer-page .table-controls {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0 !important;
  }
  body:not(.study-fixed).trainer-page .table-controls > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
  }
  body:not(.study-fixed).trainer-page .table-controls .position-map {
    width: 100% !important;
    min-width: 0 !important;
    margin: 14px 0 !important;
  }
  body:not(.study-fixed).trainer-page #trainerResults { position: static; max-height: none; overflow: visible; }
}

/* The stack editor belongs to the manual position builder on the solver. In the trainer the
   stacks come with the situation, so the editor is removed; the seat chips carry the numbers. */
.trainer-page #stackControls { display: none !important; }

/* The seat chips are how the stacks stay visible once the editor is gone, so they are made
   larger and the stack line is set at full contrast. */
.trainer-page .position-map { height: 156px; margin: 26px 0; }
.trainer-page .position-chip { font-size: 15px !important; padding: 8px 12px !important; }
.trainer-page .position-chip .chip-stack { font-size: 13px !important; font-weight: 800 !important; opacity: 1 !important; }

/* The result metrics in the analysis column: the values are long and the column is narrower
   than the solver's, so they are set as two short stacks per row (label above value) instead
   of five inline label/value pairs that ran into each other. */
.trainer-page #trainerMetrics {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 22px !important;
}
.trainer-page #trainerMetrics .metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px;
  min-width: 0;
}
.trainer-page #trainerMetrics .metric small { color: var(--mc-muted); }
.trainer-page #trainerMetrics .metric strong { line-height: 1.1; }
