/* Plugling — sistema visual do site (loja, conta, portal do dev, admin, docs).
   Mundo: painel de azulejos modulares. Esmalte branco-azulado como chão, azul-cobalto em faixas inteiras,
   tinta azul-noite no texto, amarelo-gema só para estrelas. Módulo quadrado, rejunte fino, cantos quase retos.
   Títulos em Jost (hospedada aqui); texto na fonte do sistema. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: oklch(0.975 0.008 255);
  --surface: oklch(0.996 0.003 255);
  --surface-2: oklch(0.948 0.014 258);
  --line: oklch(0.885 0.02 260);
  --line-strong: oklch(0.79 0.03 260);
  --ink: oklch(0.23 0.06 264);
  --ink-2: oklch(0.37 0.05 264);
  --muted: oklch(0.5 0.04 262);
  --accent: oklch(0.46 0.2 265);
  --accent-hover: oklch(0.39 0.19 265);
  --accent-soft: oklch(0.93 0.04 262);
  --accent-ink: oklch(0.42 0.18 265);
  --on-accent: oklch(0.99 0.005 255);
  /* faixa de azulejo: o cobalto que ocupa regiões inteiras */
  --cobalt: oklch(0.43 0.2 265);
  --cobalt-deep: oklch(0.34 0.17 266);
  --grout: oklch(0.55 0.15 264);
  --on-cobalt: oklch(0.99 0.005 255);
  --on-cobalt-2: oklch(0.88 0.05 262);
  --glaze: oklch(0.985 0.006 250);
  --yolk: oklch(0.85 0.16 88);
  --danger: oklch(0.55 0.19 27);
  --danger-soft: oklch(0.96 0.03 27);
  --warn: oklch(0.64 0.14 75);
  --warn-soft: oklch(0.96 0.05 90);
  --ok: var(--accent);
  --focus: oklch(0.6 0.19 265 / 0.45);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.07), 0 6px 18px oklch(0 0 0 / 0.05);
  --radius: 6px;
  --radius-sm: 4px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Jost", var(--font);
  --star: var(--yolk);
  --star-empty: oklch(0.88 0.02 255);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.17 0.03 264);
    --surface: oklch(0.21 0.035 264);
    --surface-2: oklch(0.25 0.04 264);
    --line: oklch(0.31 0.045 264);
    --line-strong: oklch(0.4 0.05 264);
    --ink: oklch(0.96 0.01 255);
    --ink-2: oklch(0.84 0.025 258);
    --muted: oklch(0.7 0.035 260);
    --accent: oklch(0.72 0.14 262);
    --accent-hover: oklch(0.79 0.12 262);
    --accent-soft: oklch(0.3 0.08 264);
    --accent-ink: oklch(0.82 0.11 262);
    --on-accent: oklch(0.18 0.06 266);
    --cobalt: oklch(0.36 0.17 266);
    --cobalt-deep: oklch(0.27 0.13 266);
    --grout: oklch(0.45 0.15 265);
    --glaze: oklch(0.93 0.015 255);
    --danger: oklch(0.7 0.16 27);
    --danger-soft: oklch(0.3 0.06 27);
    --warn-soft: oklch(0.32 0.06 85);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.4);
    --star-empty: oklch(0.38 0.03 260);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--display); font-optical-sizing: auto; }
h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 var(--s3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: var(--s7) 0 var(--s3); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: var(--s5) 0 var(--s2); font-weight: 650; }
p { margin: 0 0 var(--s4); max-width: 70ch; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4);
      overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }

