* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #111;
}
.hidden { display: none !important; }
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  width: min(480px, 100%);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px 24px;
}
.stat {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
}
.stat b { font-size: 24px; display: block; }
.tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px 12px;
}
.tab {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
}
.tab.active { background: #111; color: #fff; border-color: #111; }
.tab-panel { padding: 0 24px 32px; }
.toolbar, .pager { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.list { display: grid; gap: 12px; }
.item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
}
.form { margin-bottom: 16px; display: grid; gap: 8px; }
input, select, textarea, .btn {
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.btn {
  background: #111;
  color: #fff;
  cursor: pointer;
  border: none;
}
.btn-ghost { background: #fff; color: #111; border: 1px solid #ddd; }
.muted { color: #666; }
.err { color: #333; font-size: 14px; }
.item-actions { display: flex; gap: 8px; margin-top: 8px; }
.tag {
  display: inline-block;
  background: #eee;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 4px;
  font-size: 12px;
}
