/* A7 iOS Shortcuts section — layout. Theme tokens + fonts come from the
   site's styles.css (DaisyUI vars + font_ar/font_en). */

.a7sc-main { min-height: 60vh; }
.a7sc { max-width: 1100px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 28px) 10px; font-family: font_ar, ui-sans-serif, system-ui, sans-serif; color: hsl(var(--base-content)); }
html[lang="en"] .a7sc { font-family: font_en, ui-sans-serif, system-ui, sans-serif; }

/* title row */
.a7sc-titlerow { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 8px 0 22px; }
.a7sc-title { font-size: 22px; font-weight: 800; white-space: nowrap; }
/* Each fade is SOLID near the title and TRANSPARENT toward its outer edge.
   Default (LTR): :first-child is on the left → fades to the left.
                  :last-child  is on the right → fades to the right.
   RTL flips, so we override both. */
.a7sc-fade { height: 1px; width: min(140px, 24vw); }
.a7sc-titlerow .a7sc-fade:first-child { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7sc-titlerow .a7sc-fade:last-child  { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7sc-titlerow .a7sc-fade:first-child { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7sc-titlerow .a7sc-fade:last-child  { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }

/* Bucket sub-sections as a bordered-pill chip row (primary axis) + the shared
   A7Toolbar host (.a7ut*, /static/apps/a7-toolbar.js renders the filter/sort/search). */
.a7ap-buckets { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; margin: 8px 0 16px; padding: 0 4px; }
.a7ap-buckets::-webkit-scrollbar { display: none; }
.a7ap-bkt { flex: 0 0 auto; border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 14%, transparent);
  background: transparent; color: hsl(var(--base-content)); font: 600 13.5px inherit; padding: 8px 16px;
  border-radius: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .16s, border-color .16s, transform .1s; }
.a7ap-bkt:hover { background: color-mix(in oklch, hsl(var(--base-content)) 7%, transparent); }
.a7ap-bkt:active { transform: scale(.97); }
.a7ap-bkt.is-on { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-content, var(--pc, 0 0% 100%))); }
/* min-height reserves the control strip so the twin skeleton / mounted
   toolbar never collapses to a 0px band (A7Boot standard). */
.a7ap-toolbar { margin-bottom: 16px; min-height: 44px; }

/* toolbar: search + sort */
/* Search + sort — matched to the watchfaces section (A7 standard toolbar). */
.a7sc-toolbar { display: flex; gap: 10px; align-items: center; padding: 0 4px; margin-bottom: 16px; flex-wrap: wrap; }
.a7sc-search { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.a7sc-search__ic { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: color-mix(in oklch, hsl(var(--base-content)) 50%, transparent); pointer-events: none; }
.a7sc-search__in {
  width: 100%; font: inherit; font-size: 14px; padding: 11px 40px; border-radius: 14px;
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 14%, transparent);
  background: hsl(var(--base-100)); color: hsl(var(--base-content)); transition: border-color .16s;
}
.a7sc-search__in:focus { outline: 0; border-color: hsl(var(--primary)); }
.a7sc-search__clr { position: absolute; inset-inline-end: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: color-mix(in oklch, hsl(var(--base-content)) 55%, transparent); }
.a7sc-search__clr:hover { opacity: 1; }
.a7sc-sort {
  display: inline-flex; gap: 2px; padding: 3px;
  background: hsl(var(--base-200)); border: 1px solid hsl(var(--base-300)); border-radius: 12px;
}
.a7sc-sort__btn {
  border: 0; cursor: pointer; font-family: inherit; font-size: 13px;
  font-weight: 600; padding: 6px 14px; border-radius: 9px;
  background: transparent; color: hsl(var(--base-content)); opacity: .65;
  transition: background .15s, opacity .15s, color .15s; white-space: nowrap;
}
.a7sc-sort__btn.is-on { background: hsl(var(--base-100)); opacity: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Category filter chips — watchfaces chip style, ordered: title → chips → divider → search. */
.a7sc-cats { margin: 0 0 14px; padding: 0 4px; }
.a7sc-cats__row { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
/* Hairline divider between the categories and the search bar. */
.a7sc-hr { height: 1px; margin: 0 0 18px;
  background: color-mix(in oklch, hsl(var(--base-content)) 12%, transparent); }
/* Reorderable fade-both-ends divider between the options (search/filter) and
   the content grid. Symmetric 90deg gradient → direction-agnostic (no RTL flip). */
.a7ap-divider { height: 1px; border: 0; width: 100%; max-width: 440px; margin: 22px auto; background: linear-gradient(90deg, transparent, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent) 50%, transparent); }
.a7sc-cats__row::-webkit-scrollbar { display: none; }
.a7sc-cat { flex: 0 0 auto; border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 14%, transparent);
  background: transparent; color: hsl(var(--base-content)); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 14px; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .1s; }