/* ---------- topo: a primeira faixa de azulejo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--cobalt); color: var(--on-cobalt);
       box-shadow: 0 1px 0 var(--grout); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--s5); height: 60px; display: flex; align-items: center; gap: var(--s5); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display);
            letter-spacing: -0.02em; color: var(--on-cobalt); text-decoration: none; }
.wordmark img { width: 34px; height: 34px; padding: 3px; background: var(--glaze); border-radius: var(--radius-sm);
                transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.wordmark:hover { color: var(--on-cobalt); }
.wordmark:hover img { transform: rotate(-8deg); }
.inline-mark { display: inline-block; vertical-align: -3px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: var(--s1); align-items: center; }
.nav a { color: var(--on-cobalt-2); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--on-cobalt); background: oklch(1 0 0 / .1); }
.nav a[aria-current="page"] { color: var(--on-cobalt); background: oklch(1 0 0 / .16); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.top .btn { color: var(--on-cobalt); }
.top .btn.ghost:hover { background: oklch(1 0 0 / .12); color: var(--on-cobalt); }
.top .btn.primary, .band .btn.primary { background: var(--yolk); border-color: var(--yolk); color: oklch(0.22 0.06 264); }
.top .btn.primary:hover, .band .btn.primary:hover { background: oklch(0.89 0.15 92); border-color: oklch(0.89 0.15 92); }
.top .nav-cta { background: transparent; border-color: oklch(1 0 0 / .45); }
.top .nav-cta:hover { background: oklch(1 0 0 / .12); color: var(--on-cobalt); }
.inline { display: inline; margin: 0; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s8); }
.narrow { max-width: 460px; margin: var(--s7) auto; padding: 0 var(--s4); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4);
             flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head h1 { margin: 0; }
.with-side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 2px; }
.side a { display: flex; align-items: center; gap: var(--s2); padding: 8px 10px; border-radius: var(--radius-sm);
          color: var(--ink-2); text-decoration: none; font-size: 14px; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side .count { margin-left: auto; font-size: 12px; background: var(--warn-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 0 7px; }
.side-label { font-size: 12px; color: var(--muted); padding: var(--s4) 10px var(--s1); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-body { padding: var(--s5); }
.panel + .panel, .panel + h2 { margin-top: var(--s5); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
              padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line);
         border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stats > div { padding: var(--s4) var(--s5); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }

/* ---------- botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 38px; padding: 0 16px;
       border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
       font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

form.stack { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.help { font-size: 13px; color: var(--muted); margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search],
input[type=file], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px; }
textarea { min-height: 160px; resize: vertical; font-family: var(--mono); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.secret-set { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 1px 8px; }

.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
          border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; margin-bottom: var(--s4); }
.notice.ok { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 35%, transparent); }
.notice.error { background: var(--danger-soft); border-color: color-mix(in oklch, var(--danger) 35%, transparent); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 35%, transparent); }
.notice p { margin: 0; }

/* ---------- tabelas e listas ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px var(--s4);
            border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.scroll-x { overflow-x: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px;
       border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--ink); border-color: transparent; }
.tag.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.empty { padding: var(--s7) var(--s5); text-align: center; color: var(--muted); }
.empty .icon { width: 28px; height: 28px; margin: 0 auto var(--s3); opacity: .6; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.glyph { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 22px;
         background: var(--surface-2); border: 1px solid var(--line); }
.grow { flex: 1; min-width: 0; }
.title-line { font-weight: 600; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- loja ---------- */
.chip { display: inline-flex; height: 32px; align-items: center; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
        color: var(--ink-2); text-decoration: none; font-size: 13px; background: var(--surface); }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 36px; }
.plugin-row .price { font-weight: 650; white-space: nowrap; }
.plugin-row a.cover { position: absolute; inset: 0; }
.plugin-row { position: relative; }
.plugin-row:hover { background: var(--surface-2); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); align-items: start; }
.detail-head { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s5); }
.detail-head .glyph { width: 64px; height: 64px; font-size: 36px; border-radius: 16px; }
.buybox { position: sticky; top: 84px; }
.buybox .price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; margin: var(--s4) 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose blockquote { margin: var(--s4) 0; padding: var(--s3) var(--s4); background: var(--surface-2); border: 1px solid var(--line);
                    border-radius: var(--radius-sm); }
.prose blockquote p { margin: 0; }

.code-entry { font: 600 30px/1 var(--mono); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: var(--s3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); align-items: start; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center;
                    background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }

/* ---------- loja: índice com busca ---------- */
.store { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: var(--s6); align-items: start; padding-top: var(--s7); }
.store-rail { position: sticky; top: 84px; display: grid; gap: 2px; font-size: 14px; }
.rail-label { margin: var(--s4) 10px var(--s1); font-size: 12px; color: var(--muted); }
.rail-label:first-child { margin-top: 0; }
.store-rail a { display: flex; justify-content: space-between; gap: var(--s2); padding: 7px 10px; border-radius: var(--radius-sm);
                color: var(--ink-2); text-decoration: none; }
