/* The scripted lesson (owner 6.-8.11.2026): one big card per step, the
   step's clock always on screen. Big text, little of it (bs-vahan-tekstia). */
.motor-script-clock {
  position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 6px 16px; border-radius: 999px;
  background: var(--mtr-ink, #1d2a44); color: #fff;
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.motor-script-clock[hidden] { display: none; }
#panel-motor-now .motor-script-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; padding: 32px; box-sizing: border-box;
  background: var(--mtr-surface, #fff); border: 1px solid var(--mtr-line, #e3e7ea); border-radius: 16px;
}
#panel-motor-now .motor-script-card .motor-now-emptycard__main { width: 100%; max-width: 560px; text-align: center; border: 0; background: none; }
#panel-motor-now .motor-script-card__big { margin: 0 0 12px; font-size: 30px; font-weight: 800; color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-card__big b { font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-card__next { margin: 0; font-size: 22px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-card__eyebrow { margin: 0 0 20px; font-size: 16px; font-weight: 800; letter-spacing: .06em; color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-calc { display: grid; gap: 14px; margin: 0 auto 24px; max-width: 460px; }
#panel-motor-now .motor-script-calc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 26px; font-weight: 700; }
#panel-motor-now .motor-script-calc__row b, #panel-motor-now .motor-script-calc__input { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
#panel-motor-now .motor-script-calc__input input {
  width: 180px; font: inherit; text-align: right; padding: 6px 10px;
  border: 2px solid var(--mtr-line, #c9d1d8); border-radius: 10px;
}
#panel-motor-now .motor-script-card__btn { font-size: 22px; padding: 12px 40px; }
#panel-motor-now .motor-script-wide { max-width: 1100px; }
#panel-motor-now .motor-script-wide .mds { max-width: none; border: 1px solid var(--mtr-line, #e3e7ea); }
#panel-motor-now .motor-script-card__error { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: #b42318; }
#panel-motor-now .motor-script-vat { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-vat b { color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-spent { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-spent b { color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-card__keep { margin: 18px 0 0; font-size: 20px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-card--decide .motor-script-card__next { margin-bottom: 20px; }
#screen-game .nav-list > li.motor-script-nav-hl { outline: 3px solid #f5a524; outline-offset: -3px; border-radius: 10px; }
/* Owner 8.11.2026: waiting and decision states have no card - a big clock
   and a few big words across Do now. */
#panel-motor-now .motor-script-wide .motor-script-free {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 420px; text-align: center;
}
#panel-motor-now .motor-script-free__clock { margin: 0; font-size: 140px; line-height: 1; font-weight: 800; color: var(--mtr-ink, #1d2a44); font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-free__line { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-free__line--soft { font-size: 32px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); }
@media (max-height: 740px) {
  #panel-motor-now .motor-script-wide .motor-script-free { min-height: 360px; gap: 10px; }
  #panel-motor-now .motor-script-free__clock { font-size: 112px; }
  #panel-motor-now .motor-script-free__line { font-size: 34px; }
  #panel-motor-now .motor-script-free__line--soft { font-size: 28px; }
}
/* Owner 8.11.2026 (script mode only): no news ticker; the firm's logo and
   name where "Your job now" was; Undo on each purchase of the step. */
body.motor-script-on #market-news-ticker { display: none !important; }
.motor-next-step .motor-script-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; }
.motor-next-step .motor-script-brand svg { flex: none; }
#panel-motor-now .motor-script-spent__item { white-space: nowrap; color: var(--mtr-ink, #1d2a44); font-weight: 800; }
#panel-motor-now .motor-script-spent__sep { color: var(--mtr-ink-soft, #40506e); }
#panel-motor-now .motor-script-undo {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 4px;
  border: 2px solid #b42318; border-radius: 999px; background: #fff; color: #b42318;
  font: inherit; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: 2px;
}
#panel-motor-now .motor-script-undo:hover { background: #fde8e6; }
/* Buy buttons on the decision pages: a fill slides left to right on hover
   and press, so the pupil sees what they are pressing. CSS only, no layout
   shift (background-position only). */
