  /* ---- every page: the reset, each Look's shape, the tour, banners, the pages' headings and boxes, leaderboards ---- */
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
  button { font-family: var(--sans); cursor: pointer; }
  a { color: var(--accent-text); }
  /* scrollbars, and each Look's shape and texture, all from tokens (none of it shows in Editorial). */
  html { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
  .btn-primary, .btn-secondary, #ccRoot button:not([class]), .btn-danger, .icon-btn, #sendBtn, #micBtn { box-shadow: var(--bevel); }
  .brand .logo, #pageHead h1, #topTitle, .drawer-head h1, #todayPanel .tp-title { text-shadow: var(--heading-shadow); }
  :root[data-look="risograph"] body::after, :root[data-look="darkroom"] body::after, :root[data-grain="on"] body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; background-image: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend); }
  .nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: none; border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; font-weight: 400; color: var(--ink-soft); }
  .nav-item:hover:not(:disabled) { background: var(--hover-wash); color: var(--ink); }
  .nav-item.active { background: var(--rail-active); color: var(--ink); font-weight: 500; }
  .nav-item:disabled { opacity: .5; cursor: default; }
  .nav-label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); padding: 18px 12px 6px; } /* like the Today panel's titles */
  /* folding: a small arrow in a title (its text stays the title's); folded items are gone from view. */
  .fold-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px 4px -4px -6px; padding: 0; border: 0; border-radius: var(--r-xs); background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; vertical-align: middle; letter-spacing: 0; } /* before the title, a little bigger, as Settings' */
  .fold-btn::before { content: "\25BE"; }
  .fold-btn[aria-expanded="false"]::before { content: "\25B8"; }
  .fold-btn:hover { background: var(--rail-active); }
  .fold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .nav-label.foldable, .nav-domain.foldable { cursor: pointer; }
  .nav-folded-item { display: none !important; }
  .nav-item .nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-item .tag { white-space: nowrap; flex-shrink: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
  .nav-item .tag.done { color: var(--ok-text); }
  /* the tour: the ring outlines one area; its wide shadow dims the rest of the page. */
  #tourRing { position: fixed; z-index: 70; pointer-events: none; border: 3px var(--bs) var(--accent); border-radius: var(--r-md); box-shadow: 0 0 0 9999px var(--scrim-strong); transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
  #tourRing.no-target { border-color: transparent; }
  #tourRing[hidden], #tourCard[hidden], #tourLinkRow[hidden] { display: none; }
  #tourCard { position: fixed; z-index: 71; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); color: var(--ink); border: var(--bw) var(--bs) var(--line); border-radius: var(--r-lg); box-shadow: var(--titlebar-paper), var(--shadow-dialog); padding: 16px 18px; }
  #tourCount { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
  #tourTitle { font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1.3; margin: 0 0 8px; }
  #tourTitle:focus { outline: none; }
  #tourText { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink-soft); }
  #tourLinkRow { font-size: 14px; margin: 10px 0 0; }
  .tour-buttons { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
  .tour-buttons #tourSkip { margin-right: auto; }
  .tour-buttons .btn-primary, .tour-buttons .btn-secondary, .banner-buttons .btn-secondary { border-radius: var(--r); padding: 9px 14px; font-size: 13px; font-weight: 500; min-height: 40px; }
  .tour-buttons button:disabled { opacity: .5; cursor: default; }
  body.touring #drawerScrim { opacity: 0; }
  body.tour-measure #rail, body.tour-measure #todayPanel { transition: none !important; }
  .banner-buttons { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
  @media (pointer: coarse) { .tour-buttons button { min-height: 44px; } } /* Take the tour is a row in You */
  .banner { margin-top: 28px; padding: 18px 20px; background: var(--card); border: var(--bw) var(--bs) var(--line); border-left: var(--bw-thick) var(--bs) var(--deco); border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .banner button { white-space: nowrap; flex: none; }
  .banner p { margin: 0; font-family: var(--serif); font-size: 16.5px; color: var(--ink-soft); }
  .banner[hidden] { display: none; }
  @media (max-width: 600px) {
    .banner { flex-direction: column; align-items: stretch; }
  }
  @media (pointer: coarse) {
    .section button { min-height: 44px; }
    input[type=checkbox] { width: 22px; height: 22px; }
  }
  :root[data-text-size="larger"] input[type=checkbox], :root[data-text-size="larger"] input[type=radio] { zoom: 1.2; } /* Larger (CC.TEXT_SIZES' 1.2) reaches the boxes too, in a module's frame as well */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
  /* every page's heading in the Look's display font and weight, in one rule (otherwise a page without its own took the
     body's bold sans). */
  #jnTitle, #shTitle, #grTitle, #sayTitle, #calTitle, #rpTitle, #gpTitle, #mbTitle, #appsTitle, .app-page-title, #mpTitle, #msTitle, #vwTitle, #ppTitle { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-shadow: var(--heading-shadow); overflow-wrap: anywhere; }
  .app-page-title, #ppTitle { margin: 8px 0 0; } /* the two seen; the others are hidden from view (core-c's list) */
  /* every page's banner, one look (You, a group's page, a member's, a shop's page, a visited shop): the page's width at
     --banner-h, its picture covering it (a 3:1 picture shows its middle) or the Look's colors, and the picture or letter
     over its bottom left corner */
  .page-hero { position: relative; height: var(--banner-h); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent-soft), var(--accent)); margin: 6px 0 50px; }
  .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
  .page-hero-img[hidden] { display: none; }
  .page-hero > .page-hero-pic { position: absolute; left: 14px; bottom: -42px; width: 88px; height: 88px; box-sizing: border-box; border: 3px solid var(--paper); border-radius: var(--r-round); background: var(--card); color: var(--ink); font-family: var(--serif); font-size: 34px; font-weight: 500; display: grid; place-items: center; overflow: hidden; }
  .page-hero-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .page-hero-pic[data-mark]::before { content: attr(data-mark); }
  .section-box { margin-top: 20px; padding: 14px 16px 16px; background: var(--card); border: var(--bw) var(--bs) var(--line); border-radius: var(--r); }
  .section-box[hidden] { display: none; }
  /* a wide page's sections as cards in columns, as You's (--card-cols), stacked with no row gaps (stackPages); its
     heading, lines and the rest across the top or the bottom, their words at a reading width. A phone keeps the page as a list. */
  @media (min-width: 821px) {
    body.page-wide #mainInner .card-grid { display: grid; grid-template-columns: var(--card-cols); column-gap: 18px; align-items: start; }
    body.page-wide #mainInner .card-grid.cards-stacked { grid-auto-rows: 1px; row-gap: 0; }
    body.page-wide #mainInner .card-grid > * { grid-column: 1 / -1; min-width: 0; }
    body.page-wide #mainInner .card-grid > :is(.section, .section-box, .you-card, .setup-group, .rp-report):not(.grid-across) { grid-column: auto; margin: 12px 0 0; }
    body.page-wide #mainInner .card-grid > :is(.section, .setup-group) { padding: 14px 16px 16px; background: var(--card); border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); }
    body.page-wide #mainInner .card-grid > :is(p, .hint) { max-width: 72ch; }
  }
  .section-h { font-family: var(--display); font-size: 19px; font-weight: 500; margin: 0 0 8px; color: var(--ink); }
  .section-box .check-row { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; color: var(--ink); margin: 0; }
  .section-box .check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
  .section-box label { font-size: 13px; color: var(--ink-soft); }
  .row-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  /* one look for every leaderboard, in the page and in modules' frames (they get these styles).
     <ol class="cc-board"><li class="cc-board-me"><span class="cc-board-rank">1</span><span class="cc-board-name">Sam</span>
     <span class="cc-board-score">42</span></li></ol>; an empty board: <p class="cc-board-empty">. */
  .cc-board { list-style: none; margin: 8px 0; padding: 0; border: var(--bw) var(--bs) var(--line); border-radius: var(--r-sm); overflow: hidden; }
  .cc-board > li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: baseline; gap: 8px; padding: 7px 12px; border-top: var(--bw) var(--bs) var(--line); color: var(--ink); font-size: 14px; }
  .cc-board > li:first-child { border-top: 0; }
  .cc-board .cc-board-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
  .cc-board .cc-board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-board .cc-board-score { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
  .cc-board > li:first-child .cc-board-rank { color: var(--accent-text); font-weight: 600; }
  .cc-board > li.cc-board-me { background: var(--accent-soft); }
  .cc-board > li.cc-board-me .cc-board-name::after { content: " (you)"; color: var(--muted); font-weight: 400; }
  .cc-board-empty { color: var(--muted); font-size: 13.5px; margin: 8px 0; }
  .cc-sandbox { display: block; width: 100%; min-height: 40px; border: 0; background: transparent; } /* a sandboxed module's page */
  /* inside a module's frame (the page's CSS reaches it), room for a Look's ring or shadow drawn outside a button
     (Cyberpunk's 1px ring, Risograph's 2px offset), which the frame's edge would otherwise cut off */
  #ccRoot { padding: 2px; }
  .section-result { margin-top: 14px; }
  .section-h3 { font-size: 15px; font-weight: 600; margin: 20px 0 4px; color: var(--ink); }
  .section-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
  .section-row input { flex: 1 1 160px; min-width: 0; }
  .section-result[hidden] { display: none; }