.store-rail a span { color: var(--muted); font-size: 13px; }
.store-rail a:hover { background: var(--surface-2); color: var(--ink); }
.store-rail a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.store-rail a[aria-current="page"] span { color: inherit; }
.store-result { margin: calc(-1 * var(--s3)) 0 var(--s4); }
.store-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
              box-shadow: var(--shadow); overflow: hidden; }
.store-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: var(--s4); align-items: center;
              padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); transition: background-color .15s; }
.store-item:last-child { border-bottom: 0; }
.store-item:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.store-item .picon { width: 48px; height: 48px; }
.store-item-name { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.store-item-name a { color: var(--ink); text-decoration: none; }
.store-item-name a:hover { color: var(--accent-ink); text-decoration: underline; }
.store-item-summary { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1;
                      -webkit-box-orient: vertical; overflow: hidden; }
.store-item-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.store-item-price { font-weight: 650; white-space: nowrap; font-size: 14px; }
.store-item-action { min-width: 96px; }
.store-item.is-lead { grid-template-columns: 64px minmax(0, 1fr) auto auto; padding: var(--s5); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.store-item.is-lead .picon { width: 64px; height: 64px; }
.store-item.is-lead .store-item-name { font-size: 20px; }
.store-item.is-lead .store-item-summary { -webkit-line-clamp: 2; font-size: 15px; }
.store-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s7) var(--s5); text-align: center; color: var(--muted); }
.store-empty .icon { width: 28px; height: 28px; margin: 0 auto var(--s3); }
.store-empty p { margin: 0 auto var(--s4); }
.store-aside { position: sticky; top: 84px; display: grid; gap: var(--s4); }
.store-aside-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.store-aside-block h2 { margin: 0 0 var(--s2); font-size: 15px; }
.store-aside-block .steps { margin: var(--s3) 0 0; font-size: 14px; }

/* ---------- ícones, avatares, estrelas ---------- */
.picon { flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.picon-emoji { width: var(--s); height: var(--s); display: grid; place-items: center; font-size: calc(var(--s) * .55);
               background: var(--glaze); box-shadow: inset 0 0 0 1px var(--line-strong); }
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-initial { width: var(--s); height: var(--s); display: grid; place-items: center; font: 700 calc(var(--s) * .42)/1 var(--display);
                  background: var(--accent-soft); color: var(--accent-ink); }
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.stars-track { --w: 80px; width: var(--w); height: calc(var(--w) / 5); flex: none;
  background: linear-gradient(90deg, var(--star) var(--pct), var(--star-empty) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x; }
.stars-sm { font-size: 12px; gap: 4px; }
.stars-sm .stars-track { --w: 62px; }
.stars-count { color: var(--muted); font-weight: 400; }
.stars-none { color: var(--muted); font-size: 13px; }
.stars-sm.stars-none { font-size: 12px; }

/* ---------- ordenação (abas) ---------- */
.sort { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; margin-bottom: var(--s4); }
.sort a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.sort a:hover { color: var(--ink); }
.sort a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.crumbs { margin-bottom: var(--s4); color: var(--muted); }
.crumbs a { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: var(--s2) 0; width: 100%; }

/* ---------- página / modal do plugin ---------- */
.pp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 260px; gap: var(--s5); align-items: start; }
.pp-title h1 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 2px; }
.pp-by { margin: 0 0 var(--s3); color: var(--muted); }
.pp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); align-items: center; }
.pp-buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow); }
.pp-price { font: 750 26px/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: var(--s3); }
.pp-note { font-size: 13px; color: var(--ink-2); margin: var(--s2) 0; }
.pp-gallery { margin: var(--s5) calc(-1 * var(--s5)) 0; }
.gallery { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--s5) var(--s3);
           scrollbar-width: thin; overscroll-behavior-x: contain; }
