:root{
  --bg1:#071a2a;
  --bg2:#061424;
  --card:#0b2238;
  --card2:#0c2942;
  --text:#e7f2ff;
  --muted:#a9c3dd;
  --accent:#4ea3ff;
  --accent2:#2f7fd6;
  --border:rgba(120,170,220,.18);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 14px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(78,163,255,.18), transparent 55%),
    radial-gradient(1000px 500px at 95% 10%, rgba(47,127,214,.14), transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
}

a{color:var(--accent); text-decoration:none}
a:hover{color:#8cc7ff}

.app{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 30px;
}

.header{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:38px; height:38px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(78,163,255,.25), rgba(47,127,214,.12));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  color:#bfe1ff;
  font-weight:700;
}
.brand__title{font-size:16px; font-weight:700}
.brand__sub{font-size:12px; color:var(--muted)}

.search{flex:1; max-width:360px}
.input{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  outline:none;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.input::placeholder{color: rgba(169,195,221,.75)}
.input:focus{border-color: rgba(78,163,255,.5); box-shadow: 0 0 0 4px rgba(78,163,255,.10)}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
  .search{max-width:none}
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card__title{
  margin:0 0 8px;
  font-size:15px;
}

.muted{color:var(--muted)}
.list{display:flex; flex-direction:column; gap:10px; margin-top:12px}

.item{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.item:hover{
  transform: translateY(-1px);
  border-color: rgba(78,163,255,.35);
  background: rgba(78,163,255,.06);
}
.item__title{font-weight:650}
.item__meta{font-size:12px; color: rgba(169,195,221,.75); margin-top:2px}

.empty{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border:1px dashed rgba(120,170,220,.22);
  background: rgba(255,255,255,.02);
}

.hint{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(120,170,220,.18);
  background: rgba(78,163,255,.05);
  color: rgba(231,242,255,.92);
}

.footer{
  margin-top: 14px;
  text-align:center;
  opacity:.85;
}

.back{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.pill{
  font-size:12px;
  color: rgba(231,242,255,.86);
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}

/* Статья */
.article h1{margin:0 0 10px; font-size:22px}
.article h2{margin:16px 0 8px; font-size:16px}
.article p{margin:10px 0}
.article ul, .article ol{margin:10px 0 10px 22px}
.article code{
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(120,170,220,.18);
}
.article pre{
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(120,170,220,.18);
  overflow:auto;
}
.article pre code{padding:0; border:none; background:transparent}