.a7sc-cat:hover { background: color-mix(in oklch, hsl(var(--base-content)) 7%, transparent); }
.a7sc-cat:active { transform: scale(.97); }
.a7sc-cat.is-on { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }

/* grid — iOS-Shortcuts-style colored tiles */
.a7sc-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px)  { .a7sc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .a7sc-grid { grid-template-columns: repeat(4, 1fr); } }
.a7sc-card { position: relative; }
.a7sc-card__a {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  text-decoration: none; color: #fff;
  background: linear-gradient(155deg, var(--c, #2563eb), color-mix(in oklab, var(--c, #2563eb) 70%, #000));
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45);
  transition: transform .15s, box-shadow .2s;
}
.a7sc-card__a:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(0,0,0,.5); }
.a7sc-card__ic { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 26px; color: #fff; }
.a7sc-card__dots {
  position: absolute; top: 13px; inset-inline-end: 13px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background .15s;
}
.a7sc-card__dots svg { width: 16px; height: 16px; color: #fff; }
.a7sc-card__dots:hover { background: rgba(255,255,255,.45); }
.a7sc-card__dots:active { transform: scale(.9); }
.a7sc-card__t {
  position: absolute; bottom: 14px; inset-inline: 16px; text-align: start;
  font-weight: 800; font-size: 16px; color: #fff; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.25);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* Description: subtle 1-line teaser on the card (when present, title clamps to 1). */
.a7sc-card__a.has-d .a7sc-card__t { bottom: 30px; -webkit-line-clamp: 1; }
.a7sc-card__d {
  position: absolute; bottom: 11px; inset-inline: 16px; text-align: start; z-index: 1;
  color: #fff; font-size: 11px; font-weight: 500; line-height: 1.3; opacity: .72;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
/* Full description INSIDE the preview tile, under the title. */
.a7sc-lb__d {
  position: absolute; inset-inline: 18px; bottom: 18px; z-index: 1;
  font-size: 13px; font-weight: 500; line-height: 1.4; color: #fff; opacity: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: opacity .22s ease .08s;
}
.a7sc-lb.open .a7sc-lb__d { opacity: .92; }
.a7sc-lb.has-d .a7sc-lb__title {
  bottom: 54px; -webkit-line-clamp: 1;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;
}

/* skeleton */
.a7sc-sk { background: linear-gradient(90deg, hsl(var(--base-200)) 25%, hsl(var(--base-300)) 50%, hsl(var(--base-200)) 75%); background-size: 200% 100%; animation: a7sc-sh 1.3s ease-in-out infinite; border-radius: 20px; }
.a7sc-sk--card { aspect-ratio: 16 / 10; }
@keyframes a7sc-sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .a7sc-sk { animation: none; } .a7sc-card__a { transition: none; } }

.a7sc-empty { grid-column: 1/-1; text-align: center; opacity: .6; padding: 50px 10px; font-weight: 600; }
/* Recoverable load-failure state (icon + heading + subtext + Retry) — replaces a
   blank grid when the fetch fails after retries. */
.a7sc-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 46px 18px; }
.a7sc-state__ic { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  color: hsl(var(--primary)); background: color-mix(in oklch, hsl(var(--primary)) 12%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--primary)) 22%, transparent); }
.a7sc-state__ic svg { width: 28px; height: 28px; }
.a7sc-state__h { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: hsl(var(--base-content)); }
.a7sc-state__p { margin: 0; font-size: 14px; color: color-mix(in oklch, hsl(var(--base-content)) 62%, transparent); max-width: 34ch; }
.a7sc-state__btn { margin-top: 6px; border: 0; background: hsl(var(--primary)); color: hsl(var(--primary-content));
  font: inherit; font-weight: 800; padding: 10px 24px; border-radius: 999px; cursor: pointer;
  min-height: 44px; transition: background .15s, transform .12s;
  box-shadow: 0 6px 18px -4px color-mix(in oklch, hsl(var(--primary)) 55%, transparent); }
