/* The Board look (v33, design/v33-board.md). Loaded on every page after style.css. It is the only
   look since v36 (Ara, 2026-12-01: "everyone gets it and Classic is removed"): look.js sets
   html[data-look="board"] on every page, always. style.css is still the layer underneath (the
   layouts and components this file restyles), so the rules here keep hanging off the attribute;
   folding the two files into one is cleanup with nothing to see, not done yet.

   What the look is (Ara, 2026-11-30): design C's layout, colour coding and plain controls, in design B's
   paper, ink and serif. Nothing book-shaped. Two skins of one design: paper by day, black at night.
   Colour means something in both: green is book, red is a miss, amber is the move to play. */

html:not([data-look="board"]) .nh-only { display: none !important; }
/* The Skin row in Settings: two short words, never wrapped. */
.st-look .seg-b { white-space: nowrap; }

/* ---------- 1. Tokens ---------- */
html[data-look="board"] {
  --r: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
html[data-look="board"][data-skin="paper"] {
  --bg: #F4EFE6; --card: #FBF8F2; --hair: #D9D0C1; --text: #1B1A17; --muted: #7A7267;
  --ok: #1F7F4C; --bad: #D4472A; --brass: #A9690A; --seen: #B4AA99; --weak: #E39B86; --problem: #B5371F;
  --ink: #1B1A17; --soft: #3D3A34; --faint: #A39A8C; --rise: #ECE5D8; --btn: #1B1A17; --btn-t: #FBF8F2;
  --sq-l: #FBF7EE; --sq-d: #D3C8B2; --frame: #1B1A17; --scrim: rgba(27, 26, 23, 0.5);
}
html[data-look="board"][data-skin="night"] {
  --bg: #000000; --card: #121214; --hair: #2B2B2F; --text: #FFFFFF; --muted: #9B9BA1;
  --ok: #35C46F; --bad: #FF5B3D; --brass: #FFC93C; --seen: #4A5866; --weak: #D97B66; --problem: #A8322A;
  --ink: #FFFFFF; --soft: #D2D2D7; --faint: #68686E; --rise: #1D1D20; --btn: #FFFFFF; --btn-t: #000000;
  --sq-l: #DDE2E7; --sq-d: #8593A3; --frame: transparent; --scrim: rgba(0, 0, 0, 0.72);
}
/* Builds before 69 paint the clock white whatever the page is, so on paper the strip behind it stays
   ink. From build 69 the shell sets the status bar by skin and look.js leaves data-shell off. */
html[data-look="board"][data-skin="paper"][data-shell="1"] body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px);
  background: #1B1A17; z-index: 200; pointer-events: none;
}

/* ---------- 2. What every page shares ---------- */
html[data-look="board"] .cm-chessboard.bd .board .square.white { fill: var(--sq-l); }
html[data-look="board"] .cm-chessboard.bd .board .square.black { fill: var(--sq-d); }
html[data-look="board"] .cm-chessboard.bd .board .border { fill: var(--sq-d); }
/* Arrows and rings keep the colour rule: red is a miss, green is book (amber is already --brass). */
html[data-look="board"] .cm-chessboard.bd .bd-arrow.bd-red .arrow-line { stroke: var(--bad); }
html[data-look="board"] .cm-chessboard.bd .bd-arrow.bd-red .arrow-head { fill: var(--bad); }
html[data-look="board"] .cm-chessboard.bd .bd-arrow.bd-green .arrow-line { stroke: var(--ok); }
html[data-look="board"] .cm-chessboard.bd .bd-arrow.bd-green .arrow-head { fill: var(--ok); }
html[data-look="board"] .cm-chessboard.bd .markers .marker.bd-ring.bd-red { stroke: var(--bad); }
html[data-look="board"] .mb { display: block; width: 100%; height: auto; }
html[data-look="board"] .mb-l { fill: var(--sq-l); }
html[data-look="board"] .mb-d { fill: var(--sq-d); }
html[data-look="board"] .mb-f { fill: none; stroke: var(--frame); stroke-width: 1.4; }

