* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background:#f6f7fb; color:#111; }

.topbar{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px; background:#fff; border-bottom:1px solid #e7e7ee;
}
h1{ margin:0; font-size:18px; }
.sub{ margin:6px 0 0; color:#666; font-size:12px; }
.top-actions{ display:flex; gap:10px; }

.grid{
  display:grid; grid-template-columns: 1fr 1.2fr; gap:14px;
  padding:14px; max-width:1200px; margin:0 auto;
}
@media (max-width: 960px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background:#fff; border:1px solid #e7e7ee; border-radius:12px;
  padding:14px;
}

.row{ margin:12px 0; }
.row > label{ display:block; font-size:12px; color:#666; margin-bottom:8px; }

.inline{ display:flex; gap:10px; }
input, select, button{
  border:1px solid #d9d9e3; border-radius:10px;
  padding:10px 12px; font-size:14px; background:#fff;
}
input{ width:100%; }
button{ cursor:pointer; }
button.danger{ border-color:#ffb6b6; }

.hint{ font-size:12px; color:#777; margin-top:8px; }

.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chips button{
  border-radius:999px; padding:9px 12px; border:1px solid #d9d9e3;
}

.list{
  border:1px solid #eee; border-radius:10px; padding:10px;
  max-height:260px; overflow:auto; background:#fafafa;
}
.item{
  display:flex; justify-content:space-between; gap:10px;
  padding:8px 0; border-bottom:1px dashed #e6e6e6; font-size:13px;
}
.item:last-child{ border-bottom:none; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#444; }

.tabs{ display:flex; gap:10px; margin:8px 0 12px; }
.tab{ border-radius:999px; padding:8px 12px; }
.tab.active{ border-color:#111; }

.filters{
  display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end;
  padding:10px; background:#fafafa; border:1px solid #eee; border-radius:10px;
}
.field label{ display:block; font-size:12px; color:#666; margin-bottom:6px; }
.field input{ min-width:170px; }

.summary{
  margin:12px 0; padding:10px; border:1px solid #eee; border-radius:10px;
  background:#fff;
  font-size:13px; color:#333;
}

.table-wrap{ overflow:auto; border:1px solid #eee; border-radius:10px; }
table{ width:100%; border-collapse:collapse; min-width:520px; }
th, td{ padding:10px 10px; border-bottom:1px solid #eee; font-size:13px; text-align:left; }
thead th{ background:#fafafa; color:#555; position:sticky; top:0; }
td.actions button{ padding:6px 10px; border-radius:8px; }

.footer{
  max-width:1200px; margin:0 auto; padding:14px 18px;
  font-size:12px; color:#777;
}