.a7sc-state__btn:hover { background: color-mix(in oklch, hsl(var(--primary)) 82%, #000); }
.a7sc-state__btn:active { transform: scale(.96); }
.a7sc-state__btn:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.a7sc-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }
.a7sc-pager__btn { border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent); background: hsl(var(--base-100)); color: hsl(var(--base-content)); font: inherit; font-weight: 700; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: background .15s, transform .12s; }
.a7sc-pager__btn:not(:disabled):hover { background: color-mix(in oklch, hsl(var(--base-content)) 9%, transparent); }
.a7sc-pager__btn:not(:disabled):active { transform: scale(.96); }
.a7sc-pager__btn:disabled { opacity: .4; cursor: not-allowed; }
.a7sc-pager__info { font-size: 14px; font-weight: 700; opacity: .7; }

/* toast */
.a7sc-toast { position: fixed; z-index: 9300; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%); background: rgba(20,20,24,.92); color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px 20px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); opacity: 0; transition: opacity .35s, transform .35s cubic-bezier(.32,.72,0,1); }

/* in-grid ads — EXACTLY one content-tile footprint (16:10), like the tiles */
.a7sc-ad { position: relative; border-radius: 16px; overflow: hidden; background: hsl(var(--base-200)); aspect-ratio: 16 / 10; }
.a7sc-ad__native { display: block; position: absolute; inset: 0; width: 100%; height: 100%; text-decoration: none; }
.a7sc-ad__native img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* CTA caption — centered frosted pill, identical to watchfaces ads */
.a7sc-ad__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-family: inherit; }
.a7sc-ad__t { font-weight: 700; font-size: 13px; color: #fff; padding: 5px 16px; border-radius: 999px; background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4); border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 2px 6px rgba(0,0,0,.3); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform .15s ease, background .15s, border-color .15s; }
.a7sc-ad__native:hover .a7sc-ad__t { transform: scale(1.07); background: rgba(0,0,0,.62); border-color: rgba(255,255,255,.55); }
.a7sc-ad__ti { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 6px; }
.a7sc-ad__b { background: hsl(var(--primary)); color: #fff; padding: 6px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
/* google slot fills the same 16:10 box (clipped) so it matches the tiles */
.a7sc-ad .adsbygoogle { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.a7sc-ad::after { content: "Ad"; position: absolute; top: 6px; inset-inline-start: 6px; z-index: 3; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* Breadcrumb */
.a7sc-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; margin: 2px 0 10px; color: hsl(var(--base-content)); }
.a7sc-bc__a { color: hsl(var(--base-content)); opacity: .6; text-decoration: none; transition: opacity .15s; }
.a7sc-bc__a:hover { opacity: 1; }
.a7sc-bc__sep { opacity: .35; }
.a7sc-bc__cur { font-weight: 700; opacity: .9; }

/* Smart Stack skeleton — reserves the stack's spot from first paint so
   nothing below it shifts when the engine swaps in. Height mirrors the REAL
   ring (.a7sc-ring: clamp(150px, 30vw, 215px)) — A7Boot twin geometry. */
.a7sc-stack-sk { height: clamp(150px, 30vw, 215px); display: flex; align-items: center; justify-content: center; }
.a7sc-stack-sk::before { content: ""; width: min(60%, 360px); aspect-ratio: 16 / 10; border-radius: 20px;
  background: linear-gradient(90deg, hsl(var(--base-200)) 25%, hsl(var(--base-300)) 50%, hsl(var(--base-200)) 75%);
  background-size: 200% 100%; animation: a7sc-shim 1.3s ease-in-out infinite; box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); }
@keyframes a7sc-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .a7sc-stack-sk::before { animation: none; } }

/* Smart Stack (المكدّسة الذكية) — ring carousel of tiles */
.a7sc-stack { margin: 0 0 6px; }
.a7sc-ring { position: relative; width: 100%; height: clamp(150px, 30vw, 215px); touch-action: pan-y; }
.a7sc-ring.is--drag { cursor: grabbing; }
.a7sc-ring .cell { position: absolute; top: 50%; left: 50%; height: 100%; display: flex; align-items: center; will-change: transform, opacity; }
.a7sc-ring .card { height: 86%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; position: relative; color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(155deg, var(--c, #2563eb), color-mix(in oklab, var(--c, #2563eb) 70%, #000));
  box-shadow: 0 16px 36px -16px rgba(0,0,0,.55); -webkit-user-select: none; user-select: none; }
.a7sc-ring__ic { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 26px; line-height: 1; color: #fff; }
.a7sc-ring__t { position: absolute; inset-inline: 16px; bottom: 14px; font-weight: 800; font-size: 16px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
.a7sc-ring__name { text-align: center; font-weight: 700; font-size: 15px; margin-top: 8px; min-height: 1.4em; color: hsl(var(--base-content)); transition: opacity .18s; }
.a7sc-ring__name.is-swap { opacity: 0; }
.a7sc-ring__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.a7sc-ring__dots i { width: 7px; height: 7px; border-radius: 50%; cursor: pointer; transition: .2s; background: color-mix(in oklch, hsl(var(--base-content)) 25%, transparent); }
.a7sc-ring__dots i.on { background: hsl(var(--primary)); transform: scale(1.25); }

/* ════════ section closed / coming-soon (ported from cards a7cs-*) ════════ */
.a7sc-cl-wrap {
  --cs-accent: hsl(var(--primary));
  --cs-accent-press: color-mix(in oklch, hsl(var(--primary)) 82%, #000);
  --cs-accent-soft: color-mix(in oklch, hsl(var(--primary)) 12%, transparent);
  --cs-text: hsl(var(--base-content));
  --cs-muted: color-mix(in oklch, hsl(var(--base-content)) 62%, transparent);
  --cs-faint: color-mix(in oklch, hsl(var(--base-content)) 42%, transparent);
  --cs-surface-2: hsl(var(--base-200));
  --cs-border: color-mix(in oklch, hsl(var(--base-content)) 12%, transparent);
  --cs-border-strong: color-mix(in oklch, hsl(var(--base-content)) 18%, transparent);
  min-height: 74vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 22px; font-family: inherit; color: var(--cs-text);
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in oklch, hsl(var(--base-content)) 5%, transparent), transparent 60%);
}
.a7sc-cl-card { width: 100%; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.a7sc-cl-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--cs-accent-soft); color: var(--cs-accent); font-size: 13px; font-weight: 700; margin-bottom: 30px;
  border: 1px solid color-mix(in oklch, hsl(var(--primary)) 22%, transparent); }
.a7sc-cl-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent); position: relative; }
.a7sc-cl-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cs-accent);
  animation: a7sc-cl-pulse 1.8s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes a7sc-cl-pulse { 0% { transform: scale(1); opacity: .6 } 70% { transform: scale(3); opacity: 0 } 100% { opacity: 0 } }