.gallery-item { flex: none; margin: 0; scroll-snap-align: start; max-width: 86%; }
.gallery-item img { height: clamp(220px, 46vh, 420px); width: auto; max-width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--surface-2);
                    box-shadow: 0 0 0 1px var(--line), 0 8px 24px oklch(0 0 0 / .08); display: block; }
.gallery-item figcaption { font-size: 13px; color: var(--muted); margin-top: var(--s2); }
.pp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); margin-top: var(--s6); align-items: start; }
.pp-side h2 { font-size: 15px; margin: 0 0 var(--s3); }
.pp-side h2:not(:first-child) { margin-top: var(--s6); }
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); font-size: 14px; }
.perm-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.perm-list .icon { color: var(--accent); margin-top: 2px; }
.perm-note { font-size: 13px; margin: var(--s2) 0 0; }
.pp-creator { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.creator-link { font-weight: 600; }
.reviews { margin-top: var(--s7); }
.rev-summary { display: flex; gap: var(--s6); align-items: center; margin-bottom: var(--s5); flex-wrap: wrap; }
.rev-score { display: grid; gap: 4px; justify-items: start; }
.rev-score b { font: 800 44px/1 var(--display); letter-spacing: -0.03em; }
.rev-score > span:last-child { font-size: 13px; color: var(--muted); }
.rev-bars { margin: 0; display: grid; gap: 4px; min-width: 220px; flex: 1; max-width: 360px; }
.rev-bars div { display: grid; grid-template-columns: 12px 1fr 28px; gap: var(--s2); align-items: center; font-size: 12px; color: var(--muted); }
.rev-bars dt, .rev-bars dd { margin: 0; }
.rev-bars dd span { display: block; height: 7px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--star) var(--w), var(--surface-2) var(--w)); }
.rev-bars .n { text-align: right; }
.rev-form { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface-2); border-radius: var(--radius); margin-bottom: var(--s5); }
.rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; float: left; width: 100%; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { width: 30px; height: 30px; cursor: pointer; background: var(--star-empty);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%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 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .12s, background-color .12s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { background: var(--star); }
.rate label:hover { transform: scale(1.12); }
.rate input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.rev-form textarea { font-family: var(--font); min-height: 76px; }
.rev-form .btn { justify-self: start; }
.rev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
.rev-head { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; font-size: 14px; }
.rev-head time { color: var(--muted); font-size: 12px; margin-left: auto; }
.rev-list p { margin: var(--s2) 0 0 40px; }
.rev-ver { margin-left: 40px; font-size: 12px; color: var(--muted); }

.pp-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: var(--s6) var(--s6) var(--s7);
             border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink);
             box-shadow: 0 24px 80px oklch(0 0 0 / .35); overflow-y: auto; overscroll-behavior: contain; }
.pp-dialog::backdrop { background: oklch(0.18 0.08 264 / .45); backdrop-filter: blur(3px); }
.pp-dialog[open] { animation: pp-in .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes pp-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.pp-close { position: sticky; top: 0; float: right; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 0 0; z-index: 2; }
.pp-close .btn { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius-sm); width: 36px; padding: 0; }
.pp-loading { color: var(--muted); padding: var(--s7) 0; text-align: center; }
.pp-dialog .pp-gallery { margin-left: calc(-1 * var(--s6)); margin-right: calc(-1 * var(--s6)); }
.pp-dialog .gallery { padding-left: var(--s6); padding-right: var(--s6); }

/* ---------- página do criador ---------- */
.creator-head { display: flex; gap: var(--s5); align-items: center; margin: var(--s4) 0 var(--s6); }
.creator-head h1 { margin: 0 0 var(--s2); }
.creator-head .lead { margin-bottom: var(--s3); }

/* ---------- portal do dev ---------- */
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.prefix-input span { padding: 9px 4px 9px 11px; color: var(--muted); font-size: 14px; background: var(--surface-2); white-space: nowrap; }
.prefix-input input { border: 0; border-radius: 0; }
.prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.shot-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.shot-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.shot-actions { display: grid; gap: 6px; margin-top: var(--s2); }
.shot-actions input { padding: 6px 9px; font-size: 13px; }
.chart-wrap { margin: 0; }
.chart { width: 100%; height: 220px; display: block; }
.chart .bar-views { fill: var(--accent-soft); }
.chart .bar-downloads { fill: var(--accent); }
.chart rect:hover { opacity: .8; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; margin-top: var(--s3); }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-views { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.key-downloads { background: var(--accent); }

/* ---------- página de download ---------- */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s7); align-items: center;
           padding-top: var(--s8); padding-bottom: var(--s7); }