body.motor-script-on :is(.btn-buy, .loan-card button, #panel-hiring button, #panel-invest button, #panel-sabotage button):not(:disabled) {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .62) 0 50%, rgba(255, 255, 255, 0) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  transition: background-position 250ms ease-out;
}
body.motor-script-on :is(.btn-buy, .loan-card button, #panel-hiring button, #panel-invest button, #panel-sabotage button):not(:disabled):is(:hover, :active, :focus-visible) {
  background-position: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  body.motor-script-on :is(.btn-buy, .loan-card button, #panel-hiring button, #panel-invest button, #panel-sabotage button) { transition: none; }
}

/* Investments in the scripted lesson (owner 8.11.2026 H): properties only;
   the live-curve funds' section is not on the page. */
.motor-script-on #stock-grid,
.motor-script-on #invest-equity-chart-root,
.motor-script-on #panel-invest .invest-page-content > .divider,
.motor-script-on #panel-invest .invest-section-head:has([data-i18n="game.invest.equitiesTitle"]) { display: none !important; }

/* The teacher's result strip for the previous topic task (owner 8.11.2026 M):
   one or two lines, readable from the desk. */
.tc-strip { padding: 16px 22px; }
.tc-strip__line { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; color: #16202c; }
/* under the firm table: one calm line, the wrong firms in plain dark text (owner 9.11.2026) */
.tc-tt-task > .tc-strip__line { margin: 12px 0 0; font-size: 22px; font-weight: 600; color: #344150; }
.tc-strip__line b { font-weight: 800; }
.tc-strip__wrong { color: inherit; font-weight: 600; }
/* The result line's "Open task" (owner 12.11.2026): the line left, the button right. */
#t-motor-tc-strip { display: flex; align-items: center; gap: 20px; }
#t-motor-tc-strip .tc-strip__line { flex: 1 1 auto; min-width: 0; }
.tc-strip__open {
  flex: 0 0 auto; height: 48px; padding: 0 20px; border: 2px solid #0E8A7C; border-radius: 8px; background: #fff;
  color: #0E8A7C; font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
/* The scripted Tasks tab: the lesson's finished tasks, one row each; Open shows a task's firms. */
.tc-teacher .tc-tt-earlier { display: grid; gap: 0; }
.tc-teacher .tc-tt-task + .tc-tt-earlier { border-top: 1px solid #c9d2da; padding-top: 18px; }
.tc-teacher .tc-tt-earlier > .tc-tt-part-h { margin: 0 0 8px; }
.tc-teacher .tc-tt-erow {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 110px; align-items: center; gap: 20px;
  min-height: 64px; padding: 8px 0; border-top: 1px solid #c9d2da;
}
.tc-teacher .tc-tt-erow.is-open { background: #e6f2f1; margin: 0 -12px; padding: 8px 12px; }
.tc-teacher .tc-tt-eno { font-size: 26px; font-weight: 800; color: #16202c; white-space: nowrap; }
.tc-teacher .tc-tt-eq { font-size: 22px; font-weight: 600; color: #344150; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-teacher .tc-tt-erow .tc-tt-count { margin: 0; gap: 18px; font-size: 24px; white-space: nowrap; }
.tc-teacher .tc-tt-erow .tc-tt-view { justify-self: end; }
.tc-teacher .tc-tt-ebody { display: grid; gap: 14px; padding: 12px 0 18px; }
.motor-script-card__note { margin: 8px 0 0; font-size: 20px; font-weight: 600; color: #c0392b; }

/* The margin card (owner 8.11.2026): centred like the other Do now screens,
   big figures on one right edge, the stake before the answer. */
#panel-motor-now .motor-script-wide .motor-script-free--calc { gap: 12px; min-height: 0; padding: 8px 0 16px; }
#panel-motor-now .motor-script-calcar { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 800; color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-calcar img { height: 84px; width: auto; }
#panel-motor-now .motor-script-free--calc .motor-script-calc { width: 100%; max-width: 520px; margin: 4px auto 6px; }
#panel-motor-now .motor-script-free--calc .motor-script-calc__row { font-size: 30px; }
#panel-motor-now .motor-script-free--calc .motor-script-calc__row b,
#panel-motor-now .motor-script-free--calc .motor-script-calc__input { font-size: 36px; }
/* The £ waits inside the box, like every price box (bs-symmetria 3; live
   check 9.11.2026): the sums' size and ink, the digits right after it. */
#panel-motor-now .motor-script-calc__input { position: relative; display: inline-flex; }
#panel-motor-now .motor-script-calc__sign { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); line-height: 1; pointer-events: none; color: inherit; }
#panel-motor-now .motor-script-calc__input input { box-sizing: border-box; padding-left: 36px; padding-right: 4px; }
/* As wide as the sums above it, so its £ starts where theirs does; five
   digits fit. */
#panel-motor-now .motor-script-free--calc .motor-script-calc__input input { width: 161px; }
#panel-motor-now .motor-script-calc__stake { margin: 0; font-size: 28px; font-weight: 800; color: #0e7c6b; }
#panel-motor-now .motor-script-calc__result { margin: 0; font-size: 34px; font-weight: 800; }
#panel-motor-now .motor-script-calc__result.is-right { color: #0e7c6b; }
#panel-motor-now .motor-script-calc__result.is-wrong { color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-free__line--mid { font-size: 34px; }
#panel-motor-now .motor-script-free--calc .motor-script-card__btn,
#panel-motor-now .motor-script-free--endq .motor-script-card__btn { width: auto; min-width: 240px; align-self: center; }

/* The decision step's purchases (owner 8.11.2026, the grid rejected): one
   fixed-width column under the money lines - a small picture, the name, the
   amount on one right edge, the Undo × at the end; equal rows, thin
   dividers; past four rows the list scrolls in its own box, so the clock and
   the money lines never move. */
#panel-motor-now .motor-script-wide .motor-script-free--decide { justify-content: flex-start; min-height: 0; padding-top: 0; gap: 4px; }
#panel-motor-now .motor-script-free--decide .motor-script-free__clock { font-size: 104px; }
#panel-motor-now .motor-script-free--decide .motor-script-free__line { font-size: 36px; }
#panel-motor-now .motor-script-free__sub { margin: 0; font-size: 22px; font-weight: 600; color: var(--mtr-ink-soft, #40506e); }
/* The one money line (owner 8.11.2026 evening): "Budget left £2,000 of
   £34,000" - big, centred under the clock like the rent and VAT lines; the
   £ against the figure; "of ..." smaller and grey on the same line. */
#panel-motor-now .motor-script-money {
  margin: 4px auto 0; font-size: 28px; font-weight: 700; color: var(--mtr-ink-soft, #40506e); white-space: nowrap;
}
#panel-motor-now .motor-script-money b { font-size: 34px; font-weight: 800; color: var(--mtr-ink, #1d2a44); font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-money small { font-size: 22px; font-weight: 600; color: #6b7685; font-variant-numeric: tabular-nums; }
/* The pupil's decision pages as one row of big buttons under the budget line (package 14.11.2026). */
#panel-motor-now .motor-script-pages { display: flex; align-self: center; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 14px auto 2px; }
#panel-motor-now .motor-script-pages__btn { flex: 0 0 auto; width: auto; min-width: 160px; margin: 0; padding: 14px 26px; font-size: 24px; font-weight: 800; line-height: 1.1; }
#panel-motor-now .motor-script-buys {
  list-style: none; margin: 14px auto 0; padding: 0; width: 640px; max-width: 100%;
  max-height: calc(4 * 72px + 1px); overflow-y: auto; text-align: left;
  border-top: 1px solid var(--mtr-line, #e3e7ea);
}
#panel-motor-now .motor-script-buy {
  box-sizing: border-box; height: 72px; display: grid; align-items: center;
  grid-template-columns: 56px minmax(0, 1fr) 140px 40px; column-gap: 14px;
  padding: 0 4px; border-bottom: 1px solid var(--mtr-line, #e3e7ea);
}
#panel-motor-now .motor-script-buy.is-new { animation: motor-script-buy-in 260ms ease-out; }
@keyframes motor-script-buy-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #panel-motor-now .motor-script-buy.is-new { animation: none; } }
#panel-motor-now .motor-script-buy__pic { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #e8eef1; }
#panel-motor-now .motor-script-buy__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
/* A seasonal product's photo whole (the four scooters were cut at the edges). */
#panel-motor-now .motor-script-buy.is-whole .motor-script-buy__pic { background: #fff; }
#panel-motor-now .motor-script-buy.is-whole .motor-script-buy__pic img { object-fit: contain; object-position: 50% 50%; }
#panel-motor-now .motor-script-buy__what { display: flex; flex-direction: column; min-width: 0; }
#panel-motor-now .motor-script-buy__name { font-size: 22px; font-weight: 600; color: var(--mtr-ink, #1d2a44); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#panel-motor-now .motor-script-buy__label { font-size: 16px; font-weight: 600; color: var(--mtr-ink-soft, #5b6878); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The amount right-aligned on one edge, its £ against the figure (owner 8.11.2026 evening). */
#panel-motor-now .motor-script-buy__amt {
  text-align: right; white-space: nowrap;
  font-size: 30px; font-weight: 800; color: var(--mtr-ink, #1d2a44); font-variant-numeric: tabular-nums;
}
#panel-motor-now .motor-script-buy__act { display: flex; justify-content: flex-end; }
@media (max-height: 740px) {
  #panel-motor-now .motor-script-free--decide .motor-script-free__clock { font-size: 84px; }
  #panel-motor-now .motor-script-free--decide .motor-script-free__line { font-size: 30px; }
  #panel-motor-now .motor-script-free__sub { font-size: 19px; }
  #panel-motor-now .motor-script-money { font-size: 24px; }
  #panel-motor-now .motor-script-money b { font-size: 30px; }
  #panel-motor-now .motor-script-money small { font-size: 19px; }
  #panel-motor-now .motor-script-buys { width: 630px; margin-top: 8px; max-height: calc(4 * 64px + 1px); }
  #panel-motor-now .motor-script-buy { height: 64px; grid-template-columns: 50px minmax(0, 1fr) 130px 40px; }
  #panel-motor-now .motor-script-buy__pic { width: 50px; height: 50px; }
  #panel-motor-now .motor-script-buy__name { font-size: 20px; }
  #panel-motor-now .motor-script-buy__amt { font-size: 26px; }
}
/* The end-questions step (owner 8.11.2026): no standings until the podium. */
body.motor-script-endstep #teacher-motor-dashboard .teacher-motor-card--chart { display: none !important; }

/* The teacher's screen in the scripted lesson (9.11.2026): in a step
   (.is-script-step) the header names the step, runs the
   pupils' step clock and says what is next and how many firms are done, no
   text under 16 px; in the whole lesson (.is-script) old-game panels that do nothing here
   are hidden (class events, the Net position formula, the report note, the
   chat's read-only hint, the written-response assessment panel). */
#teacher-motor-dashboard.is-script-head .teacher-motor-session-meta { font-size: 16px; margin-top: 0; }
/* The one clock (owner 12.11.2026): the step's time left, big, in the same
   place on every step (tabular figures, a fixed-width column); under it
   "Then: <next step>" and the lesson's own countdown, "Lesson ends in
   28:14" (owner 13.11.2026; was the clock time "Lesson ends HH:MM"): the
   smallest line of the stack, tabular figures, its row kept (blank) in the
   final questions so the stack is the same height on every step.
   SPEC CHANGE (owner 12.11.2026, night): what is running now stands ABOVE
   the time, in the middle - one stack read top to bottom: the step's name
   (large, never bigger than the clock), the clock, "Then: ...", "Lesson ends
   in 28:14". The header's three columns are left facts, the stack, the buttons,
   the stack between two equal sides, so it is in the middle of the header. */
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head { padding: 4px 20px; }
/* the stack is one line taller than the old header: the room comes from the gap under the Live / Tasks tabs */
#teacher-motor-dashboard.is-script-head #t-motor-tc-tabs { margin-bottom: 4px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock {
  display: flex; flex-direction: column; align-items: center; width: 380px; min-width: 380px; text-align: center;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 {
  order: -1; margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; color: #1f2738; white-space: nowrap;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-clock strong {
  order: 0; margin: 0; font-family: Inter, sans-serif; font-size: 52px; font-weight: 800; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-clock span {
  order: 1; margin-top: 2px; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: 0;
  text-transform: none; color: #1f2738; white-space: nowrap;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends {
  order: 2; display: block; font-style: normal; font-size: 18px; line-height: 1.25; font-weight: 700;
  color: #344054; white-space: nowrap; font-variant-numeric: tabular-nums;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends[hidden] { display: none; }
#teacher-motor-dashboard.is-script-head.is-paused .teacher-motor-clock span { color: #b54708; }
/* A 720 px screen: the same header a little lower, so every firm row of the
   tallest task still ends on the screen (motor-script-teacher-live-task). */
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head #t-motor-tc-tabs { margin-bottom: 0; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { line-height: 1.04; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock strong { font-size: 48px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock span { margin-top: 0; font-size: 18px; line-height: 1.15; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { font-size: 18px; line-height: 1.15; }
}
#teacher-motor-dashboard.is-script-step .teacher-motor-script-done {
  display: block; margin-top: 2px; font-style: normal; font-size: 18px; font-weight: 800; color: #006b75;
}
#teacher-motor-dashboard.is-script-step .teacher-motor-script-done[hidden] { display: none; }
#teacher-motor-dashboard.is-script-head .teacher-motor-button { font-size: 16px; padding: 10px 14px; }
/* Firm setup and the lesson's end wear the same header (.is-script-head,
   teacher run 9.11.2026). The end has no clock, no Pause, no Stop session. */
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock strong,
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock span,
#teacher-motor-dashboard.is-script-ended .teacher-motor-script-ends { display: none; }
/* Setup: the header already says "Firm setup"; the board's line is normal-size text. */
#teacher-motor-dashboard.is-script .motor-setup-board__head strong { display: none; }
#teacher-motor-dashboard.is-script .motor-setup-board__head span { font-size: 18px; font-weight: 600; color: #344054; }
#teacher-motor-dashboard.is-script #t-motor-events-card,
#teacher-motor-dashboard.is-script #teacher-assessment-panel,
#teacher-motor-dashboard.is-script .teacher-motor-report-note,
#teacher-motor-dashboard.is-script .teacher-motor-card--chart .teacher-motor-card__head small,
#teacher-motor-dashboard.is-script .teacher-motor-card--chart .teacher-motor-card__head span,
#teacher-motor-dashboard.is-script .teacher-motor-card__hint { display: none !important; }
/* The end step: each firm's answers and question score. */
#teacher-motor-dashboard .t-script-end { padding: 18px 22px; }
#teacher-motor-dashboard .t-script-end__firm {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px;
  padding: 12px 0; border-top: 1px solid #e4e9ee;
}
#teacher-motor-dashboard .t-script-end__firm:first-child { border-top: 0; padding-top: 0; }
#teacher-motor-dashboard .t-script-end__name { font-size: 22px; color: #1f2738; }
#teacher-motor-dashboard .t-script-end__score { font-size: 26px; font-weight: 800; color: #006b75; font-variant-numeric: tabular-nums; }
#teacher-motor-dashboard .t-script-end__score.is-minus { color: #b42318; }
#teacher-motor-dashboard .t-script-end__pupils { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; }
#teacher-motor-dashboard .t-script-end__pupil {
  font-size: 17px; color: #344054; background: #f2f4f7; border-radius: 8px; padding: 6px 10px;
}
#teacher-motor-dashboard .t-script-end__pupil.is-done { background: #e6f4f1; color: #05603a; }


/* The sidebar firm block (owner 8.11.2026, evening): one clear block - the
   firm first (its logo 28 px and its name in bold, two lines at most), then
   "pupil · role" smaller on one line; no inner box, no separate name and
   role lines above it. */
.motor-theme .sidebar .pc-info:has(> #motor-next-step.is-brand) { display: flex; flex-direction: column; }
.motor-theme .sidebar .pc-info:has(> #motor-next-step.is-brand) > #sb-name,
.motor-theme .sidebar .pc-info:has(> #motor-next-step.is-brand) > #sb-role { display: none; }
.motor-theme .sidebar .pc-info > #motor-next-step.is-brand { order: -1; }
.motor-theme .sidebar #motor-next-step.is-brand {
  background: none !important; border: 0 !important; border-radius: 0; box-shadow: none;
  margin: 0; padding: 0; min-height: 0;
}
.motor-theme .sidebar #motor-next-step.is-brand .motor-script-brand { gap: 10px; align-items: center; }
/* The sidebar's job-box rule makes every span a block; the mark stays a centred badge. */
.motor-theme .sidebar #motor-next-step.is-brand .motor-script-brand .motor-firm-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex: none;
}
.motor-theme .sidebar #motor-next-step.is-brand .motor-script-brand b {
  font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.motor-theme .sidebar #motor-next-step.is-brand .motor-script-who {
  margin-top: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--motor-on-navy-soft, rgba(255, 255, 255, 0.72)) !important;
}
/* The firm is in the sidebar: no second firm label in the main area's top bar (owner 8.11.2026 evening). */
body.motor-script-on .sm5-team-status-bar__brand { display: none; }
/* With the firm label and the roles both hidden the bar is an empty
   bordered strip above the top bar (live check 9.11.2026): not shown. */
body.motor-script-on .sm5-team-status-bar { display: none !important; }
/* The rent and VAT lines on the decision step (owner 8.11.2026): one line each, under the money lines. */
#panel-motor-now .motor-script-free--decide .motor-script-vat { margin: 2px 0 0; font-size: 22px; }

/* The sidebar menu (owner 8.11.2026 evening: "too much empty space - larger
   and more professional"): every game seat, the scripted lesson and the old
   mode alike. Open pages 20 px on 52 px rows, the active row the full width
   of the sidebar, every icon in one 24 px column (a page without its own
   glyph gets a small square, so the names start on one line). Locked rows
   keep their smaller grey size; the rows still give way down to 30 px before
   the menu would ever scroll (motor-clarity.css, owner 20.10.2026). */
.motor-theme #screen-game > .sidebar > .nav-list { padding-left: 0; padding-right: 0; }
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item:not(.nav-group-label):not([hidden]) {
  margin: 0; width: 100%; border-radius: 0;
}
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item:not(.nav-item-locked):not(.nav-group-label):not([hidden]) {
  display: flex; flex-direction: column; flex: 0 1 52px; min-height: 30px; max-height: none;
}
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item:not(.nav-item-locked):not(.nav-group-label):not([hidden]) > a {
  display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-height: 0; height: auto;
  padding: 0 20px; font-size: 20px; line-height: 24px; border-radius: 0; box-sizing: border-box;
}
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item.nav-item-locked:not([hidden]) > a {
  display: flex; align-items: center; gap: 14px; padding-left: 20px; padding-right: 20px; border-radius: 0;
}
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item > a > span:first-child { width: 24px; flex: 0 0 24px; }
.motor-theme #screen-game > .sidebar > .nav-list > .nav-item:not(.nav-item-locked) > a > span:first-child::before { font-size: 18px !important; }
.motor-theme .nav-list .nav-item > a > span:first-child::before { content: '\25AB'; }
.motor-theme .nav-list .nav-item#nav-motor-now > a > span:first-child::before { content: '\25B6'; }
.motor-theme .nav-list .nav-item#nav-motor-warehouse > a > span:first-child::before { content: '\25A4'; }
.motor-theme .nav-list .nav-item#nav-motor-wholesale > a > span:first-child::before { content: '\25A7'; }
.motor-theme #screen-game > .sidebar > .nav-list > .nav-group-label { padding-left: 20px; padding-right: 20px; }

/* "Bought · Undo" on the card where the item was bought (owner 8.11.2026 evening). */
.motor-script-bought {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--mtr-line, #e3e7ea); font-size: 16px; font-weight: 700; color: #0e7c6b;
}
.motor-script-bought__undo {
  border: 1px solid #b4232a; background: #fff; color: #b4232a; border-radius: 8px;
  padding: 4px 12px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.motor-script-bought__undo:hover { background: #fdecec; }

/* Script mode (owner 8.11.2026 evening, SPEC CHANGE): no "Do now" heading.
   "Firm cash" 30 px / the figure 54 px - centred above single-column screens,
   top-left on deal screens with the step's bonus chips; under it the deal
   tabs and a calm "Deals close in". */
body.motor-script-on #panel-motor-now .motor-now-head--script {
  display: grid; justify-items: center; gap: 10px; min-height: 0; margin: 0 0 10px;
}
body.motor-script-on #panel-motor-now .motor-now-head--script.is-deal { justify-items: stretch; }
/* Owner 9.11.2026 (SPEC CHANGE): on single-column screens the FIGURE sits on
   the centre axis, over the clock and the headline; "Firm cash" hangs to its
   left. The waiting screen (headline, clock, budget) starts lower, so the
   block is not glued to the top bar. */
/* The content under it is capped at 1100 px (.motor-script-wide); the head takes
   the same cap, so the figure is over the clock on a 1600 px screen too. */
body.motor-script-on #panel-motor-now .motor-now-head--script:not(.is-deal) { justify-items: stretch; max-width: 1100px; }
body.motor-script-on #panel-motor-now .motor-now-head--script:not(.is-deal) .motor-script-cash {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px;
  justify-items: end; align-items: baseline;
}
body.motor-script-on #panel-motor-now .motor-now-head--script:not(.is-deal) .motor-script-cash b { margin-left: 0; }
body.motor-script-on #panel-motor-now:has(.motor-script-free--decide) .motor-now-head--script:not(.is-deal) { margin-top: 12vh; }
body.motor-script-on #panel-motor-now .motor-script-cashrow { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: nowrap; }
body.motor-script-on #panel-motor-now .motor-script-cash {
  margin: 0; font-size: 30px !important; font-weight: 700; color: #334a55 !important; line-height: 1.1; white-space: nowrap;
}
body.motor-script-on #panel-motor-now .motor-script-cash b { font-size: 54px; font-weight: 800; color: var(--mtr-ink, #0f1720); font-variant-numeric: tabular-nums; margin-left: 6px; }
body.motor-script-on #panel-motor-now .motor-script-cash b.is-cash-negative { color: #c62828 !important; }
.motor-script-chips { display: flex; gap: 10px; min-width: 0; overflow: hidden; flex-wrap: nowrap; }
.motor-script-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #e3f4f1; color: #0b6d62; font-size: 18px; font-weight: 600; white-space: nowrap; }
.motor-script-chip b { font-weight: 800; }
.motor-script-chip__pic { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #cfe7e3; flex: none; border: 2px solid #fff; }
.motor-script-chip__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.motor-script-chip__pics { display: inline-flex; }
.motor-script-chip__pics .motor-script-chip__pic + .motor-script-chip__pic { margin-left: -12px; }
.motor-script-tabsrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.motor-script-tabs { display: flex; gap: 12px; min-width: 0; }
.motor-script-tab {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 10px; border: 2px solid #d9e2e2; border-radius: 12px;
  background: #fff; color: var(--mtr-ink, #0f1720); font-size: 18px; font-weight: 700; cursor: pointer; min-width: 0;
}
.motor-script-tab.is-active { border-color: #0e8a7c; box-shadow: 0 0 0 1px #0e8a7c; }
.motor-script-tab[data-closed="1"] { cursor: default; }
/* A deal that waits for the classmate: grey, not clickable (owner 11.11.2026). */
.motor-script-tab.is-waiting { background: #eef1f2; color: #5b6b78; cursor: default; pointer-events: none; }
.motor-script-tab.is-waiting .motor-script-tab__n { background: #8996a0; }
.motor-script-tab__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #334a55; color: #fff; font-size: 16px; font-weight: 800; flex: none; }
.motor-script-tab__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motor-script-tab__state { margin-left: 12px; font-size: 16px; font-weight: 700; color: #5b6b78; white-space: nowrap; }
.motor-script-tab.is-move .motor-script-tab__state { color: #0f1720; }
.motor-script-tab.is-done .motor-script-tab__state { color: #0e8a7c; }
@media (max-height: 740px) {
  body.motor-script-on #panel-motor-now .motor-script-cash { font-size: 26px !important; }
  body.motor-script-on #panel-motor-now .motor-script-cash b { font-size: 44px; }
  .motor-script-tab { min-height: 46px; font-size: 17px; }
}
/* The page strip's Net position: not in script mode (Live Chart and podium only). */
body.motor-script-on .msh-fact-net { display: none; }
/* What the pupil did this step, and the time's-up line: the same big scale as every Do now screen. */
#panel-motor-now .motor-script-free--done .motor-script-free__line--mid { margin: 0; }

/* Cash below zero (the scripted lesson's overdraft, owner 8.11.2026): red wherever Cash shows. */
.is-cash-negative, .is-cash-negative .msh-fact-value, .motor-sheet-fact.is-cash-negative strong { color: #c62828 !important; }

/* Owner 8.11.2026 evening, script mode (pupil pages read with a pupil's eyes):
   no locked, blurred staff card; no small grey notes or "... CAN HIRE" chips
   on the role pages; a bought item shows one state - "Bought · Undo". */
body.motor-script-on .motor-staff-card.is-locked { display: none; }
body.motor-script-on .motor-staff-sheet__heading p,
body.motor-script-on #screen-game .main-content .motor-stock-summary__lock,
body.motor-script-on #screen-game .main-content .motor-owner-chip { display: none !important; }
body.motor-script-on .motor-staff-card:has(.motor-script-bought) .motor-staff-card__status,
body.motor-script-on .motor-staff-card:has(.motor-script-bought) .btn-buy,
body.motor-script-on .motor-campaign-row:has(+ .motor-script-bought) .motor-campaign-row__badge,
body.motor-script-on .motor-capital-card:has(.motor-script-bought) .motor-capital-card__state { display: none !important; }
/* The page strip on the role pages: Cash only, as big as the Cash beside Do now. */
body.motor-script-on .msh-fact:not(:first-child),
body.motor-script-on .motor-sheet-fact:not(:first-child) { display: none !important; }
body.motor-script-on .msh-fact:first-child,
body.motor-script-on .motor-sheet-fact:first-child { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 12px; }
body.motor-script-on .msh-fact:first-child .msh-fact-label,
body.motor-script-on .msh-fact:first-child .msh-fact-value,
body.motor-script-on .motor-sheet-fact:first-child span,
body.motor-script-on .motor-sheet-fact:first-child strong {
  font-size: 30px !important; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--mtr-ink, #1d2a44);
}
@media (max-height: 740px) {
  body.motor-script-on .msh-fact:first-child .msh-fact-label,
  body.motor-script-on .msh-fact:first-child .msh-fact-value,
  body.motor-script-on .motor-sheet-fact:first-child span,
  body.motor-script-on .motor-sheet-fact:first-child strong { font-size: 26px !important; }
}
/* The sell card before Buy: the button right under the card's head. */
#panel-motor-now .motor-deal__box--buy { flex: 0 0 auto !important; min-height: 0 !important; height: auto !important; padding-top: 14px; }
#panel-motor-now .motor-deal__box--buy .motor-deal__rule { display: none; }
#panel-motor-now .motor-deal__box--buy .motor-deal__resell { margin: 0 0 12px; }
/* Pupil UX 9.11.2026: the card ends under its Buy - no empty white area
   below it; the chat beside it is as tall as the card. */
#panel-motor-now:has(.motor-deal__box--buy) #motor-now-body { height: auto; }
#panel-motor-now .motor-now-layout--chat .motor-deal:has(.motor-deal__box--buy) { height: auto; }
/* The same for a card that only waits ("Waiting for CEO…", "Use the chat while you wait."): the rows close
   together and the card ends under them (full lesson run 9.11.2026: a large empty grey area). */
body.motor-script-on #panel-motor-now .motor-deal__box--wait { flex: 0 0 auto !important; min-height: 0 !important; height: auto !important; justify-content: flex-start !important; gap: 10px; }
body.motor-script-on #panel-motor-now:has(.motor-deal__box--wait) #motor-now-body { height: auto; }
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal:has(.motor-deal__box--wait) { height: auto; }

/* The role pages in script mode (owner 8.11.2026 evening, the staff mock):
   the page's own content gives way to one grid of equal cards. */
body.motor-script-on .panel.is-script-page > :not(.motor-script-page) { display: none !important; }
body.motor-script-on #motor-sheet-facts, body.motor-script-on .msh-facts { display: none !important; }
.motor-script-page { display: grid; gap: 16px; padding: 18px 28px 28px; max-width: 1100px; margin: 0 auto; }
.motor-script-cash--page { justify-self: center; margin: 0; font-size: 24px; font-weight: 600; color: #334a55; }
.motor-script-cash--page b { font-size: 34px; font-weight: 800; color: var(--mtr-ink, #0f1720); margin-left: 6px; font-variant-numeric: tabular-nums; }
.motor-script-cash--page b.is-cash-negative { color: #c62828 !important; }
.motor-script-page__title { margin: 0; font-size: 30px; font-weight: 800; color: var(--mtr-ink, #0f1720); }
.motor-script-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-auto-rows: 1fr; }
.motor-script-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: #fff; border: 1px solid #d9e2e2; border-radius: 14px; overflow: hidden; min-height: 170px; }
.motor-script-card__pic { background: #e8eef1; }
.motor-script-card__pic img { width: 170px; height: 100%; object-fit: cover; display: block; }
.motor-script-card__text { padding: 16px 18px; display: grid; gap: 8px; grid-template-rows: auto 1fr auto; min-width: 0; }
.motor-script-card__text h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--mtr-ink, #0f1720); }
.motor-script-card__text p { margin: 0; font-size: 18px; font-weight: 600; color: #334a55; }
.motor-script-card__act { align-self: end; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.motor-script-card__buy { flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: #0e8a7c; color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.motor-script-card__buy:disabled { background: #c9d3d3; color: #5b6b6b; cursor: default; }
.motor-script-card__bought { font-size: 20px; font-weight: 800; color: #0b6d62; }
.motor-script-card__undo { min-height: 44px; padding: 0 18px; border: 2px solid #b5413a; border-radius: 10px; background: #fff; color: #b5413a; font-size: 18px; font-weight: 800; cursor: pointer; }
@media (max-height: 740px) {
  .motor-script-page { gap: 12px; padding: 12px 22px 22px; }
  .motor-script-card { grid-template-columns: 140px minmax(0, 1fr); min-height: 150px; }
  .motor-script-card__pic img { width: 140px; }
  .motor-script-card__text { padding: 12px 14px; }
  .motor-script-card__text h3 { font-size: 20px; }
  .motor-script-card__text p { font-size: 16px; }
}

/* The role's page outside the decision step (owner 8.11.2026 evening, the
   sidebar mock): greyed, a padlock in the icon slot, "Next decisions" at
   the right; it takes no click. */
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked { pointer-events: none; cursor: default; }
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a { color: var(--motor-on-navy-muted, #7d8fa4) !important; background: none !important; }
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a::after {
  content: 'Next round'; margin-left: auto; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--motor-on-navy-muted, #7d8fa4);
}
body.motor-script-on #screen-game .nav-list li.is-script-locked > a > span:first-child { position: relative; align-self: center; height: 16px; }
body.motor-script-on #screen-game .nav-list li.is-script-locked > a > span:first-child::before {
  content: '' !important; position: absolute; left: 6px; bottom: 0; width: 12px; height: 9px; background: #9fb1bc; border-radius: 2px; opacity: 1;
}
body.motor-script-on #screen-game .nav-list li.is-script-locked > a > span:first-child::after {
  content: ''; position: absolute; left: 8px; bottom: 7px; width: 8px; height: 8px; border: 2px solid #9fb1bc; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box;
}
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a { font-size: 20px !important; line-height: 24px; padding-left: 20px; padding-right: 20px; display: flex; align-items: center; gap: 14px; min-height: 52px; }
/* Round 3 has no next round: the lock only (audit 12.11.2026). */
body.motor-script-on.motor-script-last-round #screen-game > .sidebar > .nav-list > li.is-script-locked > a::after { content: none; }
/* "Capital & Loans" and "Next round" on one line inside the 303px sidebar
   (live check 9.11.2026: the name wrapped, "Next round" touched the edge). */
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a { font-size: 18px !important; gap: 10px; padding-right: 22px; white-space: nowrap; }
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a::after { font-size: 14px; padding-left: 10px; }

/* The receipt after a deal step: see "The deals receipt" at the end (owner 9.11.2026). */
#panel-motor-now .motor-script-free--done { gap: 10px; }
/* The buyer's customer (storyboard 07). */
#panel-motor-now .motor-deal__custbox { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #d9e2e2; border-radius: 12px; background: #fff; }
#panel-motor-now .motor-deal__custbox-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
#panel-motor-now .motor-deal__custbox b { display: block; font-size: 20px; font-weight: 800; color: #0f1720; }
#panel-motor-now .motor-deal__custbox span { display: block; font-size: 17px; font-weight: 600; color: #334a55; }

/* Two button colours in script mode (owner 8.11.2026 evening): teal and black, filled. */
body.motor-script-on #panel-motor-now .motor-deal__send { background: #0f1720 !important; color: #fff !important; border-color: #0f1720 !important; box-shadow: none !important; }

/* Role page head (owner 8.11.2026 evening): title left, "Budget left" right; Firm cash top-left. */
.motor-script-cash--page { justify-self: start !important; font-size: 30px !important; font-weight: 700 !important; }
.motor-script-cash--page b { font-size: 54px !important; }
.motor-script-page__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.motor-script-page__head .motor-script-money { margin: 0; font-size: 24px; font-weight: 700; color: #334a55; white-space: nowrap; }
.motor-script-page__head .motor-script-money b { font-size: 30px; font-weight: 800; color: #0f1720; }
.motor-script-page__head .motor-script-money small { font-size: 20px; font-weight: 600; color: #6b7685; }
.motor-script-card__grey { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 10px; background: #e4e9ea; color: #5b6b6b; font-size: 18px; font-weight: 700; text-align: center; padding: 0 10px; }
.motor-script-card__pic { position: relative; }
.motor-script-card__new { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: #0e8a7c; color: #fff; font-size: 16px; font-weight: 800; }
.motor-script-page__grid.is-wide { grid-template-columns: 1fr; grid-auto-rows: auto; }
.motor-script-page__grid.is-wide .motor-script-card { grid-template-columns: 280px minmax(0, 1fr); min-height: 150px; }
.motor-script-page__grid.is-wide .motor-script-card__pic img { width: 280px; }
.motor-script-page__grid.is-wide .motor-script-card__act { max-width: 420px; }

/* Owner 8.11.2026 evening (04/07 mocks, final sizes): Firm cash 24 px / 40 px
   everywhere; chips 18 px with 28 px pictures; deal tabs about 320 px each on
   one line, "Deals close in" straight after them. */
body.motor-script-on #panel-motor-now .motor-script-cash,
.motor-script-cash--page { font-size: 24px !important; font-weight: 700 !important; }
body.motor-script-on #panel-motor-now .motor-script-cash b,
.motor-script-cash--page b { font-size: 40px !important; font-weight: 800; }
.motor-script-chip { font-size: 18px; font-weight: 800; }
.motor-script-chip__pic { width: 28px; height: 28px; }
.motor-script-tabsrow { justify-content: flex-start !important; gap: 18px !important; flex-wrap: nowrap; }
.motor-script-tabs { flex: none; flex-wrap: nowrap; }
.motor-script-tab { width: 320px; flex: none; justify-content: space-between; }
.motor-script-tab__label { flex: 1; text-align: left; }
@media (max-height: 740px) {
  body.motor-script-on #panel-motor-now .motor-script-cash b, .motor-script-cash--page b { font-size: 36px !important; }
  .motor-script-tab { width: 290px; }
}
.motor-script-page__grid.is-wide .motor-script-card { height: 150px; min-height: 0; }
.motor-script-page__grid.is-wide .motor-script-card__pic img { height: 150px; }
@media (max-height: 740px) {
  .motor-script-page__grid.is-wide .motor-script-card, .motor-script-page__grid.is-wide .motor-script-card__pic img { height: 130px; }
}

/* Staff and Marketing (owner 8.11.2026 night, "too crammed" - 02b-staff-k2):
   always two big cards a row, at any count; more cards scroll the page (Firm
   cash and the title row are at its top, not sticky). Card 170 px, picture
   150 px, name 22 px, benefit 17 px, a full-width 48-px button at the same
   height in every card. */
.motor-script-page__grid:not(.is-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
.motor-script-page__grid:not(.is-wide) .motor-script-card { grid-template-columns: 150px minmax(0, 1fr); height: 170px; min-height: 0; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__pic img { width: 150px; height: 170px; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__text { padding: 14px 16px; grid-template-rows: auto 1fr 48px; gap: 6px; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__text h3 { font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__text p { font-size: 17px; line-height: 1.25; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__act { min-height: 48px; height: 48px; align-self: stretch; }
.motor-script-page__grid:not(.is-wide) .motor-script-card__buy, .motor-script-page__grid:not(.is-wide) .motor-script-card__grey { height: 48px; min-height: 48px; width: 100%; }

/* Bonus chips (owner 8.11.2026, bonukset3): picture + amount, 3 biggest, then
   a white "+£X from N more" chip with a teal border; one line. */
.motor-script-chips { flex-wrap: nowrap; overflow: hidden; align-items: center; }
.motor-script-chip { border-radius: 10px; padding: 6px 14px 6px 8px; gap: 10px; font-size: 18px; font-weight: 800; flex: none; }
.motor-script-chip__pic { width: 28px; height: 28px; border: 0; }
.motor-script-chip { box-sizing: border-box; height: 40px; }
.motor-script-chip.is-more { background: #fff; border: 2px solid #0e8a7c; color: #0b6d62; padding: 0 14px; }

/* Early step end (owner 8.11.2026): one calm line, the next step in 0:10. */
#panel-motor-now .motor-script-free__line.motor-script-free__line--early { font-size: 28px; text-align: center; margin: 14px auto 0; max-width: 760px; color: #0b6d62; }

/* Script mode sidebar (owner 8.11.2026): no "Your workspace" caption. */
body.motor-script-on #screen-game .nav-list .motor-nav-label { display: none !important; }

/* Your firm stock, read-only (owner 8.11.2026 night): one column of cars. */
.motor-script-stock .mui-warehouse-page { padding: 0; background: transparent; }
.motor-script-stock .mui-stat-card { margin-bottom: 14px; }

/* A card not open yet (owner 8.11.2026 night): blurred so the item cannot be
   read, a sharp grey "Opens in Round N" over its middle (the game's one lock
   pill, styles.css .motor-lock-pill, owner 12.11.2026). */
.motor-script-card.is-veiled { position: relative; }
.motor-script-card.is-veiled .motor-script-card__pic, .motor-script-card.is-veiled .motor-script-card__text { filter: blur(8px); user-select: none; pointer-events: none; }

/* Role pages: Firm cash on its own line; the step's clock is in the top bar (owner 9.11.2026). */
.motor-script-pagecash { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.motor-script-clock { display: none !important; }

/* Deal tabs never cut the model's name (coordinator 8.11.2026 night): each tab
   as wide as its words, at least 300 px; both tabs and "Deals close in" on one line. */
.motor-script-tab { width: auto !important; min-width: 300px; gap: 14px; }
.motor-script-tab__label { flex: none; overflow: visible; text-overflow: clip; }

/* A fund's card (owner 8.11.2026 night): its value curve where the picture goes. */
.motor-script-card__curve { width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; box-sizing: border-box; }
.motor-script-card__curve svg { width: 100%; height: 100%; display: block; }
.motor-script-card__act .motor-script-card__buy + .motor-script-card__buy { margin-left: 0; }
.motor-script-buy__pic svg { width: 100%; height: 100%; display: block; background: #fff; }

/* Fund stepper (owner 8.11.2026 night): black-outline − and +, the amount big. */
.motor-script-step { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.motor-script-step__btn { width: 48px; height: 48px; border: 2px solid #0f1720; border-radius: 10px; background: #fff; color: #0f1720; font-size: 26px; font-weight: 800; cursor: pointer; }
.motor-script-step__btn:disabled { opacity: 0.35; cursor: default; }
.motor-script-step__val { display: grid; text-align: center; min-width: 96px; font-size: 22px; font-weight: 800; color: #0f1720; line-height: 1.1; }
.motor-script-page__grid.is-wide .motor-script-card.is-fund .motor-script-card__act { max-width: none; }
.motor-script-card.is-fund .motor-script-card__buy { white-space: nowrap; padding: 0 22px; }
.motor-script-step__val { min-width: 110px; }
/* "£14,000 each" on one line at 1280x720 (bs-symmetria: a figure and its unit never part). */
.motor-script-stock .mui-detail-value { white-space: nowrap; }
@media (max-width: 1300px) { .motor-script-stock .motor-ui .mui-detail-value { font-size: 24px; } }
/* Sabotage (CEO, R2+): the rival firms as chips over the action cards; the chosen one teal-bordered. */
.motor-script-targets { display: flex; flex-wrap: wrap; gap: 12px; }
.motor-script-target { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border: 2px solid #d9e2e2; border-radius: 12px; background: #fff; color: #0f1720; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.motor-script-target .motor-firm-mark { --firm-mark-size: 32px; border-radius: 9px; font-size: 13px; }
.motor-script-target.is-on { border-color: #0f8f86; box-shadow: 0 0 0 1px #0f8f86 inset; }
/* The script deal card fits 1366x768 and 1280x720 with its main button in
   view (owner 8.11.2026 night): the car picture ~110 px, the customer box
   one line, the offer box and Send on one row, tighter rows. */
body.motor-script-on #panel-motor-now .motor-deal__top .motor-deal__photo { flex: 0 0 130px; width: 130px; height: 96px; }
body.motor-script-on #panel-motor-now .motor-deal__custbox { padding: 6px 12px; margin: 0 0 8px; gap: 12px; }
body.motor-script-on #panel-motor-now .motor-deal__custbox-face { width: 40px; height: 40px; }
body.motor-script-on #panel-motor-now .motor-deal__custbox > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
body.motor-script-on #panel-motor-now .motor-deal__custbox b, body.motor-script-on #panel-motor-now .motor-deal__custbox span { display: inline; white-space: nowrap; }
body.motor-script-on #panel-motor-now .motor-deal__price-box { display: flex; align-items: center; gap: 12px; }
body.motor-script-on #panel-motor-now .motor-deal__price-box > .motor-deal__offer-row { flex: 1 1 auto; min-width: 0; }
body.motor-script-on #panel-motor-now .motor-deal__price-box > .motor-deal__send-row { flex: 0 0 auto; margin: 0; padding: 0; }
body.motor-script-on #panel-motor-now .motor-deal__price-box .motor-deal__send { width: auto; min-width: 104px; margin: 0; }
body.motor-script-on #panel-motor-now .motor-deal__box--sum .motor-deal__rule { margin: 6px 0; }

/* Seasonal stock (owner 8.11.2026, release 2; mocks 24-26, 29): three cards
   side by side, the picture on top whole (contain), three rows in a grey
   box, a stepper and one full-width action at the same height in each. */
.motor-script-seasonal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.motor-script-scard { position: relative; background: #fff; border: 1px solid #d9e2e2; border-radius: 14px; overflow: hidden; }
.motor-script-scard__body { display: grid; grid-template-rows: 150px auto auto 1fr; height: 100%; }
.motor-script-scard__pic { background: #fff; border-bottom: 1px solid #e3e9ea; display: grid; place-items: center; padding: 6px; overflow: hidden; }
.motor-script-scard__pic img { width: 100%; height: 138px; object-fit: contain; display: block; }
.motor-script-scard h3 { margin: 12px 14px 8px; font-size: 22px; font-weight: 800; color: #0f1720; }
.motor-script-scard__rows { margin: 0 14px; background: #f2f5f6; border-radius: 10px; padding: 2px 12px; }
.motor-script-scard__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid #dde4e6; font-size: 16px; font-weight: 600; color: #1d2a33; }
.motor-script-scard__rows > div:last-child { border-bottom: 0; }
.motor-script-scard__rows span { white-space: nowrap; }
.motor-script-scard__rows b { font-size: 21px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.motor-script-scard__act { display: grid; gap: 10px; align-content: end; padding: 14px; box-sizing: border-box; }
.motor-script-scard__act .motor-script-card__buy, .motor-script-scard__act .motor-script-card__grey { width: 100%; height: 48px; min-height: 48px; box-sizing: border-box; }
.motor-script-scard__step { display: flex; align-items: center; justify-content: space-between; }
.motor-script-scard__qty { display: grid; text-align: center; line-height: 1.05; }
.motor-script-scard__qty b { font-size: 30px; font-weight: 800; color: #0f1720; }
.motor-script-scard__qty small { font-size: 16px; font-weight: 600; color: #4c5b66; }
.motor-script-scard__done { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.motor-script-scard.is-veiled .motor-script-scard__body { filter: blur(8px); user-select: none; pointer-events: none; }
@media (max-height: 740px) {
  .motor-script-scard__body { grid-template-rows: 130px auto auto 1fr; }
  .motor-script-scard__pic img { height: 118px; }
  .motor-script-scard h3 { margin: 10px 14px 6px; font-size: 20px; }
  .motor-script-scard__rows > div { padding: 6px 0; }
  .motor-script-scard__rows > div { font-size: 15px; }
  .motor-script-scard__rows b { font-size: 18px; }
  .motor-script-scard__act { padding: 12px 14px; }
}
/* "Seasonal stock" is the longest locked row: its name stays on one line. */
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a > span:last-child { white-space: nowrap; }
body.motor-script-on #screen-game > .sidebar > .nav-list > li.is-script-locked > a { gap: 12px; }
/* 1280 px wide (owner checks 1280x720): the longest names ("Commercial Sales
   Manager", "Motoring magazine feature") on one line, not cut; "Bought 2 ·
   £8,000" on one line in a seasonal card. */
@media (max-width: 1300px) {
  .motor-script-page__grid:not(.is-wide) .motor-script-card__text h3 { font-size: 19px; }
  .motor-script-scard__done .motor-script-card__bought { font-size: 18px; }
}
.motor-script-scard__done .motor-script-card__bought { white-space: nowrap; }

/* The step's one clock: the top bar on every pupil screen (owner 9.11.2026).
   Calm plain text - no pill, no badge, no dark background; "Round 1 ·
   Decisions lock in 2:37"; label and time red only in the last 30 s. */
body.motor-script-on .phase-timer-banner {
  padding: 10px 24px !important;
  font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 22px !important; font-weight: 600 !important; line-height: 32px !important; letter-spacing: 0 !important;
  color: #0f1720 !important; background: #fff !important; border-bottom: 1px solid #e3e8ee !important;
  backdrop-filter: none !important; animation: none !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The clock stays at the top while a long page scrolls (live check
   9.11.2026: it scrolled away on Investments, Marketing and Staff). The
   content column was a scroll container that never scrolls (the page does),
   so the sticky bar stuck to it; clip keeps the no-sideways-scroll promise
   (motor-clarity.css) without making the column a scroll container. */
body.motor-script-on.motor-theme #screen-game > .main-content { overflow-x: clip; overflow-y: visible; }
body.motor-script-on .phase-timer-banner__time { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
body.motor-script-on .phase-timer-banner.is-late { color: #c62828 !important; }

/* The deals receipt (owner 9.11.2026, the approved mock): two equal deal
   cards, one Bonuses row, the Seasonal sales, "Next: Topic task 2:05" on
   one line. Fits 1280x720 and 1366x768 without scrolling. */
#panel-motor-now .motor-script-wide .motor-script-rx { min-height: 0; justify-content: flex-start; gap: 10px; text-align: left; }
#panel-motor-now .motor-script-rx > * { width: 100%; max-width: 960px; box-sizing: border-box; }
#panel-motor-now .motor-script-rx__cards { display: grid; grid-template-columns: minmax(0, 480px); justify-content: center; gap: 16px; }
#panel-motor-now .motor-script-rx__cards.is-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#panel-motor-now .motor-script-rx__card { background: #fff; border: 1px solid #d9e2e2; border-radius: 14px; padding: 10px 16px; box-sizing: border-box; min-width: 0; }
#panel-motor-now .motor-script-rx__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; min-width: 0; }
#panel-motor-now .motor-script-rx__head img { width: 72px; height: 46px; object-fit: contain; flex: none; }
#panel-motor-now .motor-script-rx__head > div { min-width: 0; }
#panel-motor-now .motor-script-rx__head b { display: block; font-size: 20px; font-weight: 800; color: #0f1720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Who the deal was with wraps at the card's normal size, never cut ("from SALES, Ironside Machinery Western Aven…",
   full scripted lesson 9.11.2026; was 15px grey on one line with an ellipsis). */
#panel-motor-now .motor-script-rx__head span { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; color: #334a55; }
#panel-motor-now .motor-script-rx__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; font-size: 18px; font-weight: 600; color: #334a55; white-space: nowrap; }
#panel-motor-now .motor-script-rx__row b { font-size: 22px; font-weight: 800; color: #0f1720; font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-rx__row.is-profit { border-top: 2px solid #0f1720; margin-top: 4px; padding-top: 6px; }
#panel-motor-now .motor-script-rx__row.is-profit b { font-size: 24px; color: #0b7a4b; }
#panel-motor-now .motor-script-rx__row.is-profit em { font-style: normal; font-size: 16px; font-weight: 700; color: #0b7a4b; margin-right: 6px; }
#panel-motor-now .motor-script-rx__row.is-profit.is-loss b, #panel-motor-now .motor-script-rx__row.is-profit.is-loss em { color: #c62828; }
#panel-motor-now .motor-script-rx__bonuses { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; background: #fff; border: 1px solid #d9e2e2; border-radius: 14px; padding: 8px 16px; }
#panel-motor-now .motor-script-rx__bl { font-size: 18px; font-weight: 700; color: #334a55; margin-right: 4px; flex: none; }
#panel-motor-now .motor-script-rx__chip { display: inline-flex; align-items: center; gap: 6px; background: #e7f4ef; border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 15px; font-weight: 700; color: #0b7a4b; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#panel-motor-now .motor-script-rx__chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
#panel-motor-now .motor-script-rx__chip.is-more { background: #eef3f4; color: #334a55; padding-left: 10px; flex: none; }
#panel-motor-now .motor-script-rx__bonuses > b { margin-left: auto; flex: none; font-size: 24px; font-weight: 800; color: #0b7a4b; font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-rx__next { margin: 2px 0 0; display: flex; justify-content: center; align-items: baseline; gap: 14px; font-size: 22px; font-weight: 700; color: #3c4a66; }
#panel-motor-now .motor-script-rx__next .motor-script-free__clock { font-size: 54px; font-weight: 800; color: #1e2a44; }
#panel-motor-now .motor-script-rx > .motor-script-free__line--early { font-size: 26px; text-align: center; }

/* The round's seasonal sales on the deals receipt (owner 9.11.2026): one
   white row per product held - picture, name, customer dots and words, the
   amount on the right edge. One line each at 1280x720. */
#panel-motor-now .motor-script-seasonal-sales { display: grid; gap: 8px; }
#panel-motor-now .motor-script-seasonal-sales__head { margin: 2px 0 0; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #334a55; }
#panel-motor-now .motor-script-seasonal-sale { text-align: left; display: grid; grid-template-columns: 72px 200px minmax(0, 1fr) auto; align-items: center; column-gap: 16px; background: #fff; border: 1px solid #d9e2e2; border-radius: 14px; padding: 6px 16px; box-sizing: border-box; }
#panel-motor-now .motor-script-seasonal-sale img { width: 72px; height: 46px; object-fit: contain; display: block; }
#panel-motor-now .motor-script-seasonal-sale__name { font-size: 20px; font-weight: 800; color: #0f1720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#panel-motor-now .motor-script-seasonal-sale__who { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: #334a55; white-space: nowrap; }
#panel-motor-now .motor-script-seasonal-sale__dots { display: inline-flex; gap: 6px; margin-right: 6px; }
#panel-motor-now .motor-script-seasonal-sale__dots i { width: 22px; height: 22px; border-radius: 50%; background: #0e8a7c; display: block; }
#panel-motor-now .motor-script-seasonal-sale__dots i.is-none { background: #d5dde0; }
#panel-motor-now .motor-script-seasonal-sale__amt { text-align: right; font-size: 24px; font-weight: 800; color: #0b7a4b; white-space: nowrap; font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-script-seasonal-sale__amt.is-zero { color: #8a979e; }
/* The final questions (owner 9.11.2026, live check): one heading - the top
   bar's "Final questions" - so the page's own "Questions" hero goes (sizes:
   the block at the end of this file; the stakes line in ink: styles.css). */
body.motor-script-on #panel-motor-questions .motor-questions-hero { display: none; }

/* The podium at the end of a scripted lesson (teacher run 9.11.2026: at
   1366x768 the "2 Second / 1 First" blocks ran under the screen's edge and
   looked cut). The podium carries its own title, so the card's "Firm Net
   position" goes; the title follows the screen's height and every place
   block is a whole rounded box. The whole podium is on screen at 1366x768
   and 1280x720 without scrolling, with the last task's strip above it. */
#teacher-motor-dashboard.is-script-ended .teacher-motor-card--chart > .teacher-motor-card__head { display: none; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-card--chart { padding: 12px 18px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final { padding: 16px clamp(18px, 4vw, 56px) 20px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__head { margin-bottom: 14px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__head h2 { font-size: clamp(28px, 5.4vh, 46px); }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__rank { border-radius: 12px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__who { padding: 12px 14px; gap: 4px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__firm .motor-firm-mark-line { gap: 6px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__firm .motor-firm-mark { --firm-mark-size: clamp(36px, 6vh, 60px); }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__rank { padding-top: 10px; }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__row--1 .motor-teacher-final__rank { height: clamp(98px, 14vh, 130px); }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__row--2 .motor-teacher-final__rank { height: clamp(86px, 12vh, 112px); }
#teacher-motor-dashboard.is-script-ended .motor-teacher-final__board--podium .motor-teacher-final__row--3 .motor-teacher-final__rank { height: clamp(76px, 10vh, 96px); }

/* The end writing task on Do now (owner 9.11.2026, option A): the question,
   one box, Send - big, nothing small. */
#panel-motor-now .motor-script-wide .motor-script-free--write { min-height: 0; gap: 16px; padding: 12px 0 16px; }
#panel-motor-now .motor-script-write__prompt { margin: 0; max-width: 860px; font-size: 30px; line-height: 1.25; font-weight: 800; color: var(--mtr-ink, #1d2a44); }
#panel-motor-now .motor-script-write__input {
  width: 100%; max-width: 760px; box-sizing: border-box; font: inherit; font-size: 24px; line-height: 1.35;
  padding: 12px 16px; border: 2px solid var(--mtr-line, #c9d1d8); border-radius: 12px; resize: none;
}
#panel-motor-now .motor-script-write__input:focus { outline: 3px solid #00838f; outline-offset: 1px; }
#panel-motor-now .motor-script-free--write .motor-script-card__btn { width: auto; min-width: 240px; align-self: center; }
#panel-motor-now .motor-script-free--write .motor-script-card__error { margin: 0; }
@media (max-height: 740px) {
  #panel-motor-now .motor-script-write__prompt { font-size: 26px; }
  #panel-motor-now .motor-script-write__input { font-size: 22px; }
}

/* The final questions as big as the topic task card (full scripted lesson 9.11.2026: a 15 px question and 18 px
   options on a wide page, "Question 1 of 6" in 11 px grey): the question 24 px, the options 19 px, the count
   at normal size. */
body.motor-script-on #panel-motor-questions .motor-question-card__meta { font-size: 18px; font-weight: 600; color: #334a55; }
body.motor-script-on #panel-motor-questions .motor-question-card__question { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
body.motor-script-on #panel-motor-questions .motor-question-options { gap: 8px; }
body.motor-script-on #panel-motor-questions .motor-question-option { font-size: 19px; padding: 7px 16px; grid-template-columns: 32px 1fr; }
body.motor-script-on #panel-motor-questions .motor-question-option__key { font-size: 17px; width: 30px; height: 30px; }
/* "Next question" is a main button like Do now's (package 14.11.2026): the same size as .motor-script-card__btn. */
body.motor-script-on #panel-motor-questions .motor-question-next { font-size: 22px; padding: 12px 40px; border-radius: 10px; }

/* The pupil's final standings (full scripted lesson 9.11.2026: a small heading and four lines of small grey
   notes): the heading big, no Net position note, no feedback heading, no privacy or "may be incomplete" lines;
   the one grade line stays, once, at normal size. */
body.motor-script-on .session-ended-modal--motor .session-ended-modal__title { font-size: 30px; }
body.motor-script-on .session-ended-modal--motor #session-ended-text.is-script-quiet,
body.motor-script-on .session-ended-modal--motor #motor-student-report-title,
body.motor-script-on .session-ended-modal--motor #motor-student-report-privacy,
body.motor-script-on .session-ended-modal--motor #motor-student-report-incomplete { display: none; }
body.motor-script-on .session-ended-modal--motor #motor-student-report-disclaimer { font-size: 17px; color: #334a55; margin-bottom: 10px; }
body.motor-script-on .session-ended-modal--motor .motor-student-report-panel__note { font-size: 17px; color: #334a55; }
/* The teacher's "Lesson ended": one line at normal size that the class analysis arrived (was five lines in 12 px). */
.motor-session-report-notice--short { border: 1px solid rgba(0, 168, 120, .45); background: rgba(0, 168, 120, .08); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; font-size: 18px; font-weight: 600; color: #17242d; }

/* ── Deal card polish (owner 13.11.2026 walkthrough, Round 2 deal step) ──
   The scripted card is as tall as what it holds, in every state: it no
   longer jumps from two thirds of the screen to full height after Buy, and
   the grey sum box never stretches into an empty grey block. The chat
   beside it is exactly as tall as the card (it adds no height of its own:
   contain: size) and scrolls its own list. A card taller than the screen
   scrolls inside itself, never the page. */
body.motor-script-on #panel-motor-now:has(.motor-now-layout--chat .motor-deal) #motor-now-body { height: auto; }
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal { height: auto; }
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__main {
  align-self: start; max-height: calc(100vh - var(--motor-deal-top, 200px) - 12px); overflow: auto;
}
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__talk { align-self: stretch; height: auto; min-height: 0; contain: size; }
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__main .motor-deal__box--sum {
  flex: 0 0 auto !important; min-height: 0 !important; height: auto !important; justify-content: flex-start !important; gap: 2px;
}
/* "Your last price" / "Leo asks" read on the same grey as the rows around
   them (the white inner box is gone; its 13 px stays, so every figure keeps
   the one right edge). */
body.motor-script-on #panel-motor-now .motor-deal__offers-box { background: transparent; border-color: transparent; }
/* "Waiting for Chloe…" is not a figure: its own line, under the figures. */
#panel-motor-now .motor-deal__wait-line { margin: 4px 0 2px; font-size: 22px; font-weight: 800; color: #0a8a8a; text-align: left; }
/* The sold moment: the deal's result, large, where the sum was (2.5 s). */
#panel-motor-now .motor-deal__box--sold { display: flex !important; align-items: center; justify-content: center; min-height: 140px; padding: 24px 18px !important; background: #e3f4f1 !important; }
#panel-motor-now .motor-deal__box--sold.is-loss { background: #fdecea !important; }
#panel-motor-now .motor-deal__sold { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.1; color: #0b6d62; text-align: center; font-variant-numeric: tabular-nums; }
#panel-motor-now .motor-deal__box--sold.is-loss .motor-deal__sold { color: #c62828; }
#panel-motor-now .motor-deal__box--sold { animation: motor-deal-sold-in 0.28s ease-out; }
@keyframes motor-deal-sold-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
body.xs-calm #panel-motor-now .motor-deal__box--sold { animation: none; }
@media (prefers-reduced-motion: reduce) { #panel-motor-now .motor-deal__box--sold { animation: none; } }
@media (max-height: 740px) { #panel-motor-now .motor-deal__sold { font-size: 38px; } #panel-motor-now .motor-deal__box--sold { min-height: 110px; } }
/* New lines in the OTHER deal's chat: a count on its tab. */
.motor-script-tab { position: relative; }
.motor-script-tab__unread {
  position: absolute; top: -10px; right: -10px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box;
  border-radius: 13px; border: 2px solid #fff; background: #d0342c; color: #fff; font-size: 16px; font-weight: 800; line-height: 1;
}
.motor-script-tab.is-waiting .motor-script-tab__unread { background: #d0342c; color: #fff; }
/* The pictures hold their place while they load: a calm grey frame of the
   picture's own size, never a blank box that pops. */
body.motor-script-on #panel-motor-now .motor-deal__top .motor-deal__photo { background: #eef2f3; }
body.motor-script-on #panel-motor-now .motor-deal__custbox-face { background: #e3e9ea; }
/* The price box on the figures' column (owner 13.11.2026, bs-symmetria):
   its right edge is the figures' right edge and its £ stands where theirs
   do (same size, weight, colour); Send waits just left of it, so the card
   stays one row tall and Buy / Sell stays in view at 1280x720. */
body.motor-script-on #panel-motor-now .motor-deal__box--sum .motor-deal__price-box > .motor-deal__offer-row { display: contents; }
body.motor-script-on #panel-motor-now .motor-deal__box--sum .motor-deal__price-box .motor-deal__check-label { order: 1; flex: 1 1 auto; min-width: 0; }
body.motor-script-on #panel-motor-now .motor-deal__box--sum .motor-deal__price-box > .motor-deal__send-row { order: 2; }
body.motor-script-on #panel-motor-now .motor-deal__box--sum .motor-deal__price-box .motor-deal__money { order: 3; }
/* The receipt's two deal cards share their rows (subgrid): equal heights,
   the money rows level even when a firm name takes two lines. */
@supports (grid-template-rows: subgrid) {
  #panel-motor-now .motor-script-rx__cards.is-two { grid-template-rows: repeat(var(--rx-rows, 4), auto); row-gap: 0; }
  #panel-motor-now .motor-script-rx__cards.is-two > .motor-script-rx__card { display: grid; grid-row: span var(--rx-rows, 4); grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  #panel-motor-now .motor-script-rx__cards.is-two .motor-script-rx__head { align-self: start; }
}
/* The grouped figure ("10,400") fits the box whole: it starts 4 px after
   the £ and runs to the box's edge, a hair tighter than the sums above. */
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__offer-input[data-group-digits="1"] { padding-left: 47px; padding-right: 0; letter-spacing: -0.04em; }
body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__offer-input[data-group-digits="1"]:placeholder-shown { letter-spacing: normal; }
@media (max-height: 740px) {
  body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__offer-input[data-group-digits="1"] { padding-left: 37px; }
  body.motor-script-on #panel-motor-now .motor-now-layout--chat .motor-deal__offer-input[data-group-digits="1"]:placeholder-shown { font-size: 21px; }
}

/* Final questions, after an answer (owner 13.11.2026 full-lesson check: the
   wrong pick showed the blue of a plain selection): the right answer green
   with ✓, a wrong pick red with ✗; the feedback and its money line at the
   page's normal size. The selection's blue inset ring never stays on. */
#panel-motor-questions .motor-question-option.is-correct,
#panel-motor-questions .motor-question-option.is-correct.is-selected { border-color: #0b7a4b; background: #e7f4ef; box-shadow: 0 0 0 1px #0b7a4b inset; }
#panel-motor-questions .motor-question-option.is-wrong,
#panel-motor-questions .motor-question-option.is-wrong.is-selected { border-color: #c62828; background: #fdecea; box-shadow: 0 0 0 1px #c62828 inset; }
body.motor-script-on #panel-motor-questions .motor-question-option:has(.motor-question-option__mark), #panel-motor-questions .motor-question-option:has(.motor-question-option__mark) { grid-template-columns: 32px 1fr auto; }
#panel-motor-questions .motor-question-option__mark { font-size: 24px; font-weight: 800; line-height: 1; }
#panel-motor-questions .motor-question-option.is-correct .motor-question-option__mark { color: #0b7a4b; }
#panel-motor-questions .motor-question-option.is-wrong .motor-question-option__mark { color: #c62828; }
body.motor-script-on #panel-motor-questions .motor-question-feedback { font-size: 18px; line-height: 1.45; }
#panel-motor-questions .motor-question-cash { font-size: 18px; font-weight: 800; }

/* Live Chart during the final questions (owner 13.11.2026): no firm order
   before the podium - one calm, large line in the chart's place. */
.motor-live-hold { display: grid; place-items: center; min-height: 320px; padding: 32px 24px; box-sizing: border-box; }
#panel-leaderboard #lb-city > .motor-live-hold, #teacher-motor-dashboard #t-motor-live-chart > .motor-live-hold { background: #fff !important; border: 0 !important; }
#panel-leaderboard.is-standings-held #lb-city { background: #fff !important; }
#panel-leaderboard.is-standings-held .lb-table,
#panel-leaderboard.is-standings-held [data-i18n="game.leaderboard.individualRankings"] { display: none !important; }
.motor-live-hold p { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.2; color: var(--mtr-ink, #1d2a44); text-align: center; }

/* SPEC CHANGE (owner 15.11.2026: one teacher view for every class size, as
   styles/solo-guided.css): the step, its plain line and its clock in a box
   on the left; the lesson's time big in its own box on the right; under
   them the round's own bar with its steps and "Firms done", the buttons
   beside it. No PIN and no head count while the lesson runs. Was: one
   stack in the middle (step, clock, "Then", "Lesson ends"). */
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now lesson" "round end";
  align-items: stretch; gap: 8px 12px; padding: 10px 14px;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__lesson { display: none; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock {
  grid-area: now; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title time" "tip time";
  align-items: center; column-gap: 18px; row-gap: 2px; width: auto; min-width: 0; text-align: left;
  padding: 8px 18px; border: 1px solid #00838f; border-radius: 12px; background: #fff; box-shadow: inset 5px 0 0 #00838f;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { grid-area: title; align-self: end; font-size: 30px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock strong { grid-area: time; font-size: 56px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock span {
  grid-area: tip; align-self: start; margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; color: #475467; white-space: normal;
}
#teacher-motor-dashboard.is-script-head.is-paused .teacher-motor-clock span { font-size: 20px; font-weight: 800; color: #b54708; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends {
  grid-area: lesson; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 300px;
  padding: 8px 18px; border: 1px solid #e3e8ee; border-radius: 12px; background: #fff; font-style: normal; white-space: nowrap;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends[hidden] { display: none; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #667085; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 56px; line-height: 1; font-weight: 800; color: #1f2738; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* (in the final questions the lesson box is away and the step box keeps its place: nothing moves between steps) */
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round {
  grid-area: round; display: flex; align-items: center; gap: 14px; min-width: 0; overflow: hidden; padding: 8px 14px; border-radius: 12px; background: #f2f6f8;
}
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round[hidden] { display: none; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round > b { flex: none; font-size: 18px; font-weight: 800; color: #1f2738; white-space: nowrap; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round .ts-steps { min-width: 0; flex: 0 1 auto; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round .ts-steps li { font-size: 17px; padding: 6px 10px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round .ts-steps li + li { margin-left: 16px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round .ts-steps li + li::before { left: -14px; width: 12px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round .teacher-motor-script-done { flex: none; margin: 0 0 0 auto; font-size: 18px; white-space: nowrap; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end { grid-area: end; align-self: center; justify-self: end; flex-wrap: nowrap; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-actions { flex-wrap: nowrap; }
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 48px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { font-size: 28px; }
}
.ts-steps { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.ts-steps li { display: flex; align-items: center; position: relative; font-weight: 700; line-height: 1; color: #5b6b78; border-radius: 999px; white-space: nowrap; }
.ts-steps li + li::before { content: ''; position: absolute; top: 50%; height: 2px; background: #cfd8de; }
.ts-steps li.is-done { color: #0e8a7c; }
.ts-steps li.is-done::after { content: '✓'; margin-left: 6px; font-weight: 800; }
.ts-steps li.is-now { background: #00838f; color: #fff; font-weight: 800; }
/* a 720 px screen: the same header, lower, so the chart and every firm's row still end on the screen */
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-live-head { padding: 6px 12px; gap: 6px 12px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock { padding: 4px 16px; row-gap: 0; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 44px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { font-size: 26px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock span { font-size: 17px; line-height: 1.2; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { padding: 4px 16px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span { font-size: 14px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { padding: 4px 12px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-button { padding: 7px 12px; }
}
/* the step box is as tall as the lesson box, so the header is the same height in the final questions too */
#teacher-motor-dashboard.is-script-head .teacher-motor-clock { box-sizing: border-box; height: 96px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { box-sizing: border-box; height: 96px; }
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { height: 76px; }
}
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round { box-sizing: border-box; height: 46px; }
@media (max-height: 740px) { #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 40px; } }
/* the lesson's end: one calm row - "Lesson ended" in the middle, Class report and Logout on the right - so the whole podium stays on the screen */
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". now end"; padding: 6px 14px; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock { display: block; height: auto; min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; text-align: center; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-ended .teacher-motor-clock span { display: none; }
/* a little lower on every screen, so the tallest task's four firm rows end on a 768 px screen (motor-script-teacher-live-task) */
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head { padding: 8px 14px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { height: 84px; padding-top: 4px; padding-bottom: 4px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 52px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { font-size: 28px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 42px; }
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-live-head { padding: 6px 12px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { height: 72px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 44px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock h2 { font-size: 26px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 38px; }
}
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock { height: auto; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock h2 { font-size: 30px; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head { padding: 6px 14px; }
@media (min-height: 741px) and (max-height: 800px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-live-head { gap: 6px 12px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { height: 78px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock strong, #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends strong { font-size: 50px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 40px; }
}
/* SPEC CHANGE (owner 15.11.2026: "liikaa tyhjää"): the step box and the lesson box are as wide as they need, side
   by side on the left; the buttons stand on the right of the same row; the round's bar runs under them, full width. */
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "now lesson . end" "round round round round"; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock { width: 570px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { min-width: 0; padding-left: 22px; padding-right: 22px; }
@media (max-width: 1330px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-clock { width: 530px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { padding-left: 16px; padding-right: 16px; }
}
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". now end"; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-clock { width: auto; }
#teacher-motor-dashboard.is-script-head .teacher-motor-clock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* (owner 15.11.2026, his pick "A") two boxes of one shape side by side, the step and the lesson; under them one grey row: the round's steps left, the buttons right */
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "now lesson" "round round"; position: relative; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head:has(.teacher-motor-script-ends[hidden]) { grid-template-areas: "now now" "round round"; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head .teacher-motor-clock { width: auto; justify-self: stretch; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends { justify-self: stretch; align-self: stretch; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 18px; padding: 8px 18px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends[hidden] { display: none; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span { display: block; text-transform: none; letter-spacing: 0; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span b { display: block; font-size: 27px; line-height: 1.1; font-weight: 800; color: #1f2738; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span i { display: block; font-style: normal; font-size: 19px; line-height: 1.25; font-weight: 600; color: #475467; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-ends span i::first-letter { text-transform: uppercase; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end { grid-area: round; justify-self: end; align-self: center; margin-right: 8px; position: relative; z-index: 1; }
#teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 48px; padding-right: 440px; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end .teacher-motor-button, #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end button { min-height: 0; height: 38px; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". now end"; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head .teacher-motor-live-head__end { grid-area: end; margin-right: 0; }
#teacher-motor-dashboard.is-script-ended .teacher-motor-live-head .teacher-motor-clock { justify-self: center; }
@media (max-height: 800px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 42px; padding-top: 4px; padding-bottom: 4px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end .teacher-motor-button, #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end button { height: 34px; }
}
@media (max-height: 740px) {
  #teacher-motor-dashboard.is-script-head .teacher-motor-script-round { height: 38px; padding-top: 2px; padding-bottom: 2px; }
  #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end .teacher-motor-button, #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end button { height: 32px; }
}
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end .teacher-motor-button, #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end button { padding-top: 0; padding-bottom: 0; line-height: 1; box-sizing: border-box; }
#teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end .teacher-motor-button:not([hidden]), #teacher-motor-dashboard.is-script-head .teacher-motor-live-head__end button:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; }
/* The setup card's link to the lesson's own teacher guide (owner 15.11.2026): under "Open teacher guide", the same quiet link. */
.sf-setup a.sf-lesson-guide-link { display: block; margin-top: 8px; }
/* Why no lesson PDF and no year plan (owner 20.11.2026): the same quiet text, not a link. */
.sf-setup p.sf-board-hint { display: block; margin-top: 8px; text-decoration: none; cursor: default; }
/* What is new, above the three choices of the front page (owner 16.11.2026: small and professional, not a big button). */
.login-news { max-width: 760px; margin: -6px auto 14px; text-align: center; }
.login-news__line { display: inline-flex; align-items: center; gap: 7px; padding: 2px 4px; border: 0; background: none; color: #e2e8f0; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.login-news__line:hover, .login-news__line:focus-visible { color: #fff; }
.login-news__line b { padding: 1px 6px; border: 1px solid rgba(110,231,210,.7); border-radius: 4px; background: none; color: #6ee7d2; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-news__i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.login-news__more { margin: 8px auto 0; padding: 12px 18px 12px 34px; max-width: 520px; border-radius: 10px; background: #fff; color: #1f2738; text-align: left; font-size: 15px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.login-news__more[hidden] { display: none; }
.login-news__more li + li { margin-top: 3px; }
/* What is new, for the teacher (owner 22.11.2026): one quiet line at the top right of "Set up the lesson", on the Back
   row, so it adds no height and Create stays where it is. The words are as large as Back; × dismisses it (app.js SF_WHATS_NEW). */
.sf-setup .sf-whatsnew { float: right; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; max-width: 100%; margin: 0; font-size: 16px; line-height: 1.3; color: var(--text2, #4b5b6b); }
.sf-setup .sf-whatsnew[hidden] { display: none; }
.sf-whatsnew__tag { padding: 1px 6px; border: 1px solid #0a6b73; border-radius: 4px; color: #0a6b73; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-setup .sf-whatsnew a { color: #0a6b73; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-whatsnew__close { width: 28px; height: 28px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.sf-whatsnew__close:hover, .sf-whatsnew__close:focus-visible { background: #e8edf2; color: #0e2038; }
@media (max-width: 900px) { .sf-setup .sf-whatsnew { float: none; position: relative; justify-content: flex-start; margin-bottom: 10px; padding-right: 34px; } .sf-whatsnew__close { position: absolute; top: 0; right: 0; margin: -3px 0 0; } }
