/* Shared navigation and compatibility identity for both catalogs. */
:root {
  --platform-mac: #1d1d1f;
  --platform-windows: #0078d4;
  --platform-browser: #fb542b;
  --platform-omarchy: #449dab;
}
/* Omarchy's shipped Tokyo Night cyan: omacom/omarchy/themes/tokyo-night/colors.toml.
   Brave orange: brave.com/brave-branding-assets. Brand identity never signals support. */
.catalog-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0; }
.platform-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--platform-line, var(--line)); border-radius: 6px; padding: 4px 7px; min-height: 27px; font-size: 10px; font-weight: 550; line-height: 1.4; text-decoration: none; color: var(--ink); background: var(--platform-bg, var(--paper)); }
.platform-chip svg { flex-shrink: 0; width: 15px; height: 15px; }
[data-platform='mac'] { --platform-color: var(--platform-mac); --platform-bg: #f0f0ee; --platform-line: #deded9; }
[data-platform='browser'] { --platform-color: var(--platform-browser); --platform-bg: #fff6f0; --platform-line: #efddcf; }
[data-platform='omarchy'] { --platform-color: var(--platform-omarchy); --platform-bg: #f5faf9; --platform-line: #d3e5e1; }
[data-platform='windows'] { --platform-color: var(--platform-windows); --platform-bg: #edf5fc; --platform-line: #d2e2ef; }
[data-platform] svg { color: var(--platform-color); }
.platform-chip .platform-status { display: inline-grid; place-items: center; min-width: 14px; height: 14px; margin-left: 1px; border-radius: 50%; font-size: 10px; font-weight: 750; line-height: 1; }
.platform-chip[data-status='supported'] .platform-status { color: #37613e; background: #dcead6; }
.platform-chip[data-status='conditional'] .platform-status { color: #796020; background: #efe2b9; }
.platform-chip[data-status='unsupported'] .platform-status { color: #856259; background: #ede1da; }
.platform-chip[data-status='unverified'] .platform-status { color: #74746b; background: #e5e5df; }
.platform-chip[data-status='unsupported'], .platform-chip[data-status='unverified'] { border-style: dashed; }
a.platform-chip:hover { border-color: var(--platform-color); }
.platform-details { display: grid; gap: 10px; }
.platform-detail { margin: 0; padding: 10px; border-radius: 8px; background: var(--platform-bg); border: 1px solid var(--platform-line); }
.platform-detail strong { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.platform-detail strong svg { width: 15px; height: 15px; flex-shrink: 0; }
.platform-note { display: block; margin-top: 4px; font-size: 11px; }
.platform-legend { margin: 8px 0; font-size: 10px; color: var(--muted); }
@media (max-width: 1100px) { .catalog-header .catalog-count { display: none; } }

/* Gallery system shared by the three dedicated public catalogues. */
.gallery-page {
  --bg:#fff; --paper:#fff; --ink:#191a1c; --muted:#77797e; --line:#e9e9eb;
  --accent:#202124; --orange:#4e6ef2;
  background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased;
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  letter-spacing:-.15px;
}
.gallery-page .shell { max-width:1600px; padding:0 32px; }
.gallery-page .catalog-header {
  height:64px; min-height:64px; gap:20px; border:0; position:relative;
  background:#fff; padding:8px 0; display:flex; flex-wrap:wrap;
}
.gallery-page .catalog-count { margin-left:auto; color:var(--muted); font-size:11px; }
.gallery-page .share { margin-left:0; }
.gallery-page .share .button { border:0; background:#f3f3f4; padding:9px 12px; }
.gallery-page #shareX { display:none; }
.gallery-page .button { border-radius:999px; min-height:38px; box-shadow:none; font-weight:500; }
.gallery-page .button.primary,.gallery-page .play { background:#191a1c; border-color:#191a1c; color:#fff; }
.gallery-page .button.primary:hover,.gallery-page .play:hover { background:#36373c; border-color:#36373c; }
.gallery-intro { text-align:center; padding:14px 16px 10px; }
.gallery-intro h1 { margin:0 0 5px; font-size:clamp(22px,2vw,30px); line-height:1.15; font-weight:600; letter-spacing:-1px; }
.gallery-collections { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:2px; padding:0 0 10px; }
.gallery-collections button { border:0; border-radius:999px; background:transparent; color:#797a7f; padding:7px 11px; font-size:11.5px; font-weight:500; }
.gallery-collections button:hover { background:#f5f5f6; color:var(--ink); }
.gallery-collections button[aria-pressed='true'] { background:#191a1c; color:#fff; }
.gallery-page .toolbar { padding:0; border:0; background:transparent; align-items:flex-start; gap:12px; margin-bottom:0; }
.gallery-page .search { min-width:0; }
.gallery-page .search input,.gallery-page .asset-search input { border:0; background:#f2f2f3; border-radius:999px; padding:13px 20px; min-height:45px; font-size:12px; box-shadow:none; }
.gallery-page .search input::placeholder,.gallery-page .asset-search input::placeholder { color:#929398; }
.gallery-page .browse { border:0; border-radius:22px; background:#f5f5f6; }
.gallery-page .browse > summary { background:transparent; border:0; padding:13px 18px; font-size:12px; }
.gallery-page .browse-body { border:0; background:#f5f5f6; border-radius:18px; }
.gallery-page .collections button { border-radius:20px; }
.gallery-page select { background:#f4f4f5; border:0; border-radius:999px; padding:11px 30px 11px 15px; min-height:40px; }
.gallery-page .list-meta { margin:0; min-height:48px; color:#7d7e83; font-size:11px; padding:7px 2px; }
.gallery-page .list-meta > a { display:none; }
.gallery-page .list-meta #resultCount { margin:0; }
.gallery-page:not(.games-page) #featured { display:none; }
.gallery-page .game-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 20px; border:0; padding:0; margin:0; }
.gallery-page .game { border:0; background:none; min-width:0; }
.gallery-page .game article { display:flex; position:relative; flex-direction:column; padding:0; gap:0; background:#fff; min-width:0; height:100%; border:0; }
.gallery-page .game article:hover { background:#fff; }
/* Thumbnails keep the source images' own shape: games are 16:9 screenshots, software 16:10 (README). */
.gallery-page .game .thumbnail { width:100%; height:auto; aspect-ratio:var(--thumb-ar); border-radius:22px; border:0; background:#f1f1f3; overflow:hidden; grid-area:auto; }
.gallery-page .game { --thumb-ar:1.6; }
.games-page .game { --thumb-ar:1.7778; }
.gallery-page .game .thumbnail img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.gallery-page .game .thumbnail:hover img { transform:scale(1.045); }
.gallery-page .game .game-info { display:flex; flex-direction:column; padding:17px 3px 0; min-width:0; flex:1; }
.gallery-page .game .title-line { display:flex; flex-wrap:wrap; align-items:center; gap:7px; padding-right:54px; }
.gallery-page .game .title-line h2 { order:-1; flex-basis:100%; font-size:17px; font-weight:600; line-height:1.3; margin:0 0 4px; letter-spacing:-.5px; }
.gallery-page .game .game-title { white-space:normal; overflow:visible; }
.gallery-page .game .category-tag { background:#f2f2f4; color:#73747a; border:0; border-radius:6px; font-size:9px; }
.gallery-page .game .device-tag { font-size:9px; background:transparent; border-color:var(--line); }
.gallery-page .game .game-body { display:flex; flex-direction:column; flex:1; }
.gallery-page .game .description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; line-height:1.65; font-size:12px; color:#7c7d83; margin:11px 0; }
.gallery-page .game .ranking-reason,.gallery-page .game .x-posts,.gallery-page .game .model-line,.gallery-page .game .tool-line,.gallery-page .game .access-label,.gallery-page .game .stars-summary { display:none; }
.gallery-page .game .game-tags { display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; font-size:10px; color:#77797e; margin:0; }
.gallery-page .game .credits { display:inline-flex; min-width:0; }
.gallery-page .game .author-line { display:flex; gap:5px; max-width:100%; }
.gallery-page .game .author { max-width:145px; }
.gallery-page .game .details { margin-left:auto; font-size:10px; min-height:32px; }
.gallery-page .game .community { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding:10px 0 0; border-top:1px solid #eeeef0; }
.gallery-page .game .votes { border:0; border-radius:8px; background:#f5f5f6; }
.gallery-page .game .vote { min-width:28px; height:30px; background:transparent; font-size:9px; }
.gallery-page .game .vote[aria-pressed='true'] { color:#4865dd; background:#eaedff; }
.gallery-page .game .numbers { display:flex; gap:12px; margin:0; }
.gallery-page .game .favorite { padding:4px 6px; }
.gallery-page .game .game-actions { position:absolute; top:calc((100cqw - 104px)/4.5 + 17px); right:2px; margin:0; }
/* Absolute action follows the image aspect ratio without depending on viewport units. */
.gallery-page .game article { container-type:inline-size; }
.gallery-page .game .game-actions { top:calc(100cqw / var(--thumb-ar) + 17px); }
.gallery-page .game .play { width:38px; height:38px; min-height:38px; padding:0; display:grid; place-items:center; border-radius:50%; }
.gallery-page .game .play .play-label { display:none; }
.gallery-page .game .play-icon { display:flex; }
.gallery-page .game .play-icon svg { width:14px; height:14px; }
.gallery-page .count-note,.gallery-page .rating-method { font-size:11px; color:#88898d; }
.gallery-page .next-tabs { max-width:100%; margin-top:48px; }
.gallery-page .next-tabs h2 { font-size:24px; font-weight:550; }
.gallery-page .software-toolbar { grid-template-columns:repeat(4,minmax(0,1fr)) auto; background:none; border:0; border-radius:0; padding:0; gap:10px; }
.gallery-page .software-toolbar .search { grid-column:1/-1; }
.gallery-page .software-toolbar select { background:#f4f4f5; border-radius:24px; font-size:11px; }
.gallery-page .omarchy-filter { border:0; border-radius:24px; }
.gallery-page .software-list { gap:24px; padding-top:12px; }
.gallery-page .software-item { min-width:0; }
.gallery-page .software-item article { display:flex; flex-direction:column; gap:0; border:0; border-radius:0; padding:0; height:100%; }
.gallery-page .software-item .software-info { display:flex; flex:1; flex-direction:column; padding:18px 3px 0; }
.gallery-page .software-item .title-line { display:flex; align-items:center; gap:8px; }
.gallery-page .software-item .title-line h2 { font-size:20px; letter-spacing:-.6px; flex-basis:100%; }
.gallery-page .software-item .software-body { display:flex; flex:1; flex-direction:column; }
.gallery-page .software-item .description { font-size:12px; line-height:1.7; color:#77797e; margin:12px 0; }
.gallery-page .software-item .software-action { margin-top:12px; }
.gallery-page .software-item .software-action .button { width:auto; padding:8px 18px; border-radius:999px; }
.gallery-page .software-item .platforms { margin:12px 0; }
.gallery-page .software-item .topic-tags { display:none; }
.gallery-page .software-community { border-color:#eeeef0; gap:5px; }
.gallery-page .community-button { background:#f5f5f6; border:0; border-radius:9px; }
.gallery-page .community-button.is-active { color:#4c61bd; background:#edf0ff; }
.gallery-page .software-opens { margin-left:auto; }
/* Stars lead the community row (13 Oct 2026); on component cards they are smaller. */
.software-community .software-rate { margin-right:6px; }
.asset-card .software-rate .rate { --star:15px; --gap:1px; }
.gallery-page .platform-chip { font-size:9px; padding:3px 5px; }
.gallery-page .asset-library { padding-top:0; }
.gallery-page .asset-grid { gap:30px 20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.gallery-page .asset-card { border:0; padding:0; border-radius:0; background:transparent; position:relative; }
.asset-preview { position:relative; display:grid; place-items:center; width:100%; height:280px; min-width:0; border:0; border-radius:22px; background:#f1f1f3; color:#25262a; overflow:hidden; }
.asset-preview .asset-demo { width:100%; }
.asset-preview .demo-stage { min-height:225px; padding:12px; }
.asset-preview .demo-hint { font-size:9px; padding:0 10px; }
.asset-preview .demo-icon-overline,.asset-preview .demo-icon-note { display:none; }
.asset-preview .demo-dock-scene { max-width:100%; }
.asset-preview .demo-dock { gap:2px; padding:10px 8px; }
.asset-preview .demo-dock-button { width:43px; }
.asset-preview .demo-icon-toggle { width:56px; height:56px; }
.asset-preview .demo-icon-controls { gap:18px; }
.asset-preview .demo-shared-shell { width:230px; }
.asset-preview .demo-shared-art { height:95px; }
.asset-preview .demo-shared-detail { font-size:10px; }
.asset-preview .demo-folder-shell { width:255px; }
.asset-preview .demo-stage:has(.demo-folder-shell) { transform:scale(.88); }
.asset-preview-label { position:absolute; top:14px; left:16px; color:#8d8e95; font-size:8px; text-transform:uppercase; letter-spacing:1px; }
.preview-symbol { font-size:36px; width:76px; height:76px; display:grid; place-items:center; background:#fff; border-radius:24px; box-shadow:0 10px 30px #25262a08; }
.preview-name { display:block; color:#8d8e95; text-align:center; font-size:10px; margin-top:16px; max-width:230px; }
.gallery-page .asset-card h3 { margin:0 3px 8px; font-size:16px; font-weight:550; letter-spacing:-.45px; }
.gallery-page .asset-card-description { margin:0 3px 12px; font-size:11px; line-height:1.7; color:#8a8b90; }
.gallery-page .asset-card .software-community { margin-top:auto; padding-top:9px; font-size:10px; }
.gallery-page .asset-card .community-button { padding:4px 8px; }
.gallery-page .eyebrow { color:#85868b; }
.gallery-page .dialog-demo { background:#f1f1f3; border:0; border-radius:20px; }
.gallery-page dialog { border:1px solid #eee; background:#fff; border-radius:24px; max-width:calc(100vw - 24px); padding:28px; box-shadow:0 30px 90px #0002; overflow-x:hidden; }
.gallery-page dialog::backdrop { background:#ffffffb0; backdrop-filter:blur(12px); }
.gallery-page .dialog-close { border:0; background:#f1f1f3; border-radius:50%; width:36px; height:36px; }
.gallery-page .detail-fields dd { min-width:0; overflow-wrap:anywhere; }
.gallery-page .discovery,.gallery-page .software-footer { color:#939499; border-color:#eeeef0; }
@media(min-width:1500px) { .gallery-page .game-list,.gallery-page .asset-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1050px) {
  .gallery-page .share { margin-left:auto; }
  .gallery-page .game-list,.gallery-page .asset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-page .asset-search { grid-column:1/-1; }
}
@media(max-width:760px) {
  .gallery-page .shell { padding:0 16px; }
  .gallery-page .share { display:none; }
  .gallery-page #suggestButton { font-size:10px; min-height:30px; padding:7px 13px; margin-left:auto; }
  .gallery-intro { padding:44px 2px 38px; }
  .gallery-intro h1 { font-size:34px; letter-spacing:-1.4px; max-width:420px; margin:0 auto 16px; }
  .gallery-collections { justify-content:flex-start; gap:5px; padding-bottom:22px; }
  .gallery-collections button { padding:9px 12px; font-size:10px; }
  .gallery-page .game-list,.gallery-page .asset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 14px; }
  .gallery-page .game .thumbnail { border-radius:17px; }
  .gallery-page .game .game-info { padding-top:14px; }
  .gallery-page .game .title-line h2 { font-size:16px; }
  .gallery-page .game .community { min-height:40px; }
  .gallery-page .game .vote,.gallery-page .game .favorite { min-height:36px; }
  .gallery-page .software-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-page .software-toolbar .omarchy-filter { grid-column:1/-1; }
  .gallery-page .software-item .software-info { display:flex; }
  .gallery-page .software-item .description { margin:10px 0; }
  .gallery-page .asset-search { grid-column:1/-1; }
  .asset-preview { border-radius:20px; height:260px; }
  .gallery-page .asset-card { padding:0; }
  .gallery-page .asset-card h3 { font-size:16px; }
  .gallery-page .asset-card-description { font-size:11px; }
  .gallery-page .asset-card .software-opens { padding:4px 2px; }
  .gallery-page dialog { padding:24px 18px; }
  .gallery-page .detail-fields { grid-template-columns:72px minmax(0,1fr); }
}
@media(max-width:540px) {
  .gallery-page .game-list,.gallery-page .asset-grid { grid-template-columns:1fr; gap:30px; }
  .gallery-page .game .game-tags { font-size:10px; }
  .gallery-page .game .description { font-size:12px; }
  .asset-preview { height:290px; }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-page *, .gallery-page *::before, .gallery-page *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

/* Polish pass (19 Sep 2026): tighter hero, green play, readable community row,
   fixed status bar for the traffic counters, inline Suggest on phones. */
.gallery-intro { padding:44px 16px 40px; }
.gallery-intro h1 { text-wrap:balance; margin-bottom:14px; }
.gallery-collections { padding-bottom:18px; }
.gallery-page .list-meta { min-height:40px; padding:4px 2px; }
.gallery-page .game .thumbnail { box-shadow:inset 0 0 0 1px #0000000a; }
.gallery-page .game .thumbnail img { transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-page .game .title-line { align-self:stretch; align-content:start; gap:6px 8px; }
.gallery-page .game .title-line h2 { margin-bottom:2px; }
.gallery-page .game .category-tag,.gallery-page .game .device-tag,.gallery-page .game .availability { min-height:20px; font-size:9.5px; }
.gallery-page .game .description { margin:10px 0 8px; }
.gallery-page .game .game-tags { margin-top:auto; }
/* Play stays the green "go" colour so it reads as an action, not another black pill. */
.gallery-page .game .play,.gallery-page .featured-game .play,.gallery-page #detailsPlay { background:#16a34a; border-color:#16a34a; color:#fff; box-shadow:0 4px 14px #16a34a33; }
.gallery-page .game .play:hover,.gallery-page .featured-game .play:hover,.gallery-page #detailsPlay:hover { background:#15803d; border-color:#15803d; }
.gallery-page .game .play.retry-link { background:#fae5df; border-color:#dfad9f; color:#983620; box-shadow:none; }
.gallery-page .game .play { width:40px; height:40px; min-height:40px; }
.gallery-page .game .play-icon svg { width:15px; height:15px; }
/* Community row: votes and favourites get finger-sized targets and legible counts. */
.gallery-page .game .community { margin-top:14px; padding-top:10px; gap:10px; font-size:12px; color:#6f7075; }
.gallery-page .game .votes { border-radius:10px; padding:2px; gap:2px; }
.gallery-page .game .vote { min-width:34px; height:32px; padding:0 8px; font-size:11px; border-radius:8px; color:#6f7075; }
.gallery-page .game .vote:hover { background:#e9e9ec; color:var(--ink); }
.gallery-page .game .score { min-width:2.2ch; font-size:13px; font-weight:650; color:var(--ink); }
.gallery-page .game .numbers { gap:6px; }
.gallery-page .game .favorite { min-height:36px; padding:6px 10px; gap:5px; border-radius:10px; font-size:12px; color:#6f7075; }
.gallery-page .game .favorite:hover { background:#f5f5f6; color:var(--ink); }
.gallery-page .game .favorite[aria-pressed='true'] { color:#d6336c; }
.gallery-page .game .heart { font-size:16px; }
.gallery-page .game .open-count { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:6px 8px; font-size:12px; }
.gallery-page main { padding-bottom:56px; }
@media(max-width:760px) {
  .gallery-intro { padding:24px 2px 20px; }
  .gallery-intro h1 { font-size:30px; letter-spacing:-1.2px; margin-bottom:10px; max-width:340px; }
  .gallery-collections { padding-bottom:12px; gap:4px; }
  .gallery-page .list-meta { min-height:36px; }
  .gallery-page .game .game-info { padding-top:12px; }
  .gallery-page .game .community { min-height:44px; }
  .gallery-page .game .vote { min-width:38px; height:36px; font-size:12px; }
  .gallery-page .game .favorite,.gallery-page .game .open-count { min-height:40px; }
  .gallery-page main { padding-bottom:52px; }
}
@media(max-width:540px) {
  .gallery-page .game-list { gap:26px; }
}
.gallery-page .game .numbers { align-items:center; }
.gallery-page .game .open-count { line-height:1; }
.gallery-page .software-item .title-line { align-self:stretch; }



/* ------------------------------------------------------------------------
   AI Apps (23 Sep 2026): one brand, four tabs, one status bar.
   Each tab owns a hue (--section); it tints that tab's icon and a few
   accents on its page, never a meaning of its own. */
[data-nav='games'], [data-section='games'] { --section:#16a34a; --section-soft:#e9f7ee; }
[data-nav='software'], [data-section='software'] { --section:#2563eb; --section-soft:#e9f0fe; }
[data-nav='components'], [data-section='components'] { --section:#7c3aed; --section-soft:#f2ecfe; }
[data-nav='omarchy'], [data-section='omarchy'] { --section:#0e8fa3; --section-soft:#e3f4f6; }
[data-nav='education'], [data-section='education'] { --section:#d97706; --section-soft:#fdf3e3; }
[data-nav='videos'], [data-section='videos'] { --section:#e11d48; --section-soft:#fdecef; }

.gallery-page .catalog-header { position:sticky; top:0; z-index:30; height:auto; min-height:68px; padding:12px 0; gap:18px; align-items:center; flex-wrap:nowrap; background:#ffffffeb; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.gallery-page .brand { display:inline-flex; align-items:center; gap:10px; flex-shrink:0; font-size:19px; font-weight:750; letter-spacing:-.7px; color:var(--ink); text-decoration:none; white-space:nowrap; }
.gallery-page .brand-mark { display:block; flex-shrink:0; border-radius:9px; box-shadow:0 1px 2px #15161a1f, 0 6px 16px -8px #15161a55; transition:transform .25s cubic-bezier(.2,.8,.2,1.2); }
.gallery-page .brand:hover .brand-mark { transform:rotate(-8deg) scale(1.05); }
.gallery-page .catalog-nav { display:flex; align-items:center; gap:2px; flex-shrink:0; padding:4px; margin:0; background:#f4f4f5; border:0; border-radius:14px; }
.gallery-page .catalog-nav a { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 13px 0 11px; border:0; border-radius:10px; color:#696b71; font-size:13px; font-weight:550; text-decoration:none; white-space:nowrap; transition:background .15s ease, color .15s ease; }
.gallery-page .catalog-nav .nav-icon { flex-shrink:0; width:18px; height:18px; color:#9fa1a7; transition:color .15s ease, transform .2s ease; }
.gallery-page .catalog-nav a:hover { color:var(--ink); background:#ffffffb3; }
.gallery-page .catalog-nav a:hover .nav-icon { color:var(--section); }
.gallery-page .catalog-nav a[aria-current='page'] { color:var(--ink); background:#fff; font-weight:650; box-shadow:0 1px 2px #0000000d, 0 2px 8px -2px #0000001a; }
.gallery-page .catalog-nav a[aria-current='page'] .nav-icon { color:var(--section); }
.gallery-page .catalog-nav a:focus-visible { outline:2px solid var(--section); outline-offset:1px; }
.gallery-page .catalog-count { margin-left:auto; white-space:nowrap; }
.gallery-page .catalog-header > .share, .gallery-page .catalog-header > #suggestButton { flex-shrink:0; }

.gallery-intro { padding:40px 16px 28px; }
.gallery-intro h1 { margin:0; font-size:clamp(26px,2.6vw,38px); font-weight:650; letter-spacing:-1.3px; }
.gallery-intro h1::after { content:''; display:block; width:44px; height:4px; margin:16px auto 0; border-radius:4px; background:var(--section, #191a1c); opacity:.9; }

/* Status bar: fixed, identical on every tab. */
.site-status { position:fixed; inset:auto 0 0; z-index:25; margin:0; background:#ffffffeb; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-top:1px solid #ebebee; padding-bottom:env(safe-area-inset-bottom); font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.site-status-inner { display:flex; align-items:center; gap:14px; max-width:1600px; min-height:40px; margin:auto; padding:5px 32px; color:#75777c; font-size:11px; }
.site-status-brand { display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-weight:700; letter-spacing:-.2px; }
.site-status-brand .brand-mark { border-radius:5px; }
.period-toggle { display:inline-flex; gap:2px; padding:2px; border-radius:9px; background:#f1f1f3; }
.period-toggle button { min-width:36px; min-height:24px; padding:0 8px; border:0; border-radius:7px; background:transparent; color:#76787e; font:inherit; font-size:10.5px; font-weight:650; letter-spacing:.2px; cursor:pointer; }
.period-toggle button:hover { color:var(--ink); }
.period-toggle button[aria-pressed='true'] { background:#fff; color:var(--ink); box-shadow:0 1px 2px #00000014; }
.period-toggle button:focus-visible { outline:2px solid var(--section, #4e6ef2); outline-offset:1px; }
.site-status-counts { display:flex; align-items:center; gap:4px 14px; margin:0; }
.site-status-counts strong { color:var(--ink); font-weight:750; font-variant-numeric:tabular-nums; }
.site-status-note { margin-left:auto; font-size:10px; color:#9a9ca1; white-space:nowrap; }
/* All-time opens and votes, set apart from the per-period visitor counts. */
.site-status-community { padding:3px 8px 3px 14px; border:0; border-left:1px solid #e4e4e8; border-radius:0 8px 8px 0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.site-status-community:hover { background:#f1f1f3; }
.site-status-community:focus-visible { outline:2px solid var(--section, #4e6ef2); outline-offset:1px; }
.site-status-more { color:#9a9ca1; font-size:13px; line-height:1; }
.site-status-label { color:#9a9ca1; font-size:10px; }
.site-status-vote { display:inline-flex; align-items:center; gap:4px; }
.site-status-vote .thumb { flex:none; color:#8b8d92; }
.site-status-vote .thumb-down { transform:rotate(180deg); }
.site-status-counts > span { white-space:nowrap; }
.site-status-glyph { display:none; margin-right:3px; color:#8b8d92; }
.site-status-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.gallery-page main { padding-bottom:64px; }

/* Activity dialog (1 Oct 2026), opened from the status bar's opens and votes.
   Series hues (validated: dataviz validate_palette, light surface): opens #2a78d6,
   likes & votes #eb6834, other clicks #1baf7a. Icons use a darker step of the same hue. */
dialog#appsStats { --opens:#2a78d6; --likes:#eb6834; --other:#1baf7a; --ink:#191a1c; --muted:#6f7177; --faint:#9a9ca1; --line:#ececef;
  display:none; flex-direction:column; gap:12px; width:min(760px, calc(100% - 24px)); max-width:none; height:min(800px, calc(100dvh - 32px)); max-height:none; margin:auto; padding:20px 22px 14px; border:1px solid #e4e4e8; border-radius:18px; background:#fff; color:var(--ink); font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:12.5px; box-shadow:0 24px 70px #0000002e; overflow:hidden; }
dialog#appsStats[open] { display:flex; }
dialog#appsStats::backdrop { background:#14151a8c; backdrop-filter:blur(3px); }
#appsStats > * { flex:none; }
#appsStats [hidden] { display:none !important; }
#appsStats.is-loading .apps-stats-body, #appsStats.is-loading .apps-stats-chart { opacity:.72; transition:opacity .2s; }
#appsStats .apps-stats-head { position:static; height:auto; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; min-height:0; margin:0; padding:0; border:0; background:none; box-shadow:none; backdrop-filter:none; }
#appsStats h2 { margin:0; font-size:19px; line-height:1.25; letter-spacing:-.45px; }
#appsStats .apps-stats-sub { margin:2px 0 0; color:var(--faint); font-size:11.5px; }
#appsStats .apps-stats-close { display:grid; place-items:center; flex:none; width:32px; height:32px; padding:0; border:1px solid #e4e4e8; border-radius:50%; background:#fff; color:#55575c; cursor:pointer; }
#appsStats .apps-stats-close:hover { background:#f3f3f5; color:var(--ink); }
#appsStats button:focus-visible, #appsStats select:focus-visible, #appsStats a:focus-visible { outline:2px solid var(--opens); outline-offset:1px; }

/* One row of filters; they scope everything below them. */
#appsStats .apps-stats-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#appsStats .apps-stats-select select { height:30px; min-height:0; padding:0 28px 0 10px; border:1px solid #e1e1e5; border-radius:9px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2377797e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center/14px no-repeat; color:var(--ink); font:inherit; font-size:12px; font-weight:600; appearance:none; cursor:pointer; }
#appsStats .apps-stats-seg { display:inline-flex; gap:2px; padding:2px; border-radius:9px; background:#f1f1f3; }
#appsStats .apps-stats-seg button { min-height:26px; padding:0 11px; border:0; border-radius:7px; background:transparent; color:#76787e; font:inherit; font-size:11.5px; font-weight:650; white-space:nowrap; cursor:pointer; }
#appsStats .apps-stats-seg button:hover { color:var(--ink); }
#appsStats .apps-stats-seg button[aria-pressed='true'] { background:#fff; color:var(--ink); box-shadow:0 1px 2px #00000017; }
#appsStats .apps-stats-view { margin-left:auto; }
/* Inside Likes & votes (12 Oct 2026): All / Upvotes / Likes / Ratings / Downvotes, on a line of their own. */
#appsStats .apps-stats-subrow { flex-basis:100%; }
#appsStats .apps-stats-subkind button { display:inline-flex; align-items:center; gap:5px; }
#appsStats .apps-stats-subkind svg { flex:none; color:var(--rc); }
#appsStats .apps-stats-subkind b { color:var(--faint); font-weight:600; font-variant-numeric:tabular-nums; }
#appsStats .apps-stats-subkind [aria-pressed='true'] b { color:var(--muted); }

/* Stat strip (12 Oct 2026): one ruled row instead of four grey cards. The two
   all-time cells are buttons that filter the feed; the pressed one is underlined
   in its series hue. */
#appsStats .apps-stats-kpis { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
#appsStats .apps-stats-kpis:empty { display:none; }
#appsStats .apps-stats-kpis > * { display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-width:0; margin:0; padding:9px 12px 10px; border:0; border-left:1px solid var(--line); border-radius:0; background:#fff; color:inherit; font:inherit; text-align:left; }
#appsStats .apps-stats-kpis > :first-child { border-left:0; }
#appsStats .apps-stats-kpis button { cursor:pointer; transition:background .15s; }
#appsStats .apps-stats-kpis button:hover { background:#f7f7f8; }
#appsStats .apps-stats-kpis button[aria-pressed='true'] { background:#fbfbfc; box-shadow:inset 0 -3px 0 var(--c); }
#appsStats .apps-stats-kpis button:focus-visible { outline-offset:-3px; }
#appsStats .apps-stats-kpi-label { display:inline-flex; align-items:center; gap:5px; max-width:100%; overflow:hidden; color:var(--muted); font-size:11px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
#appsStats .apps-stats-kpi-label i { flex:none; width:8px; height:8px; border-radius:2px; background:var(--c); }
#appsStats .apps-stats-kpis strong { font-size:21px; font-weight:700; letter-spacing:-.5px; line-height:1.25; font-variant-numeric:tabular-nums; }
#appsStats .apps-stats-kpi-sub { display:flex; flex-wrap:wrap; gap:2px 9px; max-width:100%; overflow:hidden; color:var(--faint); font-size:10.5px; white-space:nowrap; text-overflow:ellipsis; }

/* Standing counts by kind: icon + number (thumb, heart, star, thumb down, open). */
#appsStats .apps-stats-r { display:inline-flex; align-items:center; gap:3px; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
#appsStats .apps-stats-r svg { flex:none; color:var(--rc, currentColor); }
#appsStats .apps-stats-r b { color:var(--ink); font-weight:650; }
#appsStats .apps-stats-r small { margin-left:2px; color:var(--faint); font-size:10px; }
#appsStats .apps-stats-kpi-sub .apps-stats-r { font-size:10.5px; }
/* The likes cell dims the kinds that the filter leaves out. */
#appsStats .apps-stats-kpis[data-only='upvoted'] .apps-stats-r:not([data-r='up']),
#appsStats .apps-stats-kpis[data-only='liked'] .apps-stats-r:not([data-r='like']),
#appsStats .apps-stats-kpis[data-only='rated'] .apps-stats-r:not([data-r='rate']),
#appsStats .apps-stats-kpis[data-only='downvoted'] .apps-stats-r:not([data-r='down']) { opacity:.35; }
/* Its icons are filters too: a soft chip under the pointer. */
#appsStats [data-tile='likes'] .apps-stats-r { margin:-2px -4px; padding:2px 4px; border-radius:6px; transition:background .15s, opacity .15s; }
#appsStats [data-tile='likes'] .apps-stats-r:hover { background:#0000000d; opacity:1; }
#appsStats [data-r='up'] { --rc:#c4501f; }
#appsStats [data-r='down'] { --rc:#8b8d92; }
#appsStats [data-r='down'] svg { transform:rotate(180deg); }
#appsStats [data-r='like'] { --rc:#d6336c; }
#appsStats [data-r='rate'] { --rc:#d99a00; }
#appsStats [data-r='open'] { --rc:#1f63b8; }
#appsStats .apps-stats-rs { display:flex; justify-content:flex-end; gap:4px; }
#appsStats .apps-stats-rs .apps-stats-r { justify-content:flex-end; min-width:38px; }
#appsStats td.apps-stats-rs { display:table-cell; white-space:nowrap; }
#appsStats td.apps-stats-rs .apps-stats-r { justify-content:flex-start; min-width:40px; }
#appsStats td.apps-stats-rs [data-r='rate'] { min-width:78px; }
#appsStats .apps-stats-nil { color:var(--faint); }

/* 30 days of clicks: stacked columns, 2px surface gaps, 4px rounded tops. */
#appsStats .apps-stats-chart-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; margin-bottom:6px; }
#appsStats .apps-stats-chart h3 { margin:0; font-size:12.5px; font-weight:700; }
#appsStats .apps-stats-chart h3 span { margin-left:6px; color:var(--faint); font-weight:500; }
#appsStats .apps-stats-legend { display:flex; gap:12px; margin:0; padding:0; list-style:none; color:var(--muted); font-size:11px; }
#appsStats .apps-stats-legend li { display:inline-flex; align-items:center; gap:5px; }
#appsStats .apps-stats-legend i, #appsStats .apps-stats-tip i { width:9px; height:9px; border-radius:2px; background:var(--c); }
#appsStats [data-series='opens'] { --c:var(--opens); }
#appsStats [data-series='likes'] { --c:var(--likes); }
#appsStats [data-series='other'] { --c:var(--other); }
#appsStats .apps-stats-plot { position:relative; padding-left:22px; }
#appsStats .apps-stats-axis { position:absolute; top:-2px; left:0; color:var(--faint); font-size:10px; font-variant-numeric:tabular-nums; }
#appsStats .apps-stats-cols { display:flex; align-items:stretch; height:76px; border-bottom:1px solid #dedee3; }
#appsStats .apps-stats-cols button { display:flex; flex:1 1 0; align-items:flex-end; justify-content:center; min-width:0; padding:0 1px; border:0; border-radius:4px 4px 0 0; background:transparent; cursor:pointer; }
#appsStats .apps-stats-cols button:hover, #appsStats .apps-stats-cols button:focus-visible { background:#f3f3f5; }
#appsStats .apps-stats-stack { display:flex; flex-direction:column-reverse; gap:2px; width:100%; max-width:18px; height:100%; }
#appsStats .apps-stats-stack i { display:block; flex:none; min-height:3px; background:var(--c); }
#appsStats .apps-stats-stack i:last-child { border-radius:4px 4px 0 0; }
#appsStats .is-empty .apps-stats-stack::before { content:''; display:block; height:2px; margin-top:auto; border-radius:1px; background:#e3e3e7; }
#appsStats .apps-stats-cols .is-today { box-shadow:inset 0 -2px 0 var(--ink); }
#appsStats .apps-stats-ticks { display:flex; justify-content:space-between; margin-top:4px; color:var(--faint); font-size:10px; }
#appsStats .apps-stats-tip { position:absolute; bottom:calc(100% - 6px); z-index:3; display:flex; flex-direction:column; gap:2px; min-width:140px; padding:8px 10px; border:1px solid #e4e4e8; border-radius:9px; background:#fff; box-shadow:0 8px 24px #0000001f; font-size:11.5px; transform:translateX(-50%); pointer-events:none; }
#appsStats .apps-stats-tip strong { margin-bottom:2px; font-size:11.5px; }
#appsStats .apps-stats-tip span { display:flex; align-items:center; gap:6px; color:var(--muted); }
#appsStats .apps-stats-tip b { color:var(--ink); font-variant-numeric:tabular-nums; }
#appsStats .apps-stats-tip .apps-stats-tip-visits { margin-top:3px; padding-top:4px; border-top:1px solid var(--line); color:var(--faint); font-size:10.5px; }

/* The feed: one scroll region, sticky day headers, one line per click. */
/* One scroll region under the filters: tiles, chart, then the feed with sticky day headers. */
#appsStats .apps-stats-body { position:relative; display:flex; flex-direction:column; gap:14px; flex:1 1 auto; min-height:0; height:0; margin:0 -22px; padding:2px 22px 4px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
#appsStats .apps-stats-body > * { flex:none; }
#appsStats .apps-stats-content { border-top:1px solid var(--line); }
#appsStats .apps-stats-anchor { display:block; height:0; }
#appsStats .apps-stats-day { position:sticky; top:0; z-index:2; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 10px; margin:0; padding:12px 2px 6px; background:#fff; font-size:12px; font-weight:500; transition:background .4s; }
#appsStats .apps-stats-day b { font-weight:700; }
#appsStats .apps-stats-day > span:first-child > span { color:var(--muted); }
#appsStats .apps-stats-day > span:first-child { white-space:nowrap; }
#appsStats .apps-stats-day-sum { margin-left:auto; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
#appsStats .apps-stats-day.is-target, #appsStats .apps-stats-quiet.is-target { background:#eef4fd; }
#appsStats .apps-stats-boundary { margin:14px 0 2px; padding:9px 12px; border-radius:10px; background:#f6f6f7; color:var(--muted); font-size:11.5px; line-height:1.45; }
#appsStats .apps-stats-boundary b { color:var(--ink); font-weight:650; }
#appsStats .apps-stats-feed { margin:0 0 4px; padding:0; list-style:none; }
#appsStats .apps-stats-feed li { display:grid; grid-template-columns:26px minmax(0, 1fr) auto; align-items:center; gap:10px; min-height:40px; padding:5px 2px; border-top:1px solid #f2f2f4; }
#appsStats .apps-stats-feed li:first-child { border-top:0; }
#appsStats .apps-stats-feed li.is-new { animation:apps-stats-new 2.4s ease-out; }
@keyframes apps-stats-new { from { background:#eef4fd; } to { background:transparent; } }
#appsStats .apps-stats-icon { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--tint); color:var(--deep); }
#appsStats [data-group='opens'] { --tint:#eaf2fc; --deep:#1f63b8; }
#appsStats [data-group='likes'] { --tint:#fdeee7; --deep:#c4501f; }
#appsStats [data-group='undated'] { --tint:#f2f2f4; --deep:#8b8d92; }
#appsStats [data-group='other'] { --tint:#e4f5ee; --deep:#0f7f58; }
#appsStats [data-off] { --tint:#f2f2f4; --deep:#8b8d92; }
#appsStats [data-off] .apps-stats-what { color:var(--muted); }
#appsStats .apps-stats-icon[data-kind='down'] svg { transform:rotate(180deg); }
#appsStats .apps-stats-what { min-width:0; overflow-wrap:anywhere; line-height:1.4; }
#appsStats .apps-stats-what strong { font-weight:650; }
#appsStats .apps-stats-gone { color:var(--muted); font-weight:500 !important; }
#appsStats .apps-stats-gone-tag { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:5px; background:#f1f1f3; color:var(--muted); font-size:10.5px; font-weight:500; white-space:nowrap; vertical-align:1px; }
#appsStats .apps-stats-stars { color:#d99a00; letter-spacing:1px; }
#appsStats .apps-stats-stars > span > span { color:#dcdce0; }
#appsStats .apps-stats-feed time { color:var(--faint); font-size:11.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
#appsStats .apps-stats-chip { display:inline-flex; align-items:center; gap:4px; margin-left:7px; padding:1px 6px; border-radius:5px; background:#f3f3f5; color:var(--muted); font-size:10px; font-weight:600; white-space:nowrap; vertical-align:1px; }
#appsStats .apps-stats-chip i { width:6px; height:6px; border-radius:50%; background:var(--section, #9a9ca1); }
#appsStats .apps-stats-empty-day { margin:0 0 6px; padding:12px 14px; border:1px dashed #dcdce1; border-radius:11px; color:var(--muted); }
#appsStats .apps-stats-empty-day p { margin:0; }
#appsStats .apps-stats-empty-day p + p { margin-top:4px; color:var(--faint); font-size:11.5px; }
#appsStats .apps-stats-empty-day strong { color:var(--muted); font-weight:650; }
#appsStats .apps-stats-quiet { display:flex; align-items:center; gap:10px; margin:6px 0; color:var(--faint); font-size:10.5px; border-radius:6px; transition:background .4s; }
#appsStats .apps-stats-quiet::before, #appsStats .apps-stats-quiet::after { content:''; flex:1; height:1px; background:var(--line); }
#appsStats .apps-stats-more { display:block; width:100%; margin:8px 0 12px; padding:9px; border:1px solid #e4e4e8; border-radius:10px; background:#fff; color:var(--ink); font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
#appsStats .apps-stats-more:hover { background:#f6f6f7; }
#appsStats .apps-stats-more span { color:var(--faint); font-weight:500; }
#appsStats .apps-stats-end, #appsStats .apps-stats-empty { margin:14px 2px 16px; color:var(--faint); font-size:11.5px; text-align:center; }

/* What the feed cannot date: one line above it, the per-item rows after it. */
#appsStats .apps-stats-undated-note { display:flex; align-items:flex-start; gap:8px; margin:12px 0 0; padding:8px 11px; border-radius:10px; background:#f6f6f7; color:var(--muted); font-size:11.5px; line-height:1.45; }
#appsStats .apps-stats-undated-note svg { flex:none; margin-top:1px; color:var(--faint); }
#appsStats .apps-stats-undated-note button, #appsStats th button { padding:0; border:0; background:none; color:var(--ink); font:inherit; font-weight:650; text-decoration:underline; text-decoration-color:#c9cad0; text-underline-offset:2px; cursor:pointer; }
#appsStats .apps-stats-undated-note button:hover { text-decoration-color:currentColor; }
#appsStats .apps-stats-undated { margin-top:6px; border-top:1px dashed #dcdce1; }
#appsStats .apps-stats-undated-why { margin:0 2px 4px; color:var(--faint); font-size:11px; line-height:1.45; }

/* By item */
#appsStats table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
#appsStats th { position:sticky; top:0; z-index:1; padding:10px 8px 6px; background:#fff; color:var(--faint); font-size:10.5px; font-weight:600; text-align:left; white-space:nowrap; }
#appsStats th button { color:var(--faint); font-weight:600; text-decoration:none; }
#appsStats th button:hover, #appsStats th[aria-sort='descending'] button { color:var(--ink); }
#appsStats th[aria-sort='descending'] button::after { content:' ↓'; }
#appsStats td { padding:8px; border-top:1px solid #f0f0f2; vertical-align:middle; }
#appsStats .num { text-align:right; white-space:nowrap; }
#appsStats td a { color:inherit; font-weight:600; text-decoration:none; }
#appsStats td a:hover { text-decoration:underline; }
#appsStats td time { color:var(--muted); }
#appsStats em { color:var(--muted); font-style:normal; }
#appsStats .apps-stats-note { margin:0 0 6px; color:var(--faint); font-size:10.5px; line-height:1.45; }
@media (max-width:560px) {
  dialog#appsStats { width:100%; height:calc(100dvh - 20px); margin:auto 0 0; padding:16px 14px calc(10px + env(safe-area-inset-bottom)); gap:10px; border-radius:18px 18px 0 0; }
  #appsStats .apps-stats-body { margin:0 -14px; padding:0 14px; }
  #appsStats .apps-stats-filters { gap:6px; }
  #appsStats .apps-stats-select { flex:1 1 auto; }
  #appsStats .apps-stats-select select { width:100%; }
  #appsStats [data-filter='kind'] { order:3; width:100%; }
  #appsStats [data-filter='kind'] button { flex:1; padding:0 4px; }
  #appsStats .apps-stats-subrow { order:4; }
  #appsStats .apps-stats-subkind { display:flex; }
  #appsStats .apps-stats-subkind button { flex:1; justify-content:center; padding:0 4px; }
  /* Five chips do not fit a phone with their words: icon and count, as in the likes cell; the word stays for screen readers and in the tooltip. */
  #appsStats .apps-stats-subname { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #appsStats .apps-stats-subkind button { gap:4px; }
  #appsStats .apps-stats-subkind b { color:var(--ink); }
  #appsStats .apps-stats-view { margin-left:0; }
  #appsStats .apps-stats-kpis > * { padding:7px 8px 8px; }
  #appsStats .apps-stats-kpis strong { font-size:17px; }
  #appsStats .apps-stats-kpi-label { font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #appsStats .apps-stats-kpi-sub { font-size:9.5px; }
  #appsStats .apps-stats-legend { gap:8px; }
  #appsStats .apps-stats-cols { height:60px; }
  #appsStats .apps-stats-chip { display:none; }
  #appsStats th, #appsStats td { padding-left:5px; padding-right:5px; }
}
@media (max-width:440px) {
  #appsStats .apps-stats-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  #appsStats .apps-stats-kpis > :nth-child(3) { border-left:0; }
  #appsStats .apps-stats-kpis > :nth-child(n+3) { border-top:1px solid var(--line); }
}
@media (prefers-reduced-motion:reduce) {
  #appsStats .apps-stats-feed li.is-new { animation:none; background:#eef4fd; }
}


/* Model label and Android flag on game rows. */
.gallery-page .game .model-chip, .model-chip { display:inline-flex; align-items:center; gap:4px; max-width:100%; min-height:20px; padding:2px 8px 2px 6px; border-radius:999px; background:#f2ecfe; color:#6537c8; font-size:10px; font-weight:650; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.model-chip::before { content:''; flex-shrink:0; width:10px; height:10px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.9 5.4 4.6 9.1 10 10-5.4.9-9.1 4.6-10 10-.9-5.4-4.6-9.1-10-10 5.4-.9 9.1-4.6 10-10Z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.9 5.4 4.6 9.1 10 10-5.4.9-9.1 4.6-10 10-.9-5.4-4.6-9.1-10-10 5.4-.9 9.1-4.6 10-10Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.model-chip[hidden], .apk-tag[hidden], .apk-download[hidden], .download-count[hidden] { display:none !important; }
.gallery-page .game .apk-tag { display:inline-flex; align-items:center; gap:4px; min-height:20px; padding:2px 7px 2px 6px; border-radius:6px; background:#e7f8ee; color:#12723b; font-size:9.5px; font-weight:750; letter-spacing:.3px; }
.gallery-page .game .apk-tag::before { content:''; width:11px; height:11px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10a6 6 0 0 1 12 0v1H6v-1Zm2.5-4.8L7 3.2M15.5 5.2 17 3.2' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M6 12.5h12V18a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-5.5Z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10a6 6 0 0 1 12 0v1H6v-1Zm2.5-4.8L7 3.2M15.5 5.2 17 3.2' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M6 12.5h12V18a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-5.5Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.gallery-page .game .game-actions { display:flex; flex-direction:row; align-items:center; gap:8px; }
.gallery-page .game .apk-download { display:inline-flex; align-items:center; gap:6px; min-height:40px; height:40px; padding:0 14px 0 12px; border:0; border-radius:999px; background:#e7f8ee; color:#12723b; font-size:12px; font-weight:700; text-decoration:none; box-shadow:none; }
.gallery-page .game .apk-download:hover { background:#d3f1df; }
.gallery-page .game:has(.apk-download:not([hidden])) .title-line { padding-right:138px; }
.gallery-page .game .download-count { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:6px 8px; color:#12723b; font-size:12px; line-height:1; }

/* Software: the featured tool leads the page. */
.software-featured { margin:0 0 40px; }
.featured-tool { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:clamp(22px,3vw,44px); align-items:center; padding:18px; border-radius:30px; background:linear-gradient(135deg,#f3f7ff,#f7f4ff 55%,#f2fbf6); box-shadow:inset 0 0 0 1px #0000000a; }
.featured-tool .featured-tool-art { position:relative; display:block; width:100%; height:auto; aspect-ratio:16/10; border-radius:20px; overflow:hidden; background:#eef0f4; box-shadow:0 18px 40px -22px #1b2a4a66, inset 0 0 0 1px #0000000d; }
.featured-tool .featured-tool-art img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.featured-tool .featured-tool-art:hover img { transform:scale(1.025); }
.featured-tool .featured-tool-art.no-image img { display:none; }
.featured-tool-body { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding-right:12px; }
.featured-label { display:inline-flex; align-items:center; gap:6px; margin:0 0 12px; padding:5px 10px; border-radius:999px; background:#fff; color:var(--section, #2563eb); font-size:10px; font-weight:750; letter-spacing:.9px; text-transform:uppercase; box-shadow:0 1px 2px #0000000f; }
.featured-label::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.featured-tool h2 { margin:0 0 10px; font-size:clamp(26px,2.4vw,34px); font-weight:700; letter-spacing:-1.1px; line-height:1.1; }
.featured-tool h2 a { color:inherit; text-decoration:none; }
.featured-tool h2 a:hover { color:var(--section, #2563eb); }
.featured-tool .description { display:block; margin:0 0 14px; font-size:14px; line-height:1.6; color:#55575d; white-space:normal; overflow:visible; -webkit-line-clamp:unset; max-height:none; }
.featured-tool .game-tags { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:11px; color:#76787e; }
.featured-tool .game-tags .category { color:var(--ink); font-weight:650; }
.featured-tool .platforms { margin:14px 0 4px; }
.featured-tool .credits { display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; margin-top:10px; font-size:11px; }
.featured-tool .credits .author-x { display:inline-flex; align-items:center; gap:5px; font-weight:650; color:var(--ink); }
.featured-tool-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; width:100%; margin-top:16px; }
.featured-tool-actions .software-community { margin:0; padding:0; border:0; }
.featured-tool-actions .software-opens { color:#646459; }
.featured-tool .featured-reel { background:#0f1115; }
.featured-tool .featured-reel video { display:block; width:100%; height:100%; object-fit:cover; background:#0f1115; }
.featured-tool .featured-reel video[controls] { object-fit:contain; }
.reel-watch { position:absolute; left:14px; bottom:14px; display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:0 15px 0 11px; border:0; border-radius:999px; background:#ffffffeb; color:#16171a; font:inherit; font-size:12px; font-weight:650; cursor:pointer; box-shadow:0 6px 18px -8px #00000080; transition:transform .2s ease, background .2s ease; }
.reel-watch:hover { background:#fff; transform:translateY(-1px); }
.reel-watch:focus-visible { outline:3px solid var(--section, #2563eb); outline-offset:2px; }
.reel-watch-icon { width:0; height:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor; margin-left:3px; }
.reel-watch[hidden] { display:none; }
.featured-tool-actions .button.primary { margin-left:auto; padding:10px 20px; }
.gallery-page .software-item .thumbnail { width:100%; height:auto; aspect-ratio:16/10; border:0; border-radius:22px; background:#f0f0f2; box-shadow:inset 0 0 0 1px #0000000a; }
.gallery-page .software-item .thumbnail img { object-fit:cover; object-position:center; }
/* Few tools, large pictures: two columns, four on very wide screens. */
@media (min-width:700px) { .gallery-page .software-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px 28px; } }
@media (min-width:1500px) { .gallery-page .software-list { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Omarchy: an upvote on every plugin. */
/* Reader stars beside the plugin name (13 Oct 2026; they replaced the 👍). */
.omarchy-title-line .omarchy-rate { margin-left:auto; }
.omarchy-title-line .omarchy-rate .rate { --star:15px; }
.omarchy-dialog-vote { margin:12px 0 4px; }
.omarchy-dialog-vote .rate-meta { margin:0; }
.omarchy-notice { margin:-4px 0 14px; }

/* Components: a live study, a name, one line, then votes and the demo. */
.gallery-page .asset-filters { display:block; }
.asset-categories { justify-content:center; margin:14px 0 4px; padding-bottom:0; }
.asset-categories button[aria-pressed='true'] { background:#191a1c; color:#fff; }
.gallery-page .asset-card { display:flex; flex-direction:column; }
.gallery-page .asset-card-demo { margin:0; }
.gallery-page .asset-card-demo .asset-demo .demo-stage { height:260px; border-radius:22px; }
.asset-card-title { display:flex; align-items:baseline; gap:8px; margin:14px 3px 4px; min-width:0; }
.gallery-page .asset-card .asset-card-title h3 { margin:0; min-width:0; font-size:16px; font-weight:600; letter-spacing:-.45px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-maker { flex-shrink:0; margin-left:auto; font-size:10.5px; color:#9a9ba0; white-space:nowrap; }
.gallery-page .asset-card-description { margin:0 3px 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.asset-card-foot { display:flex; align-items:center; gap:6px; margin-top:auto; padding:0 1px; }
.gallery-page .asset-card-foot .software-community { margin:0; padding:0; border:0; gap:4px; }
.gallery-page .asset-card-foot .community-button { min-height:32px; padding:0 9px; gap:5px; font-size:11px; }
.asset-demo-link { margin-left:auto; padding:7px 4px; font-size:11px; font-weight:650; color:var(--section, #7c3aed); text-decoration:none; white-space:nowrap; }
.asset-demo-link:hover { text-decoration:underline; }
.asset-details { min-height:32px; padding:0 12px; border:0; border-radius:999px; background:#f3f3f5; color:#4d4f55; font:inherit; font-size:11px; cursor:pointer; }
.asset-details:hover { background:#e9e9ec; color:var(--ink); }

@media (max-width:1180px) {
  .gallery-page .catalog-header { flex-wrap:wrap; }
  .gallery-page .catalog-count { display:none; }
  .gallery-page .catalog-header > .share { margin-left:auto; }
}
@media (max-width:900px) {
  .featured-tool { grid-template-columns:1fr; padding:14px; border-radius:26px; }
  .featured-tool-body { padding:4px 6px 8px; }
}
@media (max-width:760px) {
  .gallery-page .catalog-header { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand action" "nav nav"; gap:12px 10px; padding:12px 0 10px; }
  .gallery-page .catalog-header .brand { grid-area:brand; font-size:18px; gap:9px; }
  .gallery-page .catalog-header .brand-mark { width:28px; height:28px; }
  .gallery-page .catalog-header > #suggestButton { grid-area:action; justify-self:end; margin:0; min-height:34px; padding:7px 14px; font-size:11px; }
  .gallery-page .catalog-header .catalog-nav { grid-area:nav; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; }
  .gallery-page .catalog-nav a { justify-content:center; padding:0 6px; font-size:12px; }
  .gallery-intro { padding:22px 4px 18px; }
  .gallery-intro h1 { font-size:28px; letter-spacing:-1px; }
  .gallery-intro h1::after { margin-top:12px; width:36px; }
  .site-status-inner { gap:10px; padding:5px 16px; }
  .site-status-brand { display:none; }
  .gallery-page .game:has(.apk-download:not([hidden])) .title-line { padding-right:128px; }
}
@media (max-width:560px) {
  .gallery-page .catalog-nav a { flex-direction:column; gap:3px; min-height:50px; padding:5px 1px; font-size:10px; letter-spacing:-.2px; }
  .gallery-page .catalog-nav .nav-icon { width:19px; height:19px; }
  .site-status-counts { gap:2px 10px; }
  .site-status-note { display:none; }
  /* Phones: the card counters' symbols (↗ opens, thumbs for votes); the words stay for screen readers. */
  .site-status-inner { flex-wrap:wrap; gap:4px 8px; }
  .period-toggle button { min-width:0; padding:0 7px; }
  .site-status-counts { gap:2px 8px; }
  .site-status-community { padding-left:8px; padding-right:6px; }
  .site-status-glyph { display:inline; }
  .site-status-label, .site-status-opens .site-status-unit { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
  .featured-tool-actions .button.primary { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  .gallery-page .brand-mark, .gallery-page .catalog-nav a, .gallery-page .catalog-nav .nav-icon { transition:none; }
}

/* Games: 👍 / 👎 counted apart (27 Sep 2026) — no single score, no likes. */
.games-page .votes { display:inline-flex; flex-direction:row; align-items:center; gap:2px; padding:3px; border:0; border-radius:999px; background:#f4f4f5; }
.games-page .game .vote, .games-page .featured-game .vote { display:inline-flex; align-items:center; gap:6px; width:auto; min-width:0; height:30px; padding:0 11px 0 9px; border:0; border-radius:999px; background:transparent; color:#6d6e73; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; transition:background .12s ease, color .12s ease, transform .12s ease; }
.games-page .vote .thumb { flex:none; }
.games-page .vote .thumb-down { transform:rotate(180deg); }
.games-page .vote:hover:not(:disabled) { background:#fff; color:#1d1e21; }
.games-page .vote:active:not(:disabled) { transform:scale(.94); }
.games-page .vote.up[aria-pressed='true'] { background:#e5f6ea; color:#15803d; }
.games-page .vote.down[aria-pressed='true'] { background:#fdecec; color:#b42318; }
.games-page .vote[aria-pressed='true'] .thumb path { fill:currentColor; fill-opacity:.18; }
.games-page .vote:disabled { cursor:default; opacity:.6; }
.games-page .game .numbers { align-items:center; color:#8a8b90; font-size:11px; }

/* Featured: three permanent picks above the grid, larger than a grid card.
   16:9 like every game image, so the art is never cropped (27 Sep 2026). */
.games-page .featured { margin:4px 0 34px; }
.games-page .featured h2 { margin:0 0 14px; font-size:13px; font-weight:650; letter-spacing:.2px; text-transform:none; color:#1d1e21; }
.games-page .featured-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.games-page .featured-game article { height:100%; border:0; border-radius:26px; background:#f6f6f7; overflow:hidden; }
.games-page .featured-art, .games-page .featured-art.thumbnail { aspect-ratio:16/9; border-radius:0; background:#ececee; overflow:hidden; }
.games-page .featured-art img { transition:transform .4s ease; }
.games-page .featured-art:hover img { transform:scale(1.04); }
.games-page .featured-body { display:flex; flex-direction:column; flex:1; padding:16px 18px 14px; }
.games-page .featured-body h3 { font-size:20px; font-weight:650; letter-spacing:-.6px; padding-right:48px; }
.games-page .featured-body .description { font-size:12.5px; line-height:1.6; color:#6f7075; margin:8px 0 0; }
.games-page .featured-meta { margin-top:10px; font-size:10px; color:#77797e; }
.games-page .featured-community { margin-top:auto; padding-top:14px; border-top:0; gap:8px; }
.games-page .featured-community .open-count { color:#8a8b90; }
.games-page .featured-game article { container-type:inline-size; }
.games-page .featured-game .play { top:calc(100cqw * 9 / 16 + 12px); right:16px; position:absolute; width:44px; height:44px; min-height:44px; padding:0; display:grid; place-items:center; border-radius:50%; background:#16a34a; border:0; color:#fff; }
.games-page .featured-game .play:hover { background:#15803d; }
.games-page .featured-game .play .play-label { display:none; }
/* Five picks fill two lines (14 Oct 2026): two wide cards, then three (app.js featuredWide sets data-size). */
.games-page .featured-list { grid-template-columns:repeat(6,minmax(0,1fr)); }
.games-page .featured-game { grid-column:span 2; }
.games-page .featured-game[data-size="wide"] { grid-column:span 3; }
.games-page .featured-game[data-size="full"] { grid-column:1 / -1; }
.games-page .featured-game[data-size] .featured-body h3 { font-size:23px; letter-spacing:-.75px; }
@media (max-width:1000px) { .games-page .featured-list { grid-template-columns:1fr; } .games-page .featured-game, .games-page .featured-game[data-size] { grid-column:auto; } .games-page .featured-game[data-size] .featured-body h3 { font-size:20px; } .games-page .featured-art, .games-page .featured-art.thumbnail { aspect-ratio:16/9; } .games-page .featured-game .play { top:calc(100cqw * 9 / 16 + 12px); } }

/* Games header: one compact line of title, then the collections (27 Sep 2026). */
.games-page .gallery-intro { padding:18px 16px 12px; }
.games-page .gallery-intro h1 { font-size:clamp(22px,2vw,28px); letter-spacing:-.8px; }
.games-page .gallery-intro h1::after { width:32px; height:3px; margin-top:10px; }
.games-page .gallery-collections { padding-bottom:14px; }
@media (max-width:760px) { .games-page .gallery-intro { padding:12px 2px 8px; } .games-page .gallery-intro h1 { font-size:24px; } }

/* ------------------------------------------------------------------------
   Star ratings on every AI Apps tab (games since 11 Oct 2026, the other tabs
   since 13 Oct 2026; software/stars.js). Two stacked stars per slot, the gold
   one clipped to --f (0–1). `body` keeps these above page rules on buttons. */
body .rate { --star: 19px; --gap: 2px; --on: #f6c453; --off: #e8e6e1; position: relative; display: inline-flex; align-items: center; gap: var(--gap); padding: 7px 3px; margin: -7px -3px; border-radius: 10px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
body .rate:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--section, #16a34a); }
body .rate[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
body .rate[data-mode="mine"] { --on: #f59e0b; }
body .rate[data-mode="preview"] { --on: #fbbf24; }
body .rate .star, body .stars-static .star { position: relative; flex: none; width: var(--star); height: var(--star); transition: transform .22s cubic-bezier(.3,1.6,.5,1); }
body .rate .star svg, body .stars-static .star svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
body .rate .star-bg path, body .stars-static .star-bg path { fill: var(--off); }
body .rate .star-fill, body .stars-static .star-fill { clip-path: inset(0 calc(100% - var(--f, 0) * 100%) 0 0); transition: clip-path .16s ease-out; }
body .rate .star-fill path, body .stars-static .star-fill path { fill: var(--on); transition: fill .2s ease; }
body .rate[data-mode="mine"] .star-fill { filter: drop-shadow(0 1px 1.5px #b4530938); }
body .rate .star.is-hot { transform: scale(1.22) translateY(-1px); }
body .rate .spark { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: #fbbf24; pointer-events: none; }
body .rate .spark:nth-of-type(3n) { background: #f97316; width: 4px; height: 4px; }
body .rate .spark:nth-of-type(3n+1) { background: #fde047; }
body .rate-wrap { position: relative; display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
body .rate-meta { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; font-size: 12px; color: #8a8b90; white-space: nowrap; font-variant-numeric: tabular-nums; }
body .rate-meta strong { color: #1d1e21; font-weight: 650; display: inline-block; }
body .rate-meta .rate-preview { color: #b45309; }
body .rate-meta .rate-empty { color: #a3a4a9; }
/* The count opens the ratings dialog: a quiet link that shows itself on hover. */
body .rate-meta .rate-n { margin: -4px -3px; padding: 4px 3px; border: 0; border-radius: 6px; background: none; color: #8a8b90; font: inherit; font-variant-numeric: tabular-nums; text-decoration: underline dotted #c4c5ca; text-underline-offset: 3px; cursor: pointer; transition: background .15s, color .15s; }
body .rate-meta .rate-n:hover { background: #f3f3f5; color: #1d1e21; text-decoration-color: currentColor; }
body .rate-meta .rate-n:focus-visible { outline: 2px solid var(--section, #16a34a); outline-offset: 1px; }
body .rate-flash { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e8f6ee; color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap; }
body .stars-static { --star: 14px; --gap: 1px; --on: #f59e0b; --off: #e8e6e1; display: inline-flex; align-items: center; gap: var(--gap); vertical-align: -2px; }
@media (pointer: coarse) {
  body .rate { --star: 23px; --gap: 3px; padding: 9px 3px; margin: -9px -3px; }
  body .rate-meta .rate-n { padding: 8px 4px; margin: -8px -4px; }
}

/* Ratings dialog: the average, the ratings by value, then every rating with its date. */
body dialog.ratings-dialog { --ink: #191a1c; --muted: #6f7177; --faint: #9a9ca1; --line: #ececef;
  width: min(460px, calc(100% - 24px)); max-width: none; max-height: min(720px, calc(100dvh - 32px)); margin: auto; padding: 0; border: 1px solid #e4e4e8; border-radius: 18px; background: #fff; color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; box-shadow: 0 24px 70px #0000002e; overflow: hidden; }
body dialog.ratings-dialog[open] { display: flex; flex-direction: column; }
body dialog.ratings-dialog::backdrop { background: #14151a8c; backdrop-filter: blur(3px); }
.ratings-dialog .ratings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.ratings-dialog .ratings-kicker { margin: 0; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.ratings-dialog h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.45px; overflow-wrap: anywhere; }
.ratings-dialog .ratings-close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid #e4e4e8; border-radius: 50%; background: #fff; color: #55575c; cursor: pointer; }
.ratings-dialog .ratings-close:hover { background: #f3f3f5; color: var(--ink); }
.ratings-dialog .ratings-close:focus-visible { outline: 2px solid #f59e0b; outline-offset: 1px; }
.ratings-dialog .ratings-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 20px 18px; }
.ratings-dialog .ratings-status, .ratings-dialog .ratings-empty { margin: 4px 0; color: var(--muted); }
.ratings-dialog .ratings-summary { display: flex; align-items: center; gap: 14px; }
.ratings-dialog .ratings-avg { font-size: 40px; font-weight: 750; letter-spacing: -1.4px; line-height: 1; font-variant-numeric: tabular-nums; }
.ratings-dialog .ratings-summary-words { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
.ratings-dialog .ratings-summary-words .stars-static { --star: 18px; }
.ratings-dialog .ratings-mine { color: #b45309; font-weight: 600; }
.ratings-dialog .ratings-bars { display: grid; gap: 5px; margin: 14px 0 0; padding: 0; list-style: none; }
.ratings-dialog .ratings-bars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ratings-dialog .ratings-bar { height: 8px; border-radius: 4px; background: #f1f1f3; overflow: hidden; }
.ratings-dialog .ratings-bar i { display: block; height: 100%; border-radius: 4px; background: #f6c453; }
.ratings-dialog .ratings-count { text-align: right; color: var(--ink); font-weight: 600; }
.ratings-dialog .ratings-log-title { margin: 18px 0 4px; font-size: 12.5px; font-weight: 700; }
.ratings-dialog .ratings-log { margin: 0; padding: 0; list-style: none; }
.ratings-dialog .ratings-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what time" "what ago"; align-items: center; gap: 0 10px; padding: 8px 2px; border-top: 1px solid #f0f0f2; }
.ratings-dialog .ratings-log li:first-child { border-top: 0; }
.ratings-dialog .ratings-what { grid-area: what; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ratings-dialog .ratings-what-n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ratings-dialog .ratings-log li.is-removed .ratings-what { color: var(--faint); font-weight: 500; }
.ratings-dialog .ratings-log time { grid-area: time; color: var(--ink); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.ratings-dialog .ratings-ago { grid-area: ago; color: var(--faint); font-size: 11px; text-align: right; }
.ratings-dialog .ratings-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: #f4f4f6; color: var(--muted); font-size: 12px; }
.ratings-dialog .ratings-foot { margin: 14px 0 0; color: var(--faint); font-size: 11px; line-height: 1.45; }
@media (max-width: 560px) {
  body dialog.ratings-dialog { width: 100%; max-height: calc(100dvh - 20px); margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .ratings-dialog .ratings-body { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* Motion (14 Oct 2026), every tab: the dialog rises in, the average's stars fill
   from the left, the bars grow from zero and the dated ratings arrive in turn. */
@keyframes ratings-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes ratings-up { from { transform: translateY(100%); } }
@keyframes ratings-fill { from { clip-path: inset(0 100% 0 0); } }
@keyframes ratings-grow { from { transform: scaleX(0); } }
@keyframes ratings-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) {
  body dialog.ratings-dialog[open] { animation: ratings-in .36s cubic-bezier(.16,1,.3,1); }
  .ratings-dialog .ratings-avg { animation: ratings-rise .45s cubic-bezier(.16,1,.3,1) backwards; }
  .ratings-dialog .ratings-summary .star-fill { animation: ratings-fill .5s cubic-bezier(.3,.7,.2,1) backwards; }
  .ratings-dialog .ratings-summary .star:nth-child(2) .star-fill { animation-delay: .06s; }
  .ratings-dialog .ratings-summary .star:nth-child(3) .star-fill { animation-delay: .12s; }
  .ratings-dialog .ratings-summary .star:nth-child(4) .star-fill { animation-delay: .18s; }
  .ratings-dialog .ratings-summary .star:nth-child(5) .star-fill { animation-delay: .24s; }
  .ratings-dialog .ratings-bar i { transform-origin: left; animation: ratings-grow .7s cubic-bezier(.16,1,.3,1) backwards; animation-delay: .12s; }
  .ratings-dialog .ratings-bars li:nth-child(2) .ratings-bar i { animation-delay: .17s; }
  .ratings-dialog .ratings-bars li:nth-child(3) .ratings-bar i { animation-delay: .22s; }
  .ratings-dialog .ratings-bars li:nth-child(4) .ratings-bar i { animation-delay: .27s; }
  .ratings-dialog .ratings-bars li:nth-child(n+5) .ratings-bar i { animation-delay: .32s; }
  .ratings-dialog .ratings-log li { animation: ratings-rise .4s cubic-bezier(.16,1,.3,1) backwards; animation-delay: .2s; }
  .ratings-dialog .ratings-log li:nth-child(2) { animation-delay: .24s; }
  .ratings-dialog .ratings-log li:nth-child(3) { animation-delay: .28s; }
  .ratings-dialog .ratings-log li:nth-child(4) { animation-delay: .32s; }
  .ratings-dialog .ratings-log li:nth-child(5) { animation-delay: .36s; }
  .ratings-dialog .ratings-log li:nth-child(n+6) { animation-delay: .4s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  body dialog.ratings-dialog[open] { animation: ratings-up .42s cubic-bezier(.16,1,.3,1); }
}