.dl-mark { width: 96px; height: 96px; padding: 8px; background: var(--glaze); border-radius: var(--radius); margin-bottom: var(--s5); animation: dl-bob 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes dl-bob { 0%, 100% { transform: rotate(0); } 46% { transform: rotate(0); } 50% { transform: rotate(-7deg) translateY(-3px); } 56% { transform: rotate(4deg); } 62% { transform: rotate(0); } }
.dl-copy h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: .98; letter-spacing: -0.03em; font-weight: 700; margin-bottom: var(--s4); }
.dl-copy .lead { font-size: 19px; margin-bottom: var(--s5); }
.dl-cta { display: grid; gap: var(--s3); justify-items: start; }
.dl-btn { height: auto; padding: 16px 26px 16px 20px; border-radius: var(--radius-sm); font-size: 17px; gap: 12px;
          background: var(--yolk); border-color: var(--yolk); color: oklch(0.22 0.06 264);
          box-shadow: 0 10px 24px oklch(0 0 0 / .25); }
.dl-btn:hover { background: oklch(0.89 0.15 92); border-color: oklch(0.89 0.15 92); color: oklch(0.22 0.06 264); }
.dl-btn .icon { width: 22px; height: 22px; }
.dl-btn span { display: grid; text-align: left; line-height: 1.15; }
.dl-btn small { font-weight: 500; font-size: 12.5px; opacity: .85; margin-top: 3px; }
.dl-alt { margin: 0; font-size: 14px; color: var(--muted); max-width: 46ch; }
.dl-badges { list-style: none; padding: 0; margin: var(--s5) 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-badges li { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); }
.dl-hero > *, .dl-info > *, .dl-steplist > * { min-width: 0; }
.dl-demo { margin: 0; position: relative; padding-bottom: var(--s4); overflow: hidden; }
.dl-demo figcaption { font-size: 12px; color: var(--muted); margin-top: var(--s3); text-align: right; }
.mac-bar { display: flex; align-items: center; gap: 16px; height: 30px; padding: 0 14px; border-radius: var(--radius) 12px 0 0;
           background: color-mix(in srgb, #dde3f3 80%, transparent); font-size: 13px; color: #16204a;
           backdrop-filter: blur(20px); box-shadow: 0 1px 0 #0000000f; }
.mac-apple { width: 12px; height: 14px; border-radius: 40% 40% 45% 45%; background: #16204a; }
.mac-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mac-active { padding: 2px 4px; box-sizing: content-box; border-radius: 4px; background: #16204a22; }
.mac-icon { width: 14px; height: 10px; border-radius: 3px; border: 1.5px solid #16204aaa; }
.mac-menu { margin: 4px 0 0 auto; width: min(340px, 92%); margin-right: 64px; padding: 6px; border-radius: var(--radius);
            background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(24px);
            box-shadow: 0 0 0 1px var(--line), 0 18px 50px oklch(0 0 0 / .22); font-size: 13.5px; }
.mm-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 7px; }
.mm-item:first-child { background: var(--accent); color: var(--on-accent); }
.mm-item:first-child small { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.mm-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; flex: none; }
.mm-text { display: grid; line-height: 1.25; min-width: 0; }
.mm-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-plain { padding: 5px 10px; }
.mm-chev { margin-left: auto; color: var(--muted); }
.mm-dim { color: var(--muted); }
.mm-sep { height: 1px; background: var(--line); margin: 5px 8px; }
.dl-steps { padding-top: var(--s6); padding-bottom: var(--s6); }
.dl-steps h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 0; }
.dl-steplist { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6);
               counter-reset: dl; }
.dl-steplist li { counter-increment: dl; }
.dl-steplist h3 { font: 700 19px/1.2 var(--display); margin: var(--s4) 0 var(--s2); }
.dl-steplist h3::before { content: counter(dl) "  "; color: var(--accent); }
.dl-steplist p { color: var(--ink-2); font-size: 15px; }
.dl-shot { height: 170px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; position: relative; }
.win-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; background: var(--surface-2); font-size: 11px; color: var(--muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.win-bar span { margin: 0 auto; transform: translateX(-20px); }
.dmg-body { display: flex; align-items: center; justify-content: space-around; height: calc(100% - 26px); padding: 0 18px; }
.dmg-app, .dmg-folder { display: grid; justify-items: center; gap: 6px; font-size: 12px; }
.dmg-folder span { width: 52px; height: 40px; border-radius: 6px 6px 8px 8px; background: linear-gradient(#7cb6f2, #4a90e2); position: relative; }
.dmg-folder span::before { content: ""; position: absolute; top: -6px; left: 4px; width: 20px; height: 8px; border-radius: 3px 3px 0 0; background: #7cb6f2; }
.dmg-arrow { flex: 1; max-width: 80px; height: 0; border-top: 2px dashed var(--accent); position: relative; }
.dmg-arrow::after { content: ""; position: absolute; right: -2px; top: -7px; border: 6px solid transparent; border-left: 9px solid var(--accent); border-right: 0; }
.shot-open { display: grid; }
.mini-bar { height: 26px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 12px; background: var(--surface-2); }
.mini-dots { width: 40px; height: 8px; border-radius: 4px; background: var(--line-strong); }
.mini-clock { width: 34px; height: 8px; border-radius: 4px; background: var(--line-strong); }
.open-ring { place-self: center; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft);
             box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.shot-market { padding: 14px; display: grid; gap: 8px; align-content: center; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); font-size: 13px; }
.mk-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.mk-on { background: var(--accent-soft); }
.mk-on em { color: var(--accent-ink); font-weight: 700; }
.dl-note { margin-top: var(--s3); font-size: 14px; background: var(--warn-soft); border-radius: 10px; padding: var(--s3) var(--s4); }
.dl-note summary { cursor: pointer; font-weight: 600; }
.dl-note p { margin: var(--s2) 0 0; }
.dl-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s7); padding-top: var(--s5); }
.dl-req { margin-bottom: var(--s5); }
.dl-hash code { display: block; word-break: break-all; font-size: 12px; padding: 8px 10px; }
.dl-faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.dl-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s; }
.dl-faq details[open] summary::after { transform: rotate(45deg); }
.dl-faq p { margin: var(--s2) 0 0; color: var(--ink-2); }
.dl-notes { padding-top: var(--s5); }
.dl-releases { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); max-width: 760px; }
.dl-rel-head { display: flex; gap: var(--s3); align-items: baseline; }
.dl-rel-head time { color: var(--muted); font-size: 13px; }
.nav-cta { margin-left: var(--s1); }
.nav a.show-sm { display: none; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: var(--s6); align-items: start; }
.docs .toc { position: sticky; top: 84px; font-size: 13px; }
.docs .toc ul { list-style: none; padding-left: 0; margin: 0; }
.docs .toc ul ul { padding-left: var(--s3); }
.docs .toc a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.docs .toc a:hover { color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5);
         border-top: 1px solid var(--line); }

