:root {
  --bg: #0b0f1a;
  --panel: #121a2a;
  --card: #0f1726;
  --text: #f5f7ff;
  --muted: rgba(245,247,255,.72);
  --line: rgba(245,247,255,.12);
  --accent: #ff2d55;
  --accent2: #22c55e;
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,45,85,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.10), transparent 50%),
              var(--bg);
  color:var(--text);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; backdrop-filter: blur(10px);
  background: rgba(11,15,26,.65);
  z-index:10;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display:grid; place-items:center;
  font-weight:800;
}
.name{font-size:16px; font-weight:800}
.meta{font-size:12px; color:var(--muted)}
.layout{display:grid; grid-template-columns: 420px 1fr; gap:16px; padding:16px}
@media (max-width: 980px){ .layout{grid-template-columns:1fr;} }
.panel{
  background: rgba(18,26,42,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  min-height: calc(100vh - 140px);
}
.detail{
  background: rgba(18,26,42,.55);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  min-height: calc(100vh - 140px);
}
.searchRow{display:flex; gap:10px}
.input{
  width:100%;
  background: rgba(15,23,38,.9);
  color:var(--text);
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px 12px;
  outline:none;
}
.input:focus{border-color: rgba(255,45,85,.55); box-shadow: 0 0 0 4px rgba(255,45,85,.12)}
.btn{
  border:1px solid var(--line);
  background: rgba(15,23,38,.9);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{border-color: rgba(245,247,255,.25)}
.btn.primary{background: linear-gradient(135deg, var(--accent), #7c3aed); border:none}
.btn.wide{width:100%}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin:12px 0}
.chip{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color:var(--muted);
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.chip.active{border-color: rgba(255,45,85,.7); color: var(--text); background: rgba(255,45,85,.10)}
.tabs{display:flex; gap:8px; margin: 8px 0 12px}
.tab{
  flex:1;
  padding:10px 10px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(15,23,38,.65);
  color:var(--muted);
  font-weight:800;
  cursor:pointer;
}
.tab.active{color:var(--text); border-color: rgba(255,45,85,.7); background: rgba(255,45,85,.10)}
.list{display:flex; flex-direction:column; gap:10px}
.item{
  border:1px solid var(--line);
  background: rgba(15,23,38,.75);
  border-radius: 16px;
  padding:12px;
  cursor:pointer;
}
.item:hover{border-color: rgba(255,45,85,.45)}
.itemTitle{font-weight:900; margin-bottom:6px}
.itemMeta{font-size:12px; color:var(--muted); display:flex; gap:10px; flex-wrap:wrap}
.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius: 999px;
  border:1px solid var(--line);
}
.badge.accent{border-color: rgba(255,45,85,.55); color: var(--text); background: rgba(255,45,85,.08)}
.badge.ok{border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08)}
.card{
  border:1px solid var(--line);
  background: rgba(15,23,38,.75);
  border-radius: var(--radius);
  padding:14px;
}
.cardHeader{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.h1{font-size:22px; font-weight:950; letter-spacing:-.2px}
.sub{font-size:12px; color:var(--muted); margin-top:6px}
.h2{font-size:14px; font-weight:900; margin-bottom:10px; color: rgba(245,247,255,.92)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0}
@media (max-width: 980px){ .grid2{grid-template-columns:1fr;} }
.box{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(11,15,26,.35);
}
.pre{
  white-space:pre-wrap;
  margin:0;
  color: rgba(245,247,255,.92);
  line-height:1.4;
}
.note{color: rgba(245,247,255,.88); line-height:1.5}
.footer{
  padding:10px 18px 18px;
  color:var(--muted);
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.empty{margin-top:16px; padding:18px; border:1px dashed rgba(245,247,255,.20); border-radius: var(--radius)}
.emptyTitle{font-weight:950; margin-bottom:6px}
.emptyText{color:var(--muted)}
.hidden{display:none!important}
.gate{
  position:fixed; inset:0;
  background: radial-gradient(900px 600px at 30% 20%, rgba(255,45,85,.20), transparent 60%),
              rgba(0,0,0,.72);
  display:grid; place-items:center;
  z-index:999;
}
.gateCard{
  width:min(420px, 92vw);
  border:1px solid var(--line);
  background: rgba(18,26,42,.92);
  border-radius: 22px;
  padding:18px;
}
.err{margin-top:10px; color:#ffb4b4; font-weight:800}
.small{font-size:12px; margin-top:10px}
.kitchen{
  position:fixed; inset:0;
  background: var(--bg);
  z-index:998;
  padding:14px;
}
.kTop{display:flex; justify-content:space-between; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding-bottom:10px}
.kTitle{font-size:22px; font-weight:950}
.kBody{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px}
@media (max-width: 980px){ .kBody{grid-template-columns:1fr;} }
.kPre{white-space:pre-wrap; margin:0; font-size:18px; line-height:1.45}
.kCol{border:1px solid var(--line); border-radius: var(--radius); padding:12px; background: rgba(18,26,42,.45)}
.kNote{border:1px solid rgba(255,45,85,.35); border-radius: var(--radius); padding:12px; background: rgba(255,45,85,.08); font-size:16px; line-height:1.45}
