:root{
  --bg:#070A0F;
  --panel:#0B1020cc;
  --panel2:#0E1630cc;
  --line:#1B2850;
  --text:#EAF0FF;
  --muted:#9FB2E8;
  --muted2:#7383B2;
  --accent:#7C3AED;
  --cyan:#36D1DC;
  --shadow: 0 14px 50px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 10% 0%, rgba(124,58,237,.25), transparent 60%),
              radial-gradient(900px 600px at 100% 20%, rgba(54,209,220,.18), transparent 55%),
              radial-gradient(900px 700px at 30% 100%, rgba(38,208,124,.10), transparent 60%),
              var(--bg);
  color:var(--text);
  font-family:var(--font);
}

.bg{position:fixed; inset:0; pointer-events:none; opacity:.60;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 40% 10%, rgba(0,0,0,1), rgba(0,0,0,.2), transparent 75%);
}

.container{max-width:1240px; margin:0 auto; padding:0 18px}

.top{position:sticky; top:0; z-index:10; backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,10,15,.78), rgba(7,10,15,.35));
  border-bottom:1px solid rgba(27,40,80,.45);
}
.top__inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 0 14px}

.brand{display:flex; align-items:center; gap:12px}
.brand__dot{width:14px; height:14px; border-radius:999px; background: linear-gradient(135deg, var(--accent), var(--cyan)); box-shadow:0 0 18px rgba(124,58,237,.55)}
.brand__title{font-weight:900; font-size:18px; letter-spacing:.2px}
.brand__sub{font-size:12.5px; color:var(--muted2)}

.top__right{display:flex; gap:10px; align-items:center}

.pill{padding:8px 10px; border:1px solid rgba(27,40,80,.85); border-radius:999px; color:var(--muted); background:rgba(12,18,40,.6)}

.btn{
  padding:10px 12px;
  border:1px solid rgba(27,40,80,.85);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(124,58,237,.18), rgba(12,18,40,.4));
  color:var(--text);
  cursor:pointer;
  transition: transform .08s ease, border-color .18s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(124,58,237,.55)}
.btn:active{transform: translateY(0)}
.btn--ghost{background:rgba(12,18,40,.35)}

.shell{display:grid; grid-template-columns: 420px 1fr; gap:14px; padding:16px 0 34px}

.card{
  border-radius: var(--radius);
  border:1px solid rgba(27,40,80,.85);
  background: linear-gradient(180deg, var(--panel), rgba(9,14,30,.55));
  box-shadow: var(--shadow);
  padding:14px;
  margin-bottom:12px;
}
.card__title{font-weight:900}
.muted{color:var(--muted2); font-size:12.5px; line-height:1.55}
.micro{color:var(--muted); font-size:12px; margin-top:10px}

.unlock{display:flex; gap:10px; margin-top:10px}
.unlock input{
  flex:1;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(27,40,80,.85);
  background: rgba(5,8,18,.55);
  color:var(--text);
  padding:0 10px;
  outline:none;
}
.unlock input:focus{border-color: rgba(124,58,237,.65)}

#q{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(27,40,80,.85);
  background: rgba(5,8,18,.55);
  color:var(--text);
  padding:0 10px;
  outline:none;
  margin-top:10px;
}
#q:focus{border-color: rgba(54,209,220,.55)}

.filters{display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:10px}
.filters select{
  height:40px;
  border-radius:12px;
  border:1px solid rgba(27,40,80,.85);
  background: rgba(5,8,18,.55);
  color:var(--text);
  padding:0 10px;
  outline:none;
}

.list{border-radius: var(--radius); border:1px solid rgba(27,40,80,.85); background: rgba(12,18,40,.28); overflow:hidden}
.item{padding:12px 12px; border-bottom:1px solid rgba(27,40,80,.55); cursor:pointer}
.item:hover{background: rgba(124,58,237,.06)}
.item.is-active{background: rgba(54,209,220,.08); border-left:3px solid rgba(54,209,220,.7)}
.item__title{font-weight:850}
.item__meta{margin-top:6px; font-size:12px; color:rgba(159,178,232,.85)}
.empty{padding:12px; color:rgba(159,178,232,.85); font-size:12.5px}

.doc{
  border-radius: var(--radius);
  border:1px solid rgba(27,40,80,.85);
  background: linear-gradient(180deg, rgba(12,18,40,.36), rgba(9,14,30,.26));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.doc__head{display:flex; justify-content:space-between; gap:10px; align-items:flex-start; padding:14px; border-bottom:1px solid rgba(27,40,80,.55)}
.doc__title{font-weight:950; font-size:15px}
.doc__meta{margin-top:6px; font-size:12px; color:rgba(159,178,232,.85)}
.doc__actions{display:flex; gap:10px}

.doc__body{padding:16px; max-height: calc(100vh - 210px); overflow:auto}
.doc__body h1,.doc__body h2,.doc__body h3{margin-top:18px}
.doc__body p{color: rgba(234,240,255,.9); line-height:1.7}
.doc__body code{background: rgba(0,0,0,.25); padding:2px 6px; border-radius:8px; border:1px solid rgba(27,40,80,.55)}
.doc__body pre{background: rgba(0,0,0,.25); padding:12px; border-radius:14px; border:1px solid rgba(27,40,80,.55); overflow:auto}
.doc__body a{color: rgba(54,209,220,.95)}

.foot{margin-top:10px}

@media (max-width: 1100px){
  .shell{grid-template-columns: 1fr}
  .doc__body{max-height: none}
}
