:root{
  --bg:#ffffff;
  --panel:#f7f7f9;
  --border:#e2e2e8;
  --text:#121212;
  --muted:#5a5a6a;
  --link:#1a73e8;
  --shadow:0 2px 12px rgba(0,0,0,.06);
  --radius:14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}

.topbar{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:#fff;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  background:#0b2d4f;
  color:#fff;
}

.title{font-size:16px;font-weight:700;line-height:1}
.subtitle{font-size:12px;color:var(--muted);margin-top:4px}

.search{
  display:flex;
  gap:10px;
  flex:1;
  max-width:720px;
  justify-content:flex-end;
}

.search input{
  flex:1;
  min-width:220px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:12px 14px;
  font-size:14px;
  outline:none;
}

.search input:focus{
  border-color:#9bbcf2;
  box-shadow:0 0 0 3px rgba(26,115,232,.15);
}

button{
  border:1px solid var(--border);
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  font-size:14px;
  cursor:pointer;
}

button:hover{opacity:.95}
button:active{transform:translateY(1px)}

button.ghost{
  background:#fff;
  color:#111827;
}

.layout{
  display:grid;
  grid-template-columns: 280px 1fr 520px;
  gap:16px;
  padding:16px;
}

.sidebar .panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
}

.panel-title{
  font-weight:700;
  margin-bottom:10px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
  font-size:13px;
  color:var(--muted);
}

.field select{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 10px;
  font-size:14px;
  background:#fff;
  color:#111827;
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.checkbox input{transform:scale(1.1)}

.divider{
  height:1px;
  background:var(--border);
  margin:12px 0;
}

.filter-group{margin-bottom:12px}
.filter-title{
  font-size:12px;
  font-weight:700;
  color:#111827;
  margin-bottom:8px;
}

.filter-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:200px;
  overflow:auto;
  padding-right:4px;
}

.pill{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:#111827;
}

.pill input{transform:scale(1.05)}
.pill span{color:#111827}

.content{
  min-width: 320px;
}

.results-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.results-count{
  font-size:13px;
  color:var(--muted);
}

.results{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  cursor:pointer;
}

.card:hover{
  border-color:#bcd5ff;
}

.card-title{
  font-size:16px;
  font-weight:700;
  margin:0 0 6px 0;
}

.card-desc{
  margin:0 0 10px 0;
  color:#2d2d35;
  font-size:13px;
  line-height:1.4;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:12px;
  color:var(--muted);
}

.meta .tag{
  background:var(--panel);
  border:1px solid var(--border);
  padding:4px 8px;
  border-radius:999px;
}

.link{
  color:var(--link);
  text-decoration:none;
}

.link:hover{text-decoration:underline}

.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:14px 0;
}

.page-info{
  font-size:13px;
  color:var(--muted);
}

.hidden{display:none}

.detail{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height: 75vh;
}

.detail-header{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  border-bottom:1px solid var(--border);
  background:#fff;
}

.detail-title{
  font-size:16px;
  font-weight:800;
  margin:0;
}

.detail-subtitle{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.detail-body{
  padding:14px;
  overflow:auto;
  max-height: calc(100vh - 200px);
}

.table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0 18px 0;
  font-size:13px;
}

.table th, .table td{
  border-bottom:1px solid var(--border);
  padding:10px 8px;
  text-align:left;
  vertical-align:top;
}

.table th{
  color:var(--muted);
  font-weight:700;
  width:180px;
}

.section-title{
  font-size:13px;
  font-weight:800;
  margin-top:18px;
  margin-bottom:8px;
}

.kv{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:8px 10px;
  font-size:13px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel);
}

.kv .k{color:var(--muted); font-weight:700}
.kv .v{color:#111827}

.empty-state{
  border:1px dashed var(--border);
  border-radius:14px;
  padding:18px;
  background:var(--panel);
}

.empty-title{font-weight:800;margin-bottom:6px}
.empty-text{color:var(--muted);font-size:13px;line-height:1.5}

.footer{
  padding:12px 16px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

@media (max-width: 1100px){
  .layout{grid-template-columns: 280px 1fr}
  .detail{grid-column: 1 / -1}
}

@media (max-width: 720px){
  .layout{grid-template-columns: 1fr}
  .sidebar{order:2}
  .detail{order:3}
  .search{max-width:none}
}
