/* ui-20260904-diagnostic-stats-cta-v1 */
/* PriorityChess responsive dashboard integration v41.
   This file only reshapes the real application DOM; static/styles.css and app.js retain product behaviour. */
:root {
  --dashboard-sidebar: 244px;
  --dashboard-topbar: 68px;
  --dashboard-bg: #090a0b;
  --dashboard-surface: #111315;
  --dashboard-surface-2: #17191c;
  --dashboard-line: rgba(255,255,255,.08);
  --dashboard-orange: #f47a22;
  --dashboard-text: #f4f3f0;
  --dashboard-muted: #8d9298;
}

html, body { height: 100%; overflow: hidden; }
body { background: var(--dashboard-bg); }
.dashboard-root { min-height: 100dvh; display: grid; grid-template-columns: var(--dashboard-sidebar) minmax(0, 1fr); background: radial-gradient(circle at 72% -20%, rgba(244,122,34,.08), transparent 30%), var(--dashboard-bg); }
.dashboard-root.sidebar-collapsed { --dashboard-sidebar: 78px; }

.app-sidebar { position: relative; z-index: 30; min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--dashboard-line); background: linear-gradient(180deg, #0e1012, #090a0b); box-shadow: 18px 0 42px rgba(0,0,0,.2); }
.sidebar-brand { min-height: var(--dashboard-topbar); display: flex; align-items: center; gap: 8px; padding: 12px 13px; border-bottom: 1px solid var(--dashboard-line); }
.app-sidebar .brand-logo-card { min-width: 0; width: 178px; border-radius: 10px; }
.app-sidebar .brand-logo { width: 178px; max-width: none; border-radius: 10px; }
.desktop-sidebar-toggle, .mobile-drawer-close { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 9px; color: #b7bbc0; background: #17191c; }
.mobile-drawer-close { display: none; font-size: 24px; }
.sidebar-nav { min-height: 0; display: flex; flex-direction: column; gap: 5px; padding: 18px 12px; overflow-y: auto; }
.sidebar-group-label { padding: 11px 9px 5px; color: #666c72; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.dashboard-nav-item { min-width: 0; width: 100%; min-height: 55px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; color: #adb1b6; background: transparent; box-shadow: none; text-align: left; }
.dashboard-nav-item:hover:not(:disabled) { transform: none; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.dashboard-nav-item[aria-current="page"] { color: #fff; border-color: rgba(244,122,34,.34); background: linear-gradient(90deg, rgba(244,122,34,.18), rgba(244,122,34,.045)); box-shadow: inset 3px 0 0 var(--dashboard-orange); }
.dashboard-nav-item[aria-disabled="true"] { opacity: .44; cursor: default; }
.dashboard-nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #858a90; font-size: 17px; background: rgba(255,255,255,.035); }
.dashboard-nav-item[aria-current="page"] .dashboard-nav-icon { color: #ffc18f; background: rgba(244,122,34,.16); }
.dashboard-nav-item > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dashboard-nav-item strong { overflow: hidden; color: inherit; font-size: 14px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-nav-item small { overflow: hidden; color: #666c72; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-nav-item em { min-width: 24px; padding: 3px 6px; border-radius: 999px; color: #989da2; background: rgba(255,255,255,.055); font-size: 9px; font-style: normal; font-weight: 800; text-align: center; }
.dashboard-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #45d38a; box-shadow: 0 0 12px rgba(69,211,138,.7); }
.sidebar-footer { min-height: 67px; display: grid; grid-template-columns: 34px minmax(0,1fr) 28px; align-items: center; gap: 9px; padding: 12px 15px; border-top: 1px solid var(--dashboard-line); }
.sidebar-footer-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(244,122,34,.35); border-radius: 10px; color: #ffc18f; background: rgba(244,122,34,.12); font-size: 11px; font-weight: 900; }
.sidebar-footer div { min-width: 0; display: flex; flex-direction: column; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { color: #73787e; font-size: 9px; }
.sidebar-footer a { color: #afb4b9; text-decoration: none; }
.mobile-nav-scrim { display: none; }

.sidebar-collapsed .app-sidebar .brand-logo-card, .sidebar-collapsed .dashboard-nav-item > span:nth-child(2), .sidebar-collapsed .dashboard-nav-item em, .sidebar-collapsed .sidebar-group-label, .sidebar-collapsed .sidebar-footer div, .sidebar-collapsed .sidebar-footer a { display: none; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 8px; }
.sidebar-collapsed .dashboard-nav-item { grid-template-columns: 1fr; justify-items: center; padding-inline: 8px; }
.sidebar-collapsed .sidebar-footer { grid-template-columns: 1fr; justify-items: center; }

.dashboard-main.shell { width: 100%; max-width: none; height: 100dvh; margin: 0; padding: 0; overflow: hidden; }
.dashboard-topbar.hero { min-height: var(--dashboard-topbar); height: var(--dashboard-topbar); display: flex; align-items: center; gap: 16px; margin: 0; padding: 0 18px; border-bottom: 1px solid var(--dashboard-line); background: rgba(9,10,11,.9); backdrop-filter: blur(16px); }
.dashboard-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 9px; color: #5f656b; font-size: 12px; }
.dashboard-breadcrumb strong { overflow: hidden; color: #d4d5d5; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dashboard-topbar-actions button { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: 10px; font-weight: 750; }
.dashboard-topbar-actions .compact-select { min-width: 64px; min-height: 44px; padding-inline: 10px 24px; }
.dashboard-topbar-actions #dashboardRerunButton { color: #ffd1ac; border-color: rgba(244,122,34,.3); background: rgba(244,122,34,.08); }
.dashboard-scan-scope { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; color: #83898f; background: rgba(255,255,255,.025); font-size: 9px; font-weight: 750; }
.mobile-menu-button, .mobile-brand { display: none; }
.mobile-brand-home { min-width: 44px; min-height: 44px; text-decoration: none; }

.dashboard-layout.layout { height: calc(100dvh - var(--dashboard-topbar)); display: grid; grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); gap: 14px; align-items: stretch; padding: 14px; overflow: hidden; }
.dashboard-workspace, .board-dock { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #35393e transparent; }
.dashboard-report-canvas { min-height: 100%; }
.dashboard-report-pane, .dashboard-scan-pane { min-width: 0; }
.dashboard-report-pane[hidden], .dashboard-scan-pane[hidden] { display: none !important; }
.dashboard-report-pane > #blunderResult { min-height: 100%; display: grid; gap: 14px; color: var(--dashboard-text); }
.dashboard-section-hidden { display: none !important; }
.mobile-workspace-switch { display: none; }

.dashboard-scan-pane.panel { display: block; }
.dashboard-scan-pane .blunderlab-card { min-height: calc(100dvh - var(--dashboard-topbar) - 28px); padding: clamp(18px, 2vw, 28px); border-radius: 19px; background: linear-gradient(150deg, rgba(25,28,31,.97), rgba(14,16,18,.98)); }
.priorityscan-header { align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.priorityscan-heading-copy { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.priorityscan-heading-copy > div { min-width: 0; }
.priorityscan-title { margin: 0 0 8px; color: #f6a267; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.priorityscan-heading-copy h3 { margin: 0; color: #fff; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.035em; }

.dashboard-scan-pane .source-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.dashboard-scan-pane .source-button.source-card { min-height: 106px; border-radius: 14px; }
.dashboard-scan-pane .source-brand-icon, .dashboard-scan-pane .source-pgn-icon { width: 52px; height: 52px; }
.dashboard-scan-pane .blunder-inline-field { margin-top: 13px; }
.dashboard-scan-pane .blunder-inline-field > label { margin-top: 0; color: #777d83; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-scan-pane input, .dashboard-scan-pane select { min-height: 45px; border-radius: 11px; background-color: #111315; }
#blunderProfileSelect { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dashboard-depth-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.dashboard-depth-grid button { min-width: 0; min-height: 72px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 10px 11px; border-radius: 12px; background: #121416; text-align: left; }
.dashboard-depth-grid button[aria-pressed="true"] { border-color: rgba(244,122,34,.68); background: linear-gradient(145deg, rgba(244,122,34,.2), rgba(65,29,10,.35)); box-shadow: inset 0 0 0 1px rgba(244,122,34,.15); }
.dashboard-depth-grid strong { color: #f2f1ee; font-size: 11px; line-height: 1.25; }
.dashboard-depth-grid small { color: #767c82; font-size: 9px; }
#blunderSelectedRunRow { margin-top: 14px; }
.dashboard-scan-action { position: relative; width: 100%; min-height: 58px; display: flex; align-items: center; padding-right: 48%; border-radius: 14px; font-size: 14px; font-weight: 800; text-align: left; }
.dashboard-scan-action::after { content: attr(data-scan-context); position: absolute; right: 42px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 650; }
.dashboard-scan-action::before { content: '→'; position: absolute; right: 17px; font-size: 18px; }

.board-dock.board-card { height: 100%; padding: 14px; border-radius: 19px; background: linear-gradient(155deg, rgba(22,24,27,.98), rgba(12,14,16,.98)); }
.board-dock .board-toolbar { gap: 7px; margin-bottom: 12px; }
.board-dock .board-toolbar button { min-height: 34px; padding: 7px 9px; font-size: 9px; }
.board-dock .board-stage { width: 100%; grid-template-columns: 16px minmax(0,1fr); gap: 7px; }
.board-dock .board-stage .board { width: 100%; max-width: none; }
.board-dock .board { width: 100%; }
.board-dock .board-options, .board-dock .history, .board-dock .message { font-size: 10px; }
.board-dock .computer-play-card, .board-dock .position-tools-card { margin-top: 12px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: none; }
.board-dock .computer-play-card h2 { font-size: 13px; }
.board-dock .position-tools-card summary { font-size: 12px; }

.dashboard-report-pane .report-shell-section, .dashboard-report-pane .macro-profile-card { border-radius: 18px; box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.dashboard-report-pane .report-shell-heading { min-height: 62px; }
.dashboard-report-pane .report-section-content { padding: clamp(12px,1.4vw,18px); }

/* The historical guided-session focus mode hid the old global header/report with !important.
   The dashboard keeps its navigation chrome available and lets the explicit mobile pane switch
   decide whether the real report or the board is visible. */
.guided-session-active .dashboard-topbar.hero { display: flex !important; }
.guided-session-active .dashboard-main.shell { width: 100% !important; max-width: none !important; height: 100dvh; padding: 0 !important; }
.guided-session-active .dashboard-layout.layout { display: grid !important; }
.guided-session-active .board-dock.board-card { width: auto !important; max-width: none !important; margin: 0 !important; }
.guided-session-active #blunderResult { display: grid !important; }

@media (max-width: 1100px) and (min-width: 761px) {
  :root { --dashboard-sidebar: 220px; }
  .dashboard-layout.layout { grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr); gap: 10px; padding: 10px; }
  .dashboard-scan-scope { display: none; }
  .app-sidebar .brand-logo-card, .app-sidebar .brand-logo { width: 155px; }
}

@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }
  .dashboard-root { min-height: 100dvh; display: block; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px, 84vw); min-height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 28px 0 80px rgba(0,0,0,.58); }
  .dashboard-root.mobile-nav-open .app-sidebar { transform: translateX(0); }
  .desktop-sidebar-toggle { display: none; }
  .mobile-drawer-close { display: grid; margin-left: auto; min-width: 44px; width: 44px; height: 44px; }
  .mobile-nav-scrim { position: fixed; inset: 0; z-index: 25; display: block; padding: 0; border: 0; border-radius: 0; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .dashboard-root.mobile-nav-open .mobile-nav-scrim { opacity: 1; pointer-events: auto; }
  .sidebar-brand { min-height: 70px; }
  .app-sidebar .brand-logo-card, .app-sidebar .brand-logo { width: 177px; }
  .dashboard-nav-item { min-height: 56px; }
  .sidebar-footer { margin-top: auto; }

  .dashboard-main.shell { height: 100dvh; overflow: hidden; }
  .dashboard-topbar.hero { height: calc(64px + env(safe-area-inset-top)); min-height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; gap: 9px; }
  .mobile-menu-button { min-width: 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; font-size: 18px; }
  .mobile-brand { min-width: 0; display: flex; align-items: center; gap: 9px; }
  .mobile-brand img { width: 112px; max-height: 36px; object-fit: contain; object-position: left center; }
  .mobile-brand strong { max-width: 94px; overflow: hidden; padding-left: 9px; border-left: 1px solid var(--dashboard-line); color: #e4e5e5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-breadcrumb, .dashboard-scan-scope, #dashboardRerunButton { display: none; }
  .dashboard-topbar-actions { margin-left: auto; }
  .dashboard-topbar-actions .compact-select { min-width: 64px; height: 44px; padding-inline: 10px 24px; }

  .dashboard-layout.layout { height: calc(100dvh - 64px - env(safe-area-inset-top)); display: block; padding: 0 0 env(safe-area-inset-bottom); overflow-y: auto; }
  .guided-session-active .dashboard-layout.layout { display: block !important; }
  .guided-session-active .board-dock.board-card { width: calc(100% - 24px) !important; max-width: none !important; margin: 0 12px 12px !important; }
  .guided-session-active .board-stage { width: 100% !important; max-width: none !important; grid-template-columns: minmax(0, 1fr) !important; }
  .guided-session-active #board { width: 100% !important; min-width: 0; }
  .dashboard-workspace, .board-dock { overflow: visible; }
  .mobile-workspace-switch { position: sticky; top: 0; z-index: 12; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 12px; padding: 4px; border: 1px solid var(--dashboard-line); border-radius: 14px; background: rgba(13,15,17,.94); backdrop-filter: blur(14px); }
  .mobile-workspace-switch button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 0; color: #787e84; background: transparent; font-size: 12px; }
  .mobile-workspace-switch button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(244,122,34,.24), rgba(244,122,34,.075)); box-shadow: inset 0 0 0 1px rgba(244,122,34,.25); }
  .dashboard-report-canvas { padding: 0 12px 14px; }
  .dashboard-root[data-mobile-pane="board"] .dashboard-report-canvas { display: none; }
  .dashboard-root[data-mobile-pane="report"] .board-dock { display: none; }
  .board-dock.board-card { height: auto; margin: 0 12px 14px; padding: 12px; overflow: visible; }
  .board-dock .board-stage { grid-template-columns: 14px minmax(0,1fr); gap: 6px; }
  .board-dock .board-toolbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) 40px 40px; }
  .board-dock .board-toolbar button { min-width: 0; min-height: 40px; padding: 6px; white-space: nowrap; }
  .board-dock .icon-button { min-width: 40px; }
  .dashboard-scan-pane .blunderlab-card { min-height: 0; padding: 17px 15px; }
  .priorityscan-header { grid-template-columns: minmax(0,1fr); }

  .priorityscan-heading-copy h3 { font-size: 27px; }
  .dashboard-scan-pane .source-button.source-card { min-height: 90px; padding: 9px 6px; }
  .dashboard-scan-pane .source-brand-icon, .dashboard-scan-pane .source-pgn-icon { width: 42px; height: 42px; }
  .dashboard-scan-pane .source-brand-name, .dashboard-scan-pane .source-card-label { font-size: 11px; }
  .dashboard-depth-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-depth-grid button { min-height: 68px; }
  .dashboard-scan-action { padding-right: 46%; }
  .dashboard-report-pane .report-section-content { padding: 12px; }
}

@media (max-width: 360px) {
  .mobile-brand img { width: 92px; }
  .mobile-brand strong { max-width: 72px; font-size: 10px; }
  .dashboard-topbar-actions .compact-select { min-width: 64px; }
  .dashboard-report-canvas { padding-inline: 8px; }
  .mobile-workspace-switch, .board-dock.board-card { margin-inline: 8px; }
  .dashboard-scan-pane .source-card-grid { gap: 6px; }
  .dashboard-scan-pane .source-button.source-card { min-height: 86px; }
  .dashboard-scan-pane .source-brand-icon, .dashboard-scan-pane .source-pgn-icon { width: 38px; height: 38px; }
  .dashboard-scan-action { min-height: 62px; padding-right: 12px; padding-bottom: 24px; }
  .dashboard-scan-action::after { right: auto; left: 14px; bottom: 9px; }
  .board-dock .board-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .board-dock .icon-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar, .mobile-nav-scrim { transition: none; }
}

/* ui-20260815-mobile-entry-signal-offer-v79
   Visual authority: prioritychess-sidebar-dashboard-v5 and David's nine approved captures.
   Product authority stays in app.js: these rules restyle the real report, board and sessions. */
:root {
  --candidate-bg: #111211;
  --candidate-sidebar: #1d1e1d;
  --candidate-sidebar-deep: #191a19;
  --candidate-canvas: #151615;
  --candidate-surface: #1b1d1e;
  --candidate-raised: #212326;
  --candidate-soft: #25272a;
  --candidate-line: rgba(255,255,255,.075);
  --candidate-line-strong: rgba(255,255,255,.12);
  --candidate-text: #f4f3f0;
  --candidate-muted: #969ba1;
  --candidate-quiet: #6d7278;
  --candidate-orange: #f47a22;
  --candidate-orange-soft: #ffb06c;
  --candidate-cyan: #6cc9dd;
  --candidate-green: #51bf82;
  --candidate-gold: #d5ad66;
  --candidate-danger: #e86f61;
  --dashboard-sidebar: 244px;
  --dashboard-topbar: 68px;
}

html, body { color: var(--candidate-text); background: var(--candidate-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--candidate-orange-soft); outline-offset: 2px; }

/* Shell, rail and topbar */
.dashboard-root { grid-template-columns: var(--dashboard-sidebar) minmax(0,1fr); background: var(--candidate-bg); }
.app-sidebar {
  border-right: 1px solid var(--candidate-line);
  background:
    radial-gradient(circle at 1px 1px,rgba(255,255,255,.022) 1px,transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(180deg,var(--candidate-sidebar),var(--candidate-sidebar-deep));
  box-shadow: none;
}
.sidebar-brand { min-height: 72px; padding: 0 14px 0 16px; border-bottom-color: var(--candidate-line); }
.app-sidebar .brand-logo-card, .app-sidebar .brand-logo { width: 154px; border-radius: 0; }
.desktop-sidebar-toggle, .mobile-drawer-close {
  border: 1px solid transparent; border-radius: 8px; color: #969a9f; background: transparent; box-shadow: none;
}
.desktop-sidebar-toggle:hover { border-color: var(--candidate-line); color: #fff; background: rgba(255,255,255,.04); }
.sidebar-nav { gap: 4px; padding: 22px 12px 16px; }
.sidebar-group-label { margin: 0 10px; padding: 12px 0 5px; color: #858a8f; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.dashboard-nav-item { min-height: 52px; grid-template-columns: 22px minmax(0,1fr) auto; gap: 11px; padding: 7px 10px; border-radius: 10px; color: #b4b8bc; }
.dashboard-nav-item:hover:not(:disabled) { border-color: transparent; color: #e7e8e9; background: rgba(255,255,255,.035); }
.dashboard-nav-item[aria-current="page"] { border-color: rgba(244,122,34,.18); background: linear-gradient(90deg,rgba(244,122,34,.14),rgba(244,122,34,.045)); box-shadow: inset 3px 0 0 var(--candidate-orange); }
.dashboard-nav-icon { width: 20px; height: 20px; border-radius: 0; color: inherit; background: transparent; font-size: 16px; }
.dashboard-nav-item[aria-current="page"] .dashboard-nav-icon { color: var(--candidate-orange-soft); background: transparent; }
.dashboard-nav-item strong { font-size: 14px; font-weight: 580; }
.dashboard-nav-item small { color: #858a8f; font-size: 11px; font-weight: 420; }
.dashboard-nav-item[aria-current="page"] small { color: #bd9a80; }
.dashboard-nav-item em { min-width: 23px; height: 22px; display: grid; place-items: center; padding: 0 6px; border: 1px solid var(--candidate-line); color: #7e8388; background: rgba(255,255,255,.025); font-size: 10px; }
.dashboard-nav-item[aria-current="page"] em { border-color: rgba(244,122,34,.25); color: var(--candidate-orange-soft); background: rgba(244,122,34,.09); }
.dashboard-status-dot { width: 7px; height: 7px; margin-right: 5px; background: var(--candidate-green); box-shadow: 0 0 0 5px rgba(81,191,130,.08); }
.sidebar-footer { min-height: 74px; padding: 12px 14px; border-top-color: var(--candidate-line); background: rgba(0,0,0,.08); }
.sidebar-footer-mark { width: 38px; height: 38px; border-color: rgba(244,122,34,.24); color: var(--candidate-orange-soft); background: rgba(244,122,34,.09); }

.dashboard-main.shell { background: var(--candidate-bg); }
.dashboard-topbar.hero { height: var(--dashboard-topbar); min-height: var(--dashboard-topbar); padding: 0 22px; border-bottom-color: var(--candidate-line); background: rgba(18,19,18,.96); backdrop-filter: none; }
.dashboard-breadcrumb { gap: 8px; color: #6f7479; font-size: 12px; }
.dashboard-breadcrumb strong { color: #d7d9da; font-weight: 560; }
.dashboard-topbar-actions { gap: 9px; }
.dashboard-scan-scope { min-height: 30px; padding: 0; border: 0; color: #74797e; background: transparent; font-size: 11px; font-weight: 560; }
.dashboard-topbar-actions button, .dashboard-topbar-actions .compact-select { min-height: 38px; border: 1px solid var(--candidate-line); border-radius: 8px; color: #c8cbcd; background: rgba(255,255,255,.025); box-shadow: none; font-size: 11px; font-weight: 560; }
.dashboard-topbar-actions button:hover:not(:disabled) { transform: none; border-color: rgba(244,122,34,.32); color: #fff; background: rgba(255,255,255,.05); }
.dashboard-topbar-actions #dashboardRerunButton { border-color: var(--candidate-line-strong); color: var(--candidate-orange-soft); background: rgba(255,255,255,.025); }
.dashboard-topbar-actions button:disabled { opacity: .42; }

/* 60/40 workspace */
.dashboard-layout.layout {
  height: calc(100dvh - var(--dashboard-topbar));
  grid-template-columns: minmax(0,3fr) minmax(400px,2fr);
  align-items: start; gap: 18px; padding: 18px 20px 20px;
  background: radial-gradient(circle at 72% -15%,rgba(244,122,34,.065),transparent 30%),linear-gradient(145deg,#131413,#101110 70%);
}
.dashboard-workspace { height: 100%; overflow-y: auto; }
.dashboard-report-canvas, .board-dock.board-card {
  min-width: 0; border: 1px solid var(--candidate-line); border-radius: 15px;
  background: linear-gradient(155deg,rgba(28,30,31,.98),rgba(20,21,22,.98));
  box-shadow: 0 20px 55px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025);
}
.dashboard-report-canvas { min-height: 100%; overflow: hidden; }
.dashboard-report-pane > #blunderResult { min-height: 100%; gap: 0; padding: 22px !important; border: 0 !important; border-radius: 0 !important; color: var(--candidate-text); background: transparent !important; box-shadow: none !important; }

/* PriorityScan: real controls in candidate composition */
.dashboard-scan-pane.panel { margin: 0; padding: 0; background: transparent; }
.dashboard-scan-pane .blunderlab-card { min-height: calc(100dvh - var(--dashboard-topbar) - 38px); padding: 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.priorityscan-header { min-height: 78px; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 18px; margin: 0 0 17px; padding: 13px 16px; }
.priorityscan-mark { display: none; }
.priorityscan-heading-copy::before { position: absolute; top: 50%; left: 0; width: 3px; height: 38px; border-radius: 999px; content: ""; background: var(--candidate-orange); box-shadow: 0 0 14px rgba(244,122,34,.18); transform: translateY(-50%); }
.priorityscan-heading-copy { position: relative; gap: 0; padding-left: 14px; }
.priorityscan-title { margin: 0 0 5px; color: var(--candidate-orange-soft); font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .12em; }
.priorityscan-heading-copy h3 { margin: 0; color: var(--candidate-text); font-size: clamp(26px,2.1vw,32px); line-height: 1.12; letter-spacing: -.035em; font-weight: 630; }

.dashboard-scan-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(210px,.65fr); gap: 12px; }
.dashboard-scan-form, .dashboard-scan-benefits { border: 1px solid var(--candidate-line); border-radius: 13px; background: rgba(255,255,255,.016); }
.dashboard-scan-form { padding: 17px; }
.dashboard-scan-pane .source-card-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
.dashboard-scan-form > .source-card-grid { margin-top: 0; }
.dashboard-scan-pane .source-button.source-card { position: relative; min-height: 92px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 10px; border: 1px solid var(--candidate-line); border-radius: 10px; color: #acb0b4; background: rgba(255,255,255,.018); box-shadow: none; }
.dashboard-scan-pane .source-button.source-card:hover { transform: none; border-color: var(--candidate-line-strong); background: rgba(255,255,255,.03); }
.dashboard-scan-pane .source-button.source-card.active, .dashboard-scan-pane .source-button.source-card[aria-pressed="true"] { border-color: rgba(244,122,34,.24); color: #fff; background: rgba(244,122,34,.05); box-shadow: inset 0 0 0 1px rgba(244,122,34,.04); }
.dashboard-scan-pane .source-button.source-card[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--candidate-orange); font-size: 9px; }
.dashboard-scan-pane .source-brand-lockup { gap: 6px; }
.dashboard-scan-pane .source-brand-icon, .dashboard-scan-pane .source-pgn-icon { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
.dashboard-scan-pane .source-pgn-icon { color: var(--candidate-cyan); background: rgba(108,201,221,.07); }
.dashboard-scan-pane .source-pgn-icon svg { width: 23px; }
.dashboard-scan-pane .source-brand-name, .dashboard-scan-pane .source-card-label { color: inherit; font-size: 11px; font-weight: 600; }
.dashboard-scan-fields { display: grid; grid-template-columns: 1.3fr .7fr; gap: 9px; margin-top: 12px; }
.dashboard-scan-form .blunder-inline-field { margin-top: 12px; }
.dashboard-scan-fields .blunder-inline-field { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; margin-top: 0; }
.dashboard-scan-fields .blunder-inline-field > label { width: auto; }
.dashboard-scan-fields .blunder-inline-field > input,
.dashboard-scan-fields .blunder-inline-field > select { width: 100% !important; min-width: 0; }
.dashboard-scan-pane .blunder-inline-field > label { margin: 0 0 6px; color: #777d82; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.dashboard-scan-pane input, .dashboard-scan-pane select, .dashboard-scan-pane textarea { min-height: 41px; padding: 0 11px; border: 1px solid var(--candidate-line); border-radius: 8px; color: #e2e3e4; background: #191b1c; box-shadow: none; font-size: 11px; }
.dashboard-scan-pane textarea { min-height: 132px; padding-block: 10px; }
.dashboard-depth-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.dashboard-depth-grid button { min-height: 57px; align-items: center; padding: 8px 6px; border: 1px solid var(--candidate-line); border-radius: 8px; color: #a4a9ad; background: rgba(255,255,255,.018); box-shadow: none; text-align: center; }
.dashboard-depth-grid button[aria-pressed="true"] { border-color: rgba(244,122,34,.25); color: #fff; background: rgba(244,122,34,.06); box-shadow: none; }
.dashboard-depth-grid strong { color: inherit; font-size: 10px; font-weight: 590; }
.dashboard-depth-grid small { color: #747a80; font-size: 8px; }
.depth-mobile-label { display: none; }
.dashboard-depth-grid button:focus-visible { outline: 2px solid var(--candidate-orange-soft); outline-offset: 2px; }
#blunderSelectedRunRow { margin-top: 14px; }
.dashboard-scan-action, #runPgnBlunderBtn { min-height: 51px; border: 1px solid rgba(255,176,108,.32); border-radius: 9px; color: #fff; background: linear-gradient(135deg,#ff9a42,var(--candidate-orange) 55%,#b7470d); box-shadow: 0 10px 25px rgba(244,122,34,.16),inset 0 1px 0 rgba(255,255,255,.18); }
.dashboard-scan-action { padding-right: 44%; font-size: 13px; font-weight: 680; }
.dashboard-scan-action::after { right: 41px; font-size: 10px; }
.dashboard-scan-action::before { right: 15px; }
.dashboard-scan-benefits { align-self: start; padding: 17px; }
.dashboard-scan-benefits > span { color: var(--candidate-orange-soft); font-size: 9px; font-weight: 720; letter-spacing: .09em; }
.dashboard-scan-benefits ol { list-style: none; display: grid; gap: 5px; margin: 14px 0 0; padding: 0; }
.dashboard-scan-benefits li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.045); }
.dashboard-scan-benefits li:first-child { border-top: 0; }
.dashboard-scan-benefits i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--candidate-orange-soft); background: rgba(244,122,34,.07); font-size: 9px; font-style: normal; font-weight: 680; }
.dashboard-scan-benefits li div { display: grid; gap: 3px; }
.dashboard-scan-benefits strong { color: var(--candidate-text); font-size: 10px; }
.dashboard-scan-benefits small { color: #777d82; font-size: 8px; line-height: 1.35; }

/* Real dynamic report: candidate headings and neutral surfaces */
.candidate-report-decorated { display: grid !important; gap: 0 !important; }
.candidate-report-decorated > .dashboard-section-hidden { display: none !important; }
.candidate-report-decorated > .report-analysis-section,
.candidate-report-decorated > .report-priorities-section,
.candidate-report-decorated > .report-sprint-section,
.candidate-report-decorated > .report-details-section,
.candidate-report-decorated > .macro-profile-card {
  margin: 0 !important; padding: 0 !important; overflow: visible; border: 0 !important; border-radius: 0 !important;
  color: var(--candidate-text); background: transparent !important; box-shadow: none !important;
}
.candidate-source-summary { display: none !important; }
.candidate-view-heading { min-height: 70px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 0 0 17px; }
.candidate-view-heading > div { min-width: 0; }
.candidate-view-heading > div > span { display: block; margin-bottom: 5px; color: var(--candidate-orange-soft); font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .12em; }
.candidate-view-heading h1 { margin: 0; color: var(--candidate-text); font-size: clamp(26px,2.1vw,32px); line-height: 1.12; letter-spacing: -.035em; font-weight: 630; text-wrap: balance; }
.candidate-view-heading p { margin: 7px 0 0; color: var(--candidate-muted); font-size: 13px; line-height: 1.5; }
.candidate-view-heading p:empty { display: none; }
.candidate-view-heading em { flex: 0 0 auto; min-height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(244,122,34,.22); border-radius: 999px; color: #ffd0ac; background: rgba(244,122,34,.07); font-size: 10px; font-style: normal; font-weight: 670; white-space: nowrap; }
.candidate-view-heading em i { width: 6px; height: 6px; border-radius: 50%; background: var(--candidate-orange); }
.candidate-report-decorated .report-section-content, .candidate-report-decorated .macro-profile-content { padding: 0 !important; }
.candidate-report-decorated .report-flow-section:first-child { margin-top: 0 !important; }

/* Diagnostic */
.candidate-report-decorated .analysis-results-card { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.candidate-report-decorated .analysis-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 13px; }
.candidate-report-decorated .analysis-metric {
  position: relative; min-height: 76px; display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; place-items: initial; align-items: center; align-content: center; gap: 2px 11px;
  padding: 13px; border: 1px solid var(--candidate-line); border-radius: 11px; color: var(--candidate-text); background: rgba(255,255,255,.018); box-shadow: none; text-align: left;
}
.candidate-report-decorated .analysis-metric::before { position: static; width: 38px; height: 38px; grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--candidate-orange-soft); background: rgba(244,122,34,.09); box-shadow: none; content: '✓'; font-size: 15px; }
.candidate-report-decorated .analysis-metric-moves::before { color: var(--candidate-cyan); background: rgba(108,201,221,.08); content: '◷'; }
.candidate-report-decorated .analysis-metric-blunders::before { color: var(--candidate-green); background: rgba(81,191,130,.08); content: '!'; }
.candidate-report-decorated .analysis-metric small { grid-column: 2; grid-row: 1; align-self: end; color: #969ca1; font-size: 9px; line-height: 1.25; font-weight: 700; letter-spacing: .055em; }
.candidate-report-decorated .analysis-metric strong { width: auto; min-width: 0; height: auto; grid-column: 2; grid-row: 2; place-items: initial; order: initial; align-self: start; padding: 0; border: 0; border-radius: 0; color: #fff !important; background: transparent; box-shadow: none; font-size: 22px; line-height: 1.05; letter-spacing: -.04em; }
.candidate-report-decorated .dominant-error-card {
  position: relative; display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 8px 17px; padding: 19px !important; border: 1px solid rgba(244,122,34,.20) !important; border-radius: 13px !important;
  background: radial-gradient(circle at 88% 15%,rgba(244,122,34,.10),transparent 30%),linear-gradient(125deg,rgba(84,36,10,.30),rgba(31,30,28,.82) 48%,rgba(23,25,26,.95)) !important; box-shadow: none !important;
}
.candidate-report-decorated .dominant-error-card::before { grid-column: 1; grid-row: 1 / span 4; display: flex; align-items: flex-start; padding-right: 16px; border-right: 1px solid var(--candidate-line); color: var(--candidate-orange-soft); content: '01'; font-size: 44px; line-height: .95; letter-spacing: -.07em; font-weight: 660; }
.candidate-report-decorated .dominant-error-card::after { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--candidate-orange),rgba(244,122,34,.03) 62%); content: ''; }
.candidate-report-decorated .dominant-error-card > * { grid-column: 2; }
.candidate-report-decorated .dominant-error-card .priority-now-eyebrow { color: var(--candidate-orange-soft); font-size: 10px; font-weight: 720; letter-spacing: .1em; }
.candidate-report-decorated .dominant-error-card .priority-now-title { margin: 0; color: #fff !important; font-size: clamp(20px,1.55vw,23px); line-height: 1.18; letter-spacing: -.025em; font-weight: 610; }
.candidate-report-decorated .dominant-error-evidence { color: #bbb4ae; font-size: 10px; }
.candidate-report-decorated .dominant-error-impact-dots i { background: var(--candidate-orange-soft); }
.candidate-report-decorated .priority-context-card { margin: 3px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--candidate-line); border-radius: 0; background: transparent; }
.candidate-report-decorated .priority-context-icon { color: var(--candidate-cyan); background: rgba(108,201,221,.08); }
.candidate-report-decorated .recurring-themes-section { margin-top: 12px; padding: 0; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); box-shadow: none; }
.candidate-report-decorated .recurring-themes-section > summary { min-height: 48px; padding: 10px 13px; border-bottom: 1px solid var(--candidate-line); }
.candidate-report-decorated .theme-coverage-summary { margin: 0; padding: 10px 13px 0; color: #8d9297; font-size: 10px; }
.candidate-report-decorated .recurring-themes-grid { gap: 0; margin: 8px 0 0; }
.candidate-report-decorated .theme-insight-card { min-height: 49px; grid-template-columns: 28px minmax(0,1fr); gap: 9px; padding: 8px 13px; border: 0; border-top: 1px solid rgba(255,255,255,.045); border-radius: 0; background: transparent; box-shadow: none; }
.candidate-report-decorated .theme-insight-card::before { width: 0; background: none; }

/* Priority */
.candidate-report-decorated .priority-dashboard-section { display: grid; gap: 13px; }
.candidate-report-decorated .priority-next-step-card { position: relative; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 9px 19px; margin: 0; padding: 22px !important; border: 1px solid rgba(244,122,34,.24) !important; border-radius: 14px !important; background: linear-gradient(125deg,rgba(86,36,9,.28),rgba(29,30,30,.94) 56%,rgba(21,36,39,.65)) !important; box-shadow: none !important; }
.candidate-report-decorated .priority-next-step-card::before { grid-column: 1; grid-row: 1 / span 5; color: var(--candidate-orange-soft); content: '01'; font-size: 46px; line-height: 1; letter-spacing: -.07em; font-weight: 660; }
.candidate-report-decorated .priority-next-step-card > * { grid-column: 2; }
.candidate-report-decorated .priority-next-step-card .priority-now-title { color: #fff !important; font-size: clamp(20px,1.75vw,26px); line-height: 1.22; letter-spacing: -.025em; font-weight: 610; }
.candidate-report-decorated .priority-now-evidence-sentence { margin: 0; color: #b6babd; font-size: 12px; line-height: 1.55; }
.candidate-report-decorated .priority-reflex-card { padding: 12px 14px; border: 1px solid rgba(108,201,221,.12); border-radius: 9px; background: rgba(108,201,221,.035); }
.candidate-report-decorated .priority-reflex-card b { color: var(--candidate-cyan); }
.candidate-report-decorated .priority-reflex-card span { color: #d8dcde; }
.candidate-report-decorated .priority-next-action-btn, .candidate-report-decorated [data-priority-center-action="train"], .candidate-report-decorated [data-mission-action="anchor"] { min-height: 51px; border: 1px solid rgba(255,176,108,.32); border-radius: 9px; color: #fff; background: linear-gradient(135deg,#ff9a42,var(--candidate-orange) 55%,#b7470d); box-shadow: 0 10px 25px rgba(244,122,34,.16),inset 0 1px 0 rgba(255,255,255,.18); }
.candidate-report-decorated .priority-top-three-section { margin: 0; padding: 0; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); box-shadow: none; }
.candidate-report-decorated .priority-top-three-section > summary { min-height: 48px; padding: 10px 14px; border-bottom: 1px solid var(--candidate-line); }
.candidate-report-decorated .priority-top-three-section .training-priorities { gap: 0; margin: 0; }
.candidate-report-decorated .training-priority { padding: 14px; border: 0; border-top: 1px solid rgba(255,255,255,.045); border-radius: 0; background: transparent; box-shadow: none; }

/* Reflexes / real priority center */
.candidate-report-decorated .priority-center-card { overflow: hidden; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); box-shadow: none; }
.candidate-report-decorated .priority-center-layout { grid-template-columns: minmax(230px,.83fr) minmax(0,1.17fr); min-height: 0; }
.candidate-report-decorated .priority-center-list { grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; border-right: 1px solid var(--candidate-line); background: transparent; }
.candidate-report-decorated .priority-center-list-label { padding: 14px 13px 10px; border-bottom: 1px solid var(--candidate-line); color: #dddfe0; font-size: 10px; }
.candidate-report-decorated .priority-center-tab { min-height: 70px; margin: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.045); border-radius: 0; background: transparent; box-shadow: none; }
.candidate-report-decorated .priority-center-tab:hover:not(:disabled), .candidate-report-decorated .priority-center-tab.is-selected { transform: none; border-color: rgba(255,255,255,.045); background: rgba(244,122,34,.045); box-shadow: inset 3px 0 0 var(--candidate-orange); }
.candidate-report-decorated .priority-center-rank-band { background: transparent; }
.candidate-report-decorated .priority-center-tab.is-selected .priority-center-rank-band { background: transparent; }
.candidate-report-decorated .priority-center-tab-status { overflow: visible; color: #858b90; font-size: 7px; letter-spacing: .055em; white-space: normal; text-overflow: clip; }
.candidate-report-decorated .priority-center-rank { color: var(--candidate-orange-soft); }
.candidate-report-decorated .priority-center-tab-copy strong { color: #dfe1e2; font-size: 11px; }
.candidate-report-decorated .priority-center-tab-copy > span { color: #8e9499; font-size: 10px; }
.candidate-report-decorated .priority-center-workspace { gap: 14px; padding: 19px; background: linear-gradient(145deg,rgba(75,34,10,.17),rgba(255,255,255,.008)); }
.candidate-report-decorated .priority-center-priority-head h3 { color: #fff; font-size: clamp(20px,1.55vw,23px); font-weight: 590; }
.candidate-report-decorated .priority-center-finding > div, .candidate-report-decorated .priority-center-reflex blockquote { border: 1px solid var(--candidate-line); border-radius: 9px; background: rgba(255,255,255,.018); }
.candidate-report-decorated .priority-center-reflex blockquote { border-left-color: var(--candidate-orange); }
.candidate-report-decorated .priority-center-reflex > span, .candidate-report-decorated .priority-center-status.is-current { color: var(--candidate-orange-soft); }
.candidate-report-decorated .priority-center-cycle { gap: 9px; }
.candidate-report-decorated .priority-center-reinforcement { border-color: var(--candidate-line); background: rgba(108,201,221,.025); }

/* Gaffes */
.candidate-report-decorated .report-details-section .report-section-content { padding: 0 !important; }
.candidate-report-decorated .bonus-selection-summary { margin: 0 0 9px; padding: 10px 13px; border: 1px solid rgba(244,122,34,.14); border-radius: 9px; color: #e8c5a9; background: rgba(244,122,34,.035); font-size: 10px; }
.candidate-report-decorated .detailed-blunder-list-content { gap: 9px; margin: 0; padding: 0; }
.candidate-report-decorated .bonus-blunder-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(130px,1.1fr) minmax(110px,.8fr) auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid var(--candidate-line); border-radius: 11px; background: rgba(255,255,255,.018); box-shadow: none; }
.candidate-report-decorated .bonus-blunder-card::before { display: none; }
.candidate-report-decorated .bonus-blunder-header { display: contents; }
.candidate-report-decorated .bonus-blunder-index { width: auto; height: auto; display: grid; gap: 1px; padding: 0; border: 0; border-radius: 0; color: var(--candidate-orange-soft); background: transparent; }
.candidate-report-decorated .bonus-blunder-index small { color: #8b9196; font-size: 7px; }
.candidate-report-decorated .bonus-blunder-index strong { color: var(--candidate-orange-soft); font-size: 20px; }
.candidate-report-decorated .bonus-blunder-theme > small { color: #8b9196; font-size: 9px; }
.candidate-report-decorated .bonus-blunder-theme h3 { color: #fff; font-size: 12px; font-weight: 580; }
.candidate-report-decorated .bonus-blunder-moves { display: block; }
.candidate-report-decorated .bonus-move { padding: 8px 10px; border: 1px solid rgba(255,255,255,.05); border-radius: 8px; background: rgba(255,255,255,.015); }
.candidate-report-decorated .bonus-move strong { font-size: 13px; }
.candidate-report-decorated .bonus-blunder-action-row { display: grid; justify-items: end; gap: 7px; }
.candidate-report-decorated .bonus-blunder-impact { color: #c6aa78; font-size: 9px; }
.candidate-report-decorated .bonus-blunder-footer .blunder-load-fen { min-height: 34px; border-color: rgba(244,122,34,.19); border-radius: 8px; color: #f2bf99; background: rgba(244,122,34,.05); }
.candidate-report-decorated .bonus-blunder-solution { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--candidate-line); }

/* Stats */
.candidate-report-decorated .macro-profile-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.candidate-report-decorated .macro-overview { grid-column: 1 / -1; grid-template-columns: 1.25fr .9fr .72fr; gap: 10px; padding: 0; }
.candidate-report-decorated .macro-profile-panel, .candidate-report-decorated .macro-color-card, .candidate-report-decorated .macro-openings-section, .candidate-report-decorated .macro-comparison-card { border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); box-shadow: none; }
.candidate-report-decorated .macro-profile-panel { min-height: 142px; padding: 15px; }
.candidate-report-decorated .macro-donut { width: 96px; box-shadow: none; }
.candidate-report-decorated .macro-donut::after { inset: 11px; background: #1c1e1f; }
.candidate-report-decorated .macro-donut-content strong { font-size: 21px; }
.candidate-report-decorated .macro-record-card { align-content: center; }
.candidate-report-decorated .macro-record-list { gap: 9px; }
.candidate-report-decorated .macro-rating-card strong { font-size: 30px; }
.candidate-report-decorated .macro-color-card, .candidate-report-decorated .macro-openings-section, .candidate-report-decorated .macro-comparison-card { margin: 0; padding: 14px; }
.candidate-report-decorated .macro-openings-grid, .candidate-report-decorated .macro-evolution-grid { gap: 8px; }
.candidate-report-decorated .macro-opening-card, .candidate-report-decorated .macro-evolution-grid > div { border-color: rgba(255,255,255,.05); background: rgba(255,255,255,.012); }
/* Candidate board dock, using the real board and controls */
.board-dock.board-card { height: 100%; padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #4a4e51 rgba(255,255,255,.02); scrollbar-width: thin; }
.board-dock.board-card::-webkit-scrollbar { width: 8px; }
.board-dock.board-card::-webkit-scrollbar-track { border-radius: 99px; background: rgba(255,255,255,.02); }
.board-dock.board-card::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #4a4e51; background-clip: padding-box; }
.candidate-board-header { min-height: 42px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.candidate-board-header > div { min-width: 0; display: grid; gap: 3px; }
.candidate-board-header > div span { color: #92989d; font-size: 9px; font-weight: 720; letter-spacing: .08em; }
.candidate-board-header > div strong { overflow: hidden; color: var(--candidate-text); font-size: 13px; font-weight: 590; white-space: nowrap; text-overflow: ellipsis; }
.candidate-board-turn { min-height: 25px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--candidate-line); border-radius: 999px; color: #a7acb0; background: rgba(255,255,255,.02); font-size: 9px; white-space: nowrap; }
.candidate-board-turn i { width: 6px; height: 6px; border-radius: 50%; background: #e8e2d8; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.board-dock .board-toolbar { display: grid; grid-template-columns: minmax(0,.97fr) minmax(0,1.24fr) minmax(0,.94fr) 29px 29px; gap: 5px; margin: 7px 0 10px; }
.board-dock .board-toolbar button { min-width: 0; min-height: 36px; overflow: hidden; padding: 0 4px; border: 1px solid var(--candidate-line); border-radius: 7px; color: #b5b9bd; background: rgba(255,255,255,.018); box-shadow: none; font-size: 9px; font-weight: 560; white-space: nowrap; text-overflow: ellipsis; }
.board-dock .board-toolbar button:hover:not(:disabled) { transform: none; color: #fff; border-color: rgba(244,122,34,.25); }
.board-dock .board-toolbar #bestBtn { border-color: rgba(108,201,221,.18); color: #addbe5; background: rgba(108,201,221,.045); }
.board-dock .board-toolbar button:disabled { opacity: .48; border-color: rgba(255,255,255,.10); }
.board-dock .board-stage { width: 100%; grid-template-columns: 17px minmax(0,1fr); gap: 6px; }
.board-dock .evaluation-bar { border: 1px solid var(--candidate-line-strong); border-radius: 5px; }
.board-dock .premium-chess-board { width: 100%; max-width: none; aspect-ratio: 1; padding: 4px; border: 1px solid rgba(61,34,17,.95); border-radius: 6px; background: linear-gradient(90deg,#24160e,#5d3b27 48%,#321f15); box-shadow: 0 18px 34px rgba(0,0,0,.38),0 4px 0 rgba(24,13,7,.4),inset 0 1px 0 rgba(236,208,153,.16); }
.board-dock .square.light { background: linear-gradient(90deg,rgba(255,246,215,.20),transparent 43%,rgba(117,69,32,.10)),repeating-linear-gradient(90deg,rgba(92,56,27,.11) 0 1px,transparent 1px 8px),linear-gradient(90deg,#d7bd8a,#c5a36f 52%,#ae7f4d) !important; }
.board-dock .square.dark { background: linear-gradient(90deg,rgba(215,171,111,.10),transparent 45%,rgba(44,24,13,.24)),repeating-linear-gradient(90deg,rgba(230,194,138,.07) 0 1px,transparent 1px 9px),linear-gradient(90deg,#805438,#70482f 54%,#54331f) !important; }
.board-dock .square img { width: 88%; height: 88%; filter: drop-shadow(0 1px 0 rgba(0,0,0,.28)); }
.board-dock .board-options, .board-dock .history { min-height: 34px; display: flex; align-items: center; color: #92989d; font-size: 10px; }
.board-dock .board-options { float: left; }
.board-dock .history { justify-content: flex-end; }
.board-dock .message { clear: both; min-height: 45px; display: flex; align-items: center; margin: 0; padding: 9px 10px; border: 1px solid rgba(108,201,221,.10); border-radius: 8px; color: #a1a7ac; background: rgba(108,201,221,.025); font-size: 10px; line-height: 1.4; }
.board-dock .computer-play-card, .board-dock .position-tools-card { margin-top: 12px; padding: 13px; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); box-shadow: none; }
.board-dock .computer-play-card:has(#playStockfishToggle:not(:checked)) .computer-side-field { display: none; }
.board-dock .computer-play-card:has(#playStockfishToggle:not(:checked)) { min-height: 50px; display: grid; align-content: center; padding-block: 9px; }
.board-dock .position-tools-card:not([open]) { min-height: 44px; padding-block: 10px; }
.board-dock .computer-play-card h2 { font-size: 13px; }
.board-dock .position-tools-card summary { color: #cfd2d4; font-size: 11px; }

@media (max-width: 1320px) and (min-width: 761px) {
  :root { --dashboard-sidebar: 226px; }
  .app-sidebar .brand-logo-card, .app-sidebar .brand-logo { width: 143px; }
  .dashboard-layout.layout { grid-template-columns: minmax(0,3fr) minmax(400px,2fr); gap: 14px; padding: 14px; }
  .dashboard-topbar.hero { padding-inline: 16px; }
  .dashboard-report-pane > #blunderResult, .dashboard-scan-pane .blunderlab-card { padding: 18px !important; }
  .candidate-report-decorated .dominant-error-card { grid-template-columns: 64px minmax(0,1fr); gap: 8px 13px; padding: 16px !important; }
  .candidate-report-decorated .dominant-error-card::before { font-size: 39px; }
  .candidate-report-decorated .priority-next-step-card { grid-template-columns: 58px minmax(0,1fr); gap: 9px 15px; padding: 18px !important; }
  .candidate-report-decorated .priority-next-step-card::before { font-size: 40px; }
}

@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }
  .dashboard-root, .dashboard-root.sidebar-collapsed { height: 100svh; display: block; }
  .dashboard-main.shell { height: 100svh; }
  .dashboard-topbar.hero { height: calc(60px + env(safe-area-inset-top)); min-height: calc(60px + env(safe-area-inset-top)); display: grid; grid-template-columns: 44px minmax(0,1fr) 64px; gap: 8px; padding: env(safe-area-inset-top) 10px 0; }
  .mobile-menu-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--candidate-line); border-radius: 11px; color: #cfd2d4; background: rgba(255,255,255,.025); }
  .mobile-brand { min-width: 0; display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: center; gap: 10px; }
  .mobile-brand img { width: 105px; }
  .mobile-brand strong { overflow: hidden; max-width: none; padding-left: 10px; border-left: 1px solid var(--candidate-line); color: #d9dbdd; font-size: 12px; font-weight: 580; white-space: nowrap; text-overflow: ellipsis; }
  .dashboard-breadcrumb, .dashboard-scan-scope, #dashboardRerunButton { display: none; }
  .dashboard-topbar-actions { margin: 0; }
  .dashboard-topbar-actions .compact-select { width: 64px; min-width: 64px; max-width: 64px; height: 44px; min-height: 44px; padding: 0 18px 0 7px; }

  .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(82vw,310px); min-width: 270px; min-height: 100svh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); transform: translateX(-102%); box-shadow: 28px 0 70px rgba(0,0,0,.55); }
  .dashboard-root.mobile-nav-open .app-sidebar { transform: translateX(0); }
  .desktop-sidebar-toggle { display: none; }
  .mobile-drawer-close { min-width: 44px; width: 44px; height: 44px; display: grid; margin-left: auto; border-color: var(--candidate-line); background: rgba(255,255,255,.025); }
  .sidebar-brand { min-height: 64px; }
  .app-sidebar .brand-logo-card, .app-sidebar .brand-logo { width: 154px; }
  .sidebar-nav { padding: 17px 12px 14px; }
  .dashboard-nav-item { min-height: 52px; }
  .sidebar-footer { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .mobile-nav-scrim { position: fixed; inset: 0; z-index: 40; display: block; padding: 0; border: 0; border-radius: 0; background: rgba(4,5,4,.72); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; }
  .dashboard-root.mobile-nav-open .mobile-nav-scrim { opacity: 1; pointer-events: auto; }

  .dashboard-layout.layout { height: calc(100svh - 60px - env(safe-area-inset-top)); display: block; padding: 0 0 max(22px,env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; background: radial-gradient(circle at 75% -8%,rgba(244,122,34,.07),transparent 25%),linear-gradient(145deg,#131413,#101110 70%); }
  .dashboard-workspace, .board-dock { height: auto; overflow: visible; }
  .mobile-workspace-switch { position: sticky; top: 0; z-index: 20; min-height: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 10px; padding: 4px; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(24,25,24,.92); box-shadow: 0 10px 25px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
  .mobile-workspace-switch button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 8px; color: #878d92; background: transparent; font-size: 12px; font-weight: 620; }
  .mobile-workspace-switch button[aria-selected="true"] { color: #fff; background: linear-gradient(110deg,rgba(244,122,34,.21),rgba(244,122,34,.08)); box-shadow: inset 0 0 0 1px rgba(244,122,34,.18); }
  .dashboard-report-canvas { margin: 0 10px 12px; border-radius: 14px; }
  .dashboard-root[data-mobile-pane="board"] .dashboard-report-canvas { display: none; }
  .dashboard-root[data-mobile-pane="report"] .board-dock { display: none; }
  .dashboard-report-pane > #blunderResult, .dashboard-scan-pane .blunderlab-card { padding: 16px 14px 18px !important; }

  .priorityscan-header { min-height: 0; display: block; margin-bottom: 15px; padding: 8px; }
  .priorityscan-heading-copy { gap: 0; padding-left: 10px; }
  .priorityscan-heading-copy::before { width: 2px; height: 30px; }
  .candidate-view-heading { min-height: 0; flex-direction: column; gap: 10px; margin-bottom: 15px; }
  .priorityscan-heading-copy h3, .candidate-view-heading h1 { font-size: 25px; line-height: 1.14; }
  .priorityscan-heading-copy h3 { overflow: visible; font-size: clamp(17.4px,4.6vw,19px); line-height: 1.14; letter-spacing: -.045em; white-space: normal; text-overflow: clip; }
  .candidate-view-heading p { font-size: 13px; }

  .candidate-view-heading em { align-self: flex-start; }
  .dashboard-scan-layout { grid-template-columns: 1fr; }
  .dashboard-scan-form, .dashboard-scan-benefits { padding: 14px; }
  .dashboard-scan-pane .source-card-grid { gap: 6px; }
  .dashboard-scan-pane .source-button.source-card { min-height: 88px; padding: 9px; }
  .dashboard-scan-fields { grid-template-columns: 1fr; }
  .dashboard-scan-pane input, .dashboard-scan-pane select { min-height: 44px; }
  .dashboard-depth-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-depth-grid button { min-height: 55px; }
  .dashboard-scan-action { min-height: 58px; }

  .candidate-report-decorated .analysis-metric-grid { gap: 6px; }
  .candidate-report-decorated .analysis-metric { min-height: 105px; grid-template-columns: 1fr; grid-template-rows: 30px auto auto; align-content: start; gap: 4px; padding: 10px 8px; }
  .candidate-report-decorated .analysis-metric::before { width: 30px; height: 30px; grid-column: 1; grid-row: 1; border-radius: 8px; }
  .candidate-report-decorated .analysis-metric small { grid-column: 1; grid-row: 2; font-size: 9px; }
  .candidate-report-decorated .analysis-metric strong { grid-column: 1; grid-row: 3; font-size: 20px; }
  .candidate-report-decorated .dominant-error-card { grid-template-columns: 1fr; gap: 14px; padding: 16px !important; }
  .candidate-report-decorated .dominant-error-card::before { grid-column: 1; grid-row: 1; padding: 0 0 11px; border-right: 0; border-bottom: 1px solid var(--candidate-line); font-size: 38px; }
  .candidate-report-decorated .dominant-error-card > * { grid-column: 1; }
  .candidate-report-decorated .priority-next-step-card { grid-template-columns: 1fr; gap: 12px; padding: 16px !important; }
  .candidate-report-decorated .priority-next-step-card::before, .candidate-report-decorated .priority-next-step-card > * { grid-column: 1; }
  .candidate-report-decorated .priority-next-step-card::before { grid-row: 1; font-size: 40px; }
  .candidate-report-decorated .priority-center-layout { grid-template-columns: 1fr; }
  .candidate-report-decorated .priority-center-list { grid-template-columns: repeat(3,minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--candidate-line); }
  .candidate-report-decorated .priority-center-list-label { grid-column: 1 / -1; }
  .candidate-report-decorated .priority-center-tab { min-width: 0; min-height: 74px; }
  .candidate-report-decorated .priority-center-tab-copy > span, .candidate-report-decorated .priority-center-tab-arrow { display: none; }
  .candidate-report-decorated .priority-center-workspace { padding: 16px; }
  .candidate-report-decorated .bonus-blunder-card { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 13px; }
  .candidate-report-decorated .bonus-blunder-index { grid-column: 1; grid-row: 1; }
  .candidate-report-decorated .bonus-blunder-theme { grid-column: 2; grid-row: 1; }
  .candidate-report-decorated .bonus-blunder-moves { grid-column: 1 / -1; grid-row: 2; }
  .candidate-report-decorated .bonus-blunder-action-row { grid-column: 1 / -1; grid-row: 3; justify-items: stretch; }
  .candidate-report-decorated .bonus-blunder-footer .blunder-load-fen { width: 100%; min-height: 44px; justify-content: center; }
  .candidate-report-decorated .bonus-blunder-solution { grid-row: 4; }
  .candidate-report-decorated .macro-profile-content, .candidate-report-decorated .macro-overview { grid-template-columns: 1fr; }
  .candidate-report-decorated .macro-overview { grid-column: 1; }
  .candidate-report-decorated .macro-profile-panel { min-height: 132px; }

  .board-dock.board-card { height: auto; margin: 0 10px 14px; padding: 10px; overflow: visible; }
  .candidate-board-header { min-height: 43px; }
  .candidate-board-header > div strong { font-size: 14px; }
  .board-dock .board-toolbar { grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr); gap: 5px; margin: 8px 0 10px; }
  .board-dock .board-toolbar button { min-height: 44px; padding-inline: 3px; }
  .board-dock .icon-button { display: none; }
  .board-dock .legal-toggle, .board-dock .computer-play-toggle, .board-dock .computer-side-field select { min-height: 44px; }
  .board-dock .board-stage { grid-template-columns: 15px minmax(0,1fr); gap: 5px; }
  .board-dock .premium-chess-board { width: 100%; max-width: 440px; }
}

@media (max-width: 360px) {
  .mobile-brand { grid-template-columns: 96px minmax(0,1fr); gap: 7px; }
  .mobile-brand img { width: 96px; }
  .mobile-brand strong { padding-left: 7px; font-size: 11px; }
  .dashboard-report-canvas, .board-dock.board-card, .mobile-workspace-switch { margin-inline: 8px; }
  .dashboard-report-pane > #blunderResult, .dashboard-scan-pane .blunderlab-card { padding: 14px 12px 16px !important; }
  .candidate-view-heading h1 { font-size: 23px; }
  .candidate-report-decorated .analysis-metric { min-height: 101px; padding-inline: 6px; }
  .candidate-report-decorated .analysis-metric small { font-size: 8px; }
  .dashboard-scan-pane .source-button.source-card { min-height: 78px; }
  .dashboard-scan-pane .source-brand-icon, .dashboard-scan-pane .source-pgn-icon { width: 30px; height: 30px; }
  .board-dock .board-toolbar { grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr); }
  .board-dock .board-toolbar button { padding-inline: 2px; font-size: 8px; }
  .board-dock .icon-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ui-20260903-priorityscan-ready-pill-removal-v1 */
/* Exact visual port of the approved v5 rail and board onto the real application controls. */
.sidebar-nav { flex: 1; display: block; padding: 22px 12px 16px; }
.sidebar-nav-group + .sidebar-nav-group { margin-top: 25px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.055); }
.sidebar-group-label { display: block; margin: 0 10px 9px; padding: 0; }
.dashboard-nav-item + .dashboard-nav-item { margin-top: 4px; }
.dashboard-nav-item > svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.desktop-sidebar-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.sidebar-collapsed .desktop-sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-footer {
  min-height: 74px; margin-top: auto; grid-template-columns: 38px minmax(0,1fr) 28px;
  gap: 10px; padding: 12px 14px; background: rgba(0,0,0,.08);
}
.player-avatar {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(244,122,34,.24);
  border-radius: 10px; color: var(--candidate-orange-soft); background: rgba(244,122,34,.09); font-size: 14px; font-weight: 700;
}
.player-copy { min-width: 0; display: grid; gap: 3px; }
.player-copy strong { overflow: hidden; color: var(--candidate-text); font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.player-copy span { overflow: hidden; color: #74797e; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-footer > button { min-width: 28px; min-height: 38px; padding: 0; border: 0; color: #73787e; background: transparent; box-shadow: none; letter-spacing: .1em; }
.sidebar-footer > button:hover { transform: none; color: #fff; background: transparent; }
.sidebar-collapsed .sidebar-nav-group + .sidebar-nav-group { margin-top: 16px; padding-top: 16px; }
.sidebar-collapsed .dashboard-nav-item > svg { justify-self: center; }
.sidebar-collapsed .player-copy, .sidebar-collapsed .sidebar-footer > button { display: none; }

.board-dock.board-card {
  display: flex; flex-direction: column; height: 100%; padding: 14px; overflow: hidden;
  overscroll-behavior: contain; scrollbar-gutter: auto;
}
.board-dock.board-card.board-advanced-open { overflow-y: auto; scrollbar-gutter: stable; }
.board-dock .board-toolbar { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 6px; margin: 7px 0 10px; }
.board-dock .board-toolbar button { min-height: 36px; padding: 0 8px; font-size: 10px; }
.board-dock .board-stage { width: 100%; grid-template-columns: 17px minmax(0,1fr); gap: 6px; }
.board-dock .evaluation-bar {
  min-height: 100%; overflow: hidden; border: 1px solid var(--candidate-line-strong); border-radius: 5px;
  background: #3b3c3d; box-shadow: none;
}
.board-dock .evaluation-bar::after { left: 2px; right: 2px; background: rgba(0,0,0,.35); }
.board-dock .evaluation-white-fill { background: #e8dfd2; box-shadow: none; }
.board-dock .evaluation-pct {
  left: 50%; right: auto; width: auto; font-size: 7px; font-weight: 760; letter-spacing: 0;
  transform: translateX(-50%) rotate(-90deg); text-shadow: none;
}
.board-dock .evaluation-pct-black { top: 14px; color: #fff; }
.board-dock .evaluation-pct-white { bottom: 14px; color: #202020; }
.board-dock .coord-label { z-index: 5; font-size: 9px; font-weight: 780; line-height: 1; letter-spacing: 0; opacity: 1; text-shadow: none; }
.board-dock .coord-rank { top: 2px; left: 3px; }
.board-dock .coord-file { right: 3px; bottom: 2px; }
.board-dock .square.light .coord-label { color: rgba(42,24,13,.82); }
.board-dock .square.dark .coord-label { color: rgba(255,231,193,.76); }
.board-meta { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #92989d; font-size: 10px; }
.legal-toggle { min-width: 0; display: inline-flex; align-items: center; gap: 7px; color: #92989d; font-size: 10px; cursor: pointer; }
.legal-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.legal-toggle-control { width: 27px; height: 15px; flex: 0 0 auto; padding: 2px; border-radius: 999px; background: #393c3f; }
.legal-toggle-control::before { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.legal-toggle input:checked + .legal-toggle-control { background: #4f8c6b; }
.legal-toggle input:checked + .legal-toggle-control::before { transform: translateX(12px); }
.legal-toggle input:focus-visible + .legal-toggle-control { outline: 2px solid var(--candidate-orange-soft); outline-offset: 2px; }
.board-meta .history { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; color: #92989d; font-size: 10px; white-space: nowrap; }
.board-dock .message {
  clear: both; min-height: 45px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 10px;
  border: 1px solid rgba(108,201,221,.10); border-radius: 8px; color: #a1a7ac; background: rgba(108,201,221,.025); font-size: 10px; line-height: 1.4;
}
.board-dock .message > i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #646a70; }
.board-dock .message.error > i { background: var(--candidate-danger); }
.board-footer { min-height: 35px; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid var(--candidate-line); }
.board-footer button { min-height: 26px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 9px; font-weight: 610; }
.board-footer button:hover:not(:disabled) { transform: none; background: transparent; }
.board-footer #boardReviewPositionsBtn { color: var(--candidate-orange-soft); }
.board-footer #boardReviewPositionsBtn:disabled { opacity: .42; }
.board-footer #boardEngineToolsToggle { color: #858b90; font-weight: 500; }
.board-advanced-tools[hidden] { display: none; }
.board-advanced-tools { display: grid; gap: 10px; padding-top: 10px; }
.board-history-controls { justify-content: flex-end; margin: 0; }
.board-history-controls button { min-width: 38px; min-height: 34px; }
.board-advanced-tools .computer-play-card, .board-advanced-tools .position-tools-card { margin-top: 0; }

@media (min-width: 761px) {
  .dashboard-root { height: 100svh; min-height: 0; }
  .app-sidebar { height: 100svh; min-height: 0; }
  .dashboard-main.shell { height: 100svh; }
  .dashboard-layout.layout { height: calc(100svh - var(--dashboard-topbar)); }
}

@media (min-width: 761px) and (max-height: 620px) {
  .board-dock.board-card { padding-block: 10px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
  .board-dock.board-card::-webkit-scrollbar { display: none; }
  .board-dock .candidate-board-header { min-height: 32px; }
  .board-dock .board-toolbar { margin: 3px 0 4px; }
}

@media (max-width: 760px) {
  .sidebar-nav { display: block; padding: 17px 12px 14px; }
  .board-dock.board-card { overflow: visible; }
  .board-dock.board-card.board-advanced-open { overflow: visible; }
  .board-dock .board-toolbar { grid-template-columns: 1fr .7fr 1fr; gap: 6px; }
  .board-dock .board-toolbar button { min-height: 44px; padding-inline: 5px; font-size: 9px; }
  .board-meta { min-height: 40px; }
  .board-meta .history, .legal-toggle { font-size: 9px; }
}

/* ui-20260815-mobile-entry-signal-offer-v79
   Exact visual compositions from David's five approved candidate captures.
   The original application render remains the data/action source only. */
.candidate-source-body { display: none !important; }
.candidate-visual-body { min-width: 0; color: var(--candidate-text); }
.candidate-view-heading[data-candidate-heading="priority"] em > i {
  width: 19px; height: 19px; display: grid; place-items: center; color: #fff;
  background: var(--candidate-orange); font-size: 9px; font-style: normal;
}
.candidate-view-heading[data-candidate-heading="reflexes"] em > i,
.candidate-view-heading[data-candidate-heading="blunders"] em > i,
.candidate-view-heading[data-candidate-heading="stats"] em > i { display: none; }

/* Candidate diagnostic */
.candidate-metric-grid { width: 100%; max-width: 620px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 auto 13px; }
.candidate-metric-card { min-width: 0; display: flex; align-items: center; justify-content: flex-start; min-height: 94px; padding: 16px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.018); }
.candidate-metric-group { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.candidate-metric-icon { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--candidate-orange-soft); background: rgba(244,122,34,.09); }
.candidate-metric-icon-svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.candidate-metric-icon-reviewed { color: var(--candidate-cyan); background: rgba(108,201,221,.09); }
.candidate-metric-icon-detected { color: var(--candidate-green); background: rgba(81,191,130,.09); }
.candidate-metric-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.candidate-metric-card small { color: #adb3b8; font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .035em; }
.candidate-metric-card strong { color: #fff; font-size: 23px; line-height: 1.05; letter-spacing: -.045em; font-weight: 650; }
.candidate-diagnostic-signal { position: relative; min-width: 0; display: grid; grid-template-columns: 74px minmax(0,1fr) 120px; align-items: center; gap: 17px; padding: 19px; overflow: hidden; border: 1px solid rgba(244,122,34,.20); border-radius: 13px; background: radial-gradient(circle at 88% 15%,rgba(244,122,34,.10),transparent 30%),linear-gradient(125deg,rgba(84,36,10,.30),rgba(31,30,28,.82) 48%,rgba(23,25,26,.95)); }
.candidate-diagnostic-signal::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--candidate-orange),rgba(244,122,34,.03) 62%); }
.candidate-focus-priority-action { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 10px 16px; border: 1px solid #ffad70; border-radius: 10px; color: #251408; background: var(--candidate-orange); box-shadow: none; font-size: 13px; font-weight: 760; }
.candidate-focus-priority-action:hover:not(:disabled) { color: #251408; background: #ff9748; transform: none; }
.candidate-focus-priority-action:focus-visible { outline-color: #fff; }
.candidate-signal-rank { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-right: 16px; border-right: 1px solid var(--candidate-line); }
.candidate-signal-rank span { color: var(--candidate-orange-soft); font-size: 44px; line-height: .95; letter-spacing: -.07em; font-weight: 660; }
.candidate-signal-rank small { margin-top: 8px; color: #ad8a70; font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: .07em; }
.candidate-signal-main { min-width: 0; }
.candidate-signal-main > span { color: var(--candidate-orange-soft); font-size: 10px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.candidate-signal-main h2 { max-width: 660px; margin: 6px 0 8px; color: #fff; font-size: clamp(20px,1.55vw,23px); line-height: 1.18; letter-spacing: -.025em; font-weight: 610; text-wrap: balance; }
.candidate-signal-main p { max-width: 650px; margin: 0; color: #bbb4ae; font-size: 12px; line-height: 1.55; }
.candidate-signal-main > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.candidate-signal-main > div b { padding: 5px 8px; border: 1px solid rgba(255,176,108,.14); border-radius: 999px; color: #e8c5a9; background: rgba(255,255,255,.025); font-size: 10px; font-weight: 560; }
.candidate-signal-score { display: grid; justify-items: center; gap: 8px; }
.candidate-score-orbit { position: relative; width: 94px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--candidate-gold) 0 var(--score),rgba(255,255,255,.07) var(--score) 100%); }
.candidate-score-orbit::before { content: ""; grid-area: 1/1; width: 76px; aspect-ratio: 1; border-radius: 50%; background: #222120; box-shadow: inset 0 0 16px rgba(0,0,0,.28); }
.candidate-score-orbit strong, .candidate-score-orbit span { grid-area: 1/1; z-index: 1; }
.candidate-score-orbit strong { align-self: center; margin-top: -11px; color: #fff; font-size: 21px; letter-spacing: -.04em; }
.candidate-score-orbit span { align-self: center; margin-top: 22px; color: #a99c92; font-size: 9px; }
.candidate-signal-score > small { color: #9b8e84; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: center; }
.candidate-diagnostic-bottom { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(210px,.7fr); gap: 11px; margin-top: 12px; }
.candidate-top-three-card, .candidate-decision-card { border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); }
.candidate-top-three-card { overflow: hidden; }
.candidate-top-three-card header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--candidate-line); }
.candidate-top-three-card header > div { display: grid; gap: 2px; }
.candidate-top-three-card header span { color: #dddfe0; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.candidate-top-three-card header strong { color: #8d9297; font-size: 10px; font-weight: 450; }
.candidate-top-three-card header button { min-height: 34px; padding: 6px; border: 0; color: var(--candidate-orange-soft); background: transparent; box-shadow: none; font-size: 10px; font-weight: 620; }
.candidate-top-three-card ol { list-style: none; margin: 0; padding: 0; }
.candidate-top-three-card li { min-height: 49px; display: grid; grid-template-columns: 28px minmax(0,1fr) 74px; align-items: center; gap: 9px; padding: 8px 13px; border-top: 1px solid rgba(255,255,255,.045); }
.candidate-top-three-card li:first-child { border-top: 0; }
.candidate-top-three-card li > b { color: #6f747a; font-size: 16px; }
.candidate-top-three-card li.is-active > b { color: var(--candidate-orange-soft); }
.candidate-top-three-card li > div { min-width: 0; display: grid; gap: 2px; }
.candidate-top-three-card li strong { overflow: hidden; font-size: 11px; font-weight: 580; white-space: nowrap; text-overflow: ellipsis; }
.candidate-top-three-card li span { color: #8a9095; font-size: 10px; }
.candidate-top-three-card li > i { position: relative; height: 4px; border-radius: 99px; background: rgba(255,255,255,.055); }
.candidate-top-three-card li > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar); border-radius: inherit; background: linear-gradient(90deg,#7a6c59,var(--candidate-gold)); }
.candidate-decision-card { display: flex; flex-direction: column; justify-content: center; padding: 15px; background: linear-gradient(145deg,rgba(108,201,221,.06),rgba(255,255,255,.015)); }
.candidate-decision-card > header { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.candidate-decision-card > header > span { min-width: 0; color: var(--candidate-cyan); font-size: 9px; line-height: 1.3; font-weight: 720; letter-spacing: .09em; }
.candidate-decision-card > header > i { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: var(--candidate-cyan); background: rgba(108,201,221,.08); font-size: 12px; font-style: normal; }
.candidate-decision-card strong { font-size: 13px; line-height: 1.4; font-weight: 590; }
.candidate-decision-card p { margin: 7px 0 0; color: #9da3a8; font-size: 11px; line-height: 1.5; }
.candidate-other-errors { margin-top: 12px; overflow: hidden; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.014); }
.candidate-diagnostic-secondary-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.candidate-view-stats-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid rgba(255,176,108,.52); border-radius: 10px; color: var(--candidate-orange-soft); background: transparent; box-shadow: none; font-size: 12px; font-weight: 680; }
.candidate-view-stats-action:hover:not(:disabled) { color: #fff; border-color: var(--candidate-orange-soft); background: rgba(244,122,34,.08); transform: none; }
.candidate-view-stats-action:focus-visible { outline: 2px solid var(--candidate-orange-soft); outline-offset: 2px; }
.candidate-other-errors > summary { min-height: 48px; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 9px 13px; color: #dfe1e2; cursor: pointer; list-style: none; }
.candidate-other-errors > summary::-webkit-details-marker { display: none; }
.candidate-other-errors > summary:hover { background: rgba(244,122,34,.025); }
.candidate-other-errors > summary:focus-visible { outline: 2px solid var(--candidate-orange); outline-offset: -2px; }
.candidate-other-errors-title { font-size: 10px; font-weight: 720; letter-spacing: .08em; }
.candidate-other-errors-total { color: #a48d7d; font-size: 10px; font-weight: 600; white-space: nowrap; }
.candidate-other-errors > summary > i { width: 8px; height: 8px; justify-self: end; border-right: 1.5px solid #9a9fa3; border-bottom: 1.5px solid #9a9fa3; transform: rotate(-45deg); transition: transform .16s ease; }
.candidate-other-errors[open] > summary > i { transform: rotate(45deg); }
.candidate-other-errors-list { border-top: 1px solid var(--candidate-line); }
.candidate-other-error-row { min-width: 0; min-height: 42px; display: grid; grid-template-columns: 28px minmax(0,1fr) minmax(70px,.35fr) 28px; align-items: center; gap: 10px; padding: 7px 13px; }
.candidate-other-error-row + .candidate-other-error-row { border-top: 1px solid rgba(255,255,255,.045); }
.candidate-other-error-row > b { color: #92989d; font-size: 14px; font-weight: 580; }
.candidate-other-error-row > span { min-width: 0; color: #c6c9cb; font-size: 11px; line-height: 1.4; }
.candidate-other-error-row > i { position: relative; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.candidate-other-error-row > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar); border-radius: inherit; background: linear-gradient(90deg,#7a6c59,var(--candidate-gold)); }
.candidate-other-error-row > strong { color: var(--candidate-orange-soft); font-size: 11px; font-weight: 650; text-align: right; }

/* Candidate priority */
.candidate-priority-spotlight { display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(150px,22%); gap: 19px; padding: 22px; border: 1px solid rgba(244,122,34,.24); border-radius: 14px; background: linear-gradient(125deg,rgba(86,36,9,.28),rgba(29,30,30,.94) 56%,rgba(21,36,39,.65)); }
.candidate-priority-number { color: var(--candidate-orange-soft); font-size: 46px; line-height: 1; letter-spacing: -.07em; font-weight: 660; }
.candidate-priority-content > span, .candidate-priority-proof > span { color: var(--candidate-orange-soft); font-size: 10px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.candidate-priority-content h2 { margin: 7px 0 8px; color: #fff; font-size: clamp(20px,1.75vw,26px); line-height: 1.22; letter-spacing: -.025em; font-weight: 610; text-wrap: pretty; }
.candidate-priority-content p { margin: 0 0 15px; color: #b6babd; font-size: 12px; line-height: 1.55; }
.candidate-priority-content > button, .candidate-reflex-focus > button { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-content: center; padding: 8px 14px; border: 1px solid rgba(255,176,108,.32); border-radius: 9px; color: #fff; background: linear-gradient(135deg,#ff9a42,var(--candidate-orange) 55%,#b7470d); box-shadow: 0 10px 25px rgba(244,122,34,.16),inset 0 1px 0 rgba(255,255,255,.18); }
.candidate-priority-content > button { color: #1b130d; background: linear-gradient(135deg,#ffb068,#f58a35 55%,#d9671d); }
.candidate-priority-content > button > span, .candidate-reflex-focus > button > span { grid-column: 1; grid-row: 1; overflow: hidden; line-height: 1.25; font-size: 13px; font-weight: 680; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.candidate-priority-content > button > small, .candidate-reflex-focus > button > small { grid-column: 1; grid-row: 2; overflow: hidden; color: rgba(255,255,255,.82); font-size: 10px; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.candidate-priority-content > button > small { color: rgba(27,19,13,.78); }
.candidate-priority-content > button > b, .candidate-reflex-focus > button > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; font-weight: 450; }
.candidate-priority-content > button:disabled, .candidate-reflex-focus > button:disabled { cursor: not-allowed; filter: saturate(.35); opacity: .68; box-shadow: none; }
.candidate-priority-proof { min-width: 0; display: grid; align-content: start; gap: 12px; padding-left: 6px; border-left: 1px solid var(--candidate-line); }
.candidate-priority-proof > header > span { color: var(--candidate-orange-soft); font-size: 10px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.candidate-priority-volume-chart { min-width: 0; display: grid; gap: 8px; padding: 10px 0 11px; border-top: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); }
.candidate-priority-volume-row { min-width: 0; min-height: 34px; display: grid; grid-template-columns: 60px minmax(18px,1fr) 24px; align-items: center; gap: 7px; }
.candidate-priority-volume-row > span { color: #969ca0; font-size: 9px; font-weight: 700; letter-spacing: .045em; }
.candidate-priority-volume-row > i { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.candidate-priority-volume-row > i > b { width: var(--volume); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--candidate-orange),var(--candidate-gold)); box-shadow: 0 0 12px rgba(244,122,34,.16); }
.candidate-priority-volume-row.is-games > i > b { background: linear-gradient(90deg,var(--candidate-cyan),var(--candidate-green)); box-shadow: 0 0 12px rgba(108,201,221,.15); }
.candidate-priority-volume-row > strong { color: #f1f2f2; font-size: 16px; line-height: 1; font-weight: 630; text-align: right; }
.candidate-priority-impact { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 7px 1px; border: 1px solid rgba(244,122,34,.13); border-radius: 10px; background: linear-gradient(135deg,rgba(244,122,34,.055),rgba(255,255,255,.012)); }
.candidate-priority-impact > i { flex: 0 0 auto; color: var(--candidate-orange-soft); font-size: 18px; line-height: 1; font-style: normal; }
.candidate-priority-impact-value { min-width: 0; color: #e8e9e8; font-size: 11px; line-height: 1.25; font-weight: 560; letter-spacing: 0; white-space: nowrap; }
.candidate-priority-impact-value > strong { color: #f4f5f4; font-size: 13px; font-weight: 680; }
.candidate-diagnostic-context { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.62fr); grid-template-rows: auto auto; column-gap: 22px; row-gap: 8px; margin-top: 13px; padding: 15px 17px; border: 1px solid rgba(108,201,221,.15); border-radius: 12px; background: linear-gradient(110deg,rgba(108,201,221,.045),rgba(255,255,255,.012)); }
.candidate-diagnostic-context > header { grid-column: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.candidate-diagnostic-context > header span { color: #a8d1d8; font-size: 10px; font-weight: 730; letter-spacing: .08em; }
.candidate-diagnostic-context > header strong { color: #dbe7e9; font-size: 11px; font-weight: 620; white-space: nowrap; }
.candidate-diagnostic-context > p { grid-column: 1; margin: 0; color: #b3b8bb; font-size: 12px; line-height: 1.45; }
.candidate-diagnostic-context-track { position: relative; grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.candidate-diagnostic-context-track > i { width: var(--context-ratio); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--candidate-cyan),var(--candidate-green)); box-shadow: 0 0 15px rgba(108,201,221,.2); }
.candidate-secondary-priorities { margin-top: 13px; overflow: hidden; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); }
.candidate-secondary-priorities > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--candidate-line); }
.candidate-secondary-priorities header > div { display: grid; gap: 2px; }
.candidate-secondary-priorities header span { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.candidate-secondary-priorities header small, .candidate-secondary-priorities header em { color: #8e9499; font-size: 10px; font-style: normal; }
.candidate-secondary-priorities > div { display: grid; grid-template-columns: 1fr 1fr; }
.candidate-secondary-priority { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 0; color: inherit; background: transparent; box-shadow: none; text-align: left; }
.candidate-secondary-priority + .candidate-secondary-priority { border-left: 1px solid var(--candidate-line); }
.candidate-secondary-priority:hover { transform: none; color: inherit; background: rgba(244,122,34,.035); box-shadow: none; }
.candidate-secondary-priority:focus-visible { z-index: 1; outline: 2px solid var(--candidate-orange); outline-offset: -3px; }
.candidate-secondary-priority.is-selected { background: linear-gradient(125deg,rgba(92,40,10,.27),rgba(255,255,255,.02)); box-shadow: inset 0 -2px 0 rgba(244,122,34,.38); }
.candidate-secondary-priority > b { color: #6d7277; font-size: 20px; }
.candidate-secondary-priority.is-selected > b { color: var(--candidate-orange-soft); }
.candidate-secondary-priority > span { min-width: 0; display: grid; gap: 3px; }
.candidate-secondary-priority strong { overflow: visible; color: #eef0f1; font-size: 12px; line-height: 1.3; white-space: normal; text-overflow: clip; }
.candidate-secondary-priority small { color: #8e9499; font-size: 11px; }
.candidate-secondary-priority > i { color: #7f858a; font-size: 17px; line-height: 1; font-style: normal; text-align: center; transition: transform .16s ease,color .16s ease; }
.candidate-secondary-priority.is-selected > i { color: var(--candidate-orange-soft); transform: rotate(180deg); }
.candidate-secondary-priorities > aside { padding: 14px 16px 16px; border-top: 1px solid var(--candidate-line); background: linear-gradient(110deg,rgba(244,122,34,.055),rgba(108,201,221,.025)); }
.candidate-secondary-priorities > aside[hidden] { display: none; }
.candidate-secondary-priorities > aside > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.candidate-secondary-priorities > aside > header span { flex: 0 0 auto; color: var(--candidate-orange-soft); font-size: 10.5px; font-weight: 720; letter-spacing: .08em; }
.candidate-secondary-priorities > aside > header strong { min-width: 0; color: #aeb4b8; font-size: 11px; font-weight: 580; text-align: right; }
.candidate-secondary-priorities > aside blockquote { margin: 8px 0 0; color: #f3f4f4; font-size: 16px; line-height: 1.4; font-weight: 570; letter-spacing: -.01em; text-wrap: pretty; }

/* Candidate Reflex Center */
.candidate-reflex-center { display: grid; gap: 12px; }
.candidate-reflex-selector { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.candidate-reflex-choice { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--candidate-line); border-radius: 11px; color: #c8cccf; background: rgba(255,255,255,.016); box-shadow: none; text-align: left; }
.candidate-reflex-choice:hover { transform: none; border-color: rgba(244,122,34,.26); background: rgba(244,122,34,.035); }
.candidate-reflex-choice:focus-visible { outline: 2px solid var(--candidate-orange); outline-offset: 2px; }
.candidate-reflex-choice.is-selected { border-color: rgba(244,122,34,.5); background: linear-gradient(125deg,rgba(104,44,10,.31),rgba(41,31,24,.74)); box-shadow: inset 0 -2px 0 rgba(244,122,34,.36); }
.candidate-reflex-choice > b { color: #6f7479; font-size: 23px; font-weight: 580; line-height: 1; letter-spacing: -.05em; }
.candidate-reflex-choice.is-selected > b { color: var(--candidate-orange-soft); }
.candidate-reflex-choice > span { min-width: 0; display: grid; gap: 4px; }
.candidate-reflex-choice strong { color: #eceeef; font-size: 11px; font-weight: 620; line-height: 1.3; white-space: normal; }
.candidate-reflex-choice small { display: -webkit-box; overflow: hidden; color: #8e9499; font-size: 9px; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.candidate-reflex-choice > em { display: none; }
.candidate-mission-flow { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 5px; margin: 0; padding: 12px 13px; border: 1px solid rgba(108,201,221,.12); border-radius: 12px; background: rgba(108,201,221,.025); }
.candidate-mission-flow > div { min-width: 0; display: flex; align-items: center; gap: 9px; color: #72787e; }
.candidate-mission-flow > div > i { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--candidate-line-strong); border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 650; }
.candidate-mission-flow > div > span { min-width: 0; display: grid; gap: 2px; }
.candidate-mission-flow strong { font-size: 11px; font-weight: 590; }.candidate-mission-flow small { overflow: hidden; color: #8f959a; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.candidate-mission-flow > div.is-active { color: #fff; }.candidate-mission-flow > div.is-active > i { border-color: rgba(244,122,34,.28); background: var(--candidate-orange); box-shadow: 0 0 0 5px rgba(244,122,34,.07); }
.candidate-mission-flow > b { height: 1px; background: linear-gradient(90deg,rgba(244,122,34,.30),rgba(255,255,255,.07)); }
.candidate-reflex-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.42fr); align-items: start; gap: 12px; }
.candidate-reflex-focus, .candidate-position-list { border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); }
.candidate-reflex-focus { padding: 19px; border-color: rgba(244,122,34,.18); background: linear-gradient(145deg,rgba(75,34,10,.22),rgba(255,255,255,.012)); }
.candidate-reflex-focus > span { color: var(--candidate-orange-soft); font-size: 9px; font-weight: 720; letter-spacing: .1em; }
.candidate-reflex-focus blockquote { margin: 10px 0 16px; font-size: clamp(18px,1.55vw,23px); line-height: 1.33; letter-spacing: -.02em; font-weight: 580; }
.candidate-micro-flow { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 4px; margin-bottom: 14px; }
.candidate-micro-flow i { display: grid; justify-items: center; gap: 4px; color: #686e74; font-size: 9px; font-style: normal; }
.candidate-micro-flow i span { font-size: 8px; }.candidate-micro-flow i.is-done { color: var(--candidate-green); }.candidate-micro-flow i.is-active { color: var(--candidate-orange-soft); }.candidate-micro-flow b { height: 1px; background: var(--candidate-line); }
.candidate-position-list { overflow: hidden; }
.candidate-position-list header { min-height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--candidate-line); }
.candidate-position-list header > div { display: grid; gap: 2px; }.candidate-position-list header span { font-size: 10px; font-weight: 700; letter-spacing: .08em; }.candidate-position-list header small { color: #8e9499; font-size: 10px; }.candidate-position-list header em { color: var(--candidate-orange-soft); font-size: 10px; font-style: normal; font-weight: 650; }
.candidate-position-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 9px; padding: 9px 13px; border: 0; border-top: 1px solid rgba(255,255,255,.045); color: #cdd0d2; background: transparent; box-shadow: none; text-align: left; }
.candidate-position-row:hover { transform: none; background: rgba(244,122,34,.045); }.candidate-position-row > b { color: #666c72; font-size: 17px; }.candidate-position-row small { color: #a4a9ad; font-size: 10px; }
.candidate-reflex-toolkit { overflow: hidden; border: 1px solid rgba(108,201,221,.13); border-radius: 12px; background: rgba(108,201,221,.018); }
.candidate-reflex-toolkit > header { min-height: 46px; display: flex; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--candidate-line); }
.candidate-reflex-toolkit > header > div { display: grid; gap: 2px; }
.candidate-reflex-toolkit > header span { color: #b6d7dd; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.candidate-reflex-toolkit > header small { color: #858c91; font-size: 9px; }
.candidate-reflex-toolkit > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.candidate-reflex-tool { min-width: 0; min-height: 110px; display: grid; grid-template-columns: 29px minmax(0,1fr); align-content: start; gap: 10px; padding: 14px; }
.candidate-reflex-tool + .candidate-reflex-tool { border-left: 1px solid var(--candidate-line); }
.candidate-reflex-tool > i { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(108,201,221,.17); border-radius: 8px; color: #8ec5cf; background: rgba(108,201,221,.045); font-size: 12px; font-style: normal; font-weight: 700; }
.candidate-reflex-tool[data-reflex-tool="method"] > i { border-color: rgba(79,196,145,.17); color: var(--candidate-green); background: rgba(79,196,145,.04); }
.candidate-reflex-tool[data-reflex-tool="trap"] > i { border-color: rgba(244,122,34,.2); color: var(--candidate-orange-soft); background: rgba(244,122,34,.045); }
.candidate-reflex-tool > div { min-width: 0; display: grid; align-content: start; gap: 6px; }
.candidate-reflex-tool strong { color: #bcc1c5; font-size: 8px; font-weight: 740; letter-spacing: .08em; }
.candidate-reflex-tool p { margin: 0; color: #a4a9ad; font-size: 10px; line-height: 1.48; text-wrap: pretty; }

/* Candidate blunder rows */
.candidate-blunder-list { display: grid; gap: 9px; }
.candidate-blunder-row { min-width: 0; display: grid; grid-template-columns: 34px minmax(130px,1.1fr) minmax(145px,.9fr) auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid var(--candidate-line); border-radius: 11px; background: rgba(255,255,255,.018); }
.candidate-blunder-row > b { color: var(--candidate-orange-soft); font-size: 20px; }.candidate-blunder-title { min-width: 0; display: grid; gap: 4px; }.candidate-blunder-title span { color: #8b9196; font-size: 10px; font-weight: 650; letter-spacing: .05em; }.candidate-blunder-title strong { overflow: hidden; font-size: 12px; font-weight: 580; white-space: nowrap; text-overflow: ellipsis; }
.candidate-move-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }.candidate-move-pair > span, .candidate-best-move-reveal { min-width: 0; display: grid; gap: 3px; padding: 0; border: 0; color: #8d9398; background: transparent; box-shadow: none; font-size: 9px; text-align: left; }.candidate-move-pair small { color: #8d9398; font-size: 9px; }.candidate-move-pair b { overflow: hidden; color: #e6e7e8; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }.candidate-move-pair > i { color: var(--candidate-orange-soft); font-style: normal; }
.candidate-blunder-row > button:is([data-candidate-replay], [data-candidate-guide]) { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(244,122,34,.19); border-radius: 8px; color: #f2bf99; background: rgba(244,122,34,.05); box-shadow: none; font-size: 10px; font-weight: 620; }
.candidate-blunder-row > button.candidate-guided-replay[data-candidate-guide] { grid-column: 2 / -1; justify-self: end; border-color: rgba(244,122,34,.42); color: #fff; background: rgba(244,122,34,.16); }
.candidate-answer-explanation { grid-column: 2 / -1; display: grid; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--candidate-line); border-radius: 8px; background: rgba(108,201,221,.025); }
.candidate-answer-explanation[hidden] { display: none; }
.candidate-answer-explanation strong { color: #b7d8de; font-size: 9px; font-weight: 720; letter-spacing: .06em; }
.candidate-answer-explanation p { margin: 0; color: #a7adb1; font-size: 10px; line-height: 1.45; }
.candidate-solution-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); }.candidate-solution-note > i { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--candidate-cyan); background: rgba(108,201,221,.07); font-style: normal; }.candidate-solution-note > div { display: grid; gap: 3px; }.candidate-solution-note strong { font-size: 11px; }.candidate-solution-note p { margin: 0; color: #959ba0; font-size: 10px; }

/* Candidate statistics */
.candidate-stats-top-grid { display: grid; grid-template-columns: 1.08fr .62fr 1.3fr; gap: 10px; }.candidate-stats-top-grid > article { min-height: 154px; padding: 15px; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.018); }
.candidate-win-card { display: flex; align-items: center; gap: 16px; }.candidate-donut { width: 96px; aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--candidate-green) 0 var(--win),var(--candidate-gold) var(--win) var(--draw),var(--candidate-orange) var(--draw) 100%); }.candidate-donut::before { content: ""; grid-area: 1/1; width: 74px; aspect-ratio: 1; border-radius: 50%; background: #1c1e1f; box-shadow: inset 0 0 16px rgba(0,0,0,.25); }.candidate-donut span { grid-area: 1/1; z-index: 1; display: grid; justify-items: center; }.candidate-donut strong { font-size: 21px; letter-spacing: -.04em; }.candidate-donut small { color: #7b8186; font-size: 8px; }
.candidate-record { min-width: 0; display: grid; gap: 9px; flex: 1; }.candidate-record > span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; color: #8a9095; font-size: 9px; }.candidate-record i { width: 7px; height: 7px; border-radius: 2px; }.candidate-record i.is-win { background: var(--candidate-green); }.candidate-record i.is-draw { background: var(--candidate-gold); }.candidate-record i.is-loss { background: var(--candidate-orange); }.candidate-record b { color: #dfe1e2; }
.candidate-elo-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }.candidate-elo-card > span { color: #7d8388; font-size: 9px; font-weight: 700; letter-spacing: .08em; }.candidate-elo-card > strong { margin-top: 7px; color: #fff; font-size: 30px; letter-spacing: -.05em; }.candidate-elo-card > small { color: #878d92; font-size: 9px; }.candidate-elo-card > i { position: absolute; right: 10px; bottom: 9px; color: rgba(244,122,34,.10); font-size: 48px; font-style: normal; line-height: 1; transform: rotate(-8deg); }
.candidate-form-card { display: grid; grid-template-rows: auto 1fr; gap: 12px; }.candidate-form-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.candidate-form-card > header > span { color: #90969b; font-size: 9px; font-weight: 720; letter-spacing: .08em; }.candidate-trend-delta { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #b6bbc0; background: rgba(255,255,255,.025); font-size: 10px; white-space: nowrap; }.candidate-trend-delta.is-positive { border-color: rgba(82,196,126,.22); color: #a9ddbe; background: rgba(82,196,126,.07); }.candidate-trend-delta.is-negative { border-color: rgba(244,122,34,.22); color: #f0a071; background: rgba(244,122,34,.07); }
.candidate-form-rows { display: grid; align-content: end; gap: 10px; }.candidate-form-row { min-width: 0; min-height: 34px; }.candidate-form-row > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.candidate-form-row > span b { min-width: 0; overflow: hidden; color: #8f959a; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.candidate-form-row > span strong { color: #e8eaeb; font-size: 11px; }.candidate-form-row > i { position: relative; height: 6px; display: block; overflow: hidden; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.055); }.candidate-form-row > i > em { position: absolute; inset: 0 auto 0 0; width: var(--value); border-radius: inherit; background: linear-gradient(90deg,var(--candidate-cyan),var(--candidate-green)); }.candidate-form-row.is-baseline > i > em { background: linear-gradient(90deg,var(--candidate-orange),var(--candidate-gold)); }
.candidate-stats-insights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 10px; }.candidate-insight-card { min-width: 0; min-height: 108px; display: grid; grid-template-rows: auto 1fr; gap: 12px; overflow: hidden; padding: 13px 14px; border: 1px solid var(--candidate-line); border-radius: 12px; background: linear-gradient(145deg,rgba(255,255,255,.022),rgba(255,255,255,.008)); }.candidate-insight-card > header { min-width: 0; display: grid; align-content: start; gap: 4px; }.candidate-insight-card > header > span { color: #858b90; font-size: 9px; font-weight: 720; letter-spacing: .08em; }.candidate-insight-card > header > strong { min-width: 0; overflow: hidden; color: #f1f2f2; font-size: 20px; line-height: 1.05; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }.candidate-insight-card > header > strong small { margin-left: 5px; color: #979da1; font-size: 10px; font-weight: 560; letter-spacing: 0; }.candidate-insight-card > header > small { color: #9ba0a4; font-size: 10px; }
.candidate-score-gauge { position: relative; width: 44px; height: 44px; align-self: end; justify-self: end; border-radius: 50%; background: conic-gradient(var(--candidate-green) 0 var(--value),rgba(255,255,255,.055) var(--value) 100%); }.candidate-score-gauge i { position: absolute; inset: 8px; border-radius: 50%; background: #202223; }
.candidate-decisive-meter { position: relative; height: 14px; align-self: end; overflow: hidden; border-radius: 4px; background: repeating-linear-gradient(90deg,rgba(255,255,255,.055) 0 calc(10% - 3px),transparent calc(10% - 3px) 10%); }.candidate-decisive-meter > i { position: absolute; inset: 0 auto 0 0; width: var(--value); background: repeating-linear-gradient(90deg,var(--candidate-orange) 0 calc(10% - 3px),transparent calc(10% - 3px) 10%); }
.candidate-length-track { position: relative; height: 22px; align-self: end; margin: 0 3px 0; border-top: 3px solid rgba(255,255,255,.07); }.candidate-length-track > i { position: absolute; top: -8px; left: var(--value); width: 11px; height: 11px; border: 2px solid #202223; border-radius: 50%; background: var(--candidate-cyan); box-shadow: 0 0 0 4px rgba(108,201,221,.10); transform: translateX(-50%); }.candidate-length-track > b { position: absolute; top: 6px; color: #686e73; font-size: 8px; font-weight: 560; }.candidate-length-track > b:first-of-type { left: 0; }.candidate-length-track > b:last-of-type { right: 0; }
.candidate-opening-visual { min-width: 0; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 9px; align-self: end; }.candidate-opening-visual > i { color: var(--candidate-gold); font-size: 23px; font-style: normal; line-height: 1; }.candidate-opening-visual > span { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }.candidate-opening-visual > span > b { width: max(8px,var(--value)); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--candidate-gold),var(--candidate-orange)); }
[data-stat-insight="opening"] > header > strong { overflow: visible; line-height: 1.12; white-space: normal; text-overflow: clip; }
.candidate-color-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }.candidate-color-stats-grid > article { padding: 14px; border: 1px solid var(--candidate-line); border-radius: 12px; background: rgba(255,255,255,.014); }.candidate-color-stats-grid header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--candidate-line); }.candidate-color-stats-grid header span { color: #7e8489; font-size: 9px; font-weight: 700; letter-spacing: .075em; }.candidate-color-stats-grid header strong { font-size: 10px; font-weight: 580; }
.candidate-opening-row { display: grid; grid-template-columns: minmax(105px,1fr) minmax(60px,.8fr) 20px; align-items: center; gap: 9px; padding: 6px 0; color: #969ba0; font-size: 9px; }.candidate-opening-row i { position: relative; height: 4px; border-radius: 99px; background: rgba(255,255,255,.05); }.candidate-opening-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value); border-radius: inherit; background: linear-gradient(90deg,var(--candidate-orange),var(--candidate-gold)); }.candidate-opening-row b { color: #cdd0d2; text-align: right; }

/* The restored below-board tools are always present and scroll with the dock. */
.board-dock.board-card { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.board-dock.board-card.board-advanced-open { overflow-y: auto; }

@media (max-width: 1320px) and (min-width: 761px) {
  .candidate-metric-card { padding-inline: 6px; }
  .candidate-metric-group { gap: 6px; }
  .candidate-metric-icon { width: 48px; height: 48px; }
  .candidate-metric-card small { letter-spacing: .02em; }
  .candidate-diagnostic-signal { grid-template-columns: 64px minmax(0,1fr) 100px; gap: 13px; padding: 16px; }
  .candidate-signal-rank span { font-size: 39px; }.candidate-score-orbit { width: 82px; }.candidate-score-orbit::before { width: 66px; }
  .candidate-priority-spotlight { grid-template-columns: 58px minmax(0,1fr) minmax(145px,25%); gap: 15px; padding: 18px; }
  .candidate-priority-number { font-size: 40px; }
  .candidate-blunder-row { grid-template-columns: 30px minmax(125px,1fr) minmax(135px,.85fr) auto; gap: 10px; }

  .candidate-stats-top-grid { grid-template-columns: 1.1fr .7fr 1.2fr; }.candidate-donut { width: 82px; }.candidate-donut::before { width: 64px; }
  .candidate-stats-insights { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .priorityscan-header { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .priorityscan-heading-copy { gap: 6px; }
  .priorityscan-heading-copy::before { width: 2px; flex-basis: 2px; }

  .candidate-view-heading { gap: 8px; margin-bottom: 16px; }
  .dashboard-scan-layout,
  .dashboard-scan-fields { grid-template-columns: minmax(0,1fr); }
  .dashboard-scan-pane .source-card-grid,
  .dashboard-depth-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-scan-pane .source-button.source-card { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; }
  .dashboard-scan-pane .source-brand-icon,
  .dashboard-scan-pane .source-pgn-icon { width: 30px; height: 30px; }
  .dashboard-scan-form > .blunder-inline-field { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .dashboard-scan-form > .blunder-inline-field > label { width: auto; }
  .dashboard-depth-grid button { min-height: 50px; flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 10px; text-align: left; }
  .dashboard-scan-action { min-height: 64px; padding: 8px 12px 25px; }
  .dashboard-scan-action::after { right: auto; bottom: 8px; left: 12px; }
  .candidate-diagnostic-signal { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 14px; }
  .candidate-signal-rank { min-height: 43px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--candidate-line); }
  .candidate-signal-rank small { margin-top: 0; }
  .candidate-signal-score { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
  .candidate-signal-score > small { max-width: 120px; text-align: left; }
  .candidate-diagnostic-bottom { grid-template-columns: minmax(0,1fr); }
  .candidate-other-errors > summary { grid-template-columns: minmax(0,1fr) 18px; gap: 7px; }
  .candidate-other-errors-total { grid-column: 1; grid-row: 2; }
  .candidate-other-errors > summary > i { grid-column: 2; grid-row: 1 / span 2; }
  .candidate-other-error-row { grid-template-columns: 28px minmax(0,1fr) 24px; }
  .candidate-other-error-row > i { display: none; }
  .candidate-view-heading > em { display: none; }
  .candidate-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .candidate-priority-spotlight { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 15px; }
  .candidate-priority-number { font-size: 40px; }
  .candidate-priority-proof { padding: 14px 4px 0; border-top: 1px solid var(--candidate-line); border-left: 0; }
  .candidate-priority-impact { margin-inline: -4px; }
  .candidate-priority-content > button { min-height: 78px; }
  .candidate-priority-content > button > span,
  .candidate-priority-content > button > small { overflow: visible; white-space: normal; text-overflow: clip; }
  .candidate-priority-volume-row { grid-template-columns: 60px minmax(14px,1fr) 22px; gap: 5px; }
  .candidate-priority-impact { padding-inline: 5px; }
  .candidate-diagnostic-context { grid-template-columns: minmax(0,1fr); }
  .candidate-diagnostic-context-track { grid-column: 1; grid-row: 3; }
  .candidate-secondary-priorities > div { grid-template-columns: minmax(0,1fr); }
  .candidate-secondary-priority + .candidate-secondary-priority { border-top: 1px solid var(--candidate-line); border-left: 0; }
  .candidate-secondary-priority strong { white-space: normal; }
  .candidate-secondary-priorities > aside > header { display: grid; gap: 4px; }
  .candidate-secondary-priorities > aside > header strong { overflow-wrap: anywhere; text-align: left; }
  .candidate-blunder-row { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 12px; }
  .candidate-blunder-title { grid-column: 2; }
  .candidate-blunder-title strong { overflow: visible; white-space: normal; text-overflow: clip; }
  .candidate-move-pair { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--candidate-line); }
  .candidate-blunder-row > button:is([data-candidate-replay], [data-candidate-guide]) { width: 100%; min-height: 40px; grid-column: 1 / -1; justify-content: center; }
  .candidate-solution-note { align-items: flex-start; }
  .candidate-stats-top-grid,
  .candidate-color-stats-grid { grid-template-columns: minmax(0,1fr); }
  .candidate-stats-insights { grid-template-columns: minmax(0,1fr); }
  .candidate-win-card { display: grid; justify-items: center; gap: 14px; }
  .candidate-record { width: 100%; }
  .candidate-color-stats-grid header { display: grid; gap: 4px; }
  .candidate-opening-row { grid-template-columns: minmax(0,1fr) 38px 20px; gap: 6px; }
  .candidate-view-heading h1 { font-size: 22px; line-height: 1.12; }
  .candidate-view-heading p { font-size: 11px; line-height: 1.42; }
  .candidate-reflex-center { gap: 8px; }
  .candidate-reflex-selector { grid-template-columns: 1fr; gap: 5px; }
  .candidate-reflex-choice { min-height: 44px; grid-template-columns: 24px minmax(0,1fr); gap: 7px; overflow: hidden; padding: 6px 9px; }
  .candidate-reflex-choice > b { font-size: 17px; }
  .candidate-reflex-choice > em, .candidate-reflex-choice small { display: none; }
  .candidate-reflex-choice strong { overflow: visible; font-size: 9px; line-height: 1.25; white-space: normal; text-overflow: clip; }
  .candidate-mission-flow { grid-template-columns: 1fr 8px 1fr 8px 1fr; gap: 3px; padding: 9px 7px; }
  .candidate-mission-flow > div { flex-direction: column; gap: 2px; }
  .candidate-mission-flow > div > i { width: 21px; height: 21px; font-size: 8px; }
  .candidate-mission-flow strong { font-size: 8px; }
  .candidate-mission-flow small { display: none; }
  .candidate-reflex-grid { grid-template-columns: 1fr; }
  .candidate-reflex-focus { padding: 12px; }
  .candidate-reflex-focus blockquote { margin: 8px 0 10px; font-size: 15px; line-height: 1.35; }
  .candidate-reflex-focus .candidate-micro-flow { display: none; }
  .candidate-reflex-focus > button > span { font-size: 10px; white-space: normal; }
  .candidate-reflex-toolkit > div { grid-template-columns: 1fr; }
  .candidate-reflex-tool { min-height: 0; padding: 11px 12px; }
  .candidate-reflex-tool + .candidate-reflex-tool { border-top: 1px solid var(--candidate-line); border-left: 0; }
}

@media (max-width: 760px) {
  .dashboard-scan-form > #blunderProfileField { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .dashboard-depth-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-depth-grid button { min-height: 44px; align-items: center; justify-content: center; padding: 6px; text-align: center; }
  .dashboard-depth-grid .depth-full-label, .dashboard-depth-grid small { display: none; }
  .dashboard-depth-grid .depth-mobile-label { display: block; font-size: 16px; line-height: 1; }
  .candidate-top-three-card header button, .candidate-best-move-reveal { min-height: 44px; }
  .candidate-best-move-reveal { align-content: center; }
  .candidate-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 10px; }
  .candidate-metric-card { min-height: 104px; padding: 9px 6px; }
  .candidate-metric-group { flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
  .candidate-metric-card .candidate-metric-icon { width: 36px; height: 36px; border-radius: 10px; }
  .candidate-metric-card .candidate-metric-icon-svg { width: 20px; height: 20px; }
  .candidate-metric-copy { gap: 2px; }
  .candidate-metric-card small { font-size: 9px; line-height: 1.15; letter-spacing: .015em; }
  .candidate-metric-card strong { font-size: 19px; }
  .candidate-diagnostic-signal { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 16px; }.candidate-signal-rank { min-height: 45px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 0 11px; border-right: 0; border-bottom: 1px solid var(--candidate-line); }.candidate-signal-rank span { font-size: 38px; }.candidate-signal-rank small { margin: 0; }.candidate-signal-main h2 { font-size: 21px; line-height: 1.24; }.candidate-signal-score { display: flex; align-items: center; justify-content: flex-start; gap: 13px; }.candidate-score-orbit { width: 78px; flex: 0 0 auto; }.candidate-score-orbit::before { width: 62px; }.candidate-signal-score > small { max-width: 120px; text-align: left; }.candidate-diagnostic-bottom { grid-template-columns: 1fr; }
  .candidate-other-errors > summary { min-height: 52px; }
  .candidate-other-error-row { min-height: 44px; padding-block: 8px; }
  .candidate-priority-spotlight { grid-template-columns: 1fr; gap: 15px; padding: 16px; }.candidate-priority-number { font-size: 40px; }.candidate-priority-content h2 { font-size: 20px; line-height: 1.22; }.candidate-priority-proof { padding: 15px 4px 0; border-top: 1px solid var(--candidate-line); border-left: 0; }.candidate-priority-volume-chart { padding-block: 8px 9px; }.candidate-diagnostic-context { grid-template-columns: 1fr; padding: 14px; }.candidate-diagnostic-context-track { grid-column: 1; grid-row: 3; }.candidate-secondary-priorities > div { grid-template-columns: 1fr; }.candidate-secondary-priority + .candidate-secondary-priority { border-top: 1px solid var(--candidate-line); border-left: 0; }.candidate-secondary-priority strong { white-space: normal; }.candidate-secondary-priorities > aside { padding-inline: 14px; }.candidate-secondary-priorities > aside > header { display: grid; gap: 4px; }.candidate-secondary-priorities > aside > header strong { text-align: left; }.candidate-secondary-priorities > aside blockquote { font-size: 15px; }
  .report-sprint-section > .candidate-view-heading > em { display: none; }
  .candidate-reflex-selector { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .candidate-reflex-choice { min-height: 72px; grid-template-columns: 20px minmax(0,1fr); gap: 6px; overflow: hidden; padding: 9px 7px; }
  .candidate-reflex-choice > b { font-size: 17px; }
  .candidate-reflex-choice > em, .candidate-reflex-choice small { display: none; }
  .candidate-reflex-choice strong { display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.3; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .candidate-mission-flow { grid-template-columns: 1fr 8px 1fr 8px 1fr; gap: 3px; padding: 9px 7px; }
  .candidate-mission-flow > b { display: block; }
  .candidate-mission-flow > div { gap: 4px; }
  .candidate-mission-flow > div > i { width: 24px; height: 24px; }
  .candidate-mission-flow strong { font-size: 9px; }
  .candidate-mission-flow small { display: none; }
  .candidate-reflex-grid { grid-template-columns: 1fr; }.candidate-reflex-focus blockquote { font-size: 20px; }
  .candidate-reflex-toolkit > div { grid-template-columns: 1fr; }
  .candidate-reflex-tool { min-height: 0; padding: 12px; }
  .candidate-reflex-tool + .candidate-reflex-tool { border-top: 1px solid var(--candidate-line); border-left: 0; }
  .candidate-blunder-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; padding: 12px; }.candidate-blunder-title { grid-column: 2; }.candidate-move-pair { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--candidate-line); }.candidate-blunder-row > button:is([data-candidate-replay], [data-candidate-guide]) { grid-column: 3; grid-row: 1; min-height: 44px; }.candidate-blunder-row > button.candidate-guided-replay[data-candidate-guide] { grid-column: 1 / -1; grid-row: 3; width: 100%; justify-content: center; }.candidate-solution-note { align-items: flex-start; }
  .candidate-stats-top-grid, .candidate-color-stats-grid { grid-template-columns: 1fr; }
  .candidate-stats-top-grid > article { min-height: 142px; padding: 15px; }
  .candidate-win-card { justify-content: space-between; }
  .candidate-donut small { color: #b4b8bc; font-size: 11px; }
  .candidate-record { gap: 11px; }
  .candidate-record > span { color: #b1b6ba; font-size: 12px; }
  .candidate-record b { font-size: 12px; }
  .candidate-elo-card > span, .candidate-form-card > header > span { color: #aeb3b7; font-size: 11px; }
  .candidate-elo-card > small { color: #b0b5b9; font-size: 12px; }
  .candidate-form-card { min-height: 176px !important; }
  .candidate-form-rows { gap: 14px; }
  .candidate-form-row { min-height: 38px; }
  .candidate-form-row > span b { color: #b0b5b9; font-size: 11px; }
  .candidate-form-row > span strong { font-size: 12px; }
  .candidate-form-row > i { height: 6px; margin-top: 8px; }
  .candidate-trend-delta { min-height: 28px; font-size: 11px; }
  .candidate-stats-insights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .candidate-insight-card { min-height: 118px; padding: 12px; }
  .candidate-insight-card > header > span { color: #aeb3b7; font-size: 10px; }
  .candidate-insight-card > header > strong { font-size: 19px; }
  .candidate-insight-card > header > small,
  .candidate-insight-card > header > strong small { color: #b0b5b9; font-size: 11px; }
  .candidate-color-stats-grid > article { padding: 13px; }
  .candidate-color-stats-grid header { align-items: flex-start; }
  .candidate-color-stats-grid header span { color: #aeb3b7; font-size: 11px; }
  .candidate-color-stats-grid header strong { font-size: 12px; }
  .candidate-opening-row { min-height: 40px; grid-template-columns: minmax(108px,1fr) minmax(68px,.78fr) 26px; gap: 8px; padding: 7px 0; color: #b8bdc1; font-size: 12px; }
  .candidate-opening-row i { height: 6px; }
  .candidate-opening-row b { color: #e0e2e3; font-size: 12px; }
}

@media (max-width: 420px) {
  .candidate-reflex-selector { grid-template-columns: 1fr; gap: 5px; }
  .candidate-reflex-choice { min-height: 44px; grid-template-columns: 24px minmax(0,1fr); padding: 6px 9px; }
  .candidate-reflex-choice strong { display: block; overflow: visible; font-size: 9px; white-space: normal; }
}

/* Desktop readability scale: equivalent roles share one hierarchy; mobile stays unchanged. */
@media (min-width: 761px) {
  /* Shell and PriorityScan */
  .sidebar-group-label,
  .dashboard-nav-item em { font-size: 10.5px; }
  .player-copy span { font-size: 11px; }
  .priorityscan-title,
  .candidate-view-heading > div > span { font-size: 11.5px; }
  .candidate-view-heading em { font-size: 11px; }
  .candidate-view-heading p { font-size: clamp(12px,.75vw,13px); }
  .dashboard-scan-pane .blunder-inline-field > label,
  .dashboard-depth-grid small,
  .dashboard-scan-benefits > span { font-size: 10.5px; }
  .dashboard-depth-grid strong,
  .dashboard-scan-benefits strong,
  .dashboard-scan-action::after { font-size: 11px; }
  .dashboard-scan-benefits small { font-size: 12px; line-height: 1.45; }

  /* Diagnostic */
  .candidate-signal-rank small,
  .candidate-signal-main > span,
  .candidate-score-orbit span,
  .candidate-signal-score > small,
  .candidate-decision-card > header > span { font-size: 10.5px; }
  .candidate-metric-card small { font-size: 11px; }
  .candidate-signal-main > div b,
  .candidate-top-three-card header span,
  .candidate-top-three-card header strong,
  .candidate-top-three-card header button,
  .candidate-top-three-card li span { font-size: 11px; }
  .candidate-top-three-card li strong,
  .candidate-decision-card p { font-size: 12px; }

  /* Priority */
  .candidate-priority-content > span,
  .candidate-priority-proof > header > span,
  .candidate-priority-volume-row > span,
  .candidate-diagnostic-context > header span { font-size: 10.5px; }
  .candidate-priority-content > button > small,
  .candidate-diagnostic-context > header strong,
  .candidate-secondary-priorities header span,
  .candidate-secondary-priorities header small,
  .candidate-secondary-priorities header em,
  .candidate-secondary-priorities section span { font-size: 11px; }
  .candidate-diagnostic-context > p { font-size: 12px; }

  /* Reflexes */
  .candidate-reflex-choice strong { font-size: 12px; line-height: 1.34; }
  .candidate-reflex-choice small { font-size: 10.5px; line-height: 1.4; }
  .candidate-reflex-focus > span { font-size: 11px; }
  .candidate-micro-flow i { font-size: 10.5px; }
  .candidate-micro-flow i span { font-size: 10px; }
  .candidate-reflex-focus > button > small { font-size: 11px; }
  .candidate-position-list header span,
  .candidate-position-list header small,
  .candidate-position-list header em { font-size: 11px; }
  .candidate-position-row small { font-size: 11.5px; }
  .candidate-reflex-toolkit > header span { font-size: 11.5px; }
  .candidate-reflex-toolkit > header small { font-size: 11px; }
  .candidate-reflex-tool strong { font-size: 10.5px; }
  .candidate-reflex-tool p { font-size: 12px; line-height: 1.5; }

  /* Blunders */
  .candidate-blunder-title span,
  .candidate-blunder-row > button:is([data-candidate-replay], [data-candidate-guide]) { font-size: 11px; }
  .candidate-move-pair > span,
  .candidate-best-move-reveal,
  .candidate-move-pair small { font-size: 10.5px; }
  .candidate-solution-note strong,
  .candidate-solution-note p { font-size: 12px; }
  .candidate-solution-note p { line-height: 1.5; }

  /* Statistics */
  .candidate-donut small,
  .candidate-elo-card > span,
  .candidate-form-card > header > span,
  .candidate-form-row > span b,
  .candidate-insight-card > header > span,
  .candidate-color-stats-grid header span { font-size: 10.5px; }
  .candidate-record > span,
  .candidate-elo-card > small,
  .candidate-trend-delta,
  .candidate-form-row > span strong,
  .candidate-insight-card > header > small,
  .candidate-insight-card > header > strong small,
  .candidate-color-stats-grid header strong,
  .candidate-opening-row,
  .candidate-opening-row b { font-size: 11px; }

  /* Persistent board; coordinates and evaluation percentages intentionally stay at 9px/7px. */
  .candidate-board-header > div span,
  .candidate-board-turn { font-size: 10.5px; }
  .board-dock .board-toolbar button,
  .board-meta,
  .legal-toggle,
  .board-meta .history,
  .board-footer button { font-size: 11px; }
  .board-dock .message,
  .board-dock .position-tools-card summary { font-size: 12px; }
  .board-dock .message { line-height: 1.5; }

  /* PriorityScan completion dialog */
  .analysis-overlay.is-complete .analysis-overlay-complete-kicker { font-size: 11.5px; }
  .analysis-overlay.is-complete .analysis-overlay-message { font-size: 12px; }
  .analysis-overlay.is-complete .analysis-overlay-complete-metrics small { font-size: 10.5px; }
}

/* ui-20260815-mobile-entry-signal-offer-v79 — replay cleanup, legal targets and Top 20. */
.board-dock .board-toolbar {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
.board-dock .board-toolbar button {
  min-height: 48px;
  overflow: visible;
  padding: 6px 7px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
  white-space: normal;
  text-overflow: clip;
}
.board-dock .training-feedback:has(.blunder-feedback-card) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.blunder-feedback-card {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(108,201,221,.2);
  border-radius: 16px;
  color: #eef2f2;
  background:
    radial-gradient(circle at 92% 8%,rgba(244,122,34,.07),transparent 34%),
    linear-gradient(145deg,rgba(16,43,46,.96),rgba(16,27,30,.98) 70%);
  box-shadow: 0 14px 32px rgba(1,12,14,.26),inset 0 1px 0 rgba(255,255,255,.035);
}
.blunder-replay-state { gap: 9px; }
.blunder-feedback-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.blunder-feedback-header > strong { color: #f4f6f6; font-size: 15px; line-height: 1.25; }
.blunder-feedback-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.blunder-feedback-card .mastery-pill { margin: 0; padding: 4px 8px; font-size: 10px; }
.blunder-feedback-card .generated-exercise-pill { margin-left: 0; }
.blunder-feedback-context { color: #aeb8ba; font-size: 12px; line-height: 1.45; }
.blunder-feedback-reflex { padding-top: 9px; border-top: 1px solid var(--candidate-line); }
.blunder-feedback-reflex:empty { display: none; }
.blunder-feedback-reflex small { display: block; margin: 0; color: #c9d7d8; font-size: 11px; line-height: 1.48; }
.blunder-feedback-reflex b { color: var(--candidate-orange-soft); }
.blunder-replay-answer-moves {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
}
.blunder-replay-answer-moves > span { min-width: 0; display: grid; gap: 4px; }
.blunder-replay-answer-moves > span:last-child { text-align: right; }
.blunder-replay-answer-moves small {
  margin: 0;
  color: #8f969b;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .06em;
}
.blunder-replay-answer-moves strong { overflow-wrap: anywhere; color: #f4f5f5; font-size: 18px; }
.blunder-replay-answer-moves i { color: var(--candidate-orange-soft); font-size: 17px; font-style: normal; }
.blunder-replay-explanation { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--candidate-line); }
.blunder-replay-explanation strong { color: var(--candidate-orange-soft); font-size: 11px; }
.blunder-replay-explanation p { margin: 0; color: #c8cccf; font-size: 12px; line-height: 1.5; }
.board-dock .training-feedback:has(.training-success-card) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.training-success-card {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(108,201,221,.18);
  border-radius: 12px;
  color: #f2f3f3;
  background: linear-gradient(135deg,rgba(108,201,221,.075),rgba(244,122,34,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.training-success-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(244,122,34,.34);
  border-radius: 9px;
  color: var(--candidate-orange-soft);
  background: rgba(244,122,34,.075);
  font-size: 16px;
  font-weight: 740;
  line-height: 1;
}
.training-success-copy { min-width: 0; display: grid; gap: 3px; }
.training-success-kicker {
  color: var(--candidate-orange-soft);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .08em;
}
.training-success-copy > strong { color: #f5f6f6; font-size: 16px; font-weight: 650; line-height: 1.2; }
.training-success-copy p { margin: 0; color: #b9bec2; font-size: 12px; line-height: 1.42; }
.training-success-copy p b { color: #e7e9ea; font-weight: 680; }
@media (max-width: 360px) {
  .board-dock .board-toolbar { gap: 4px; }
  .board-dock .board-toolbar button { padding-inline: 2px; }
}
@media (min-width: 761px) {
  .blunder-replay-answer-visible .board-dock.board-card { overflow-y: auto; }
}

/* v66 — primary board actions and history share one immediately accessible row. */
.board-dock .board-toolbar {
  grid-template-columns: minmax(0,1.10fr) minmax(0,.78fr) minmax(0,1.04fr) 40px 40px;
  gap: 5px;
}
.board-dock .board-toolbar button {
  min-height: 44px;
  padding: 5px 6px;
  font-size: 13.5px;
  line-height: 1.15;
}
.board-dock .board-toolbar .board-history-action {
  min-width: 40px;
  width: 40px;
  padding: 0;
  color: #a9afb3;
  font-size: 18px;
  font-weight: 520;
  white-space: nowrap;
}
.board-dock .board-toolbar .board-history-action:hover:not(:disabled),
.board-dock .board-toolbar .board-history-action:focus-visible {
  color: var(--candidate-orange-soft);
  border-color: rgba(244,122,34,.30);
  background: rgba(244,122,34,.045);
}
@media (max-width: 760px) {
  .board-dock .board-toolbar {
    grid-template-columns: minmax(0,1.10fr) minmax(0,.78fr) minmax(0,1.04fr) 40px 40px;
    gap: 4px;
  }
  .board-dock .board-toolbar button {
    min-height: 44px;
    padding-inline: 3px;
    font-size: 12px;
  }
  .board-dock .board-toolbar .board-history-action {
    display: block;
    min-width: 40px;
    width: 40px;
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  .board-dock .board-toolbar {
    grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr) 40px 40px;
    gap: 2px;
  }
  .board-dock .board-toolbar button { padding-inline: 1px; font-size: 11.5px; }
  .board-dock .board-toolbar .board-history-action { min-width: 40px; width: 40px; font-size: 16px; }
}

/* Guided sessions hide the evaluation bar, so the board must own the remaining grid track. */
.guided-session-active .board-dock .board-stage {
  grid-template-columns: minmax(0, 1fr);
}

/* ui-20260815-mobile-entry-signal-offer-v79 — compact coaching strip above the playable board. */
.guided-session-active .board-dock.board-card {
  overflow: visible !important;
}
.guided-session-active .board-dock .candidate-board-header,
.guided-session-active .board-dock .board-toolbar,
.guided-session-active .board-dock .board-meta,
.guided-session-active .board-dock .message,
.guided-session-active .board-dock .board-training-panel,
.guided-session-active .board-dock .board-footer,
.guided-session-active .board-dock .board-advanced-tools,
.guided-session-active .board-dock .legal-moves {
  display: none !important;
}
.guided-session-active .board-dock .guided-session-panel {
  position: static;
  z-index: auto;
  grid-template-columns: minmax(185px, .85fr) minmax(0, 1.15fr);
  gap: 5px 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(244,122,34,.20);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(244,122,34,.055),rgba(255,255,255,.012)),#1b1d1e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.guided-session-active .guided-session-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 28px;
}
.guided-session-active .guided-session-meta {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px 6px;
  overflow: hidden;
}
.guided-session-active .guided-session-kicker,
.guided-session-active .guided-session-label {
  color: var(--candidate-orange-soft);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .10em;
  white-space: nowrap;
}
.guided-session-active .guided-session-head strong {
  overflow: hidden;
  color: #a8adb1;
  font-size: 9px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-session-active .guided-session-meta strong::before {
  margin-right: 6px;
  color: rgba(244,122,34,.62);
}
.guided-session-active .guided-session-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--candidate-line);
  color: #858b90;
  background: rgba(255,255,255,.018);
  font-size: 17px;
}
.guided-session-active .guided-session-close::before { inset: -8px; }
.guided-session-active .guided-session-steps {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  gap: 3px;
}
.guided-session-active .guided-session-step {
  gap: 2px;
  color: #777d82;
  font-size: 8px;
  font-weight: 590;
}
.guided-session-active .guided-session-step i {
  width: 18px;
  height: 18px;
  border-color: var(--candidate-line);
  color: #777d82;
  background: rgba(255,255,255,.018);
  font-size: 8px;
  font-weight: 650;
}
.guided-session-active .guided-session-step:not(:last-child)::after {
  top: 8px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  background: var(--candidate-line);
}
.guided-session-active .guided-session-step.is-active { color: #e3b793; }
.guided-session-active .guided-session-step.is-active i {
  border-color: rgba(244,122,34,.38);
  color: #fff;
  background: var(--candidate-orange);
  box-shadow: none;
}
.guided-session-active .guided-session-step.is-done { color: #72b990; }
.guided-session-active .guided-session-step.is-done i {
  border-color: rgba(81,191,130,.30);
  color: #bfe9d1;
  background: rgba(81,191,130,.10);
}
.guided-session-active .guided-session-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
}
.guided-session-active .guided-session-title-row {
  grid-column: 1 / -1;
  gap: 5px 8px;
}
.guided-session-active .guided-session-copy h2 {
  color: #f1f0ed;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.guided-session-active .guided-session-copy p {
  grid-column: 1 / -1;
  color: #a7acb1;
  font-size: 10.5px;
  line-height: 1.34;
  letter-spacing: -.006em;
}
.guided-session-active .guided-session-side,
.guided-session-active .guided-session-attempts {
  padding: 2px 6px;
  border-color: rgba(244,122,34,.20);
  color: #d7b291;
  background: rgba(244,122,34,.055);
  font-size: 9px;
  font-weight: 620;
}
.guided-session-active .guided-session-side span { color: var(--candidate-orange); font-size: 11px; }
.guided-session-active .guided-session-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(100px,.34fr) minmax(0,1fr);
  gap: 7px;
}
.guided-session-active .guided-session-actions.is-hint-only { grid-template-columns: minmax(100px,170px); }
.guided-session-active .guided-session-actions.is-primary-only { grid-template-columns: minmax(0,1fr); }
.guided-session-active .guided-session-primary,
.guided-session-active .guided-session-hint {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 650;
}
.guided-session-active .guided-session-primary {
  border-color: rgba(244,122,34,.55);
  background: var(--candidate-orange);
}
.guided-session-active .guided-session-hint {
  border-color: var(--candidate-line-strong);
  color: #bdc1c4;
  background: rgba(255,255,255,.018);
}
.guided-session-active .guided-session-board-cue,
.guided-session-active .guided-session-complete-note,
.guided-session-active .guided-session-copy .guided-session-solution-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 10px;
}
.guided-session-active .board-dock .board-stage {
  width: min(100%, calc(100svh - 382px));
  max-width: 100%;
  flex: 0 0 auto;
  align-self: center;
  margin-inline: auto;
}
.guided-session-active .board-dock .premium-chess-board {
  width: 100%;
  max-width: none;
}

@media (min-width: 761px) and (max-height: 620px) {
  .guided-session-active .board-dock .board-stage {
    width: min(100%, calc(100svh - 345px));
  }
}

@media (max-width: 760px) {
  .guided-session-active .board-dock.board-card { overflow: visible !important; }
  .guided-session-active .board-dock .guided-session-panel {
    grid-template-columns: minmax(0,1fr);
    gap: 7px;
    margin-bottom: 10px;
    padding: 10px;
  }
  .guided-session-active .guided-session-head,
  .guided-session-active .guided-session-steps,
  .guided-session-active .guided-session-copy,
  .guided-session-active .guided-session-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .guided-session-active .guided-session-steps { gap: 5px; }
  .guided-session-active .guided-session-step { color: #aeb4ba; font-size: 9px; }
  .guided-session-active .guided-session-step i { font-size: 9px; }
  .guided-session-active .guided-session-actions,
  .guided-session-active .guided-session-actions.is-primary-only,
  .guided-session-active .guided-session-actions.is-hint-only {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Desktop session comfort: restore breathing room without changing mobile type. */
@media (min-width: 761px) {
  .guided-session-active .board-dock .guided-session-panel {
    min-height: 165px;
    gap: 7px 12px;
    margin-bottom: 10px;
    padding: 11px 13px;
  }
  .guided-session-active .guided-session-kicker,
  .guided-session-active .guided-session-label { font-size: 10px; }
  .guided-session-active .guided-session-head strong { font-size: 10.5px; }
  .guided-session-active .guided-session-step { gap: 3px; font-size: 9.5px; }
  .guided-session-active .guided-session-step i { width: 20px; height: 20px; font-size: 9px; }
  .guided-session-active .guided-session-step:not(:last-child)::after { top: 9px; }
  .guided-session-active .guided-session-copy { gap: 5px 10px; }
  .guided-session-active .guided-session-title-row { gap: 7px 10px; }
  .guided-session-active .guided-session-copy p { font-size: 12px; line-height: 1.4; }
  .guided-session-active .guided-session-side,
  .guided-session-active .guided-session-attempts { padding: 3px 8px; font-size: 10px; }
  .guided-session-active .guided-session-actions { gap: 10px; }
  .guided-session-active .guided-session-primary,
  .guided-session-active .guided-session-hint { padding-inline: 13px; font-size: 11px; }
}

/* v75 — compact mobile statistics without changing the desktop composition. */
@media (max-width: 760px) {
  .candidate-view-heading[data-candidate-heading="stats"] > em {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
  .candidate-stats-top-grid > .candidate-elo-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 54px;
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 14px;
    padding: 12px 16px;
  }
  .candidate-elo-card > span,
  .candidate-elo-card > strong,
  .candidate-elo-card > small {
    grid-column: 1;
    justify-self: start;
  }
  .candidate-elo-card > span { grid-row: 1; }
  .candidate-elo-card > strong { grid-row: 2; margin-top: 2px; }
  .candidate-elo-card > small { grid-row: 3; }
  .candidate-elo-card > i {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 3;
    place-self: center end;
    color: rgba(244,122,34,.24);
    font-size: 44px;
    transform: rotate(-8deg);
  }

  #resetBtn {
    padding-inline: 0;
    font-size: 9.5px;
    white-space: nowrap;
  }
  .board-dock .board-toolbar {
    grid-template-columns: minmax(0,1.06fr) 44px minmax(0,1fr) 40px 40px;
  }
  .board-flip-label {
    display: none;
  }
  .board-flip-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #flipBtn {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 10px;
  }
  .legal-toggle {
    min-height: 44px;
    font-size: 9px;
  }
  .legal-toggle > span[data-i18n="showLegalMovesShort"] {
    font-size: inherit;
    font-weight: 400;
  }
  .board-dock .board-training-panel {
    gap: 6px;
    margin-top: 0;
  }
  .board-dock .compact-training-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }
  .board-dock .compact-training-controls button {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: 9.5px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: clip;
  }
  .board-dock .training-feedback {
    margin: 0;
  }
  .editor-card select { font-size: 12px; }
  .candidate-answer-explanation { grid-column: 1 / -1; }
  #dashboardBoardDock.board-dock {
    height: auto;
    min-height: 100%;
    max-height: none;
    overflow: visible;
  }
}

.board-flip-icon { display: none; }
@media (max-width: 760px) {
  .board-flip-icon { display: block; }
}
@media (max-width: 330px) {
  .board-dock .board-toolbar {
    grid-template-columns: minmax(0,1.06fr) 44px minmax(0,1fr);
  }
  .board-dock .board-toolbar #resetBtn { grid-column: 1; grid-row: 1; }
  .board-dock .board-toolbar #flipBtn { grid-column: 2; grid-row: 1; }
  .board-dock .board-toolbar #bestBtn { grid-column: 3; grid-row: 1; }
  .board-dock .board-toolbar #undoMoveBtn { grid-column: 2; grid-row: 2; }
  .board-dock .board-toolbar #redoMoveBtn { grid-column: 3; grid-row: 2; justify-self: start; }
}

/* v78 — compact diagnostic and locale-aware one-line mobile headings. */
@media (max-width: 760px) {
  .candidate-view-heading > div { min-width: 0; }
  .candidate-view-heading h1 {
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    text-wrap: nowrap;
  }
  html[lang="fr"] .candidate-view-heading[data-candidate-heading="diagnostic"] h1 {
    font-size: clamp(16.5px,4.8vw,18.5px);
    letter-spacing: -.045em;
  }
  html[lang="fr"] .candidate-view-heading[data-candidate-heading="priority"] h1 {
    font-size: clamp(14.2px,4.2vw,16.2px);
    letter-spacing: -.04em;
  }
  html[lang="fr"] .candidate-view-heading[data-candidate-heading="blunders"] h1 {
    font-size: clamp(13.4px,3.95vw,15.4px);
    letter-spacing: -.04em;
  }
  html[lang="en"] .candidate-view-heading[data-candidate-heading="diagnostic"] h1,
  html[lang="es"] .candidate-view-heading[data-candidate-heading="diagnostic"] h1,
  html[lang="es"] .candidate-view-heading[data-candidate-heading="priority"] h1,
  html[lang="es"] .candidate-view-heading[data-candidate-heading="blunders"] h1 {
    font-size: clamp(16px,4.65vw,18.2px);
    letter-spacing: -.04em;
  }
  html[lang="en"] .candidate-view-heading[data-candidate-heading="priority"] h1,
  html[lang="en"] .candidate-view-heading[data-candidate-heading="blunders"] h1 {
    font-size: clamp(17px,4.9vw,19px);
    letter-spacing: -.035em;
  }

  .candidate-metric-grid { margin-bottom: 8px; }
  .candidate-metric-card { min-height: 82px; padding-block: 7px; }
  .candidate-diagnostic-signal {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "rank score" "main main";
    gap: 8px 10px;
    padding: 12px;
  }
  .candidate-signal-rank {
    grid-area: rank;
    min-height: 34px;
    gap: 9px;
    padding: 0;
    border: 0;
  }
  .candidate-signal-rank span { font-size: 30px; }
  .candidate-signal-rank small {
    width: 76px;
    max-width: none;
    margin: 0;
    overflow: visible;
    font-size: 7.8px;
    line-height: 1.15;
    white-space: normal;
    text-overflow: clip;
  }
  .candidate-signal-main {
    grid-area: main;
    padding-top: 9px;
    border-top: 1px solid var(--candidate-line);
  }
  .candidate-signal-main h2 { margin: 4px 0 5px; font-size: 18px; line-height: 1.18; }
  .candidate-signal-main p { font-size: 11px; line-height: 1.38; }
  .candidate-signal-main > div {
    display: grid;
    grid-template-columns: repeat(3,max-content);
    gap: 4px;
    margin-top: 8px;
  }
  .candidate-signal-main > div b {
    min-width: 0;
    padding: 4px 5px;
    overflow: visible;
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: clip;
  }
  .candidate-signal-score { grid-area: score; justify-content: flex-end; gap: 7px; }
  .candidate-score-orbit {
    width: 78px;
    height: 28px;
    aspect-ratio: auto;
    border-radius: 99px;
    background: linear-gradient(90deg,var(--candidate-gold) 0 var(--score),rgba(255,255,255,.07) var(--score) 100%);
  }
  .candidate-score-orbit::before { display: none; }
  .candidate-score-orbit strong { margin: 0; padding: 2px 7px; border-radius: 99px; color: #fff; background: #222120; font-size: 14px; font-weight: 760; }
  .candidate-score-orbit span { display: none; }
  .candidate-signal-score > small { max-width: 84px; overflow: visible; color: #c9bcaf; font-size: 8px; line-height: 1.2; text-align: left; white-space: normal; }
  .candidate-diagnostic-bottom { gap: 8px; margin-top: 8px; }
  .candidate-top-three-card header { min-height: 42px; padding-block: 7px; }
  .candidate-top-three-card header button { padding-inline: 8px; font-size: 8.4px; white-space: nowrap; }
  .candidate-top-three-card li { min-height: 38px; padding-block: 7px; }
  .candidate-top-three-card li small { color: #c9bcaf; }
  .candidate-decision-card { padding: 12px; }
}

@media (max-width: 360px) {
  html[lang="fr"] .candidate-view-heading[data-candidate-heading="priority"] h1 {
    font-size: clamp(13.8px, 4.05vw, 14.2px);
  }
  html[lang="fr"] .candidate-view-heading[data-candidate-heading="blunders"] h1 {
    font-size: clamp(13px, 3.8vw, 13.4px);
  }
}

/* ui-20260906-post-summary-signup-v1 — P1.2 mobile topbar: menu, logo, account, language. */
@media (max-width: 760px) {
  .dashboard-topbar.hero {
    grid-template-columns: 44px minmax(0,1fr) max-content 68px;
    gap: 6px;
    padding-inline: 8px;
    overflow: hidden;
  }
  .mobile-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .mobile-brand img {
    width: min(112px, 100%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }
  .dashboard-topbar-actions { display: contents; margin: 0; }
  .dashboard-topbar-actions .free-auth-trigger {
    min-width: 44px;
    min-height: 44px;
    max-width: 108px;
    padding-inline: 8px;
    overflow: visible;
    font-size: 11px;
    white-space: nowrap;
  }
  .dashboard-topbar-actions .language-control {
    position: relative;
    width: 68px;
    min-width: 68px;
    flex: 0 0 68px;
  }
  .dashboard-topbar-actions .language-control::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #aeb2b5;
    border-bottom: 2px solid #aeb2b5;
    content: "";
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
  }
  .dashboard-topbar-actions .compact-select {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 68px;
    max-width: 68px;
    height: 44px;
    min-height: 44px;
    padding: 0 28px 0 10px;
    flex-shrink: 0;
    background-image: none;
  }
}

}

/* Stats truth: missing observations have no quantitative chart. */
.candidate-donut.is-unavailable { background: rgba(255,255,255,.06); }
.candidate-stats-empty {
  padding: 20px;
  border: 1px solid var(--candidate-line);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  color: var(--candidate-text);
}
.candidate-stats-empty p, .candidate-stats-legend { color: var(--candidate-muted); font-size: 13px; line-height: 1.5; }
.candidate-view-heading[data-candidate-heading="stats"] h1 {
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.candidate-visual-stats .candidate-insight-card > header > strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
.candidate-visual-stats .candidate-stats-top-grid > article { min-width: 0; }
/* Keep the legend's intrinsic width; wrap below the fixed donut in narrow cards. */
.candidate-visual-stats .candidate-win-card { flex-wrap: wrap; justify-content: center; }
.candidate-visual-stats .candidate-record { flex: 1 0 max-content; }
.candidate-visual-stats .candidate-opening-row > span { overflow-wrap: anywhere; }
.candidate-visual-stats .candidate-opening-visual > span > b { width: var(--value); }

/* ui-20260927-final-source-micro-v1 */
@media (max-width: 760px) {
  .candidate-view-heading[data-candidate-heading="reflexes"],
  .candidate-view-heading[data-candidate-heading="reflexes"] > div {
    width: 100%;
    min-width: 0;
  }
  .candidate-view-heading[data-candidate-heading="reflexes"] h1 {
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
  }
  .candidate-visual-reflexes,
  .candidate-reflex-grid,
  .candidate-reflex-focus {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Guided sessions allocate full-width rows to the board and comparator.
   min-width:0 prevents the comparison's labels from growing a grid track;
   non-shrinking content plus real scrolling handles enlarged text. */
.guided-session-active .board-dock .guided-session-panel {
  flex: 0 0 auto;
  min-width: 0;
}
.guided-session-active .guided-session-board-slot,
.guided-session-active .guided-pedagogy-comparison {
  min-width: 0;
  grid-column: 1 / -1;
}
.guided-session-active .guided-session-board-slot { grid-row: 3; }
.guided-session-active .guided-pedagogy-comparison { grid-row: 4; }
.guided-session-active .guided-session-actions { grid-row: 5; }
.guided-session-active .guided-session-board-cue { grid-row: 6; }
.guided-session-active .guided-session-close::before { inset: 0; }
.guided-session-active .guided-pedagogy-navigation { display: flex; flex-wrap: wrap; }
.guided-session-active .guided-pedagogy-navigation button { flex: 1 0 auto; min-width: 44px; }
@media (min-width: 761px) {
  .guided-session-active .dashboard-layout.layout { padding: 8px; }
  .guided-session-active .board-dock.board-card {
    overflow: auto !important;
    padding: 8px;
  }
  .guided-session-active .board-dock .guided-session-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 0;
    margin: 0;
    padding: 5px;
  }
  .guided-session-active .guided-session-panel > * { grid-column: 1; grid-row: auto; }
  .guided-session-active .guided-session-steps { display: flex; flex-wrap: wrap; }
  .guided-session-active .guided-session-step {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 1px;
    font-size: 12px;
  }
  .guided-session-active .guided-session-step::after { display: none; }
  .guided-session-active .guided-session-step i { flex: 0 0 20px; }
  .guided-session-active .board-dock .board-stage {
    width: min(100%, max(280px, calc(100svh - 460px)));
  }
  .guided-session-active .guided-session-copy .guided-session-solution-note {
    font-size: 12px;
    line-height: 1.3;
    padding: 5px 7px;
  }
  .guided-session-active .guided-pedagogy-comparison { gap: 4px; padding: 4px; }
  .guided-session-active .guided-pedagogy-status { padding: 3px 7px; line-height: 18px; }
  .guided-session-active .guided-pedagogy-branches button { min-height: 44px; padding: 4px 7px; gap: 2px; }
  .guided-session-active .guided-pedagogy-navigation button { padding: 5px 4px; }
  .guided-session-active .guided-session-primary,
  .guided-session-active .guided-session-hint { font-size: 12px; }
}

/* training-mobile-rework — board-first guided session composition. */
@media (max-width: 760px) {
  .guided-session-active .mobile-workspace-switch { display: none; }
  .guided-session-active .dashboard-layout.layout {
    height: calc(100svh - 60px - env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .guided-session-active .board-dock.board-card {
    margin: 4px 8px 8px;
    padding: 4px;
    overflow: visible !important;
  }
  .guided-session-active .board-dock .guided-session-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .guided-session-active .guided-session-head,
  .guided-session-active .guided-session-copy,
  .guided-session-active .guided-pedagogy-comparison,
  .guided-session-active .guided-session-actions,
  .guided-session-active .guided-session-board-slot,
  .guided-session-active .guided-session-board-cue {
    grid-column: 1;
    grid-row: auto;
  }
  .guided-session-active .guided-session-head {
    min-height: 44px;
    padding: 0 3px;
  }
  .guided-session-active .guided-session-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .guided-session-active .guided-session-copy {
    gap: 3px;
    padding: 0 3px;
  }
  .guided-session-active .guided-session-copy h2 {
    font-size: 17px;
    line-height: 1.16;
  }
  .guided-session-active .guided-session-copy .guided-session-solution-note {
    padding: 5px 7px;
    font-size: 12px;
    line-height: 1.28;
  }
  .guided-session-active .guided-session-board-slot { display: contents; }
  .guided-session-active .guided-session-board-slot .board-stage {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .guided-session-active .guided-pedagogy-comparison {
    gap: 4px;
    padding: 4px;
    border-radius: 9px;
  }
  .guided-session-active .guided-pedagogy-status {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 18px;
  }
  .guided-session-active .guided-pedagogy-branches,
  .guided-session-active .guided-pedagogy-navigation { gap: 4px; }
  .guided-session-active .guided-pedagogy-branches button {
    min-height: 44px;
    padding: 3px 7px;
  }
  .guided-session-active .guided-pedagogy-branches span { font-size: 10px; }
  .guided-session-active .guided-pedagogy-branches b { font-size: 12px; }
  .guided-session-active .guided-pedagogy-navigation button {
    min-height: 44px;
    padding: 5px 4px;
  }
  .guided-session-active .guided-session-actions,
  .guided-session-active .guided-session-actions.is-primary-only,
  .guided-session-active .guided-session-actions.is-hint-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .guided-session-active .guided-session-primary,
  .guided-session-active .guided-session-hint { min-height: 44px; }
}