.a7sc-cl-iconwrap { position: relative; width: 128px; height: 128px; margin-bottom: 34px; display: flex; align-items: center; justify-content: center; }
.a7sc-cl-ring { position: absolute; inset: 0; border-radius: 34px; border: 1.5px solid var(--cs-border-strong); animation: a7sc-cl-floaty 5s ease-in-out infinite; }
.a7sc-cl-ring--b { inset: -14px; border-radius: 42px; opacity: .5; animation-delay: .4s; }
.a7sc-cl-iconbox { width: 96px; height: 96px; border-radius: 28px;
  background: linear-gradient(155deg, hsl(var(--primary)), var(--cs-accent-press));
  display: flex; align-items: center; justify-content: center; color: hsl(var(--primary-content));
  box-shadow: 0 14px 34px -10px color-mix(in oklch, hsl(var(--primary)) 45%, transparent);
  animation: a7sc-cl-floaty 5s ease-in-out infinite; }
.a7sc-cl-iconbox svg { width: 48px; height: 48px; }
@keyframes a7sc-cl-floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
.a7sc-cl-title { font-family: inherit; font-weight: 800; font-size: clamp(22px, 3.8vw, 28px); line-height: 1.3; margin: 0 0 14px; letter-spacing: -.3px; color: var(--cs-text); text-wrap: balance; }
.a7sc-cl-sub { font-size: clamp(15px, 2.4vw, 18px); color: var(--cs-muted); line-height: 1.7; margin: 0 0 34px; max-width: 430px; }
.a7sc-cl-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.a7sc-cl-btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: inherit; transition: transform .08s, background .14s; }
.a7sc-cl-btn svg { width: 18px; height: 18px; }
.a7sc-cl-wrap[dir="rtl"] .a7sc-cl-btn svg { transform: scaleX(-1); }
.a7sc-cl-btn:active { transform: scale(.97); }
.a7sc-cl-btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-content));
  box-shadow: 0 6px 18px -4px color-mix(in oklch, hsl(var(--primary)) 55%, transparent); }
