/* assets/css/admin.css */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, sans-serif; background: #eaecf0; color: #202122; font-size: 14px; }
.admin-top { background: #202122; color: #fff; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-top a { color: #9ecbff; text-decoration: none; margin-left: 16px; }
.admin-top .brand { color: #fff; font-weight: bold; font-size: 16px; }
.admin-wrap { max-width: 920px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #c8ccd1; border-radius: 4px; padding: 20px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 20px 0 10px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 8px; border: 1px solid #a2a9b1; border-radius: 3px; font-size: 14px; font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.btn { display: inline-block; background: #3366cc; color: #fff; border: none; padding: 9px 18px; border-radius: 3px; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn:hover { background: #2a4b8d; }
.btn-grey { background: #54595d; }
.btn-red { background: #b32424; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eaecf0; }
table.list th { background: #f8f9fa; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.published { background: #d5fdf4; color: #14866d; }
.badge.draft { background: #fef6e7; color: #ac6600; }
.flash { padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; }
.flash.ok { background: #d5fdf4; color: #14866d; }
.flash.err { background: #fee7e6; color: #b32424; }
.row-flex { display: flex; gap: 12px; }
.row-flex > div { flex: 1; }
.repeat-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.repeat-row input, .repeat-row textarea { flex: 1; }
.muted { color: #72777d; font-size: 12px; }
.login-box { max-width: 360px; margin: 80px auto; }

/* Vertical checkbox grid (multi-select walks of life) */
.vert-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px 14px;
  margin-top: 6px;
}
.vert-check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 400; margin: 0; padding: 5px 7px; border-radius: 4px; cursor: pointer;
}
.vert-check:hover { background: #f3f6ff; }
.vert-check input { width: auto; margin: 0; }

/* Bulk action bar on the profiles list */
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f3f6ff; border: 1px solid #cdd9f5; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 14px;
}
.bulk-bar.hidden { display: none; }
.bulk-bar select { width: auto; min-width: 220px; }
.bulk-count { font-weight: 600; color: #2a4b8d; }
td.chk-cell, th.chk-cell { width: 28px; text-align: center; }

/* Clout badge in admin */
.clout-badge { display:inline-block; background:#fff4e5; color:#ac6600; border-radius:10px; padding:2px 9px; font-size:12px; font-weight:600; }
.admin-top span a { white-space:nowrap; }

/* Tier chip in admin */
.tier-chip { display:inline-block; font-size:12px; font-weight:700; color:#fff; background:var(--tier,#2a4b8d); padding:2px 10px; border-radius:11px; white-space:nowrap; }
