  /* ---- the Shop: its views, Your modules' For creators, the cards, the boxes, a shop's banner ---- */
  .sh-group.sh-folded > :not(h2), #shInstalledBox.sh-folded > :not(h2) { display: none !important; }
  /* the starter set at the top of Apps; Your modules' sync line. */
  .apps-starter { margin: 12px 0; padding: 10px 12px; border: var(--bw) var(--bs) var(--line); border-radius: var(--r); background: var(--card); }
  .apps-starter .starter-h { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
  .apps-starter .row-buttons, #shStarter .row-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  #modulesSyncLine.err, .sh-item .err { color: var(--danger); }
  /* v0.4.0-alpha.5: the Shop, a page in the main area like the Journal (theme tokens only). */
  #shopPage { display: none; }
  body.shop-open #shopPage { display: block; }
  #shopPage .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .sh-lede { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 14px 0 0; max-width: 64ch; }
  #shState { font-size: 13px; color: var(--muted); margin-top: 14px; }
  #shState { min-height: 16px; line-height: 16px; } /* the line keeps its room when empty, so "Looking for modules…" coming and going doesn't move the page */
  #shState:empty { visibility: hidden; }
  #shState.ok { color: var(--ok-text); }
  #shState.err { color: var(--danger); }
  .sh-drop { border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 16px; text-align: center; color: var(--ink-soft); }
  .sh-drop.over { border-color: var(--accent); background: var(--accent-soft); }
  .sh-drop .sh-drop-main { margin: 0 0 4px; font-size: 14.5px; color: var(--ink); }
  .sh-drop .hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
  .sh-report { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink); background: var(--paper); border: var(--bw) var(--bs) var(--line); border-radius: var(--r); padding: 10px 12px; margin: 12px 0 0; max-height: 360px; overflow: auto; }
  .sh-preview { margin: 12px 0 0; }
  .sh-preview .sh-tabs { margin: 0; }
  .sh-preview-frame { border: var(--bw) var(--bs) var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0 0; }
  .sh-preview-frame[data-place="today"] { max-width: 260px; } /* Today's section is about 230 px wide */
  .sh-group { margin-top: 28px; }
  .sh-group > .hint { font-size: 13px; color: var(--ink-soft); }
  .sh-item { padding: 14px 0 12px; border-top: var(--bw) var(--bs) var(--line); }
  .sh-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  /* a parent's details page has an Add-ons section (no folded add-ons box here). */
  .sh-item h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
  .sh-ver { font-size: 12.5px; color: var(--muted); }
  .sh-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
  .sh-badges .tag { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); border: var(--bw) var(--bs) var(--line-strong); border-radius: var(--r-xs); padding: 1px 6px; }
  .sh-badges .tag.new, .sh-badges .tag.on { color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
  .sh-desc { margin: 6px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink); max-width: 66ch; }
  .sh-facts { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
  .sh-changes summary, .sh-codediff summary, .sh-code summary { cursor: pointer; font-size: 13px; color: var(--accent-text); margin-top: 6px; }
  .sh-codetext { max-height: 420px; overflow: auto; } /* module.js to read */
  .sh-origin-changed { color: var(--ink); } /* code last changed by someone other than its author */
  .sh-result { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); white-space: pre-wrap; }
  .sh-result:empty { display: none; }
  /* the Shop's category tabs (toggle buttons, one pressed). */
  .sh-cats { margin-top: 18px; }
  .sh-cats[hidden] { display: none; }
  .sh-visit-list { list-style: none; margin: 0; padding: 0; }
  /* the Shop's views: the page says which is open (data-view, with data-key for a shop) and each box the views it shows in
     (data-views, in the markup); a box without one shows in every view. A details page shows only the boxes its entry is
     in, and Add a module of your own above the page it opened (sh-above). Your modules' For creators strip shows in Creator
     mode only: with it off, the no-making rule hides it. */
  #shopPage[data-view="home"] [data-views]:not([data-views~="home"]),
  #shopPage[data-view="shop"]:not([data-key="myshop"]) [data-views]:not([data-views~="shop"]),
  #shopPage[data-view="shop"][data-key="myshop"] [data-views]:not([data-views~="shop"]):not([data-views~="myshop"]),
  #shopPage[data-view="visit"] [data-views]:not([data-views~="visit"]),
  #shopPage[data-view="modules"] [data-views]:not([data-views~="modules"]),
  #shopPage[data-view="edit"] [data-views]:not([data-views~="edit"]),
  #shopPage[data-view="detail"] [data-views]:not([data-views~="detail"]):not(.has-detail):not(.sh-above) { display: none; }
  #shopPage[data-view="shop"][data-cat="themes"] #shList { display: none !important; } /* the Themes tag */
  #shopPage[data-view="shop"][data-cat="cat"] #shShopThemesBox { display: none !important; } /* All and Themes only */
  /* Installed keeps what's for using modules (Make my own version is on the module's page); in Creator mode one of
     yours is listed under Yours, not here, and a search hides a section with no match */
  #shopPage[data-view="modules"] #shInstalled .sh-own, #shopPage[data-view="modules"] #shInstalled .sh-code { display: none; }
  body:not(.no-making) #shopPage[data-view="modules"] #shInstalled .sh-in-yours, #shopPage[data-view="modules"] .sh-nomatch { display: none; }
  .sh-mode-card { margin: 10px 0 8px; }
  .sh-reports-line { margin: 18px 0 0; }
  .cr-kit-steps { margin: 0 0 12px; padding-left: 22px; } .cr-kit-steps li { margin: 0 0 6px; }
  #crKitOffersRow { margin: 10px 0 0; }
  #crKitDownload { display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
  .cr-kit-read { margin: 12px 0 0; }
  .sh-makers { margin: 18px 0 20px; } /* More for makers, then the search */
  .cr-kit-read, .sh-makers { border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); background: var(--card); }
  .cr-kit-read summary, .sh-makers > summary { cursor: pointer; padding: 10px 14px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; font-weight: 500; color: var(--ink); }
  /* a flex summary drops the fold's marker, so every fold in Your modules has the same arrow (For creators' is .sh-fold) */
  .cr-kit-read > summary, .sh-makers > summary, .sh-fold > summary { list-style: none; }
  .cr-kit-read > summary::-webkit-details-marker, .sh-makers > summary::-webkit-details-marker, .sh-fold > summary::-webkit-details-marker { display: none; }
  .cr-kit-read > summary::before, .sh-makers > summary::before, .sh-fold > summary::before { content: "\25B8"; display: inline-block; width: 1em; margin-right: 6px; transition: transform .15s; }
  .cr-kit-read[open] > summary::before, .sh-makers[open] > summary::before, .sh-fold[open] > summary::before { transform: rotate(90deg); }
  @media (prefers-reduced-motion: reduce) { .cr-kit-read > summary::before, .sh-makers > summary::before, .sh-fold > summary::before { transition: none; } }
  .cr-kit-text { margin: 0; padding: 0 14px 14px; max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 var(--mono); color: var(--ink-soft); }
  .cr-kit-text:focus-visible { outline-offset: -3px; }
  .sh-makers > .section-box { margin: 0 14px 14px; } /* What modules offer and Ask for something, inside the fold */
  .sh-offer { margin: 0 0 10px; }
  #shOffersBox.sh-folded > :not(h2) { display: none !important; }
  .sh-offer-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .sh-offer.sh-folded > :not(.sh-offer-head) { display: none !important; }
  .sh-offer-head input[type=checkbox] { margin: 0; }
  .sh-offer-how { font-family: var(--mono); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
  .sh-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 8px 0 0; }
  .sh-theme { border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
  .sh-theme-name { font-weight: 600; color: var(--ink); }
  /* a card's own small preview, painted with the theme's variables */
  .sh-theme-pv { position: relative; overflow: hidden; background-color: var(--paper); background-image: var(--bg-main, none); background-size: cover; background-position: center; color: var(--ink); border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); padding: 10px 12px 12px; font-family: var(--sans); }
  .sh-theme-pv-title { font-family: var(--display); font-size: 20px; line-height: 1.2; margin: 0 0 2px; }
  .sh-theme-pv-text { font-size: 13px; color: var(--ink); margin: 0 0 8px; }
  .sh-theme-pv-btn { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: 4px 10px; font-size: 13px; box-shadow: var(--bevel); }
  .sh-theme-pv.has-grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend); }
  .sh-theme-swatches { display: flex; gap: 4px; }
  .sh-theme-swatches span { width: 26px; height: 18px; border-radius: var(--r-xs); border: var(--bw) var(--bs) var(--line-strong); }
  #shList > .sh-group[hidden], #shHome [hidden], #shopPage [hidden] { display: none !important; }
  .sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 16px; }
  .sh-card { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); background: var(--card); color: var(--ink); cursor: pointer; overflow: hidden; font: inherit; }
  .sh-card:hover { border-color: var(--line-strong); }
  .sh-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .sh-card-banner { height: 56px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--serif); font-size: 24px; border-bottom: var(--bw) var(--bs) var(--line); }
  .sh-card.g1 .sh-card-banner, .sh-card.g4 .sh-card-banner { background: var(--rail-active); color: var(--ink); }
  .sh-card.g2 .sh-card-banner, .sh-card.g5 .sh-card-banner { background: var(--paper); color: var(--ink); }
  .sh-card.add .sh-card-banner { background: var(--card); color: var(--ink-soft); }
  .sh-card-banner[data-band] { background: color-mix(in srgb, var(--band) 35%, var(--paper)); } /* a Featured card's band, a medium shade of its app's own color in each Look and mode */
  .sh-card-name { font-weight: 600; padding: 0 10px; }
  .sh-card-by, .sh-card-line { padding: 0 10px; font-size: 12px; color: var(--ink-soft); }
  .sh-card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
  .sh-card .tag, .sh-results .tag { 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; }
  .sh-shop-head { margin: 6px 0 4px; }
  /* a shop's look, painted on the middle column while the Shop shows that shop: its own paper, ink and fonts (the rail,
     the bars and the right column stay the viewer's) */
  #scroller.place-look { background-color: var(--paper); color: var(--ink); font-family: var(--sans); }
  .sh-shop-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 6px 0 2px; color: var(--ink); }
  .sh-search { -webkit-appearance: none; appearance: none; display: block; max-width: 520px; margin-inline: auto; } /* the field look (controls.css) in Safari too */
  .sh-results { list-style: none; padding: 0; margin: 6px 0 12px; }
  .sh-results li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-top: var(--bw) var(--bs) var(--line); }
  /* a shop's banner, message, featured modules and Edit shop */
  .page-banner { display: block; width: 100%; max-width: 900px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-md); border: var(--bw) var(--bs) var(--line); margin: 6px 0 8px; }
  .sh-card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sh-card-banner.has-img { padding: 0; }
  .sh-msg { white-space: pre-wrap; margin: 4px 0 10px; color: var(--ink); max-width: 680px; }
  .sh-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 12px; } /* a Featured card keeps .sh-card's padding (the bottom only), so its band meets the top */
  .sh-card-banner .sh-feat-icon { width: 40px; height: 40px; font-family: var(--sans); font-size: 18px; border-radius: var(--r-md); }
  .sh-edit { max-width: 680px; margin: 8px auto 12px; } /* a page of its own */
  .sh-edit textarea { width: 100%; }
  .sh-item-head .sh-settings { margin-left: auto; font-size: 13px; }
  .sh-drop .hint + .hint { margin-top: 6px; }
