:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --panel: #151922;
  --panel-2: #1c212c;
  --line: #252b38;
  --text: #ece9e2;
  --muted: #8d93a3;
  --faint: #5d6373;
  --accent: #f5b942;
  --accent-ink: #1b1306;
  --ok: #5fd39a;
  --radius: 10px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --sidebar: 260px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(245, 185, 66, .10), transparent 70%),
    var(--bg);
}
.brand { display: flex; align-items: flex-end; gap: 36px; flex-wrap: wrap; }
h1 {
  margin: 0;
  font: 800 clamp(34px, 4vw, 46px)/.9 var(--display);
  letter-spacing: -.03em;
}
h1 span {
  display: block;
  font-weight: 500;
  font-size: .42em;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.stats { display: flex; gap: 28px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 0; font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }

.searchbar { flex: 1 1 340px; max-width: 520px; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
kbd {
  font: 600 12px var(--body);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar) 1fr; align-items: start; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 18px 40px 32px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-head h2 { margin: 0; font: 700 18px var(--display); flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.link:hover { color: var(--accent); }

.facet { border-top: 1px solid var(--line); padding: 14px 0 10px; }
.facet h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facet ul { list-style: none; margin: 0; padding: 0; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  background: none;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.opt:hover { background: var(--panel); }
.opt .box {
  width: 16px; height: 16px; flex: none;
  border: 1.5px solid var(--faint);
  border-radius: 4px;
  display: grid; place-items: center;
}
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .box::after {
  content: ""; width: 8px; height: 4px;
  border: 2px solid var(--accent-ink); border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.opt .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .n { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt.zero { opacity: .38; }
.more { margin-top: 4px; }

.content { min-width: 0; padding: 18px 32px 40px; }

/* ---------- Barra de ferramentas ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  margin-top: -10px;
  background: linear-gradient(var(--bg) 80%, transparent);
}
.segmented { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented button {
  border: 0; background: none; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.segmented button[aria-checked="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.result-count { margin: 0 auto 0 4px; color: var(--muted); font-size: 14px; }
.result-count b { color: var(--text); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 6px; }
select {
  height: 38px;
  padding: 0 34px 0 12px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d93a3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
}
.btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
}
.icon-btn { width: 38px; padding: 0; }
.btn:hover, .icon-btn:hover { border-color: var(--faint); }
.btn svg { width: 18px; height: 18px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.accent:hover { filter: brightness(1.08); }
.actions { display: flex; gap: 8px; }
.only-mobile, .scrim { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 11px;
  background: rgba(245, 185, 66, .12);
  color: var(--accent);
  border: 1px solid rgba(245, 185, 66, .35);
  border-radius: 999px;
  font-size: 13px; cursor: pointer;
}
.pill::after { content: "✕"; font-size: 10px; opacity: .7; padding: 0 3px; }
.pill:hover { background: rgba(245, 185, 66, .2); }

/* ---------- Grade ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 26px 18px;
}
.card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 0; background: none; border: 0; text-align: left;
  cursor: pointer; min-width: 0;
}
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 24px -14px rgba(0,0,0,.9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover .cover, .card:focus-visible .cover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--accent), 0 18px 30px -14px rgba(0,0,0,.95);
}
.card:focus-visible { outline: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.wide img { object-fit: contain; position: relative; }
.cover.wide::before {
  content: ""; position: absolute; inset: -20px;
  background: var(--img) center / cover; filter: blur(18px) brightness(.55);
}

.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 8px;
  padding: 14px 12px;
  background:
    radial-gradient(120% 70% at 100% 0%, hsl(var(--h) 70% 55% / .55), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 45% 20%), hsl(calc(var(--h) + 40) 40% 9%));
}
.ph-title {
  font: 800 19px/1.02 var(--display);
  letter-spacing: -.02em;
  overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.ph-src { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.badge {
  position: absolute; top: 8px;
  font: 700 12px/1 var(--body);
  padding: 5px 7px; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.badge.score { right: 8px; background: rgba(11, 13, 18, .78); font-variant-numeric: tabular-nums; }
.badge.score.hi { color: var(--ok); }
.badge.score.mid { color: var(--accent); }
.badge.score.lo { color: #ef7d6b; }
.badge.played {
  left: 8px; background: var(--ok); color: #06210f;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-name {
  font-weight: 600; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  color: var(--muted); font-size: 12.5px; margin-top: -4px;
}

/* ---------- Selos das lojas ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.st {
  --c: #8d93a3;
  font: 700 10px/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, transparent);
  white-space: nowrap;
}
.st-steam { --c: #66c0f4; }
.st-epic { --c: #e6e6e6; }
.st-gog { --c: #c48af0; }
.st-amazon { --c: #ffa53a; }
.st-playstation { --c: #5b8cff; }
.st-ubisoft-connect { --c: #4fb3ff; }
.st-ea-app { --c: #ff6b6b; }
.st-microsoft-store, .st-xbox, .st-xbox-ms-store { --c: #6fd35a; }
.st-game-pass { --c: #c4f25a; }
.st-nintendo { --c: #ff5f5f; }
.st-legacy-games { --c: #f2d45c; }
.st-riot-games { --c: #ff5a5f; }
.st-battle-net { --c: #3fb0ff; }

.empty { text-align: center; color: var(--muted); padding: 80px 0; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13px;
}

/* ---------- Atualizar ---------- */
.updater { width: min(620px, calc(100vw - 32px)); padding: 26px 28px 22px; }
.updater h2 { margin: 0; font: 800 24px var(--display); letter-spacing: -.02em; }
.u-lead { color: var(--muted); margin: 8px 0 18px; }
.u-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
.u-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; font-weight: 600; }
.u-step-body { padding: 4px 14px 14px; font-size: 14px; }
.u-step-body p { margin: 6px 0; color: var(--muted); }
.updater progress { width: 100%; height: 6px; accent-color: var(--accent); margin-top: 8px; }
.u-status { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.u-status.ok { color: var(--ok); }
.u-status.err { color: #ef7d6b; }
.u-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* ---------- Lojas ---------- */
.l-list { list-style: none; margin: 8px 0 12px; padding: 0; }
/* Cada loja: selo | informações, e os botões embaixo das informações */
.l-row {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 8px 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.l-row:first-child { border-top: 0; }
.l-name { font-size: 11px; padding: 4px 7px; text-align: center; justify-self: stretch; white-space: normal; }
.l-row:not(.on) .l-name { opacity: .55; }
/* Não conectada: o botão Conectar fica na mesma linha */
.l-row:not(.on) { grid-template-columns: 124px minmax(0, 1fr) auto; }
.l-row:not(.on) .l-btns { grid-column: 3; }
.l-info { min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: break-word; }
.l-info b { color: var(--text); font-weight: 600; }
.l-err { display: block; margin-top: 2px; color: #ef7d6b; }
.l-row .btn { height: 32px; }
.l-form { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.l-form ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.l-form li + li { margin-top: 4px; }
.l-form code { font-size: 12px; }
.l-form input, .l-form textarea {
  width: 100%; padding: 8px 10px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical;
  font: 13px/1.4 var(--body); color: var(--text);
}
.l-form input:focus, .l-form textarea:focus { border-color: var(--accent); }
.l-form .btn { justify-self: start; }
.accent-link { color: var(--accent); font-size: inherit; text-decoration: underline; }
.l-sync { width: 100%; height: 42px; }

/* ---------- Entrada e conta ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gate {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(900px 400px at 0% 0%, rgba(245, 185, 66, .10), transparent 70%), var(--bg);
}
.gate-card {
  width: min(400px, 100%); padding: 32px 28px 28px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
}
.gate-card h1 { margin-bottom: 22px; }
.gate-card p { margin: 0 0 10px; }
.btn.google { width: 100%; height: 48px; margin-top: 8px; font-size: 15px; font-weight: 600; }
.btn.google svg { width: 20px; height: 20px; }
.gate-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.gate-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.2em; }

.top { position: relative; }
.account {
  position: absolute; top: 20px; right: 24px;
  width: 38px; height: 38px; padding: 0; overflow: hidden;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; font-weight: 700;
}
.account:hover { border-color: var(--accent); }
.account img { width: 100%; height: 100%; object-fit: cover; }
.top { padding-right: 80px; }
.only-editor { display: none; }
.can-update .only-editor { display: block; }

.c-user { display: flex; flex-direction: column; margin: 12px 0 4px; }
.c-user small, .c-who small { color: var(--muted); font-size: 13px; }
.c-acesso { margin-top: 18px; }
.c-acesso h3 { margin: 0; font: 700 17px var(--display); }
.c-acesso .u-lead { font-size: 14px; margin: 4px 0 12px; }
.c-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.c-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.c-list li:first-child { border-top: 0; }
.c-who { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.c-role { color: var(--accent); font-size: 13px; font-weight: 600; }
.c-list select, .c-form select { height: 34px; padding: 0 30px 0 10px; }
.link.danger:hover { color: #ef7d6b; }
.btn.danger { color: #ef7d6b; margin-right: auto; }
.manual { width: min(460px, calc(100vw - 32px)); }
.manual h2 { margin-bottom: 16px; }
.m-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.m-field input, .m-field select { font: inherit; font-weight: 400; height: 38px; padding: 0 10px; }
.copy .link[data-editar] { font-size: 13px; }
.c-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-form input {
  height: 38px; padding: 0 12px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; outline: 0;
}
.c-form input:focus { border-color: var(--accent); }
.c-form select { height: 38px; }
@media (max-width: 520px) {
  .c-form { grid-template-columns: 1fr; }
  .c-list li { flex-wrap: wrap; }
  .c-who { flex-basis: 100%; }
  .account { top: 16px; right: 16px; }
  .top { padding-right: 16px; }
  .brand { padding-right: 52px; }
}

/* ---------- Detalhe ---------- */
dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--text);
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
dialog::backdrop { background: rgba(4, 5, 8, .78); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.d-hero {
  position: relative;
  height: 300px;
  background: var(--hero, linear-gradient(160deg, hsl(var(--h, 220) 40% 22%), var(--bg-2))) center 30% / cover;
}
.d-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(16, 19, 26, .15), rgba(16, 19, 26, .55) 50%, var(--bg-2));
}
.d-close { position: absolute; top: 14px; right: 14px; background: rgba(11,13,18,.7); backdrop-filter: blur(6px); }
.d-body { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 0 36px 24px; margin-top: -170px; position: relative; }
.d-cover .cover { box-shadow: 0 24px 50px -20px #000; }
.d-kicker { margin: 0 0 6px; color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-shadow: 0 1px 8px #000; }
#d-title { margin: 0; font: 800 clamp(28px, 3.4vw, 42px)/1 var(--display); letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.d-credits { margin: 10px 0 0; color: var(--muted); }
.d-credits b { color: var(--text); font-weight: 500; }
.d-credits button { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
.d-credits button:hover { color: var(--accent); }

.d-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px; margin: 22px 0 18px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--panel); padding: 10px 14px; margin: 0; }
.fact dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fact dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.feat { background: transparent; }

.copies { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.copy {
  display: grid;
  grid-template-columns: 110px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--panel);
  font-size: 13.5px;
}
.copy + .copy { border-top: 1px solid var(--line); }
.copy .st { font-size: 11px; padding: 4px 7px; }
.copy-plat, .copy-added { color: var(--muted); }
.copy-status.ok { color: var(--ok); font-weight: 600; }
.copy-time { font-variant-numeric: tabular-nums; }
.copy-origem {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--text); background: var(--panel, transparent);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; cursor: pointer; color-scheme: dark;
}
.copy-origem:disabled { opacity: .6; cursor: wait; }

.d-main h3 { font: 700 16px var(--display); margin: 26px 0 10px; }
.prose { color: #c9c7c0; line-height: 1.65; overflow-wrap: anywhere; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font: 700 17px var(--display); color: var(--text); margin: 22px 0 8px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); }
.prose.loading { color: var(--faint); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  padding: 6px 12px; border-radius: 8px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13.5px;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

.d-nav {
  position: sticky; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 12px 36px;
  background: linear-gradient(transparent, var(--bg-2) 40%);
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .top { padding: 20px 16px 16px; }
  .brand { gap: 18px; }
  .stats { gap: 18px; }
  .stats dd { font-size: 19px; }
  .layout { display: block; }
  .content { padding: 14px 16px 32px; }
  .only-mobile { display: inline-flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    width: min(320px, 86vw);
    background: var(--bg-2);
    padding: 18px 20px 40px;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  body.filters-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.filters-open .scrim { opacity: 1; pointer-events: auto; }
  .result-count { order: 5; width: 100%; margin: 0; }
  .segmented button { padding: 6px 10px; font-size: 13px; }
  .toolbar { position: static; margin-top: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 10px; }
  .card-name { font-size: 13px; }
  .ph-title { font-size: 13.5px; }
  .d-hero { height: 200px; }
  .d-body { grid-template-columns: 1fr; padding: 0 18px 20px; margin-top: -120px; gap: 18px; }
  .d-cover { width: 130px; }
  .d-nav { padding: 10px 18px; }
  .copy { grid-template-columns: auto 1fr auto; gap: 4px 10px; }
  .copy-plat { grid-column: 2; }
  .copy-added { grid-column: 1 / -1; font-size: 12px; }
  .copy-time:empty { display: none; }
}
@media (max-width: 520px) {
  .sort { flex: 1; }
  .sort select { flex: 1; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Lojas: botões, avisos e caixas de marcar */
.l-btns { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.l-btns:empty { display: none; }
.l-note { margin: 0; color: var(--muted); font-size: 13px; }
.l-checks { display: grid; gap: 6px; font-size: 14px; }
.l-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Conta: backup */
.c-backup { margin-top: 18px; }
.c-backup h3 { margin: 0; font: 700 17px var(--display); }
.c-backup .u-lead { font-size: 14px; margin: 4px 0 10px; }
.c-backup-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.c-restore { margin-top: 16px; }
.c-restore h3 { margin: 0; font: 700 15px var(--display); }
.c-restore label.btn { cursor: pointer; }
.c-seen { font-size: 12px; }
@media (max-width: 520px) {
  .l-row, .l-row:not(.on) { grid-template-columns: 1fr; }
  .l-name { justify-self: start; }
  .l-btns, .l-row:not(.on) .l-btns { grid-column: 1; }
}
