/* Stitch CRM — MY NOTES (data/format/crm_notes_page.js). Ordinary app chrome, NOT the whiteboard: it follows the theme
   (ink/rule/surface tokens), brand vars only, no new hex (palette-alignment.spec). notes-mode mirrors recruiting-mode:
   no banner/search, the lane runs from the sidebar rail to the right edge. */
:root:has(.page.notes-mode){--page-top:60px}
/* NOTES is My Desk's second tab (2026-10-24): it wears the DESK's chrome, not its own — the same lane width and the
   same one-row circle matrix (Francis: "in notes, keep the same circle matrix in the header that DESK has"). These are
   the targets-mode rules in stitch_search.html §PORTAL-PIN v3, mirrored: show the sticky row, keep the search shell
   hidden, the opaque patch above the circles, and the reclaimed 10px / 4px spacing. */
.page.notes-mode{--page-top:60px}
.page.notes-mode .brand-banner,.page.notes-mode .search-shell{display:none}
.page.notes-mode .sticky-header,.page.notes-mode .brand-banner-sticky{display:block}
.page.notes-mode .sticky-header .search-shell{display:none}
.page.notes-mode .sticky-header::before{opacity:1}
.page.notes-mode .brand-banner-sticky{margin-bottom:10px}
.page.notes-mode .sticky-header{padding-bottom:4px}
#view-notes{max-width:none;width:100%}
.crmn{padding:0 0 48px;min-width:0}   /* no top pad: the DESK | NOTES row sits where it does on the desk */
.crmn-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin:6px 0 14px}
.crmn-head h1{font-size:26px;margin:0}
.crmn-muted{color:var(--ink-4);font-size:13.5px}
.crmn-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--rule);margin-bottom:6px}
.crmn-in{font:inherit;font-size:14px;border:1px solid var(--rule);border-radius:6px;padding:6px 8px;background:var(--surface,#fff);color:var(--ink);min-width:0}
.crmn-q{flex:1 1 240px;max-width:360px}
.crmn-check{display:inline-flex;gap:6px;align-items:center;font-size:14px;color:var(--ink-3)}
.crmn-check input{accent-color:var(--teal)}
.crmn-group{padding:16px 0 14px;border-bottom:1px solid var(--rule-soft,var(--rule))}
.crmn-player{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:0;margin-bottom:10px;cursor:pointer}
.crmn-name{font:400 19px/1.1 'Permanent Marker','Marker Felt',cursive;color:var(--ink)}
.crmn-sub{font:600 12px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-4)}
.crmn-count{margin-left:auto;font-size:13.5px;font-weight:600;color:var(--teal)}
.crmn-player:hover .crmn-name{text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:4px}
.crmn-player:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.crmn-notes{list-style:none;margin:0;padding:0 0 0 2px;display:grid;gap:12px}
.crmn-note{border-left:3px solid var(--rule);padding:1px 0 1px 12px}
.crmn-note.is-pinned{border-left-color:var(--yellow)}
/* the player card's label voice (.stat-label): 12px DM Sans caps */
.crmn-meta{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin-bottom:5px;font:600 12px/1.25 'DM Sans',system-ui,sans-serif;
  letter-spacing:.09em;text-transform:uppercase;color:var(--ink-4)}
.crmn-topic{color:var(--ink-2)}
.crmn-vis.is-staff{color:var(--teal)}
.crmn-by{color:var(--orange)}
.crmn-pin{color:var(--ink-3)}
.crmn-meta time{margin-left:auto;font-weight:500;letter-spacing:.02em;text-transform:none;font-size:12.5px}
.crmn-body{font-size:14.5px;line-height:1.5;color:var(--ink-2);white-space:pre-wrap;overflow-wrap:anywhere}
.crmn-empty{color:var(--ink-4);font-size:13.5px;padding:18px 0}
@media (max-width:760px){
  html body .page.notes-mode{margin-left:16px;margin-right:16px}
  .crmn-q{max-width:none}
  .crmn-count{margin-left:0}
}

/* §MY DESK TABS — "Desk | My notes", heading both the desk and the notes page (crm_notes_page.js tabsHtml) */
.desk-tabs{display:flex;gap:4px;margin:4px 0 10px;border-bottom:1px solid var(--rule)}
.desk-tab{appearance:none;border:0;background:none;cursor:pointer;font:inherit;font-size:13px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-4);padding:8px 12px 9px;margin-bottom:-1px;border-bottom:2px solid transparent}
.desk-tab:hover{color:var(--ink)}
.desk-tab.is-on{color:var(--ink);border-bottom-color:var(--teal);cursor:default}
.desk-tab:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:4px}