footer.foot { color: var(--muted); font-size: 13px; margin-top: var(--s7); }
footer.foot .wrap { padding-top: var(--s5); padding-bottom: var(--s5); display: flex; gap: var(--s4); justify-content: space-between; flex-wrap: wrap; }

/* ---------- faixa de azulejo, painel e friso ---------- */
.band { background: var(--cobalt); color: var(--on-cobalt); }
.band h1, .band h2 { color: var(--on-cobalt); }
.band .lead, .band .dl-alt, .band figcaption { color: var(--on-cobalt-2); }
.band a { color: var(--on-cobalt); }
.band a:hover { color: var(--yolk); }
.store-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: var(--s7); align-items: center;
              padding-top: var(--s7); padding-bottom: var(--s7); }
.store-hero > * { min-width: 0; }
.store-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--s4); }
.store-hero .lead { font-size: 18px; margin-bottom: var(--s5); max-width: 46ch; }
.store-search { position: relative; display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s4); }
.store-search .icon { position: absolute; left: 18px; width: 20px; height: 20px; color: oklch(0.5 0.05 262); pointer-events: none; }
.store-search input { height: 58px; padding: 0 18px 0 48px; font-size: 17px; border-radius: var(--radius-sm); border: 0;
                      background: var(--glaze); color: oklch(0.23 0.06 264); }
