  /* ---- the Shop's modules as rows, the details page, the home's tabs and Updates (after the controls they tune) ---- */
  .sh-item-head .sh-icon { width: 36px; height: 36px; flex: none; align-self: center; font-size: 16px; border-radius: var(--r-md); }
  .sh-long { margin: 2px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 66ch; }
  .sh-gap { pointer-events: none; } /* a removed row's space, held for a moment */
  /* last in the sheet, so its rules come after the Shop's older ones: the Shop's modules as rows (an icon, a name, one line, Get or Open);
     a row opens its details page, the same entry drawn whole and alone (data-view "detail"), with Back to where it was. */
  #shopPage[data-view="detail"] #shInstalledBox.has-detail { padding: 0; border: 0; background: none; margin: 0; }
  #shopPage[data-view="detail"] #shList > .sh-group.has-detail { margin-top: 0; }
  .sh-item.sh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name act" "icon line act" "res res res"; column-gap: 12px; row-gap: 2px; align-items: center; position: relative; padding: 10px 0; }
  .sh-row > .sh-item-head { display: contents; }
  .sh-row .sh-icon { grid-area: icon; }
  .sh-row .sh-name-line { grid-area: name; min-width: 0; }
  .sh-row > .sh-desc { grid-area: line; margin: 0; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-row > .sh-actions { grid-area: act; margin: 0; position: relative; z-index: 1; }
  .sh-row > .sh-result { grid-area: res; position: relative; z-index: 1; }
  .sh-row > .sh-result:empty { display: none; }
  .sh-row > :not(.sh-item-head):not(.sh-desc):not(.sh-actions):not(.sh-result), .sh-row > .sh-actions ~ .sh-actions, .sh-row .sh-settings, .sh-row .sh-ver,
  .sh-row .sh-badges > :not(.new):not(.off):not(.sh-addcount), .sh-row .sh-actions > :not(:first-child), .sh-row .sh-actions > :first-child:not(.btn-primary) { display: none !important; }
  .sh-row .sh-actions > .btn-primary { min-height: 34px; padding: 5px 16px; border-radius: var(--r-pill); }
  .sh-open { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
  .sh-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
  .sh-open:focus-visible { outline: none; }
  .sh-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
  .sh-row:hover { background: var(--hover-wash); }
  .sh-name-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
  .sh-row .sh-name-line h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  /* the details page: the mock-up's head (a big icon, the name and its line, Get or Open), then Version, For and Made by */
  .sh-item.is-detail { border-top: 0; padding-top: 4px; }
  .is-detail > .sh-item-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "icon set"; column-gap: 16px; align-items: center; }
  .is-detail > .sh-item-head .sh-icon { grid-area: icon; width: 72px; height: 72px; font-size: 30px; border-radius: var(--r-lg); }
  .is-detail > .sh-item-head .sh-name-line { grid-area: name; }
  .is-detail > .sh-item-head .sh-settings { grid-area: set; justify-self: start; margin: 0; }
  .is-detail h3 { font-family: var(--display); font-size: 24px; font-weight: 500; }
  .is-detail > .sh-desc { margin: 10px 0 0; color: var(--ink-soft); }
  .is-detail > .sh-actions { margin-top: 12px; }
  .sh-factgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border-block: var(--bw) var(--bs) var(--line); padding: 10px 0; margin: 16px 0 12px; }
  .sh-factgrid > div { font-size: 12px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; padding: 0 4px; }
  .sh-factgrid b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
  .sh-sec, .sh-g-head { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 6px; }
  .sh-item:not(.is-detail) > .sh-sec, .sh-item:not(.is-detail) > .sh-g-head, .sh-item:not(.is-detail) > .sh-factgrid, .sh-item:not(.is-detail) > .sh-morefrom, .sh-item:not(.is-detail) > .sh-gline { display: none; }
  ul.sh-facts { list-style: none; padding: 0; margin: 4px 0 0; }
  ul.sh-facts > li { margin: 0 0 3px; }
  .is-detail ul.sh-facts { font-size: 14px; color: var(--ink); line-height: 1.45; list-style: disc; padding-left: 20px; }
  .is-detail > .sh-changes > summary { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 6px; }
  .sh-morefrom { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .sh-morefrom button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; min-height: 44px; background: none; border: 0; border-radius: var(--r-md); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
  .sh-morefrom button:hover { background: var(--hover-wash); }
  .sh-addons button { position: relative; } /* New or Update on an add-on's icon */
  .sh-addons .sh-addtag { position: absolute; top: 2px; right: 2px; margin: 0; font-size: 10.5px; padding: 1px 6px; }
  .sh-morefrom .sh-icon { width: 44px; height: 44px; font-size: 18px; border-radius: var(--r-md); }
  .sh-gline { margin: 0 0 6px; }
  .sh-creators { margin-top: 18px; border-top: var(--bw) var(--bs) var(--line); padding-top: 10px; }
  .sh-creators > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); min-height: 32px; display: flex; align-items: center; list-style: none; }
  .sh-item:not(.is-detail) > .sh-creators { display: none !important; }
  /* Send it to your shops: a row for each place, its name, what it has, its buttons */
  .sh-send-list { list-style: none; margin: 0; padding: 0; }
  .sh-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: var(--bw) var(--bs) var(--line); }
  .sh-send-place { font-weight: 600; min-width: 9em; }
  .sh-send-row > .row-buttons { margin: 0; }
  .sh-done { margin-top: 18px; }
  /* the home's two sections; Updates at its top */
  .sh-tabs { margin: 4px 0 4px; }
  /* the pressed chip, one look: the Shop's tags and tabs, Apps' sections */
  #shopPage .sh-cats button[aria-pressed="true"], .sh-tabs [aria-pressed="true"], #appsSections button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
  #shopPage[data-tab="themes"] #shHome > :not(.sh-tabs):not(#shThemesBox):not(#shThemesNone), #shopPage:not([data-tab="themes"]) #shThemesBox, #shopPage:not([data-tab="themes"]) #shThemesNone { display: none !important; }
  #shopPage[data-tab="themes"] #shThemesBox { margin-top: 12px; }
  .sh-themes-none { margin-top: 14px; }
  .sh-upd-rows > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 8px 0; border-top: var(--bw) var(--bs) var(--line); }
  .sh-upd-rows > div:first-child { border-top: 0; }
  .sh-upd-rows .sh-icon { width: 36px; height: 36px; font-size: 16px; border-radius: var(--r-md); }
  .sh-upd-name { color: var(--ink); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; } /* the weight after the shorthand, which would reset it */
  .sh-upd-ver { display: block; font-size: 12.5px; color: var(--muted); }
  #shUpdatesNote .btn-primary { border-radius: var(--r-pill); }
  #shUpdatesNote:not([hidden]) ~ #shSearch { margin-top: 16px; }
  /* the details page: only its entry (these last, after the rows' own display) */
  #shopPage[data-view="detail"] #shList > .sh-group:not(.has-detail), #shopPage[data-view="detail"] .has-detail > :not(.is-detail):not(.has-detail) { display: none; }
  /* an add-on is on its parent's details page, not a row of the list; a visited shop's details page */
  .sh-item.sh-addon.sh-row { display: none !important; }
  #shopPage[data-view="detail"] #shVisit.has-detail { padding: 0; border: 0; background: none; margin: 0; }
  #shopPage[data-view="visit"] #shVisit { padding: 0; border: 0; background: none; box-shadow: none; margin-top: 0; } /* like a shop's page, not a box */
  /* and a row still folds away with its section, and hides when the search leaves it out (after the rows' own display) */
  .sh-group.sh-folded > .sh-item, #shInstalledBox.sh-folded .sh-item, .sh-item.sh-row[hidden] { display: none !important; }
  /* The Shop's rows on a computer (Your modules, a shop's page, a visited shop, the home's Updates): up to three columns,
     read down each (an add-on under its module), so a row's button stays near its words; the headings and lines across. */
  @media (min-width: 821px) {
    #shopPage.card-grid .sh-group, #shopPage.card-grid #shInstalled, #shopPage[data-view="shop"] #shList > .sh-group, #shopPage[data-view="visit"] #shVisitList, #shUpdateAllList { columns: 3 340px; column-gap: 18px; }
    #shopPage.card-grid .sh-group > :not(.sh-item), #shopPage.card-grid #shInstalled > :not(.sh-item), #shopPage[data-view="shop"] #shList > .sh-group > :not(.sh-item), #shopPage[data-view="visit"] #shVisitList > :not(.sh-item) { column-span: all; }
    #shopPage.card-grid .sh-item, #shopPage[data-view="shop"] .sh-item, #shopPage[data-view="visit"] .sh-item, #shUpdateAllList > * { break-inside: avoid; }
    #shopPage.card-grid #shModHead { max-width: 720px; margin-inline: auto; } /* its lines and Creator mode's switch at a reading width, centered */
  }
