  /* ---- a module's page and Settings page, its gear, its sections and entries ---- */
  .ms-row { margin: 10px 0 14px; }
  .ms-row .hint { margin-top: 2px; }
  .ms-fields { margin: 8px 0 4px; padding: 4px 0 0 22px; }
  .ms-fields .row-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .ms-row .tag.update { margin-left: 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); border: var(--bw) var(--bs) var(--accent); border-radius: var(--r-xs); padding: 1px 6px; font-weight: 600; }
  /* v0.4.0-alpha.6: a module's page in the main area, its sidebar entries and its project-page sections (theme tokens only). */
  #modulePage { display: none; }
  body.module-open #modulePage { display: block; }
  #modulePage .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  #mpBody { margin-top: 16px; color: var(--ink); font-size: 14.5px; line-height: 1.55; }
  /* v0.4.0-alpha.24 (ideas 45, 46): a module's Settings page, the gear beside a widget's title, Hide and the move to the
     other side in edit mode, the hidden widgets, and the built-in Today sections when placed in the menu. Tokens only. */
  #modSetPage { display: none; }
  body.modset-open #modSetPage { display: block; }
  #modSetPage .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
  #modSetPage [hidden] { display: none !important; }
  #modSetPage .ms-row { margin: 0; }
  #modSetPage .ms-row .check-row { font-size: 14px; }
  .ms-where { list-style: none; margin: 0; padding: 0; }
  .ms-where li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: var(--bw) var(--bs) var(--line); color: var(--ink); font-size: 14px; }
  .ms-where li:last-child { border-bottom: 0; }
  .ms-where .ms-name { flex: 1 1 160px; min-width: 0; }
  .ms-where label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink-soft); }
  .ms-where select { width: auto; min-width: 150px; }
  .mp-links { margin-top: 6px; }
  /* no gear on section titles; the right panel's head has the one gear (Edit layout), and in edit mode each section's
     tools end with a gear to its module's Settings page. */
  .tp-head-tools { display: flex; align-items: center; gap: 4px; }
  /* the gear is a thin outline drawn in the Look's own text color, small; the touch target stays. */
  .tp-head-gear { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-round); background: none; color: var(--ink); cursor: pointer; line-height: 0; }
  .gear-svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
  .tp-head-gear:focus-visible { color: var(--accent-text); }
  @media (hover: hover) { .tp-head-gear:hover { color: var(--accent-text); } } /* a phone keeps :hover on the last thing tapped, so the hover color only where the device can hover */
  .edit-tools .edit-gear { display: inline-grid; place-items: center; line-height: 0; }
  #mpBody .cc-card, .pp-module .cc-card { margin: 12px 0 0; }
  #mpBody h2 { font-family: var(--display); font-size: 19px; font-weight: 500; margin: 22px 0 8px; color: var(--ink); }
  #ppModules:empty { display: none; }
  /* v0.4.0-alpha.7 (decision 119): module sections in the sidebar (same title and spacing as the Today panel's; alpha.24: no rule),
     a module section's body, and Looks, Edit Today's lists. Theme tokens only. */
  .tp-module .tp-body { font-size: 13px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
  .tp-module .tp-label .tag { margin-left: 6px; letter-spacing: normal; text-transform: none; }
  #moduleNav .nav-item.has-update::after { content: "Update"; margin-left: 6px; white-space: nowrap; flex-shrink: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
  #moduleNav .nav-addons { justify-content: flex-start; font-size: 12.5px; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
  #moduleNav .nav-addons::before { content: "\25B8"; margin-right: 6px; display: inline-block; transition: transform .15s; }
  #moduleNav .nav-addons[aria-expanded="true"]::before { transform: rotate(90deg); }
  #moduleNav .nav-addon { padding-left: 28px; }
  #moduleNav .nav-stopped { color: var(--muted); font-style: italic; } /* a module that stopped */
  #moduleNav .nav-held { color: var(--muted); font-style: italic; } /* what's held back in this tab */
  #mpNotHere { margin: 4px 0 0; }
  .module-held { margin: 2px 0 0 28px; }
  /* a group's title among the apps' entries (#moduleNav, out of view; the Apps grid reads it) (Favorites, then each
     category) folds its entries; open while editing. */
  #moduleNav .nav-cat { justify-content: flex-start; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 8px; padding-bottom: 4px; }
  #moduleNav .nav-cat::before { content: "\25B8"; margin-right: 6px; display: inline-block; transition: transform .15s; }
  #moduleNav .nav-cat[aria-expanded="true"]::before { transform: rotate(90deg); }
  body:not(.layout-editing) #moduleNav .cat-folded { display: none; }
  body:not(.layout-editing) #moduleNav .nav-addon.addon-folded { display: none; }
  #moduleNav .nav-item.is-new::after { content: "New"; margin-left: 6px; white-space: nowrap; flex-shrink: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
  .layout-h { font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
  .layout-list { list-style: none; margin: 0; padding: 0; }
  .layout-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-bottom: var(--bw) var(--bs) var(--line); }
  .layout-name { flex: 1 1 10em; min-width: 0; color: var(--ink); }
  .layout-place { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ink-soft); }
  .layout-place select { width: auto; margin: 0; }
  .layout-move { display: inline-flex; gap: 6px; }
  .layout-btn { min-height: 32px; min-width: 44px; padding: 4px 10px; }
  @media (max-width: 820px) {
    .tp-head-gear { min-height: 44px; min-width: 44px; }
  }
  /* ---- the microphone's bar: Creative Chief is recording for a module ---- */
  #micBar { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 39; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--card); color: var(--ink); border: var(--bw) var(--bs) var(--danger-line); border-radius: var(--r-pill); box-shadow: var(--shadow-panel); padding: 6px 8px 6px 14px; font-size: 14px; }
  #micBar .mic-dot { flex: none; width: 10px; height: 10px; border-radius: var(--r-round); background: var(--danger); }
  #micBar .mic-time { color: var(--muted); font-variant-numeric: tabular-nums; }
  @media (max-width: 820px) {
    #micBar button { min-height: 44px; min-width: 44px; }
  }
  /* ---- full screen in the window, where the browser has none: the module's page frame over the whole window, inside the
     notch and the home bar, on the Look's paper, with Done above it; the microphone's bar and a question stay over it ---- */
  #fillBack { position: fixed; inset: 0; z-index: 30; background: var(--paper); }
  .cc-sandbox.cc-filled { position: fixed; z-index: 31; top: env(safe-area-inset-top, 0px); left: env(safe-area-inset-left, 0px); width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  #fillDone { position: fixed; z-index: 32; top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); min-height: 44px; min-width: 44px; }