.store-search input::placeholder { color: oklch(0.5 0.05 262); }
.store-search input:focus { box-shadow: 0 0 0 3px var(--yolk); }
.store-search .btn { height: 58px; padding: 0 24px; border-radius: var(--radius-sm); font-size: 15px; }
.hero-alt { margin: 0; font-size: 14px; }
.hero-alt a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--on-cobalt-2); }
.hero-alt a:hover { color: var(--yolk); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--grout);
         border-radius: var(--radius-sm); box-shadow: 0 18px 44px oklch(0 0 0 / .28); }
.tile { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--glaze); color: var(--cobalt); }
.tile.inv { background: var(--cobalt-deep); color: var(--glaze); }
.tile .motif { width: 100%; height: 100%; transform: rotate(calc((var(--r, 0) + var(--t, 0)) * 90deg));
               transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tiles .tile.ornament { cursor: pointer; }
.tiles .tile.ornament:hover { --t: 1; }
.tile.plug { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 8px; text-align: center;
             color: oklch(0.23 0.06 264); text-decoration: none; background: var(--glaze);
             transition: background-color .2s; }
.tile.plug:hover { background: oklch(1 0 0); color: oklch(0.23 0.06 264); }
.tile.plug:focus-visible { outline: 3px solid var(--yolk); outline-offset: -3px; border-radius: 0; }
.tile-ico { font-size: clamp(26px, 3vw, 40px); line-height: 1; margin-bottom: 4px; }
.tile.plug img { width: 44%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 4px; }
.tile.plug b { font: 600 clamp(12px, 1.2vw, 15px)/1.1 var(--display); }
.tile.plug small { font-size: 11px; color: oklch(0.45 0.08 264); }

.frieze { display: flex; gap: 2px; height: 26px; overflow: hidden; background: var(--grout); padding: 2px 0; }
.frieze .tile { flex: none; width: 22px; height: 22px; }
footer.foot .wrap { color: var(--muted); }

@media (max-width: 1100px) {
  .store { grid-template-columns: 180px minmax(0, 1fr); }
  .store-aside { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .store { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s4); }
  .store-rail { position: static; display: flex; overflow-x: auto; gap: var(--s1); margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4) var(--s1); order: 2; scrollbar-width: none; }
  .store-rail::-webkit-scrollbar { display: none; }
  .store-item-meta { display: none; }
  .store-rail a { flex: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 5px 12px; }
  .rail-label { display: none; }
  .store-main { order: 1; display: contents; }
  .sort { order: 1; }
  .store-result, .store-list, .store-empty { order: 3; }
  .store-aside { order: 4; grid-template-columns: 1fr; }
  .store-item, .store-item.is-lead { grid-template-columns: 44px minmax(0, 1fr) auto; padding: var(--s4); gap: var(--s3); }
  .store-item.is-lead .picon, .store-item .picon { width: 44px; height: 44px; --s: 44px; }
  .store-item-price { grid-column: 2; grid-row: 2; }
  .store-item-action { grid-column: 3; grid-row: 1 / span 2; min-width: 0; }
  .store-search .btn { display: none; }
  .store-search input { padding-right: 18px; }
}
@media (max-width: 900px) {
  .store-hero { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s6); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles > :nth-child(n+13) { display: none; }
  .dl-hero, .dl-info { grid-template-columns: 1fr; gap: var(--s6); }
  .dl-hero { padding-top: var(--s6); }
  .dl-steplist { grid-template-columns: 1fr; gap: var(--s6); }
  .mac-menu { margin-right: 12px; }
}
@media (max-width: 640px) {
  .mac-bar > span:not(.mac-right):not(.mac-apple) { display: none; }
  .mac-bar .mac-icon { display: none; }
  .mac-menu { width: auto; margin: 4px 8px 0 24px; }
  .dl-btn { width: 100%; }
  .pp-head { grid-template-columns: auto minmax(0, 1fr); }
  .pp-buy { grid-column: 1 / -1; }
  .pp-body { grid-template-columns: 1fr; gap: var(--s5); }
  .pp-dialog { padding: var(--s5) var(--s4) var(--s6); }
  .pp-dialog .pp-gallery { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); }
  .pp-dialog .gallery { padding-left: var(--s4); padding-right: var(--s4); }
  .creator-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 960px) {
  .with-side, .detail, .docs { grid-template-columns: 1fr; }
  .docs .toc:last-child { display: none; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .side-label { display: none; }
  .buybox { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: var(--s5) var(--s4) var(--s7); }
  .top-inner { padding: 0 var(--s4); gap: var(--s3); }
  .nav a.hide-sm, .top-right .hide-sm { display: none; }
  .nav a.show-sm { display: inline-block; }
  .grid-2 { grid-template-columns: 1fr; }
  .list > li { padding: var(--s3) var(--s4); }
  .table th, .table td { padding-left: var(--s3); padding-right: var(--s3); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles > :nth-child(n+13) { display: none; }
  .top-inner { gap: var(--s2); }
  .wordmark { font-size: 20px; }
  .wordmark img { width: 30px; height: 30px; }
  .nav a { padding: 6px 7px; }
  .top-right .btn.primary { display: none; }
  .store-hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* a demonstração do menu é um objeto do macOS: mantém a tinta própria dentro da faixa */
.band .mac-menu { color: var(--ink); }
.band .mac-menu .mm-item:first-child { color: var(--on-accent); }
.band .dl-badges li { background: oklch(1 0 0 / .12); color: var(--on-cobalt); }
.band .dl-alt a { color: var(--on-cobalt); }
/* lista da loja: rejunte em vez de sombra */
.store-list, .store-aside-block, .pp-buy { box-shadow: none; border-color: var(--line-strong); }
.store-aside-block:last-child { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: var(--on-cobalt); }
.store-aside-block:last-child h2 { color: var(--on-cobalt); }
.store-aside-block:last-child .muted { color: var(--on-cobalt-2); }
.store-aside-block:last-child .btn { background: var(--glaze); border-color: var(--glaze); color: oklch(0.23 0.06 264); }

/* ---------- tema próprio do plugin (cores e capa do autor; o Plugling fica no topo e no rodapé) ---------- */
.pp-hero { height: clamp(140px, 20vw, 240px); border-radius: var(--radius); background: var(--t-bg, var(--cobalt)) center / cover no-repeat;
           margin-bottom: calc(-1 * var(--s7)); }
.pp.themed .pp-hero { background-color: var(--t-bg); }
.pp-hero + .pp-head { position: relative; padding: 0 var(--s5); }
.pp-hero + .pp-head > .picon { box-shadow: 0 0 0 4px var(--bg), 0 6px 18px oklch(0 0 0 / .18); }
.pp-hero + .pp-head .pp-title { padding-top: calc(var(--s7) + var(--s2)); }
.pp.themed .btn.primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-on-accent); }
.pp.themed .btn.primary:hover { filter: brightness(.94); }
.pp.themed .pp-price { color: inherit; }
.pp.themed .perm-list .icon { color: var(--t-accent); }
.pp-dialog .pp-hero { margin-left: calc(-1 * var(--s6)); margin-right: calc(-1 * var(--s6)); margin-top: calc(-1 * var(--s6));
                      border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 640px) {
  .pp-hero + .pp-head { padding: 0 var(--s3); }
  .pp-hero + .pp-head .pp-title { padding-top: 0; }
  .pp-dialog .pp-hero { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); margin-top: calc(-1 * var(--s5)); }
}

/* portal do dev: prévia do tema */
.theme-form .row { align-items: flex-end; }
.theme-form input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.theme-preview { height: 120px; border-radius: var(--radius); background: var(--t-bg, var(--surface-2)) center / cover no-repeat;
                 display: flex; align-items: flex-end; padding: var(--s3); color: var(--t-fg, var(--ink)); }
.theme-preview .btn { background: var(--t-btn, var(--t-accent, var(--accent))); border-color: transparent; color: var(--t-on-btn, var(--t-on-accent, var(--on-accent))); }