html[data-look="board"] .btn-fill { background: var(--btn); color: var(--btn-t); border-radius: 999px; font-weight: 750; }
html[data-look="board"] .btn-outline { border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); }
html[data-look="board"] .seg { border-radius: 999px; overflow: hidden; }
html[data-look="board"] .seg-b[aria-selected="true"],
html[data-look="board"] .hm-seg .seg-b[aria-checked="true"],
html[data-look="board"] .mastered-rate button[aria-checked="true"] { background: var(--btn); color: var(--btn-t); }
html[data-look="board"] .row-toggle input { accent-color: var(--ink); }
html[data-look="board"] .sheet-scrim { background: var(--scrim); }
html[data-look="board"] .sheet-panel { border-radius: 22px 22px 0 0; border-top: 0; padding-left: 22px; padding-right: 22px; }
html[data-look="board"] .sheet-grab { width: 38px; height: 5px; border-radius: 3px; }
html[data-look="board"] .sheet-panel h2 { font-family: var(--serif); font-size: 30px; line-height: 1.08; font-weight: 900; letter-spacing: -0.6px; margin: 6px 0 4px; }
html[data-look="board"] .sheet-panel h3 { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
html[data-look="board"] .th-title { font-family: var(--serif); font-weight: 900; letter-spacing: -0.3px; }
html[data-look="board"] .th-section { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ---------- 3. The home ---------- */
html[data-look="board"] .op-page { padding: calc(12px + env(safe-area-inset-top, 0px)) 22px calc(96px + var(--safe)); }
html[data-look="board"] .op-head { padding: 4px 0 10px; }
html[data-look="board"] .op-headrow { align-items: center; }
html[data-look="board"] .op-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .nh-mark { width: 15px; height: 15px; flex: 0 0 15px; color: var(--ink); }
html[data-look="board"] .op-ver { letter-spacing: 0; text-transform: none; font-weight: 500; }
html[data-look="board"] .op-gear { color: var(--muted); }
html[data-look="board"] .op-gearsvg { display: none; }
html[data-look="board"] .nh-tune { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

html[data-look="board"] .nh-kick { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* Next up */
html[data-look="board"] .nh-hero { padding: 2px 0 16px; border-bottom: 1px solid var(--hair); }
html[data-look="board"] .nh-hero[hidden] { display: none; }
html[data-look="board"] .nh-hr { display: flex; gap: 16px; align-items: stretch; }
html[data-look="board"] .nh-board { flex: 0 0 34%; max-width: 132px; padding: 0; align-self: flex-start; -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .nh-htx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
html[data-look="board"] .nh-hname { margin: 4px 0 1px; font-family: var(--serif); font-size: 27px; line-height: 1.05; font-weight: 700; letter-spacing: -0.5px; }
html[data-look="board"] .nh-hsub { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-look="board"] .nh-num { margin-top: auto; padding-top: 6px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
html[data-look="board"] .nh-num b { font-size: 34px; font-weight: 850; letter-spacing: -1.2px; }
html[data-look="board"] .nh-num small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
html[data-look="board"] .nh-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 14px; border-radius: 25px; background: var(--btn); color: var(--btn-t); font-size: 17px; font-weight: 750; letter-spacing: -0.2px; -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .nh-go:active { opacity: 0.86; }

/* The openings */
html[data-look="board"] .nh-lab { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; }
html[data-look="board"] .op-list { gap: 0; }
html[data-look="board"] .hm-row.nh-row { min-height: 0; background: none; border: 0; border-radius: 0; }
html[data-look="board"] .nh-body { flex-direction: row; align-items: center; gap: 13px; padding: 7px 0; }
html[data-look="board"] .nh-body:active .op-name { color: var(--muted); }
html[data-look="board"] .nh-tile { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--sq-l); box-shadow: inset 0 0 0 1px var(--hair); }
html[data-look="board"] .nh-tile.nh-b { background: var(--sq-d); }
html[data-look="board"] .nh-tile svg { width: 38px; height: 38px; display: block; }
html[data-look="board"] .nh-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.22; }
html[data-look="board"] .nh-n .op-name { font-family: var(--serif); font-size: 18.5px; line-height: 1.22; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .nh-n .hm-tags { font-size: 13px; line-height: 1.3; }
html[data-look="board"] .nh-pc { flex: 0 0 auto; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-look="board"] .nh-pc.nh-new { color: var(--muted); font-weight: 600; }
html[data-look="board"] .hm-vnote { color: var(--brass); }

/* The Coach callout */
html[data-look="board"] .nh-coach { display: flex; flex-direction: column; width: 100%; margin: 12px 0 0; padding: 12px 14px 13px; text-align: left; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); -webkit-tap-highlight-color: transparent; }
html[data-look="board"][data-skin="night"] .nh-coach { border-color: #4A4A50; border-radius: 16px; }
html[data-look="board"] .nh-coach:active { background: var(--rise); }
html[data-look="board"] .nh-kr { display: flex; align-items: center; justify-content: space-between; }
html[data-look="board"] .nh-kr svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="board"] .nh-ch { margin-top: 3px; font-family: var(--serif); font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -0.2px; }
html[data-look="board"] .nh-cp { margin-top: 2px; font-size: 13.5px; color: var(--muted); }

/* The three tabs, at the foot */
html[data-look="board"] .hm-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 7px 20px calc(6px + var(--safe)); grid-template-columns: repeat(3, 1fr); border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: var(--bg); overflow: visible; }
html[data-look="board"] .hm-tab { min-height: 46px; padding: 0; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--faint); background: none; }
html[data-look="board"] .hm-tab:active { background: none; color: var(--muted); }
html[data-look="board"] .hm-tab[aria-selected="true"] { background: none; color: var(--ink); }
html[data-look="board"] .hm-tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The Coach side and the Progress side */
html[data-look="board"] .nh-ptitle { margin: 6px 0 12px; font-family: var(--serif); font-size: 34px; line-height: 1.06; font-weight: 900; letter-spacing: -0.8px; }
html[data-look="board"] .hm-analyze .ch-lead { color: var(--soft); }
html[data-look="board"] .hm-analyze .ch-ta { border-radius: 14px; }
html[data-look="board"] .hm-analyze .ch-go { border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-t); font-weight: 750; }
html[data-look="board"] .nh-progress[hidden] { display: none; }
html[data-look="board"] .nh-prow { display: flex; flex-direction: column; gap: 7px; width: 100%; padding: 13px 0; text-align: left; border-top: 1px solid var(--hair); -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .nh-prow:active .op-name { color: var(--muted); }
html[data-look="board"] .nh-pl1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html[data-look="board"] .nh-pl1 .op-name { font-family: var(--serif); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.2px; }
html[data-look="board"] .nh-prow .op-bar { flex: 0 0 auto; width: 100%; height: 6px; }
html[data-look="board"] .nh-pline { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* The launch sheet */
html[data-look="board"] .hm-go { background: var(--card); }
html[data-look="board"] .hm-go .btn-fill { min-height: 50px; font-size: 17px; }
html[data-look="board"] .hm-pitch { font-size: 16px; line-height: 1.4; color: var(--soft); }
html[data-look="board"] .hm-seg { border-radius: 999px; }
html[data-look="board"] .hm-tag { border-radius: 999px; }
html[data-look="board"] .hm-preview { color: var(--ink); border-color: var(--ink); }
html[data-look="board"] .hm-pback { color: var(--ink); border-color: var(--ink); }

/* ---------- 4. The other pages, until each is rebuilt ---------- */
/* Titles take the serif; the drill's card takes the colour coding (green is book, red is a miss). */
html[data-look="board"] .ch-title,
html[data-look="board"] .t-name { font-family: var(--serif); font-weight: 700; letter-spacing: -0.2px; }
html[data-look="board"] .t-name .eco { font-family: -apple-system, system-ui, sans-serif; }
html[data-look="board"] .ch-go { border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-t); font-weight: 750; }
html[data-look="board"] .ch-go:active { background: var(--btn); color: var(--btn-t); opacity: 0.86; }
html[data-look="board"] .card { border-left-width: 0; padding-left: 20px; padding-right: 20px; }
html[data-look="board"] .c-title { font-family: var(--serif); font-size: 27px; line-height: 1.12; font-weight: 900; letter-spacing: -0.6px; }
html[data-look="board"] .card.ok .c-title { color: var(--ok); }
html[data-look="board"] .card.bad .c-title { color: var(--bad); }
html[data-look="board"] .card.waiting .c-title { color: var(--faint); }
html[data-look="board"] .ctl:active, html[data-look="board"] .ctl.on { color: var(--ink); }
html[data-look="board"] .st-look .seg { flex: 0 0 auto; }

/* Every "this one is on" chip was dark type on brass. Brass is amber here, so they turn ink with the
   skin's own contrast instead (paper type on ink by day, black on white at night). */
html[data-look="board"] .movelist .viewing,
html[data-look="board"] .ch-mv:active,
html[data-look="board"] .ch-send:active,
html[data-look="board"] .th-say.on,
html[data-look="board"] .ch-say.on,
html[data-look="board"] .ch-lmv.viewing .ch-lchip,
html[data-look="board"] .ch-coach.ch-following .ch-playdot,
html[data-look="board"] .ch-bookdrill:active,
html[data-look="board"] .ch-tal.on { background: var(--btn); color: var(--btn-t); border-color: var(--btn); }
html[data-look="board"] .ch-bin.armed { color: #FFFFFF; }

/* ---------- 5. The drill, in deck D's layout (v33 slice 2) ---------- */
/* A slim top line, the board edge to edge with its coordinates inside the squares, a big verdict with
   the move to play beside it, and three controls. The markup is Classic's plus a few .nh-only parts
   (drill.html); app.js marks the card (c-right, c-hint, c-long, has-move) and composes the top line. */
html[data-look="board"] .lbl-c { display: none; }
html[data-look="board"][data-skin="paper"] { --co-l: #A2957C; --co-d: #FBF7EE; }
html[data-look="board"][data-skin="night"] { --co-l: #6E7C8C; --co-d: #F1F3F5; }

/* The top line */
html[data-look="board"] #tracker { display: flex; align-items: center; min-height: 0; height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 2px 0 46px; border-bottom: 0; }
html[data-look="board"] #tracker .t-name,
html[data-look="board"] #tracker .t-crumb { display: none; }
html[data-look="board"] .t-line { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .t-line b { color: var(--ink); font-weight: 750; }
html[data-look="board"] .t-line.targeting span { color: var(--brass); }
html[data-look="board"] .t-home { left: 2px; top: env(safe-area-inset-top, 0px); width: 44px; height: 44px; margin: 0; color: var(--ink); }
/* The tools sit in the row itself, not over it: the line beside them takes exactly the room that
   is left and ends in an ellipsis. Until v36 the row kept a fixed 112px for them, and a long
   target's name ran in under the mode pill. Since v39 the pill shows only during a replay. */
html[data-look="board"] .t-tools { position: static; flex: 0 0 auto; margin-left: 8px; height: 44px; gap: 0; }
html[data-look="board"] .t-mode { font-size: 13px; font-weight: 700; line-height: 25px; letter-spacing: 0; padding: 0 11px; border: 1.5px solid var(--hair); border-radius: 14px; color: var(--muted); }
html[data-look="board"] #tracker.replay .t-mode { color: var(--brass); border-color: var(--brass); }
html[data-look="board"] .t-focus { margin: 0; }

/* The board: edge to edge, the coordinates inside the squares */
html[data-look="board"] #boardwrap { box-shadow: 0 -1.5px 0 var(--frame), 0 1.5px 0 var(--frame); }
/* The same on the Coach's board (#ch-board, section 6). */
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board).bd-host { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-squares,
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-ranks,
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-files { grid-column: 1; grid-row: 1; }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-ranks { z-index: 2; pointer-events: none; width: 12.5%; justify-self: start; }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-files { z-index: 2; pointer-events: none; height: 12.5%; align-self: end; }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-ranks span { align-items: flex-start; justify-content: flex-start; padding: 3px 0 0 3px; font-size: 9.5px; font-weight: 700; }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-files span { align-items: flex-end; justify-content: flex-end; padding: 0 3px 2px 0; font-size: 9.5px; font-weight: 700; }
/* A label wears the other square's colour. The top-left square is light and the bottom-left dark,
   whichever side is at the foot. */
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-ranks span:nth-child(odd),
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-files span:nth-child(even) { color: var(--co-l); }
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-ranks span:nth-child(even),
html[data-look="board"] :is(#board, #ch-board, #fo-board, .th-board) .bd-files span:nth-child(odd) { color: var(--co-d); }

/* The card: the verdict, the move to play, the note, then what to do */
html[data-look="board"] .card { border-top: 0; background: var(--bg); padding: 14px 22px 10px; }
html[data-look="board"] #card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; }
html[data-look="board"] #card-title { grid-column: 1; grid-row: 1; font-family: var(--serif); font-size: 36px; line-height: 1.04; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
html[data-look="board"] .card.c-long #card-title { font-size: 25px; line-height: 1.12; letter-spacing: -0.5px; }
html[data-look="board"] .card.waiting #card-title { color: var(--faint); }
html[data-look="board"] .card.ok #card-title,
html[data-look="board"] .card.c-right #card-title { color: var(--ok); }
html[data-look="board"] .card.bad #card-title { color: var(--bad); }
html[data-look="board"] .card.c-hint #card-title { color: var(--brass); }
html[data-look="board"] #card-move { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; padding-top: 3px; font: 700 31px/1.06 Menlo, ui-monospace, monospace; letter-spacing: -1px; white-space: nowrap; color: var(--brass); }
html[data-look="board"] #card-move::after { content: 'Book move'; display: block; margin-top: 7px; font: 800 10.5px/1 -apple-system, system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .card.note #card-move::after { content: 'Play this'; }
html[data-look="board"] #card-lines { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--soft); }
html[data-look="board"] #card-lines:empty { margin-top: 0; }
html[data-look="board"] #card-lines .c-bookis { display: none; }
html[data-look="board"] #card-lines .c-bookis + div { margin-top: 0; }
html[data-look="board"] #card-lines .bit:first-child,
html[data-look="board"] #card-lines .strong { color: var(--text); }
html[data-look="board"] #card-actions { grid-column: 1; grid-row: 3; margin-top: 14px; flex-wrap: nowrap; }
html[data-look="board"] #card-actions:empty { margin-top: 0; }
html[data-look="board"] #card-actions .btn-outline,
html[data-look="board"] #card-actions .btn-fill { min-height: 46px; padding: 0 20px; font-size: 16px; font-weight: 750; white-space: nowrap; }
html[data-look="board"] #card-actions [data-act="playforme"] { flex: 1 1 auto; background: var(--btn); color: var(--btn-t); border-color: var(--btn); }
html[data-look="board"] .card.has-move #card-actions .aside { display: none; }
html[data-look="board"] #btn-ask { grid-column: 2; grid-row: 1; float: none; justify-self: end; align-self: start; margin: 4px 0 0; }
html[data-look="board"] .card.has-move #btn-ask { grid-row: 3; align-self: end; margin: 0; min-height: 46px; padding: 0 16px 0 13px; border: 1.5px solid var(--ink); font-size: 16px; font-weight: 700; }
html[data-look="board"] .c-ask svg { color: var(--ink); }
html[data-look="board"] #card-progress { grid-column: 1 / -1; grid-row: 4; }
html[data-look="board"] #nextbar { grid-column: 1 / -1; grid-row: 5; margin: 12px -22px 0; padding: 10px 22px 12px; background: var(--bg); }
html[data-look="board"] .nb-pause[aria-pressed="true"] { background: none; }
html[data-look="board"] .explore { padding: 12px 22px; }

/* The moves, and the three controls */
html[data-look="board"] .moverow { border-top: 0; }
html[data-look="board"] .movelist { height: 36px; padding: 0 2px; }
html[data-look="board"] .scrub { min-height: 36px; }
html[data-look="board"] .scrub .scrub-c { display: none; }
html[data-look="board"] .scrub .ctl-g { width: 18px; height: 18px; }
html[data-look="board"] .controls { height: calc(58px + var(--safe)); padding: 0 26px var(--safe); border-top: 0; }
html[data-look="board"] .ctl { gap: 3px; color: var(--muted); }
html[data-look="board"] .ctl .ico { display: none; }
html[data-look="board"] .ctl-g { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink); }
html[data-look="board"] .ctl-g .f { fill: currentColor; stroke: none; }
html[data-look="board"] .ctl .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0; }
html[data-look="board"] .ctl:active { opacity: 0.6; color: var(--muted); }
html[data-look="board"] .ctl.on { color: var(--ink); }
html[data-look="board"] #btn-book,
html[data-look="board"] #btn-stats,
html[data-look="board"] #btn-x-stats { display: none; }
html[data-look="board"] .m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
html[data-look="board"] .m-two .btn-outline { min-height: 46px; font-size: 15px; }

/* ---------- 6. The Coach, in deck D's layout (v33 slice 3) ---------- */
/* One top line, the board framed with its coordinates inside, You against Book with Drill it, the
   Coach's words in the serif, and one question box. The markup is Classic's plus a few .nh-only parts
   (coach.html); coach.js fills the block (paintVs), draws the two arrows (paintLeft) and rests an
   opened game on the move that left the book (restPly). Marks follow the colour rule: red is wrong,
   green is book, and nothing wears the old orange. */

/* The top line */
html[data-look="board"] .ch-head { gap: 0; height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0 2px; border-bottom: 0; }
html[data-look="board"] .ch-home { width: 44px; min-width: 44px; height: 44px; color: var(--ink); }
html[data-look="board"] .ch-home:active { color: var(--muted); }
html[data-look="board"] .ch-chev { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="board"] .ch-headtext { flex: 1 1 auto; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; overflow: hidden; }
html[data-look="board"] .ch-headtext .ch-title { flex: 0 0 auto; font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 750; letter-spacing: 0; color: var(--ink); }
html[data-look="board"] .ch-headtext .ch-sub { flex: 0 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
html[data-look="board"] .ch-headtext .ch-sub:not(:empty)::before { content: '\00b7\00a0'; }
html[data-look="board"] .ch-head .ch-bin { min-width: 40px; padding: 0 8px; }
html[data-look="board"] .ch-say { min-width: 40px; }
html[data-look="board"] .ch-say.on { width: 34px; min-width: 34px; height: 34px; min-height: 34px; margin: 0 3px; }

/* The board: framed, with room left for the words */
html[data-look="board"] .ch-app { --ch-board: min(calc(100vw - 78px), 37dvh); }
html[data-look="board"] .ch-app.ch-session { --ch-board: min(calc(100vw - 78px), 31dvh); }
html[data-look="board"] .ch-boardwrap { margin-top: 4px; box-shadow: 0 0 0 1.5px var(--frame); }
html[data-look="board"][data-skin="night"] .ch-boardwrap { border-radius: 8px; overflow: hidden; }
html[data-look="board"] .ch-boardwrap.ch-off::after { inset: 0; box-shadow: inset 0 0 0 3px var(--brass); }
html[data-look="board"] #ch-board .bd-ranks span { padding: 2px 0 0 2px; font-size: 8.5px; }
html[data-look="board"] #ch-board .bd-files span { padding: 0 2px 1px 0; font-size: 8.5px; }
html[data-look="board"] .ch-prog { padding: 12px 22px 0; }
html[data-look="board"] .ch-progbar i { background: var(--ink); }

/* The eval line and the moves */
html[data-look="board"] .ch-evalrow { min-height: 27px; padding: 9px 22px 0; font-family: Menlo, ui-monospace, monospace; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
html[data-look="board"] .ch-evalrow > * { flex-shrink: 0; }
html[data-look="board"] .ch-evalrow > .ch-bookat { flex-shrink: 1; }
html[data-look="board"] .ch-evalnum { color: var(--ink); font-weight: 700; }
html[data-look="board"] .ch-mark { font-family: -apple-system, system-ui, sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; }
html[data-look="board"] .ch-mark.ch-blunder,
html[data-look="board"] .ch-mark.ch-mistake { color: var(--bad); }
html[data-look="board"] .ch-mark.ch-inaccuracy { color: var(--muted); }
html[data-look="board"] .ch-bookat { font-family: -apple-system, system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ok); }
html[data-look="board"] .ch-bookat.ch-left { color: var(--muted); }
html[data-look="board"] .ch-bookat.ch-left.ch-mine { color: var(--bad); }
html[data-look="board"] .ch-moverow { padding: 0 8px; border-bottom: 0; }
html[data-look="board"] .movelist .ch-dot.ch-inaccuracy::after { background: var(--faint); }
html[data-look="board"] .movelist .ch-dot.ch-mistake::after,
html[data-look="board"] .movelist .ch-dot.ch-blunder::after { background: var(--bad); }
html[data-look="board"] .movelist .ch-dot.ch-blunder::after { width: 7px; height: 7px; vertical-align: 1px; }
html[data-look="board"] .movelist .ch-inbook { box-shadow: inset 0 -2px 0 var(--ok); }
html[data-look="board"] .movelist .ch-leftbook { box-shadow: inset 0 -2px 0 var(--faint); }
html[data-look="board"] .movelist .ch-leftbook.ch-mine { box-shadow: inset 0 -2px 0 var(--bad); }
html[data-look="board"] .movelist .viewing.ch-inbook,
html[data-look="board"] .movelist .viewing.ch-leftbook { box-shadow: none; }
/* A line off the game: amber, the move to play */
html[data-look="board"] .ch-line { height: 36px; background: none; }
html[data-look="board"] .ch-line-back { height: 36px; }
html[data-look="board"] .ch-line-back span { border: 1.5px solid var(--hair); background: none; color: var(--ink); font-weight: 700; }
html[data-look="board"] .ch-line-back:active span { border-color: var(--ink); color: var(--ink); }
html[data-look="board"] .ch-line-moves { height: 36px; }
html[data-look="board"] .ch-lmv { height: 36px; color: var(--faint); }
html[data-look="board"] .ch-lmv.on { color: var(--brass); }
html[data-look="board"] .movelist.ch-inline .viewing { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brass); }

/* You against Book */
html[data-look="board"] .ch-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 5px; align-items: center; padding: 10px 22px 8px; border-bottom: 0; background: none; }
html[data-look="board"] .ch-book[hidden] { display: none; }
html[data-look="board"] .ch-bookglyph { display: none; }
html[data-look="board"] .ch-vs { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: baseline; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .ch-vs[hidden] { display: none; }
html[data-look="board"] .ch-vs:active { opacity: 0.6; }
html[data-look="board"] .ch-vs .k { font-size: 11.5px; line-height: 1; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .ch-vs b { font: 700 24px/1.15 Menlo, ui-monospace, monospace; letter-spacing: -0.6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .ch-vs b.bad { color: var(--bad); }
html[data-look="board"] .ch-vs b.ok { color: var(--ok); }
html[data-look="board"] .ch-vs b.w { font-family: var(--serif); font-weight: 900; letter-spacing: -0.5px; }
html[data-look="board"] .ch-bookdrill { grid-column: 2; grid-row: 1; min-height: 46px; padding: 0 20px; border: 0; border-radius: 23px; background: var(--btn); color: var(--btn-t); font-size: 16px; font-weight: 750; }
html[data-look="board"] .ch-bookdrill:active { opacity: 0.86; }
/* Under the block: the variation and how well it is known. The record always shows whole; a long
   name gives way to it. The ECO code stays out of this line. */
html[data-look="board"] .ch-booktext { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 5px; padding-right: 44px; white-space: nowrap; }
html[data-look="board"] .ch-bookname { flex: 0 1 auto; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--soft); }
html[data-look="board"] .ch-bookname .eco { display: none; }
html[data-look="board"] .ch-booksub { flex: 0 0 auto; display: block; font-size: 13px; line-height: 18px; white-space: nowrap; }
html[data-look="board"] .ch-booksub:not(:empty)::before { content: '\00b7\00a0'; }
html[data-look="board"] #ch-bookask { grid-column: 2; grid-row: 2; justify-self: end; position: relative; min-height: 0; padding: 0; border: 0; border-radius: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
html[data-look="board"] #ch-bookask::after { content: ''; position: absolute; inset: -10px -14px -12px; }
html[data-look="board"] #ch-bookask:active { color: var(--muted); }
/* A game outside the player's books: the opening it went into, and one thing to do about it */
html[data-look="board"] .ch-book.ch-prep { background: none; }
html[data-look="board"] .ch-book.ch-prep .ch-booktext { grid-column: 1; grid-row: 1; flex-direction: column; align-items: stretch; gap: 1px; padding-right: 0; white-space: normal; }
html[data-look="board"] .ch-book.ch-prep .ch-bookname { font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--ink); white-space: normal; }
html[data-look="board"] .ch-book.ch-prep .ch-booksub { white-space: normal; }
html[data-look="board"] .ch-book.ch-prep .ch-booksub::before { content: none; }
html[data-look="board"] .ch-book.ch-prep #ch-bookask { grid-row: 1; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 20px; font-size: 15px; text-decoration: none; }

/* Follow the coach */
html[data-look="board"] .ch-follow { height: 40px; padding: 0 12px; border-bottom: 0; background: none; box-shadow: inset 0 1px 0 var(--hair), inset 0 -1px 0 var(--hair); }
html[data-look="board"] .ch-fbtn { width: 40px; height: 40px; color: var(--ink); }
html[data-look="board"] .ch-fbtn:active { color: var(--muted); }
html[data-look="board"] .ch-f-toggle { color: var(--ink); }
html[data-look="board"] .ch-f-close { color: var(--muted); }
html[data-look="board"] .ch-f-label { line-height: 40px; font-size: 13.5px; font-weight: 600; }

/* The Coach's words */
html[data-look="board"] .ch-chat { padding: 12px 22px 4px; }
html[data-look="board"] .ch-row { font-size: 17.5px; line-height: 1.45; }
html[data-look="board"] .ch-coach { padding-left: 0; border-left: 0; font-family: var(--serif); color: var(--soft); }
html[data-look="board"] .ch-coach p { margin: 0 0 9px; }
html[data-look="board"] .ch-coach strong { color: var(--ink); font-weight: 700; }
html[data-look="board"] .ch-mv { padding: 1px 2px; font: 700 15px/1.2 Menlo, ui-monospace, monospace; letter-spacing: -0.3px; color: var(--ink); border-bottom: 1.5px solid var(--hair); }
html[data-look="board"] .ch-step.ch-now { color: var(--ink); background: var(--rise); box-shadow: 0 0 0 2px var(--rise); }
html[data-look="board"] .ch-me { padding: 7px 13px; border-radius: 17px; font-size: 15px; line-height: 1.35; }
html[data-look="board"] .ch-note { font-size: 13px; line-height: 1.4; }
html[data-look="board"] .ch-play { margin-left: -7px; color: var(--ink); }
html[data-look="board"] .ch-playdot { border: 1.5px solid var(--ink); }

/* The question box: one pill, the mic and Send inside it */
html[data-look="board"] .ch-inputrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0; padding: 6px 14px calc(12px + var(--safe)); border-top: 0; }
html[data-look="board"] .ch-inputrow::before { content: ''; grid-column: 2 / 5; grid-row: 2; height: 50px; border-radius: 25px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--hair); }
html[data-look="board"] .ch-inputrow:focus-within::before { box-shadow: inset 0 0 0 1.5px var(--ink); }
html[data-look="board"] .ch-anchor { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
html[data-look="board"] .ch-tal { grid-column: 1; grid-row: 2; min-width: 50px; min-height: 50px; margin-right: 8px; border: 1.5px solid var(--hair); border-radius: 25px; }
html[data-look="board"] .ch-q { grid-column: 2; grid-row: 2; z-index: 1; min-height: 50px; padding: 0 4px 0 20px; background: none; border: 0; border-radius: 0; }
html[data-look="board"] .ch-q:focus { border: 0; }
html[data-look="board"] .ch-q::placeholder { color: var(--muted); }
html[data-look="board"] .ch-mic { grid-column: 3; grid-row: 2; z-index: 1; min-width: 40px; min-height: 40px; padding: 0 8px; border: 0; color: var(--muted); }
html[data-look="board"] .ch-mic.ch-rec { color: var(--bad); }
html[data-look="board"] .ch-send { grid-column: 4; grid-row: 2; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 36px; min-height: 36px; margin: 0 7px 0 2px; padding: 0; border: 0; border-radius: 18px; background: var(--btn); color: var(--btn-t); font-size: 0; }
html[data-look="board"] .ch-send::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-look="board"] .ch-send.ch-stop { background: var(--bad); color: #FFFFFF; }
html[data-look="board"] .ch-send.ch-stop::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='6.5' width='11' height='11' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='6.5' width='11' height='11' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-look="board"] .ch-send:active { opacity: 0.86; }
html[data-look="board"] .ch-send:disabled { opacity: 0.35; }

/* Before a game: the statement, the two boxes, the games already analysed */
html[data-look="board"] .ch-setup { padding: 2px 22px calc(24px + var(--safe)); }
html[data-look="board"] .ch-setup .ch-lead { font-size: 15px; line-height: 1.45; color: var(--soft); }
html[data-look="board"] .ch-ta:focus { border-color: var(--ink); }
html[data-look="board"] .ch-setup .ch-go { min-height: 50px; font-size: 17px; }
html[data-look="board"] .ch-sidebtn { border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; }
html[data-look="board"] .ch-sidebtn:active { border-color: var(--ink); color: var(--muted); }
html[data-look="board"] .ch-signin a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-look="board"] .ch-savedhead { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
html[data-look="board"] .ch-lastrow { padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--hair); border-radius: 0; }
html[data-look="board"] .ch-savedrow { padding-right: 64px; }
html[data-look="board"] .ch-savedrow + .ch-savedrow,
html[data-look="board"] .ch-savedwrap + .ch-savedwrap,
html[data-look="board"] .ch-savedrow + .ch-savedwrap,
html[data-look="board"] .ch-savedwrap + .ch-savedrow { margin-top: 0; }
html[data-look="board"] .ch-savedmain { font-family: var(--serif); font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: -0.1px; color: var(--ink); }
html[data-look="board"] .ch-savedsub { font-size: 13px; line-height: 1.35; }
html[data-look="board"] .ch-savedtag { right: 0; color: var(--ink); border: 1.5px solid var(--ink); }
html[data-look="board"] .ch-savedwrap > .ch-bin { right: -8px; }
html[data-look="board"] .ch-yourow { margin-top: 22px; }
/* What the coach knows, over the page */
html[data-look="board"] .ch-youbody { padding: 10px 22px calc(32px + env(safe-area-inset-bottom, 0px)); }
html[data-look="board"] .ch-you-portrait { font-family: var(--serif); font-size: 18px; line-height: 1.4; }
html[data-look="board"] .ch-you-h { margin-left: 0; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
html[data-look="board"] .ch-you-tag,
html[data-look="board"] .ch-you-note { color: var(--muted); }
html[data-look="board"] .ch-you-q { border-left-color: var(--ink); }
html[data-look="board"] .ch-you-forget { min-height: 46px; border: 1.5px solid var(--hair); border-radius: 999px; font-weight: 700; }

/* ---------- 7. The first open and Pick three (v33 slice 4) ---------- */
/* first.html, a page that exists only in this look: three moves of one opening on a board, then the
   list a new player picks three openings from. The words and the rules are first-open.js; first.js
   runs the board. Amber rings mark the move to play, Book. is green, Not book. is red. */
html[data-look="board"] .fo-app { height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column;
  --fo-board: min(100vw, 520px, calc(100dvh - 352px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); }
html[data-look="board"] .fo-play,
html[data-look="board"] .fo-pick { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 var(--safe); }
html[data-look="board"] .fo-play[hidden],
html[data-look="board"] .fo-pick[hidden] { display: none; }

/* The mark, and in a preview the way back and the word Preview */
html[data-look="board"] .fo-top { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 6px; padding: 0 22px; }
html[data-look="board"] .fo-wm { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .fo-back { width: 36px; height: 44px; margin-left: -12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
html[data-look="board"] .fo-back[hidden] { display: none; }
html[data-look="board"] .fo-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="board"] .fo-back:active { color: var(--muted); }
html[data-look="board"] .fo-tag { margin-left: auto; padding: 3px 9px; border: 1.5px solid var(--hair); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .fo-tag[hidden] { display: none; }

/* The words */
html[data-look="board"] .fo-h { flex: 0 0 auto; margin: 20px 22px 0; font-family: var(--serif); font-size: min(41px, 10.6vw); line-height: 1.06; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
html[data-look="board"] .fo-l1,
html[data-look="board"] .fo-l2 { display: block; white-space: nowrap; }
html[data-look="board"] .fo-l1 { color: var(--faint); }
html[data-look="board"] .fo-l1.ok { color: var(--ok); }
html[data-look="board"] .fo-l1.bad { color: var(--bad); }
html[data-look="board"] .fo-p { flex: 0 0 auto; margin: 10px 22px 16px; min-height: 24px; font-size: 18px; line-height: 24px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .fo-p.fo-mono { font-family: Menlo, ui-monospace, monospace; font-size: 15px; letter-spacing: -0.3px; }

/* The board: edge to edge when the phone is tall enough, its coordinates inside the squares */
html[data-look="board"] .fo-boardwrap { flex: 0 0 auto; align-self: center; position: relative; width: var(--fo-board); height: var(--fo-board); box-shadow: 0 0 0 1.5px var(--frame); }
html[data-look="board"] #fo-board { position: relative; width: 100%; height: 100%; }
html[data-look="board"] .fo-steps { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 16px 22px 0; }
html[data-look="board"] .fo-steps i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--hair); transition: background-color 160ms ease; }
html[data-look="board"] .fo-steps i.on { background: var(--ink); }
html[data-look="board"] .fo-steps small { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* What else there is to do */
html[data-look="board"] .fo-alt { margin-top: auto; padding: 8px 22px 14px; display: flex; align-items: center; justify-content: space-between; }
html[data-look="board"] .fo-alt[hidden],
html[data-look="board"] .fo-nextbox[hidden] { display: none; }
html[data-look="board"] .fo-other { min-height: 44px; font-size: 16px; font-weight: 700; color: var(--ink); }
html[data-look="board"] .fo-skip { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 600; color: var(--muted); }
html[data-look="board"] .fo-skip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="board"] .fo-other:active,
html[data-look="board"] .fo-skip:active { opacity: 0.6; }
html[data-look="board"] .fo-nextbox { margin-top: auto; padding: 8px 22px 4px; }
html[data-look="board"] .fo-again { display: block; width: 100%; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
html[data-look="board"] .fo-again:active { opacity: 0.6; }
html[data-look="board"] .fo-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 26px; background: var(--btn); color: var(--btn-t); font-size: 17px; font-weight: 750; letter-spacing: -0.2px; }
html[data-look="board"] .fo-go:active { opacity: 0.86; }
html[data-look="board"] .fo-go:disabled { opacity: 0.3; }

/* Pick three */
html[data-look="board"] .fo-pick { padding-left: 22px; padding-right: 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html[data-look="board"] .fo-pick .fo-top { margin-top: 2px; padding: 0; }
html[data-look="board"] .fo-h2 { margin: 10px 0 0; font-size: min(34px, 9vw); }
html[data-look="board"] .fo-lead { flex: 0 0 auto; margin: 8px 0 12px; font-size: 17px; line-height: 1.35; color: var(--muted); }
html[data-look="board"] .fo-count { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 10px; }
html[data-look="board"] .fo-count b { font-size: 15px; font-weight: 750; color: var(--ink); }
html[data-look="board"] .fo-count span { font-size: 13.5px; color: var(--muted); }
html[data-look="board"] .fo-count b.fo-full { animation: fo-full 360ms ease; }
@keyframes fo-full { 25% { transform: translateX(-5px); } 55% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
html[data-look="board"] .fo-list { flex: 0 0 auto; display: flex; flex-direction: column; }
html[data-look="board"] .fo-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 0; text-align: left; border-top: 1px solid var(--hair); -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .fo-list .fo-row:last-child { border-bottom: 1px solid var(--hair); }
html[data-look="board"] .fo-row:active .fo-n b { color: var(--muted); }
html[data-look="board"] .fo-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
html[data-look="board"] .fo-n b { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: -0.2px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .fo-n small { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* On the pick list the line under a name is the opening's pitch, whole: two lines, sometimes three. */
html[data-look="board"] #fo-list .fo-row { padding: 8px 0; }
html[data-look="board"] #fo-list .fo-n small { margin-top: 1px; line-height: 1.3; white-space: normal; overflow: visible; }
html[data-look="board"] .fo-pk { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 15px; border: 1.5px solid var(--faint); display: flex; align-items: center; justify-content: center; color: transparent; }
html[data-look="board"] .fo-pk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="board"] .fo-pk.on { background: var(--ok); border-color: var(--ok); color: var(--bg); }
html[data-look="board"] .fo-foot { flex: 0 0 auto; margin-top: auto; padding: 14px 0 14px; }
html[data-look="board"] .fo-note { margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
/* Settings, Look: the row that plays the first open as a preview */
html[data-look="board"] .st-firstgo { flex: 0 0 auto; min-height: 36px; margin-left: 12px; padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; }
/* The sheet that swaps the opening on the board */
html[data-look="board"] .fo-tries { margin: 10px 0 4px; }
html[data-look="board"] .fo-tries .fo-row.fo-cur { opacity: 0.45; }

/* ---------- 8. The other pages: Progress, Settings, Account, Theory, Focus (v33 slice 5) ---------- */
/* One shell for all of them (they share the theory page's .th- markup): a single top line, the page on
   the 22 px margin, sections under small labels, rows on hairlines where Classic has cards. Names take
   the serif. Nothing wears the old brass but the move to play; a switch that is on is ink, a thing
   picked or mastered is green, a problem is red. No markup changed: the back arrow is drawn here. */

/* The top line */
html[data-look="board"] .th-head { gap: 0; height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 8px 0 2px; border-bottom: 0; }
html[data-look="board"] .th-home { width: 44px; min-width: 44px; height: 44px; min-height: 44px; font-size: 0; color: var(--ink); }
html[data-look="board"] .th-home::before { content: ''; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5L8 12l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5L8 12l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-look="board"] .th-home:active { color: var(--muted); }
/* The insights page already draws its own arrow. */
html[data-look="board"] .th-home.in-back::before { content: none; }
html[data-look="board"] .th-home.in-back svg { width: 24px; height: 24px; }
html[data-look="board"] .th-headtext { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; overflow: hidden; }
html[data-look="board"] .th-headtext .th-title { flex: 0 0 auto; font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 750; letter-spacing: 0; color: var(--ink); }
html[data-look="board"] .th-headtext .th-sub { flex: 0 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .th-headtext .th-sub:not(:empty)::before { content: '\00b7\00a0'; }
html[data-look="board"] .th-say { min-width: 40px; }
html[data-look="board"] .th-say.on { width: 34px; min-width: 34px; height: 34px; min-height: 34px; margin: 0 3px; }

/* The page: flat sections, small labels */
html[data-look="board"] .th-main { padding: 4px 22px 16px; }
html[data-look="board"] .th-card { margin-bottom: 0; padding: 0; background: none; border: 0; border-radius: 0; }
html[data-look="board"] .th-section,
html[data-look="board"] .st-body .th-section { margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
html[data-look="board"] .st-body .th-main > div:first-child > .th-section,
html[data-look="board"] .au-body .th-main > #au-view > .au-pane > .th-section:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
html[data-look="board"] .fc-sec { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
html[data-look="board"] .pg-sec,
html[data-look="board"] .fc-sec-add { margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--hair); }
html[data-look="board"] .th-lh { font-size: 11px; font-weight: 800; letter-spacing: 2px; }
html[data-look="board"] .th-p { font-size: 16px; line-height: 1.45; color: var(--soft); }
html[data-look="board"] .th-lead { font-size: 16px; line-height: 1.45; color: var(--soft); }
html[data-look="board"] .m-note { font-size: 13.5px; line-height: 1.4; }

/* Rows of lines, shared by Progress, Focus and the drill's Book sheet */
html[data-look="board"] .b-lab,
html[data-look="board"] .b-fam .b-lab,
html[data-look="board"] .pg-famrow .b-lab { font-family: var(--serif); font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -0.2px; color: var(--ink); }
html[data-look="board"] .b-lab .eco { font-family: -apple-system, system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; color: var(--muted); }
html[data-look="board"] .b-word { font-size: 13px; }
html[data-look="board"] .b-count { font-size: 12.5px; }
html[data-look="board"] .b-tap:active { background: none; opacity: 0.6; }
html[data-look="board"] .b-row.open,
html[data-look="board"] .pg-row.open,
html[data-look="board"] .fc-on { background: none; }

/* Progress */
html[data-look="board"] .pg-word { font-family: var(--serif); font-size: 32px; line-height: 1.08; font-weight: 900; letter-spacing: -0.7px; }
html[data-look="board"] .pg-pct { font-size: 14px; }
html[data-look="board"] .pg-sum .op-bar { height: 8px; border-radius: 4px; margin: 12px 0 14px; }
html[data-look="board"] .pg-k { font-size: 14px; }
html[data-look="board"] .pg-k b { font-size: 15px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
html[data-look="board"] .pg-k-unseen i { box-shadow: inset 0 0 0 1px var(--faint); }
html[data-look="board"] .pg-how { font-size: 13px; line-height: 1.4; }
html[data-look="board"] .pg-fixgo { min-height: 50px; font-size: 17px; }
html[data-look="board"] .pg-fixnote { font-size: 13px; line-height: 1.4; }
html[data-look="board"] .pg-why { font-size: 14px; line-height: 1.35; color: var(--soft); }
html[data-look="board"] .pg-drill { min-height: 40px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
html[data-look="board"] .pg-count { font-size: 13px; }
html[data-look="board"] .pg-list { padding: 0; }
html[data-look="board"] .pg-shelf { padding: 4px 0; }

/* Settings */
html[data-look="board"] .st-group,
html[data-look="board"] .st-list,
html[data-look="board"] .st-body .st-acct { padding: 0; }
html[data-look="board"] .st-trow { padding: 7px 0; min-height: 50px; }
html[data-look="board"] .st-tlab > span:first-child { font-size: 16px; line-height: 1.3; font-weight: 600; }
html[data-look="board"] .st-sub { font-size: 13px; line-height: 1.35; }
html[data-look="board"] .st-intro { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
html[data-look="board"] .st-line { margin-left: 0; margin-right: 0; }
html[data-look="board"] .st-account .st-acctmain { font-size: 16px; font-weight: 600; }
html[data-look="board"] .st-account .st-acctgo,
html[data-look="board"] .st-link,
html[data-look="board"] .au-signlink { color: var(--ink); font-weight: 700; }
html[data-look="board"] .st-account:active,
html[data-look="board"] .st-open:active { color: var(--muted); }
html[data-look="board"] .st-shelf > summary,
html[data-look="board"] .st-body .st-shelf > summary { margin: 18px 0 0; padding: 14px 0; }
html[data-look="board"] .st-body .st-shelf > summary .th-section { margin: 0; padding: 0; border-top: 0; }
html[data-look="board"] .st-keysave { border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); }
html[data-look="board"] .st-keystatus.on { color: var(--ok); }
/* Two figures side by side: big numbers, no boxes */
html[data-look="board"] .st-tiles { gap: 16px 0; margin-bottom: 12px; }
html[data-look="board"] .st-tile { min-height: 0; padding: 2px 0 4px; }
html[data-look="board"] .st-tile:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hair); }
html[data-look="board"] .st-tilelab { font-size: 11px; font-weight: 800; letter-spacing: 2px; }
html[data-look="board"] .st-cost { margin-top: 6px; font-size: 34px; line-height: 1.05; font-weight: 850; letter-spacing: -1.2px; color: var(--ink); }
html[data-look="board"] .st-cap { margin-top: 4px; font-size: 13px; line-height: 1.35; }

/* Account */
html[data-look="board"] .au-row { min-height: 48px; font-size: 16px; }
html[data-look="board"] .au-banner { border-radius: 14px; }
html[data-look="board"] .au-warn { color: var(--ink); font-weight: 700; }
html[data-look="board"] .au-meter i { background: var(--ink); }
html[data-look="board"] .au-pbtn { min-height: 50px; border-radius: 25px; }
/* Apple's own rule: its white button on a dark page. */
html[data-look="board"][data-skin="night"] .au-apple { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
html[data-look="board"] .au-tabs .seg-b { min-height: 42px; }
html[data-look="board"] .ch-keyinput { min-height: 48px; border-radius: 14px; }
html[data-look="board"] .ch-keyinput:focus { border-color: var(--ink); }
html[data-look="board"] .au-delbtn { min-height: 50px; border-radius: 25px; }

/* Theory */
html[data-look="board"] .th-h { margin: 2px 0 6px; font-family: var(--serif); font-size: 23px; line-height: 1.15; font-weight: 900; letter-spacing: -0.4px; }
/* One lesson after another: a hairline and room between them. A lesson under a section label needs
   neither, the label has its own. */
html[data-look="board"] #th-main > .th-card + .th-card,
html[data-look="board"] #th-main > .th-leadrow + .th-card { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hair); }
html[data-look="board"] .th-moves { font-family: Menlo, ui-monospace, monospace; font-size: 13px; }
html[data-look="board"] .th-board { margin: 8px 0 14px; box-shadow: 0 0 0 1.5px var(--frame); }
html[data-look="board"][data-skin="night"] .th-board { border-radius: 8px; overflow: hidden; }
html[data-look="board"] .th-ul { font-size: 16px; line-height: 1.45; color: var(--soft); }
html[data-look="board"] .th-lines { font-size: 15px; line-height: 1.6; }
html[data-look="board"] .th-lines .eco { color: var(--muted); }
html[data-look="board"] .th-answer { font-size: 16px; }
html[data-look="board"] .th-leadrow { margin: 14px 0 6px; }

/* Focus */
/* The openings fit the row, all of them, so none hides off the edge. */
html[data-look="board"] .fc-books { display: flex; width: 100%; margin-bottom: 18px; }
html[data-look="board"] .fc-books .seg-b { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 0 2px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-look="board"] .fc-list .b-lab,
html[data-look="board"] .fc-mine .b-lab { white-space: normal; }
html[data-look="board"] .fc-list .b-top,
html[data-look="board"] .fc-mine .b-top { align-items: center; }
html[data-look="board"] .fc-empty { font-size: 15px; line-height: 1.4; }
html[data-look="board"] .fc-find { min-height: 48px; margin: 2px 0 6px; padding: 0 18px; border: 1.5px solid var(--hair); border-radius: 24px; }
html[data-look="board"] .fc-find:focus { border-color: var(--ink); }
html[data-look="board"] .fc-tog { width: 30px; height: 30px; border: 1.5px solid var(--faint); color: var(--muted); }
/* On the list of lines to add, a line already on the focus list wears the green tick of a thing
   picked. On the focus list itself the same button takes the line off, so it stays quiet. */
html[data-look="board"] .fc-tog.on { background: var(--ok); border-color: var(--ok); color: var(--bg); }
html[data-look="board"] .fc-mine .fc-tog,
html[data-look="board"] .fc-mine .fc-tog.on { background: none; border-color: var(--faint); color: var(--muted); }
html[data-look="board"] .fc-on { border-radius: 0; }
html[data-look="board"] .fc-less { padding: 0 0 10px; font-size: 13px; color: var(--muted); }
html[data-look="board"] .fc-less button { border: 1.5px solid var(--hair); color: var(--ink); }

/* ---------- 9. The AI permission sheet, the Privacy rows and the Licences page (v34) ---------- */
html[data-look="board"] .ai-lead { font-size: 16px; line-height: 23px; color: var(--soft); margin: 10px 0 14px; }
html[data-look="board"] .ai-list li { padding: 13px 0; font-size: 15px; line-height: 21px; }
html[data-look="board"] .ai-list b { font-family: var(--serif); font-size: 18px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 3px; }
html[data-look="board"] .ai-foot { font-size: 14px; line-height: 20px; }
html[data-look="board"] .ai-foot a { color: var(--ink); font-weight: 700; }
html[data-look="board"] .ai-acts button { min-height: 52px; font-size: 17px; }
html[data-look="board"][data-skin="paper"] .ai-panel.ai-more .ai-acts { box-shadow: 0 -12px 14px -12px rgba(27, 26, 23, 0.22); }
@media (max-width: 360px), (max-height: 640px) {
  html[data-look="board"] .ai-panel h2 { font-size: 25px; }
  html[data-look="board"] .ai-lead { font-size: 15px; line-height: 21px; margin: 8px 0 10px; }
  html[data-look="board"] .ai-list li { padding: 10px 0; font-size: 14px; line-height: 20px; }
  html[data-look="board"] .ai-list b { font-size: 16px; }
  html[data-look="board"] .ai-acts button { min-height: 48px; }
}
html[data-look="board"] .st-priv .st-account + .st-account,
html[data-look="board"] .st-priv .st-trow + .st-account { border-top: 1px solid var(--hair); }
html[data-look="board"] .st-priv .st-account { min-height: 50px; }
html[data-look="board"] .lc-pre { background: var(--rise); border-color: var(--hair); color: var(--soft); }
html[data-look="board"] .lc-links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* ---------- 10. The store (v35, design/v35-store.md): the home's pills, the two sale sheets ---------- */
/* Deck D, screens 3, 6 and 7. Nothing here shows unless the store is on (store.js): an opening that
   is not open is quiet, and what it takes sits where its share mastered would. */
html[data-look="board"] .nh-picks { font-size: 12.5px; font-weight: 600; color: var(--muted); }
html[data-look="board"] .nh-row.nh-off .op-name { color: var(--muted); }
html[data-look="board"] .nh-row.nh-off .nh-tile { opacity: 0.55; }
html[data-look="board"] .nh-get { flex: 0 0 auto; display: flex; align-items: center; height: 30px; padding: 0 13px; border: 1.5px solid var(--ink); border-radius: 15px; color: var(--ink); font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-look="board"] .nh-get.nh-price { border-color: var(--hair); color: var(--muted); }
html[data-look="board"] .nh-kend { display: flex; align-items: center; gap: 2px; }
html[data-look="board"] .nh-games { font-size: 13px; font-weight: 750; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-look="board"] .nh-games.nh-none { color: var(--muted); }
html[data-look="board"] .ch-games { flex: 0 0 auto; height: 30px; padding: 0 12px; margin-right: 2px; border: 1.5px solid var(--hair); border-radius: 15px; color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-look="board"] .ch-games.ch-none { color: var(--muted); }

html[data-look="board"] .sx-sheet { z-index: 60; }
html[data-look="board"] .sx-panel { display: flex; flex-direction: column; max-height: 92dvh; overflow: hidden; outline: none; padding-top: 10px; animation: ai-up 200ms ease-out; }
html[data-look="board"] .sx-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
html[data-look="board"] .sx-foot { flex: 0 0 auto; display: flex; flex-direction: column; padding-top: 12px; }
html[data-look="board"] .sx-kick { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
html[data-look="board"] .sx-panel h2 { margin: 6px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.8px; }
html[data-look="board"] .sx-lead { margin: 8px 0 12px; font-size: 16px; line-height: 1.4; color: var(--muted); }
html[data-look="board"] .sx-op { display: flex; gap: 14px; align-items: center; margin: 2px 0 12px; }
html[data-look="board"] .sx-board { flex: 0 0 96px; width: 96px; box-shadow: 0 0 0 1.5px var(--frame); }
html[data-look="board"][data-skin="night"] .sx-board { border-radius: 6px; overflow: hidden; }
html[data-look="board"] .sx-board svg { display: block; width: 100%; height: auto; }
html[data-look="board"] .sx-op p { margin: 0; font-size: 15.5px; line-height: 1.38; color: var(--soft); }
html[data-look="board"] .sx-facts { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
html[data-look="board"] .sx-facts div { line-height: 1.2; }
html[data-look="board"] .sx-facts b { display: block; font-size: 22px; font-weight: 850; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
html[data-look="board"] .sx-facts small { font-size: 12.5px; color: var(--muted); }
html[data-look="board"] .sx-msg { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: var(--soft); }
html[data-look="board"] .sx-msg.sx-bad { color: var(--bad); }
html[data-look="board"] .sx-go { width: 100%; min-height: 52px; font-size: 17px; }
html[data-look="board"] .sx-go:disabled { opacity: 0.4; }
html[data-look="board"] .sx-alt { min-height: 44px; margin-top: 4px; color: var(--ink); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html[data-look="board"] .sx-rest { margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
html[data-look="board"] .sx-link { min-height: 30px; color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html[data-look="board"] .sx-no { min-height: 46px; margin-top: 6px; color: var(--muted); font-size: 16px; font-weight: 700; }
html[data-look="board"] .sx-busy .sx-go,
html[data-look="board"] .sx-busy .sx-pk { opacity: 0.5; }
html[data-look="board"] .sx-packs { border-bottom: 1px solid var(--hair); }
html[data-look="board"] .sx-pk { display: flex; align-items: center; width: 100%; height: 74px; border-top: 1px solid var(--hair); text-align: left; -webkit-tap-highlight-color: transparent; }
html[data-look="board"] .sx-pk:active { background: var(--rise); }
html[data-look="board"] .sx-pk:disabled { opacity: 0.45; }
html[data-look="board"] .sx-n { flex: 0 0 70px; font-size: 40px; font-weight: 850; letter-spacing: -1.8px; line-height: 1; font-variant-numeric: tabular-nums; }
html[data-look="board"] .sx-w { flex: 1; min-width: 0; line-height: 1.25; }
html[data-look="board"] .sx-w b { display: block; font-size: 17px; font-weight: 700; }
html[data-look="board"] .sx-w small { font-size: 14px; color: var(--muted); }
html[data-look="board"] .sx-pr { display: flex; align-items: center; justify-content: center; height: 44px; min-width: 94px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 22px; color: var(--ink); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
html[data-look="board"] .sx-pr.sx-p1 { background: var(--btn); border-color: var(--btn); color: var(--btn-t); }
html[data-look="board"] .sx-fine { margin: 0; padding-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
html[data-look="board"] .sx-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 70; transform: translateX(-50%); padding: 12px 18px; border-radius: 24px; background: var(--btn); color: var(--btn-t); font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); transition: opacity 400ms; }
html[data-look="board"] .sx-toast.sx-out { opacity: 0; }
html[data-look="board"] .st-buy .st-trow + .st-trow { border-top: 1px solid var(--hair); }
html[data-look="board"] .st-buy .st-buymsg { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--soft); }
@media (max-width: 360px), (max-height: 640px) {
  html[data-look="board"] .sx-panel h2 { font-size: 27px; }
  html[data-look="board"] .sx-lead { font-size: 15px; margin: 6px 0 10px; }
  html[data-look="board"] .sx-pk { height: 62px; }
  html[data-look="board"] .sx-n { flex-basis: 58px; font-size: 32px; }
  html[data-look="board"] .sx-pr { min-width: 84px; height: 40px; font-size: 16px; }
  html[data-look="board"] .sx-board { flex-basis: 80px; width: 80px; }
  html[data-look="board"] .sx-op p { font-size: 14.5px; }
  html[data-look="board"] .sx-go { min-height: 48px; }
}

/* ---------- 11. The sign-in wall (v37) ---------- */
/* The one screen a reviewer and every new player meet without an account. It kept Classic's card
   until now: an amber rule and an amber kicker, which break the look's first rule (amber is the
   move to play, nothing else is coloured), and a sans title. Here it is the look's own: ink on
   paper, the statement in the serif, the reason set to be read, and a way back under the button. */
html[data-look="board"] .signwall .mastered-card { width: min(360px, calc(100vw - 32px)); padding: 26px 24px 14px; text-align: left; border: 1px solid var(--hair); border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
html[data-look="board"] .signwall .mastered-kicker { color: var(--muted); letter-spacing: 0.14em; }
html[data-look="board"] .signwall .mastered-name { margin-top: 8px; font-family: var(--serif); font-size: 29px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
html[data-look="board"] .signwall .mastered-sub { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--soft); }
html[data-look="board"] .signwall .sw-go { margin-top: 20px; min-height: 52px; line-height: 52px; border-radius: 26px; font-size: 17px; font-weight: 700; background: var(--btn); color: var(--btn-t); }
html[data-look="board"] .signwall .sw-home { color: var(--muted); }
@media (max-height: 600px) {
  html[data-look="board"] .signwall .mastered-card { padding: 20px 20px 8px; }
  html[data-look="board"] .signwall .mastered-name { font-size: 24px; }
  html[data-look="board"] .signwall .mastered-sub { font-size: 15px; line-height: 1.4; }
}
/* The same ask at the top of the account page (v38): the statement in the serif, then the reason. */
html[data-look="board"] .au-why { margin: 4px 0 20px; }
html[data-look="board"] .au-whyh { margin: 0 0 8px; font-family: var(--serif); font-size: 27px; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
html[data-look="board"] .au-whyp { margin: 0; font-size: 16px; line-height: 1.45; color: var(--soft); }