.a7sc-cl-btn--primary:hover { background: var(--cs-accent-press); }
.a7sc-cl-progress { margin-top: 40px; width: 100%; max-width: 300px; }
.a7sc-cl-bar { height: 6px; border-radius: 999px; background: var(--cs-surface-2); overflow: hidden; border: 1px solid var(--cs-border); }
.a7sc-cl-fill { height: 100%; width: var(--cs-progress, 68%); border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), var(--cs-accent-press)); animation: a7sc-cl-grow 2.4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes a7sc-cl-grow { from { width: 0 } to { width: var(--cs-progress, 68%) } }
.a7sc-cl-lbl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--cs-faint); }
@media (prefers-reduced-motion: reduce) { .a7sc-cl-ring, .a7sc-cl-iconbox, .a7sc-cl-pulse::after, .a7sc-cl-fill { animation: none !important; } }

/* footer (parity with the other sections) */
.a7-site-footer { text-align: center; padding: 40px 16px 30px; margin-top: 44px; border-top: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent); }
.a7-site-footer__logo { font-weight: 800; font-size: 20px; }
.a7-site-footer__copy { font-size: 13px; opacity: .6; margin-top: 8px; }
.a7-site-footer__social { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.a7-site-footer__ico { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; color: hsl(var(--base-content)); opacity: .75; text-decoration: none; transition: opacity .18s, transform .12s, background .18s; }
.a7-site-footer__ico:hover { opacity: 1; transform: translateY(-2px); background: color-mix(in oklch, hsl(var(--base-content)) 8%, transparent); }

/* ════════════════ FLIP preview (same as watch faces) ════════════════ */
.a7sc-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(14,16,20,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .34s cubic-bezier(.32,.72,0,1); }
.a7sc-ov.show { opacity: 1; pointer-events: auto; }
/* The box IS the colored tile (icon top-leading, title bottom) — enlarged. */
.a7sc-lb { position: fixed; z-index: 9001; display: none; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--c, #2563eb), color-mix(in oklab, var(--c, #2563eb) 70%, #000));
  box-shadow: 0 30px 80px -22px rgba(0,0,0,.6); will-change: top,left,width,height; }
.a7sc-lb__ic { position: absolute; top: 16px; inset-inline-start: 18px; font-size: 30px; line-height: 1; color: #fff; opacity: 0; transition: opacity .22s ease .08s; }
.a7sc-lb.open .a7sc-lb__ic { opacity: 1; }
.a7sc-lb__title { position: absolute; inset-inline: 18px; bottom: 16px; font-weight: 800; font-size: 20px; line-height: 1.3; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.28); opacity: 0; transition: opacity .22s ease .08s; }
.a7sc-lb.open .a7sc-lb__title { opacity: 1; }
/* The bar = buttons (+ install count) BELOW the tile, on the dim backdrop. */
.a7sc-lbbar { position: fixed; inset-inline: 0; z-index: 9002; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .26s ease, transform .3s cubic-bezier(.32,.72,0,1); }
.a7sc-lbbar.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.a7sc-lbbar__m { font-size: 13px; font-weight: 700; color: #fff; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.a7sc-lbbar__row { display: flex; gap: 10px; justify-content: center; width: min(92vw, 430px); }
.a7sc-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; padding: 13px 18px; border-radius: 14px; text-decoration: none; white-space: nowrap; flex: 1 1 0; min-width: 0;
  background: rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .12s, background .16s; }
.a7sc-tbtn:active { transform: scale(.96); }
.a7sc-tbtn svg { width: 18px; height: 18px; }
.a7sc-tbtn--primary { background: hsl(var(--primary)); color: #fff; }
.a7sc-lclose { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.a7sc-lclose:active { transform: scale(.92); }
.a7sc-lclose svg { width: 16px; height: 16px; }
.a7sc-lbx { position: fixed; inset: 0; z-index: 9003; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.a7sc-lbx.show { opacity: 1; }
.a7sc-lbnav { position: fixed; pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent); background: color-mix(in oklch, hsl(var(--base-100)) 80%, transparent); color: hsl(var(--base-content)); -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.a7sc-lbnav:active { transform: scale(.9); }
.a7sc-lbnav svg { width: 22px; height: 22px; }

/* frosted share sheet */
.a7sc-sht-ov { position: fixed; inset: 0; z-index: 9100; background: rgba(0,0,0,.68); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .28s cubic-bezier(.32,.72,0,1); }
.a7sc-sht-ov.show { opacity: 1; pointer-events: auto; }
.a7sc-sht { position: relative; width: min(92vw, 420px); direction: rtl; padding: 22px; transform: translateY(8px) scale(.96); opacity: 0; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); border: 1px solid rgba(255,255,255,.5); border-radius: 22px; box-shadow: 0 30px 80px -22px rgba(0,0,0,.5); transition: transform .36s cubic-bezier(.32,.72,0,1), opacity .24s ease; }
.a7sc-sht.show { transform: translateY(0) scale(1); opacity: 1; }
html.dark .a7sc-sht, body.dark .a7sc-sht { background: rgba(30,32,36,.62); border-color: rgba(255,255,255,.12); }
.a7sc-sht__t { font-weight: 800; font-size: 15px; margin-bottom: 16px; color: hsl(var(--base-content)); }
.a7sc-sht__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px 6px; }
@media (max-width: 380px) { .a7sc-sht__grid { grid-template-columns: repeat(4,1fr); } }
.a7sc-sht__item { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; text-decoration: none; font: inherit; color: hsl(var(--base-content)); }
.a7sc-sht__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(120,120,128,.16); }
.a7sc-sht__lbl { font-size: 11.5px; font-weight: 600; opacity: .85; }
.a7sc-sht__foot { display: flex; gap: 10px; margin-top: 16px; }
.a7sc-sht__more, .a7sc-sht__cancel { flex: 1; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; padding: 13px; }
.a7sc-sht__more { background: hsl(var(--primary)); color: #fff; }
.a7sc-sht__cancel { background: color-mix(in oklch, hsl(var(--base-content)) 10%, transparent); color: hsl(var(--base-content)); }
html.dark .a7sc-sht__cancel, body.dark .a7sc-sht__cancel { background: rgba(255,255,255,.12); color: #fff; }
html.a7sc-noscroll { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) { .a7sc-ov, .a7sc-lb__ic, .a7sc-lb__title, .a7sc-lbbar, .a7sc-sht { transition: none; } }

/* ============ A7 Featured — Gold Frame (generic, shared a7- classes) ============
   The frame is drawn OUTSIDE the card via ::before/::after so it bleeds into the
   grid gap (14px) — the featured card keeps the EXACT size + position of its
   siblings. --a7-radius = the section's visible-card radius; --a7-page-bg defaults
   to the live theme bg so the 4px gap auto-matches light/dark. */
.a7-featured{ position: relative; border-radius: var(--a7-radius); animation: a7-feat-bob 3.6s ease-in-out infinite; }
.a7-featured::before{                 /* animated gold ring (3px), bleeds 7px out */
  content:""; position:absolute; inset:-7px; z-index:0; pointer-events:none;
  border-radius: calc(var(--a7-radius) + 7px);
  background: linear-gradient(135deg,#ffe9a8,#f6b321,#d4881a,#ffe9a8);
  background-size: 300% 300%; animation: a7-goldflow 5s ease infinite;
  box-shadow: 0 16px 38px -14px rgba(214,150,20,.7);
}
.a7-featured::after{                  /* page-bg gap (4px) between ring and card */
  content:""; position:absolute; inset:-4px; z-index:1; pointer-events:none;
  border-radius: calc(var(--a7-radius) + 4px);
  background: var(--a7-page-bg, hsl(var(--base-100)));
}
.a7-featured__card{ position:relative; z-index:2; }
@keyframes a7-goldflow{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes a7-feat-bob{ 0%,100%{ transform: scale(1) } 50%{ transform: scale(1.01) } }
.a7-featured__crown{
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  z-index: 8; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#ffe08a,#f6b321); color: #5a3c05;
  box-shadow: 0 6px 16px rgba(214,150,20,.55), inset 0 1px 0 rgba(255,255,255,.7);
  border: 3px solid var(--a7-page-bg, hsl(var(--base-100)));
}
.a7-featured__crown svg{ width: 28px; height: 28px; }
.a7-featured__ribbon{
  position: absolute; top: 0; left: 0; width: 128px; height: 128px;
  overflow: hidden; z-index: 6; pointer-events: none;
}
.a7-featured__ribbon span{
  position: absolute; top: 30px; left: -32px; width: 166px; text-align: center;
  transform: rotate(-45deg); white-space: nowrap;
  background: linear-gradient(90deg,#f6b321,#ffe08a,#f6b321); color: #5a3c05;
  font-weight: 800; font-size: 11px; padding: 7px 0; box-shadow: 0 4px 10px rgba(0,0,0,.28);
}
.a7-shine{ position: relative; overflow: hidden; }
.a7-shine::after{
  content: ""; position: absolute; top: -20%; left: -60%;
  width: 42%; height: 150%; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); animation: a7-shimmer 3.6s ease-in-out infinite;
}
@keyframes a7-shimmer{ 0%{left:-60%} 55%,100%{left:135%} }
@media (prefers-reduced-motion: reduce){
  .a7-featured, .a7-featured::before, .a7-shine::after{ animation: none; }
}
