/* POOLSTACK AI — estilos
   Direção: chão preto, tinta branca, acento ciano #93f1f7, verde-limão só para "novo".
   Tipo: Geist + Geist Mono. Raio quase reto. Linhas finas no lugar de sombras. */

:root {
  --bg: #000;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --ink: #fff;
  --ink-2: #d6d6d6;
  --muted: #999;
  --faint: #6b6b6b;
  --accent: #93f1f7;
  --accent-ink: #000;
  --new: #9ae187;
  --danger: #ff8a7a;
  --r: 3px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100dvh; overflow-x: clip; touch-action: manipulation;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--r); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- marca ---------- */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 22px; height: 22px; flex: none; }
.mark b { font-weight: 600; letter-spacing: 0.04em; font-size: 14px; }
.mark i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent-ink);
  background: var(--accent); padding: 1px 5px; border-radius: 2px; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid transparent; font-weight: 500; font-size: 14px; text-decoration: none;
  transition: transform .12s var(--ease), background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--muted); padding: 0 10px; }
.btn-danger { background: transparent; border-color: #4a2723; color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) {
  .btn-primary:hover { background: #b6f6fa; }
  .btn-ghost:hover { border-color: #4a4a4a; background: var(--surface-2); }
  .btn-quiet:hover { color: var(--ink); }
  .btn-danger:hover { border-color: var(--danger); }
}

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field small { color: var(--faint); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; font-size: 16px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .15s, background-color .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: #080808; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.err:empty { display: none; }
.field small.ok { color: var(--new); } .field small.err { color: var(--danger); }
.ok { color: var(--new); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw button { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; background: transparent;
  color: var(--muted); font-size: 13px; border-radius: 2px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.meter i { height: 3px; background: var(--line-2); border-radius: 2px; transition: background-color .2s; }
.meter[data-n="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-n="2"] i:nth-child(-n+2) { background: #f2c46b; }
.meter[data-n="3"] i:nth-child(-n+3) { background: var(--accent); }
.meter[data-n="4"] i { background: var(--new); }

/* ---------- tela de entrada ---------- */
.gate { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.gate-art { position: relative; padding: 40px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line); overflow: hidden; }
.gate-kinds { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gate-index { list-style: none; margin: 40px 0 0; padding: 0; columns: 2; column-gap: 32px; max-width: 720px; }
.gate-index li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gate-index li b { font-family: var(--mono); font-weight: 400; color: var(--faint); font-size: 12px; }
.gate-foot { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.gate-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 4vw, 56px);
  background: var(--surface); }
.gate-panel h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.gate-panel p.lead { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 16px; max-width: 420px; width: 100%; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.notice { border: 1px solid var(--line-2); border-left: 2px solid var(--accent); padding: 14px 16px; border-radius: var(--r);
  font-size: 14px; color: var(--ink-2); background: #050505; }
.notice.bad { border-left-color: var(--danger); }

/* entrada suave, uma vez */
.enter > * { animation: up .6s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .06s; }
.enter > *:nth-child(3) { animation-delay: .12s; }
.enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* ---------- cabeçalho do app ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r); text-decoration: none;
  color: var(--muted); font-size: 14px; transition: color .15s, background-color .15s; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
/* aviso de cadastros pendentes */
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: var(--new); color: #000; font: 600 11px/1 var(--mono); }
.pend-tab { color: var(--new); font-family: var(--mono); font-size: 12px; }
.pend-card { border-color: #3d5a35; margin-bottom: 30px; }
.pend-card h3 { color: var(--new); }
.pend-list { list-style: none; margin: 0; padding: 0; }
.pend-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pend-nome { font-weight: 500; }
.pend-aviso { margin-top: 4px; font-size: 12.5px; color: #f2c46b; }
.pend-list .acts { display: flex; gap: 8px; }
.who { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- catálogo ---------- */
.head { padding: 44px 0 26px; border-bottom: 1px solid var(--line); }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px; align-items: end; }
.head h1 { margin: 0; font-weight: 500; font-size: clamp(32px, 3.7vw, 54px); line-height: 1; letter-spacing: -0.045em; }
.head h1 em { display: block; font-style: normal; color: var(--faint); }
.head p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.search { position: relative; }
.search .input { min-height: 54px; padding-left: 46px; padding-right: 48px; font-size: 17px; background: var(--surface); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px;
  color: var(--faint); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 7px; }
.types { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-size: 13px; color: var(--ink-2); transition: all .15s; }
.chip b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.chip[aria-pressed="true"] b { color: #555; }
.chip-cat, .chip-sep { display: none; }
.chip-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line-2); }
@media (hover: hover) { .chip:hover { border-color: #555; } }

.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 30px; padding-bottom: 80px; }
.cats { position: sticky; top: 84px; align-self: start; max-height: calc(100dvh - 100px); overflow: auto; }
.cats h2, .sec-h { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cats ol { list-style: none; margin: 0; padding: 0; }
.cats button { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; width: 100%; text-align: left; min-height: 40px;
  padding: 8px 8px; border: 0; background: transparent; border-radius: var(--r); font-size: 13.5px; color: var(--muted);
  line-height: 1.3; transition: color .15s, background-color .15s; }
.cats button span:first-child, .cats button span:last-child { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.cats button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }
.cats button[aria-pressed="true"] span:first-child { color: var(--accent); }
@media (hover: hover) { .cats button:hover { color: var(--ink); } }

.recent { margin-bottom: 36px; }
.recent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rcard { position: relative; display: block; aspect-ratio: 1200 / 630; padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--surface-2); transition: border-color .15s, transform .15s; min-width: 0; }
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard .badge { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 10px #0008; }
.rcard .badge.atualizado, .rcard .badge.nota { background: #000c; }
.rnome { display: none; }
.rcard.sem-img .rnome { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 34px 12px 12px;
  text-align: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.rmeta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.badge { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 2px; }
.badge.novo { background: var(--new); color: #000; }
.badge.atualizado { border: 1px solid var(--accent); color: var(--accent); }
.badge.nota { border: 1px solid var(--line-2); color: var(--ink-2); }
@media (hover: hover) { button.rcard:hover { border-color: var(--line-2); transform: translateY(-2px); } }
button.rcard:active { transform: scale(.98); }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
.list-head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.list-head .select { width: auto; min-height: 36px; padding: 6px 34px 6px 10px; font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; width: 100%; padding: 14px 6px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: background-color .15s; }
.row .n { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.row .n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .host { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.row .d { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row .side { display: flex; gap: 8px; align-items: center; }
.row .cat { font-size: 12px; color: var(--faint); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .row:hover { background: var(--surface); } .row:hover .ico { transform: scale(1.04); } }

.tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 2px;
  border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag[data-t="MCP"] { border-color: #2d5c60; color: var(--accent); }
.tag[data-t="Skill"] { border-color: #3d5a35; color: var(--new); }
.tag[data-t="Agent"] { border-color: #5c4a2d; color: #f2c46b; }
.tag[data-t="App"] { border-color: #4a4a4a; color: var(--ink); }

.ico { width: 36px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font: 500 14px var(--mono); color: var(--muted); transition: transform .2s var(--ease); }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.lg { width: 56px; height: 56px; border-radius: 10px; font-size: 20px; }

.more { display: flex; justify-content: center; padding: 28px 0 0; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-weight: 500; font-size: 18px; margin-bottom: 6px; }

/* ---------- painel lateral (detalhe / editor) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface);
  border-left: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(24px); opacity: 0;
  transition: transform .26s var(--ease), opacity .2s; }
.drawer.on { transform: none; opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.drawer-body { overflow: auto; padding: 26px 24px calc(32px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.det-h { display: flex; gap: 16px; align-items: center; }
.det-h h2 { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; word-break: break-word; }
.det-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.det-p { margin: 22px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.det-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.det-notes p { margin: 8px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; word-break: break-word; }
.lnk { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.det-url { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); word-break: break-all; }
.det-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.det-meta { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: grid; gap: 4px; }

/* ---------- páginas internas ---------- */
.page { padding-top: 40px; padding-bottom: 90px; }
.page-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-h h1 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.page-h p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 130px 96px minmax(0, 1fr) 220px; grid-template-areas: "q b t c" "q b x c"; grid-template-rows: auto 1fr; column-gap: 20px; row-gap: 4px;
  align-items: start; padding: 16px 6px; border-bottom: 1px solid var(--line); }
.tl-q { grid-area: q; padding-top: 3px; } .tl-b { grid-area: b; padding-top: 2px; } .tl-t { grid-area: t; } .tl-x { grid-area: x; }
.tlcapa { grid-area: c; display: block; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.tlcapa { position: relative; }
.tlcapa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tl time { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tl .t { font-weight: 500; }
.tl .x { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tl button.t { border: 0; background: none; padding: 0; text-align: left; font-size: 15px; }
@media (hover: hover) { .tl button.t:hover { color: var(--accent); } }

.tabs { display: flex; gap: 2px; margin: 22px 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.grid2 { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px; }
.card h3 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint);
  padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.mono { color: var(--muted); }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.st { font-family: var(--mono); font-size: 11.5px; }
.st.on { color: var(--new); } .st.off { color: var(--faint); } .st.bad { color: var(--danger); }
.linkbox { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px dashed #2d5c60; border-radius: var(--r); background: #03090a; }
.linkbox code { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--accent); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 340px; min-height: 42px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 12px);
  background: var(--ink); color: #000; padding: 11px 16px; border-radius: var(--r); font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.loading { min-height: 60dvh; display: grid; place-items: center; color: var(--faint); font-family: var(--mono); font-size: 12px; }

/* ---------- telas menores ---------- */
@media (max-width: 1080px) {
  .cat-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .rcard:nth-child(3n) { border-right: 1px solid var(--line); }
  .rcard:nth-child(2n) { border-right: 0; }
  .rcard:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .rcard:nth-last-child(-n+2) { border-bottom: 0; }
  .row .cat { display: none; }
}
@media (max-width: 900px) {
  .recent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate { grid-template-columns: 1fr; }
  .gate-art { border-right: 0; border-bottom: 1px solid var(--line); padding-top: calc(28px + env(safe-area-inset-top)); }
  .gate-index { display: none; }
  .gate-foot { margin-top: 18px; gap: 4px 16px; }
  .gate-foot p { margin: 0; }
  .gate-panel { justify-content: flex-start; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .head-row { grid-template-columns: 1fr; gap: 20px; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; }
  .cat-layout > * { min-width: 0; }
  .cats { display: none; }
  .chip-cat { display: inline-flex; }
  .chip-sep { display: block; }
  .types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 18px calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
  .types::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr) 46%; grid-template-areas: "q c" "b c" "t c" "x x"; grid-template-rows: auto auto 1fr auto; column-gap: 14px; row-gap: 6px; }
  .tl:not(.com-capa) { grid-template-areas: "q q" "b b" "t t" "x x"; }
  .tl-x { margin-top: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top .wrap { gap: 10px; height: 56px; }
  .who { display: none; }
  .nav a { padding: 0 9px; font-size: 13.5px; }
  .head { padding: 26px 0 18px; }
  .search kbd { display: none; }
  .recent-row { gap: 10px; }
  .rcard .badge { left: 7px; top: 7px; font-size: 9.5px; }
  .rcard, .rcard:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .rcard:last-child { border-bottom: 0; }
  .row { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .row .thumb, .row > span:empty { display: none; }
  .row .side { display: none; }
  .row .d { -webkit-line-clamp: 2; }
  .drawer { width: 100vw; border-left: 0; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { padding: 0; border: 0; }
  .table td.wide { grid-column: 1 / -1; }
  .table .acts { justify-content: flex-start; grid-column: 1 / -1; margin-top: 6px; }
  .btn-block-sm { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* capa do projeto */
.thumb { display: block; width: 96px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det-fig { margin: -26px -24px 22px; background: #050505; border-bottom: 1px solid var(--line); }
.det-capa { display: flex; justify-content: center; max-height: 320px; overflow: hidden; }
.det-capa img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; }
.det-fig figcaption { font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 8px 24px; border-top: 1px solid var(--line); }

/* avaliação: estrela colorida pela saúde do projeto */
.estrela { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; font: 600 11px/1 var(--mono); white-space: nowrap;
  color: var(--st); background: color-mix(in srgb, var(--st) 14%, transparent); border: 1px solid color-mix(in srgb, var(--st) 45%, transparent); }
.estrela[data-s="boa"] { --st: #ffd23f; }
.estrela[data-s="atencao"] { --st: #ff9a2e; }
.estrela[data-s="ruim"] { --st: #ff4d4d; }
.estrela[data-s="sem"] { --st: #8a8a8a; }
.estrela .est-i { font-size: 1.15em; line-height: 1; }
.estrela .est-r { font-size: 1em; }
.estrela.g { font-size: 13px; padding: 5px 10px; }
.estrela.no-card { position: absolute; right: 10px; top: 10px; background: #000c; box-shadow: 0 2px 10px #0008; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-row .sec-h { margin: 0; }
.aval { margin-top: 10px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.aval b { font-weight: 600; }
.aval[data-s="boa"] b { color: #ffd23f; }
.aval[data-s="atencao"] b { color: #ff9a2e; }
.aval[data-s="ruim"] b { color: #ff4d4d; }
.aval[data-s="sem"] { color: var(--muted); font-size: 13px; }
.aval .dec { color: var(--new); font-weight: 500; }
.aval .muted { color: var(--faint); font-size: 12px; }
@media (max-width: 640px) { .estrela.no-card { right: 7px; top: 7px; font-size: 9.5px; padding: 2px 6px; } }
.estrela.so-cel { display: none; }
@media (max-width: 640px) {
  .row .n { align-items: center; }
  .row .n .host { display: none; }
  .row .n .estrela.so-cel { display: inline-flex; flex-shrink: 0; margin-left: auto; font-size: 10px; padding: 2px 6px; overflow: visible; }
  .row .n .estrela.so-cel span { overflow: visible; }
}

/* Admin → Limites */
.nbadge.lim { background: #ff9a2e; color: #111; }
.nbadge.lim[data-nivel="critico"] { background: #ff4d4d; color: #fff; }
.lim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
@media (max-width: 640px) { .lim-grid { grid-template-columns: 1fr; } }
.lim-card { --c: #4ade80; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; background: color-mix(in srgb, var(--c) 4%, transparent); }
.lim-card[data-nivel="medio"] { --c: #ffd23f; }
.lim-card[data-nivel="alto"] { --c: #ff9a2e; }
.lim-card[data-nivel="critico"] { --c: #ff4d4d; }
.lim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lim-pct { font: 600 13px/1 var(--mono); color: var(--c); }
.lim-val { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lim-val .muted { font-size: 14px; font-weight: 400; }
.lim-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #ffffff10); overflow: hidden; }
.lim-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.lim-sub { font-size: 12.5px; }
.lim-alerta { border: 1px solid #ff9a2e88; background: #ff9a2e14; color: var(--ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.lim-nota { margin-top: 16px; font-size: 13px; }
.lim-tg { margin-top: 22px; padding: 16px; display: grid; gap: 10px; }

/* galeria de imagens do projeto: carrossel só para ver */
.gal { display: flex; gap: 10px; overflow-x: auto; margin: 20px -24px 0; padding: 2px 24px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gal-it { flex: 0 0 82%; max-width: 420px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 10px; background: #050505; overflow: hidden; }
.gal-it img { display: block; width: 100%; height: 210px; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.det-p + .det-p { margin-top: 14px; }
.det-aval { margin-top: 20px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.det-aval + .det-p { margin-top: 14px; }

/* ---------- favoritos ---------- */
.fav-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--faint);
  cursor: pointer; border-radius: 999px; transition: color .15s, transform .12s var(--ease); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: #ff7a8a; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn:active { transform: scale(.9); }
@media (hover: hover) { .fav-btn:hover { color: var(--ink); } .fav-btn[aria-pressed="true"]:hover { color: #ff7a8a; } }
.rows li.has-fav { position: relative; }
.rows li.has-fav .row { padding-right: 50px; }
.fav-btn.na-linha { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; }
.fav-btn.na-linha:active { transform: translateY(-50%) scale(.9); }
.det-fav { margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fav-toggle svg { width: 16px; height: 16px; margin-right: 6px; }
.fav-toggle[aria-pressed="true"] svg { fill: currentColor; }
.fav-listas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.fav-listas .check { min-height: 40px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fav-dica { font-size: 13px; margin: 12px 0 0; }
.nova-lista { display: flex; gap: 8px; margin-top: 12px; }
.nova-lista .input { min-height: 40px; padding: 8px 12px; }
.nova-lista .btn { min-height: 40px; }
.fav-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.fav-acoes:empty { display: none; }
.chip-add { border-style: dashed; color: var(--muted); }
.page .nova-lista { max-width: 440px; margin: 14px 0 0; }

/* ---------- barra de abas (celular) ---------- */
.tabbar { display: none; }
.admin-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; border-color: var(--line-2); }
.admin-card h3 { margin: 0 0 4px; }
.nav a .nbadge { margin-left: 6px; }
@media (max-width: 760px) {
  .top .nav { display: none; }
  .top .who { display: inline; margin-left: auto; }
  #conteudo { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(8, 8, 8, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
    color: var(--muted); text-decoration: none; font-size: 11px; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a:active { background: var(--surface-2); }
  .tab-ico { position: relative; display: inline-grid; place-items: center; }
  .tab-ico svg { width: 23px; height: 23px; }
  .tab-ico .nbadge { position: absolute; top: -6px; left: 13px; margin: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .tab-ico .nbadge.lim { left: -15px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- topo: vitrine ---------- */
.head { background: radial-gradient(120% 90% at 50% -30%, rgba(147, 241, 247, .16), rgba(147, 241, 247, .04) 45%, transparent 72%); }
.head h1 em { display: inline; color: var(--accent); }
@media (max-width: 640px) {
  .head h1 { font-size: 40px; line-height: 1.04; }
  .head p { margin-top: 12px; }
  .recent-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 4px; }
  .recent-row::-webkit-scrollbar { display: none; }
  .recent-row .rcard { flex: none; width: min(78vw, 300px); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; }
  .recent-row .rcard:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- mascote e logo animados ---------- */
.mascote { position: relative; display: block; width: 118px; flex: none; pointer-events: none; }
.mascote img { position: relative; display: block; width: 100%; height: auto; animation: m-float 6s ease-in-out infinite; }
.m-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 140, 255, .55), rgba(147, 241, 247, .18) 55%, transparent 75%);
  filter: blur(14px); animation: m-pulse 4.5s ease-in-out infinite; }
.m-tw { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px 3px #93f1f7; opacity: 0; animation: m-tw 3.2s ease-in-out infinite; }
.m-tw.t1 { left: 13%; top: 26%; }
.m-tw.t2 { right: 9%; top: 18%; background: #ffd9a0; box-shadow: 0 0 9px 3px #ffa94d; animation-delay: 1.1s; }
.m-tw.t3 { left: 46%; bottom: 8%; background: #e4d8ff; box-shadow: 0 0 9px 3px #b79bff; animation-delay: 2.1s; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes m-pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes m-tw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes m-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.head-top { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; animation: m-in .7s var(--ease, ease-out) both; }
.head-stats { display: flex; gap: 22px; }
.head-stats div { display: grid; gap: 2px; }
.head-stats b { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.head-stats span { font: 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.mascote.mini { width: 96px; margin: 0 auto 10px; }
.empty .mascote.mini { display: block; }
.loading { flex-direction: column; gap: 14px; align-content: center; justify-items: center; }
.load-logo { width: 84px; height: auto; animation: m-float 3s ease-in-out infinite, m-pulse 2.4s ease-in-out infinite; }
@media (min-width: 1000px) {
  .head .wrap { position: relative; }
  .head-top { position: absolute; right: var(--pad); top: -26px; margin: 0; }
  .head-top .head-stats { display: none; }
  .head-top .mascote { width: 250px; }
  .head-row { padding-right: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  /* a regra geral desliga tudo; logo e mascote seguem com efeito suave (flutuar devagar + brilho) */
  .mascote img, .gb-ascii, .gb-icone img { animation: m-float-suave 6s ease-in-out infinite, gb-brilho 4s ease-in-out infinite !important; }
  .m-glow { animation: m-pulse 4.5s ease-in-out infinite !important; }
  .m-tw { animation: m-tw 3.2s ease-in-out infinite !important; }
  .load-logo { animation: m-pulse 2.4s ease-in-out infinite !important; }
}
@keyframes m-float-suave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- login refinado ---------- */
.gate-top { display: flex; flex-direction: column; align-items: stretch; }
.gate-brand { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; margin-top: clamp(4px, 2vh, 24px); }
.gb-icone { position: relative; display: block; width: clamp(140px, 40vw, 210px); margin-bottom: -6px; }
.gb-icone img { position: relative; display: block; width: 100%; height: auto; animation: m-float 5s ease-in-out infinite, gb-brilho 4s ease-in-out infinite; }
.gb-icone .m-glow { inset: 0 8% 6%; }
.gb-ascii { position: absolute; left: 0; top: 0; width: 100%; display: none; animation: m-float 5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); }
.gb-icone.ascii-on .gb-ascii { display: block; }
.gb-icone.ascii-on img { visibility: hidden; }
.gb-icone.ascii-on { width: clamp(190px, 58vw, 290px); }
.gb-texto { display: block; width: clamp(170px, 50vw, 260px); height: auto; animation: m-in .7s var(--ease, ease-out) .1s both; }
@keyframes gb-brilho { 0%, 100% { filter: drop-shadow(0 0 6px rgba(147, 241, 247, .25)) brightness(1); } 50% { filter: drop-shadow(0 0 18px rgba(147, 241, 247, .55)) brightness(1.12); } }
.gate-tag { margin: clamp(22px, 4vh, 40px) 0 0; font-weight: 600; font-size: 34px; line-height: 1.05; letter-spacing: -.045em; white-space: nowrap; }
.gate-tag span { color: var(--accent); }
.gate-kinds { margin: 12px 0 0; }
.gate-top > * { animation: m-in .7s var(--ease, ease-out) both; }
.gate-top > :nth-child(3) { animation-delay: .08s; } .gate-top > :nth-child(4) { animation-delay: .16s; }
.gate-panel .field > span { color: var(--muted); font-weight: 400; }
.gate-panel .input { min-height: 50px; padding-left: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.gate-panel .input:focus { background: transparent; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.gate-panel .pw .input { padding-right: 84px; }
.gate-panel .pw button { right: 0; top: 6px; bottom: 6px; border-radius: 999px; }
.form.login .form-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
.form.login .btn-primary { min-height: 52px; font-size: 16px; border-radius: 999px; background: linear-gradient(90deg, #93f1f7, #8fa8ff); }
.form.login .btn-quiet { min-height: 44px; font-size: 14px; }
.form.login > .muted { text-align: center; }
@media (max-width: 900px) {
  .gate-art { border-bottom: 0; padding-bottom: 8px; }
  .gate-panel { background: transparent; padding-top: 12px; }
  .form.login > h2, .form.login > .lead { display: none; }
  .gate-bottom { display: none; }
  .form { max-width: none; }
}
@media (min-width: 901px) { .gate-art { justify-content: flex-start; gap: 0; } .gate-bottom { margin-top: auto; } }
.gate-kinds { text-align: center; }

/* "Explore. Conecte. Crie." em uma linha, de ponta a ponta */
.head h1.tag-linha { white-space: nowrap; line-height: 1.05; }
.head h1.tag-linha em { display: inline; }
.head-row > div { min-width: 0; }
@media (max-width: 900px) { .head-row { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .head-row { grid-template-columns: minmax(0, 1fr); gap: 18px; } .head-row .search { max-width: 560px; } }
/* logo ASCII no topo do catálogo */
.gb-icone.gb-topo { width: 118px; flex: none; margin: 0; }
@media (min-width: 1000px) { .gb-icone.gb-topo { width: 180px; } .head-top:has(.gb-topo) { top: -14px; } .head-row { padding-right: 230px; } }
.head h1.tag-linha { overflow: visible; }

/* linha do catálogo: capa à esquerda, sem a categoria */
.row { grid-template-columns: 96px minmax(0, 1fr) auto; }
.row .thumb { width: 96px; height: 54px; }
.thumb.thumb-ico { display: grid; place-items: center; }
.thumb.thumb-ico .ico { width: 30px; height: 30px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .row .thumb { display: block; width: 72px; height: 42px; }
  .row .thumb.thumb-ico { display: grid; }
  .thumb.thumb-ico .ico { width: 26px; height: 26px; }
}

/* linha: banner maior, resumo em até 3 linhas, estrelas e tipo em colunas fixas */
.row { grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; }
.row .thumb { width: 128px; height: 72px; }
.row .d { -webkit-line-clamp: 3; line-height: 1.45; margin-top: 4px; }
.row .side { display: grid; grid-template-columns: 92px 104px; gap: 8px; align-items: center; }
.row .side .estrela { justify-content: center; justify-self: stretch; }
.row .side .tag { justify-content: center; }
@media (max-width: 760px) {
  .row { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .row .thumb { width: 92px; height: 52px; margin-top: 2px; }
  .row .side { display: none; }
  .row .d { -webkit-line-clamp: 3; }
}
.thumb canvas { width: 100%; height: 100%; display: block; }

/* ---------- capa rotativa do detalhe ---------- */
.det-capa.rot { position: relative; display: block; aspect-ratio: 1200 / 630; max-height: 340px; width: 100%; overflow: hidden; touch-action: pan-y; }
.det-capa.rot img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; opacity: 0; transition: opacity .8s ease; -webkit-user-drag: none; user-select: none; }
.det-capa.rot img.on { opacity: 1; }
.rot-pontos { display: flex; justify-content: center; gap: 2px; padding: 6px 0 2px; }
.rot-pontos[hidden] { display: none; }
.rot-pontos button { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.rot-pontos button::after { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .3s, background .3s; }
.rot-pontos button[aria-current="true"]::after { width: 16px; background: var(--accent); }

/* ---------- janelinha de listas ao lado do coração ---------- */
.pop-fav { position: fixed; z-index: 400; width: 220px; background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 12px 40px #000c; padding: 8px; animation: m-in .18s ease-out both; }
.pf-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 4px 6px 8px; }
.pf-listas { list-style: none; margin: 0; padding: 0 2px 0 0; max-height: 216px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pf-listas::-webkit-scrollbar { width: 6px; } .pf-listas::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; }
.pf-it { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px;
  border: 0; border-radius: 6px; background: none; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; text-align: left; cursor: pointer; }
.pf-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ok { width: 16px; height: 16px; flex: none; color: var(--accent); opacity: 0; }
.pf-ok svg { width: 16px; height: 16px; display: block; }
.pf-it[aria-pressed="true"] .pf-ok { opacity: 1; }
.pf-it:active { background: var(--surface-2); }
@media (hover: hover) { .pf-it:hover { background: var(--surface-2); } }
.pf-vazio { color: var(--muted); font-size: 13px; margin: 0; padding: 6px 8px; }
.pf-pe { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; display: grid; gap: 2px; }
.pf-nova, .pf-tirar { min-height: 36px; border: 0; border-radius: 6px; background: none; text-align: left; padding: 0 8px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; }
.pf-nova { color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.pf-tirar { color: var(--faint); font-size: 12.5px; }
@media (hover: hover) { .pf-nova:hover, .pf-tirar:hover { background: var(--surface-2); } }
.pf-form { display: flex; gap: 6px; padding: 4px 2px; }
.pf-form .input { min-height: 36px; font-size: 16px; padding: 0 8px; min-width: 0; }
.pf-form .btn { min-height: 36px; padding: 0 10px; }
.det-fav .fav-dica { margin: 4px 0 0; font-size: 12.5px; }
.fav-toggle[aria-pressed="true"] svg { color: #ff4d5e; fill: #ff4d5e; }
.fav-btn[aria-pressed="true"] { color: #ff4d5e; }
.pf-h { display: flex; justify-content: flex-end; padding: 0 0 4px; }
.pf-remover { min-height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: #ff4d5e; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
@media (hover: hover) { .pf-remover:hover { background: #ff4d5e1a; } }
.fav-toggle { letter-spacing: .04em; }
.fav-toggle[aria-pressed="false"] svg { color: var(--faint); fill: none; }

/* ---------- admin: membros ---------- */
.table.membros .ap-cel { font-size: 12.5px; min-width: 260px; }
.ap-linha { line-height: 1.5; white-space: nowrap; }
.ap-linha b { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; display: inline-block; min-width: 52px; }
.st.warn { color: #ffb347; }
.btn-menu { min-width: 84px; text-transform: uppercase; letter-spacing: .04em; }
.menu-membro { position: fixed; z-index: 450; min-width: 200px; background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px; box-shadow: 0 12px 40px #000c; animation: m-in .15s ease-out both; }
.menu-membro button { display: block; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left;
  font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.menu-membro button.perigo { color: #ff4d5e; }
@media (hover: hover) { .menu-membro button:hover { background: var(--surface-2); } }
.menu-membro hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.modal-fundo { position: fixed; inset: 0; z-index: 500; background: #000a; display: grid; place-items: center; padding: 16px; animation: m-in .15s ease-out both; }
.modal { width: min(420px, 100%); background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; }
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.modal .form-actions { justify-content: flex-end; }
.criar-usuario { margin: 0 0 18px; max-width: 520px; }
@media (max-width: 760px) { .table.membros .ap-cel { min-width: 0; } .ap-linha { white-space: normal; } }
.ajuda-link { margin-top: 18px; font-size: 13.5px; text-align: center; }
.ajuda-link a { color: var(--accent); }
.ajuda-card { border-color: #ffb34766; }
.ajuda-msg { margin-top: 6px; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.ajuda-card a { color: var(--accent); }

/* logo no topo: brilho leve passando de tempos em tempos */
.mark-logo .ml-img { position: relative; display: block; line-height: 0; }
.mark-logo img { display: block; width: 136px; height: auto; animation: ml-entra .6s ease-out both; }
.mark-logo .ml-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(img/logo-nav.webp?v=202611301312) center / 100% 100% no-repeat; mask: url(img/logo-nav.webp?v=202611301312) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(147, 241, 247, .95) 47%, rgba(255, 179, 71, .85) 53%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; animation: ml-brilho 6s ease-in-out 1.2s infinite; }
@keyframes ml-brilho { 0% { background-position: 130% 0; } 30%, 100% { background-position: -30% 0; } }
@keyframes ml-entra { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .mark-logo:hover img { filter: drop-shadow(0 0 8px rgba(147, 241, 247, .45)); } }
@media (max-width: 760px) { .mark-logo img { width: 122px; } }
@media (prefers-reduced-motion: reduce) { .mark-logo .ml-img::after { animation: ml-brilho 6s ease-in-out 1.2s infinite !important; } }
/* gancho: a frase curta que chama para o item */
.row .d.gancho { color: var(--ink); font-size: 14.5px; line-height: 1.45; -webkit-line-clamp: 2; }
.det-gancho { margin: 6px 0 14px; font-size: 16.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.estrela.fora { --st: #8fa8ff; justify-content: center; letter-spacing: .04em; }
/* limites: contador do ciclo */
.lim-ciclo { margin-bottom: 16px; }
.lim-ciclo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lim-ciclo-n { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.lim-ciclo-n span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.lim-ciclo-dia { display: flex; align-items: center; gap: 8px; }
.lim-ciclo-dia .input { min-height: 38px; font-size: 16px; }
.lim-zera { margin-top: 6px; font-size: 12.5px; color: var(--accent); font-family: var(--mono); }
.lim-zera.fixo { color: var(--faint); }
/* a miniatura que ainda vai carregar começa vazia: não pode sumir no celular */
@media (max-width: 760px) { .row > .thumb, .row > .thumb:empty { display: block; } .row > .thumb.thumb-ico { display: grid; } }
.row > .thumb:empty { background: var(--surface-2); }

/* ---------- telas largas (PC): aproveita a largura ---------- */
@media (min-width: 1400px) {
  .top .wrap, .head .wrap, .cat-layout { max-width: min(1840px, 100%); --pad: clamp(28px, 2.6vw, 56px); }
  .cat-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .head-row { grid-template-columns: minmax(0, 1fr); }
  .head .search { max-width: 640px; }
}
@media (min-width: 1500px) {
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rows > li { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; transition: border-color .15s; }
  .rows > li.empty { grid-column: 1 / -1; }
  .rows .row { border-bottom: 0; height: 100%; padding: 14px 16px 14px 14px; }
  .rows .row .d { -webkit-line-clamp: 2; }
  .rows .row .side { grid-template-columns: 84px 96px; }
  .recent-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recent-row .rcard:nth-child(n+5) { display: none; }
}
@media (min-width: 1500px) and (hover: hover) { .rows > li:hover { border-color: var(--line-2); } .rows > li:hover .row { background: var(--surface-2); } }
@media (min-width: 2000px) {
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .recent-row .rcard:nth-child(n+5) { display: block; }
}

/* categorias na lateral: ícone + nome + contagem em pílula */
.cats button { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 42px; padding: 8px 10px; font-size: 14px; }
.cats ol li button .ci { display: grid; place-items: center; padding: 0; color: var(--muted); font-size: inherit; }
.cats ol li button .ci svg { width: 20px; height: 20px; }
.cats ol li button .cn { font-family: var(--font); font-size: 14px; color: inherit; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cats ol li button .cc { font: 500 11.5px/1 var(--mono); color: var(--muted); padding: 4px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.cats ol li button[aria-pressed="true"] .ci { color: var(--accent); }
.cats ol li button[aria-pressed="true"] .cc { color: var(--ink); border-color: var(--line-2); }
.cats button[aria-pressed="true"] { border: 1px solid var(--line-2); padding: 7px 9px; }
@media (hover: hover) { .cats ol li button:hover .ci { color: var(--ink); } }

.cats h2 { display: flex; align-items: center; gap: 8px; }
.cats h2 .cats-n { font: 500 11px/1 var(--mono); color: var(--muted); padding: 3px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }

/* reportar erro */
.det-rep { margin-top: 14px; }
.rep-box { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rep-box[hidden] { display: none; }
.rep-box textarea { min-height: 96px; resize: vertical; font-size: 15px; }
.rep-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rep-acts .acts { display: flex; gap: 8px; }
.rep-box .err:empty { display: none; }

/* ---------- sino de notificações ---------- */
.sino { position: relative; margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r);
  background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; }
.sino svg { width: 21px; height: 21px; }
.sino + .nav { margin-left: 2px; }
.sino[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
@media (hover: hover) { .sino:hover { color: var(--ink); } }
.sino .nbadge { position: absolute; top: 3px; right: 1px; margin: 0; min-width: 17px; height: 17px; font-size: 10.5px; background: #ff4d5e; color: #fff; }
.pop-not { position: fixed; z-index: 450; width: min(360px, calc(100vw - 16px)); background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 12px 40px #000c; padding: 8px; animation: m-in .18s ease-out both; }
.pn-h { justify-content: flex-start; padding: 4px 8px 8px; }
.pn-lista { list-style: none; margin: 0; padding: 0 2px 0 0; max-height: min(60dvh, 420px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pn-it { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.pn-it:active { background: var(--surface-2); }
@media (hover: hover) { .pn-it:hover { background: var(--surface-2); } }
.pn-pt { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.pn-it[data-tipo="reporte"] .pn-pt { background: #ff4d5e; }
.pn-it[data-tipo="cadastro"] .pn-pt { background: var(--new); }
.pn-it[data-tipo="ajuda"] .pn-pt { background: #f2c46b; }
.pn-tx { display: grid; gap: 2px; min-width: 0; }
.pn-t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pn-s { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-q { font: 11px var(--mono); color: var(--faint); }
.pn-vazio { padding: 14px 8px; color: var(--muted); font-size: 13.5px; }
.pend-list li.rep-destaque { background: #93f1f70f; outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ---------- conversa de suporte ---------- */
.pn-it.pn-lido .pn-t { font-weight: 400; color: var(--ink-2); }
.pn-it.pn-lido .pn-pt { background: var(--line-2) !important; }
.chat-page { max-width: 760px; }
.chat-page .page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chat { display: grid; gap: 10px; padding: 18px 0; }
.bolha { max-width: min(560px, 88%); padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bolha.eu { justify-self: end; background: #12262a; border-color: #2d5c60; }
.bolha.outro { justify-self: start; }
.bolha-q { font: 11px var(--mono); color: var(--faint); margin-bottom: 4px; }
.bolha-t { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg, #000) 14px); }
.chat-form textarea { min-height: 76px; resize: vertical; font-size: 16px; }
.chat-form .err:empty { display: none; }
@media (max-width: 760px) { .chat-form { bottom: calc(58px + env(safe-area-inset-bottom)); padding-bottom: 12px; background: var(--bg); } }
/* celular: sino colado no apelido, na ponta direita do topo */
@media (max-width: 760px) {
  .top .sino { margin-left: auto; }
  .top .who { display: inline; margin-left: 2px; font-size: 12px; }
}
.btn-rep .rep-flag { color: #ff4d5e; }
.sec-h .vivo { margin-left: 8px; font: 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--new); }
