:root {
  --bg: #0a0e14; --panel: #121a25; --panel-2: #172230;
  --line: #1f2d3d; --line-2: #2b3d52; --txt: #e2ebf5; --dim: #7d92a8; --dim-2: #56697e;
  --brand: #3d9bff; --pos: #35d6a4; --neu: #6d829a; --neg: #ff5d5d; --warn: #ffa13d;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: .7rem; }
.ico { font-size: 1.6rem; }
h1 { font-size: 1.05rem; margin: 0; font-weight: 800; }
.topbar p { margin: 0; font-size: .72rem; color: var(--dim); }
.back { color: var(--dim); text-decoration: none; font-size: .82rem; }
.back:hover { color: var(--brand); }

.wrap { max-width: 900px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }
.search { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 11px; overflow: hidden; }
.search input { flex: 1; background: none; border: none; color: var(--txt); font-family: var(--sans);
  font-size: 1rem; padding: .85rem 1rem; outline: none; }
.go { font-family: var(--sans); font-size: .9rem; font-weight: 700; cursor: pointer; border: none;
  background: var(--brand); color: #041423; padding: .85rem 1.5rem; white-space: nowrap; }
.go:hover { filter: brightness(1.08); } .go:disabled { opacity: .6; cursor: default; }
.hint { font-size: .76rem; color: var(--dim); margin: .6rem 0 1.2rem; } .hint b { color: var(--txt); }
.status { font-size: .88rem; color: var(--dim); padding: .8rem 0; }
.status.err { color: var(--neg); }

.res-head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.kind { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #041423; background: var(--brand); padding: .2rem .55rem; border-radius: 20px; }
.kind.restrito { background: var(--warn); }
.res-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; word-break: break-word; }
.tot { font-size: .78rem; color: var(--dim); margin-left: auto; }

.sec { margin-bottom: 1.4rem; }
.sec-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.sec-head h3 { font-size: .82rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.sec-n { font-family: var(--mono); font-size: .72rem; color: var(--brand); background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: 20px; padding: .05rem .5rem; }
.sec-list { display: flex; flex-direction: column; gap: .4rem; }
.it { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--txt);
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: .6rem .8rem; transition: .12s; }
a.it:hover { border-color: var(--line-2); transform: translateX(2px); }
.it-main { flex: 1; min-width: 0; }
.it-title { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.it-sub { font-size: .74rem; color: var(--dim); margin-top: .1rem; }
.tag { font-size: .58rem; font-weight: 800; padding: .12rem .45rem; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.it-go { color: var(--dim-2); font-size: .8rem; }
.empty { color: var(--dim); padding: 2rem; text-align: center; }

.lgpd { background: rgba(255,161,61,.1); border: 1px solid var(--warn); color: var(--txt);
  border-radius: 10px; padding: .9rem 1.1rem; font-size: .84rem; line-height: 1.55; margin-bottom: 1.4rem; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.src { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--txt);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; transition: .12s; }
.src:hover { border-color: var(--line-2); transform: translateY(-2px); }
.src-cat { font-size: .62rem; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.src-name { font-weight: 700; font-size: .9rem; }
.src-desc { font-size: .76rem; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src-url { font-family: var(--mono); font-size: .66rem; color: var(--dim-2); margin-top: auto; }

@media (max-width: 560px) { .src-grid { grid-template-columns: 1fr; } .tot { margin-left: 0; width: 100%; } }
