/* =========================================================
   R2V Unified Portal — admin.css
   ========================================================= */

.r2v-admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.r2v-admin-bar .r2v-search { max-width: 380px; }

.r2v-photo-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.r2v-photo-tile {
  position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--r2v-border);
}
.r2v-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.r2v-photo-tile__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px; font-size: 11px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  display: flex; align-items: center; justify-content: space-between;
}

.r2v-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--r2v-blue-soft); color: var(--r2v-blue-dark);
}
.r2v-status-pill--ok { background: #E1F4EC; color: #0E6C53; }
.r2v-status-pill--warn { background: #FBEFC8; color: #7A5A05; }
.r2v-status-pill--off { background: #E5E7EB; color: var(--r2v-ink-soft); }

/* =========================================================
   County database admin — polished card grid
   ========================================================= */
.r2v-county-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: stretch;
}
.r2v-county-card {
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg);
  box-shadow: var(--r2v-shadow-1);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--r2v-dur), box-shadow var(--r2v-dur), border-color var(--r2v-dur);
}
.r2v-county-card:hover { transform: translateY(-2px); box-shadow: var(--r2v-shadow-2); border-color: var(--r2v-border-2); }
.r2v-county-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--r2v-blue-dark), var(--r2v-blue-teal));
}

/* Head — state name + abbr + count + actions */
.r2v-county-card__head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-start; gap: 8px;
  padding: 14px 16px 6px 18px;
}
.r2v-county-card__title {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap;
}
.r2v-county-card__name {
  font-family: var(--r2v-font-head); font-weight: 800; font-size: 18px;
  color: var(--r2v-ink); line-height: 1.1;
}
.r2v-county-card__abbr {
  background: var(--r2v-blue-soft); color: var(--r2v-blue-dark);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px;
}
.r2v-county-card__actions {
  display: flex; gap: 2px;
  opacity: 0.55;
  transition: opacity var(--r2v-dur);
}
.r2v-county-card:hover .r2v-county-card__actions,
.r2v-county-card:focus-within .r2v-county-card__actions { opacity: 1; }
.r2v-county-card__iconbtn {
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--r2v-ink-mute);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--r2v-dur), color var(--r2v-dur), border-color var(--r2v-dur);
}
.r2v-county-card__iconbtn:hover { background: var(--r2v-surface-2); color: var(--r2v-blue-dark); border-color: var(--r2v-border); }
.r2v-county-card__iconbtn i { width: 15px; height: 15px; }
.r2v-county-card__iconbtn--danger:hover { background: var(--r2v-red-soft); color: var(--r2v-red); border-color: rgba(213,32,39,.2); }

/* Meta row — count pill + events-using badge */
.r2v-county-card__meta {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 12px 18px;
  font-size: 12px; color: var(--r2v-ink-soft);
}
.r2v-county-card__count {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--r2v-surface-2);
  padding: 3px 9px; border-radius: 999px;
  font-weight: 700; color: var(--r2v-ink-soft);
}
.r2v-county-card__count i { width: 11px; height: 11px; }
.r2v-county-card__usage {
  display: inline-flex; align-items: center; gap: 4px;
  background: #DDF3EA; color: #0E6C53;
  padding: 3px 9px; border-radius: 999px;
  font-weight: 700;
}
.r2v-county-card__usage i { width: 11px; height: 11px; }

/* Chips area — flex-grow so all cards in a row land at the same height */
.r2v-county-card__counties {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 10px 16px 12px 18px;
  border-top: 1px solid var(--r2v-border);
  background: linear-gradient(180deg, #FCFAF6, var(--r2v-surface));
  flex: 1 1 auto;
  align-content: flex-start;
  min-height: 84px;
}
.r2v-county-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: 8px;
  padding: 6px 10px 6px 12px;
  font-size: 13px; font-weight: 600; color: var(--r2v-ink);
  line-height: 1;
  transition: border-color var(--r2v-dur), background var(--r2v-dur), box-shadow var(--r2v-dur);
}
.r2v-county-chip:hover {
  background: #fff;
  border-color: var(--r2v-blue-teal);
  box-shadow: 0 2px 6px rgba(14,81,139,.08);
}
.r2v-county-chip__x {
  width: 16px; height: 16px;
  border: 0; background: transparent;
  color: var(--r2v-ink-mute);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 4px;
  transition: color var(--r2v-dur), background var(--r2v-dur);
}
.r2v-county-chip__x:hover { color: var(--r2v-red); background: var(--r2v-red-soft); }
.r2v-county-chip__x i { width: 12px; height: 12px; }

/* Empty-counties state */
.r2v-county-card__empty {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  color: var(--r2v-ink-mute);
  font-size: 12px; text-align: center;
}
.r2v-county-card__empty i { width: 22px; height: 22px; color: var(--r2v-ink-mute); margin-bottom: 4px; }

/* Add-county input — pinned to bottom of every card so the grid aligns */
.r2v-county-card__add {
  margin: 0; border: 0; border-top: 1px solid var(--r2v-border);
  background: var(--r2v-surface);
  padding: 12px 16px 14px 18px;
}
.r2v-county-card__add input {
  width: 100%; font-size: 13px;
  border: 1px dashed var(--r2v-border-2);
  background: var(--r2v-surface-2);
  border-radius: 10px;
  padding: 8px 12px;
}
.r2v-county-card__add input:focus {
  outline: none; background: #fff;
  border-color: var(--r2v-blue-teal); border-style: solid;
  box-shadow: 0 0 0 3px rgba(20,131,177,.12);
}

/* ---------- Master-detail county shell ---------- */
.r2v-county-shell {
  display: grid; gap: 16px;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  min-height: 600px;
}
@media (max-width: 980px) {
  .r2v-county-shell { grid-template-columns: 1fr; }
}

/* Left: state list */
.r2v-county-list {
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg);
  box-shadow: var(--r2v-shadow-1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.r2v-county-list__head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--r2v-border);
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, #FCFAF6, var(--r2v-surface));
}
.r2v-county-list__title {
  font-family: var(--r2v-font-head); font-weight: 800;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--r2v-ink-mute);
}
.r2v-county-list__search {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--r2v-border);
  border-radius: 10px; background: var(--r2v-surface-2);
  font: inherit; color: var(--r2v-ink);
  transition: background var(--r2v-dur), border-color var(--r2v-dur);
}
.r2v-county-list__search:focus {
  outline: none; background: #fff;
  border-color: var(--r2v-blue-teal);
  box-shadow: 0 0 0 3px rgba(20,131,177,.12);
}
.r2v-county-list__sort { gap: 4px; }
.r2v-county-list__sort .r2v-tabs__btn { font-size: 11px; padding: 5px 10px; }
.r2v-county-list__items {
  list-style: none; padding: 6px; margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 2px;
}
.r2v-county-list__item {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--r2v-dur);
}
.r2v-county-list__item:hover { background: var(--r2v-surface-2); }
.r2v-county-list__item.is-active {
  background: var(--r2v-blue-soft);
  outline: 1px solid rgba(14,81,139,.15);
}
.r2v-county-list__main { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.r2v-county-list__name { font-weight: 700; color: var(--r2v-ink); font-size: 14px; }
.r2v-county-list__abbr {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: var(--r2v-ink-mute);
  background: rgba(0,0,0,.05);
  padding: 2px 6px; border-radius: 4px;
}
.r2v-county-list__item.is-active .r2v-county-list__abbr { background: var(--r2v-blue-dark); color: #fff; }
.r2v-county-list__sub { display: flex; align-items: center; gap: 6px; }
.r2v-county-list__chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700;
  color: var(--r2v-ink-soft);
  background: var(--r2v-surface-2);
  padding: 2px 7px; border-radius: 999px;
}
.r2v-county-list__chip i { width: 10px; height: 10px; }
.r2v-county-list__chip--green { background: #DDF3EA; color: #0E6C53; }
.r2v-county-list__chev { width: 14px; height: 14px; color: var(--r2v-ink-mute); }
.r2v-county-list__item.is-active .r2v-county-list__chev { color: var(--r2v-blue-dark); }
.r2v-county-list__empty {
  text-align: center; padding: 28px 16px;
  color: var(--r2v-ink-mute);
}
.r2v-county-list__empty i { width: 28px; height: 28px; color: var(--r2v-ink-mute); margin-bottom: 4px; }

/* Right: detail pane */
.r2v-county-detail {
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg);
  box-shadow: var(--r2v-shadow-1);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.r2v-county-detail__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.r2v-county-detail__title { display: flex; align-items: center; gap: 10px; }
.r2v-county-detail__title h2 { margin: 0; font-size: 24px; }
.r2v-county-detail__abbr {
  background: var(--r2v-blue-dark); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 6px;
}

.r2v-county-detail__stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  .r2v-county-detail__stats { grid-template-columns: 1fr; }
}
.r2v-county-detail__stat {
  display: grid; grid-template-columns: 42px 1fr;
  gap: 10px; align-items: center;
  padding: 12px 14px;
  background: var(--r2v-surface-2);
  border: 1px solid var(--r2v-border);
  border-radius: 12px;
}
.r2v-county-detail__stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--r2v-blue-soft); color: var(--r2v-blue-dark);
}
.r2v-county-detail__stat-icon i { width: 19px; height: 19px; }
.r2v-county-detail__stat--green .r2v-county-detail__stat-icon { background: #DDF3EA; color: #0E6C53; }
.r2v-county-detail__stat--plum  .r2v-county-detail__stat-icon { background: #EEE6F2; color: #5B3F73; }
.r2v-county-detail__stat-num   { font-family: var(--r2v-font-head); font-weight: 800; font-size: 22px; color: var(--r2v-ink); line-height: 1; }
.r2v-county-detail__stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--r2v-ink-mute); margin-top: 4px; }

.r2v-county-detail__add {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px; align-items: center;
  padding: 10px 14px;
  background: var(--r2v-surface-2);
  border: 1px dashed var(--r2v-border-2);
  border-radius: 12px;
}
.r2v-county-detail__add:focus-within {
  background: #fff; border-color: var(--r2v-blue-teal); border-style: solid;
  box-shadow: 0 0 0 3px rgba(20,131,177,.12);
}
.r2v-county-detail__add > i { width: 16px; height: 16px; color: var(--r2v-ink-mute); }
.r2v-county-detail__add input {
  border: 0; background: transparent; outline: 0;
  font: inherit; color: var(--r2v-ink);
}

.r2v-county-detail__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0;
  align-content: flex-start;
}
.r2v-county-detail__empty {
  text-align: center; padding: 40px 20px;
  color: var(--r2v-ink-mute);
  border: 1px dashed var(--r2v-border-2);
  border-radius: 12px;
  background: var(--r2v-surface-2);
}
.r2v-county-detail__empty i { width: 36px; height: 36px; color: var(--r2v-ink-mute); margin-bottom: 8px; }
.r2v-county-detail__empty .r2v-strong { color: var(--r2v-ink); margin-bottom: 2px; }

/* =========================================================
   Announcement editor — two-pane (form + live preview)
   ========================================================= */
.r2v-ann-editor {
  display: grid; gap: 18px;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 980px) {
  .r2v-ann-editor { grid-template-columns: 1fr; }
}
.r2v-ann-editor__form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.r2v-ann-editor__schedule {
  padding: 14px;
  background: linear-gradient(180deg, #FCFAF6, var(--r2v-surface));
  border-color: var(--r2v-border);
  border-radius: 12px;
}
.r2v-ann-editor__schedule-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.r2v-ann-editor__pin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--r2v-surface-2);
  border: 1px solid var(--r2v-border);
  cursor: pointer;
  font-weight: 600;
}
.r2v-ann-editor__pin:hover { background: #fff; border-color: var(--r2v-border-2); }
.r2v-ann-editor__pin i { width: 14px; height: 14px; color: var(--r2v-red); }

.r2v-ann-editor__preview-pane {
  background: linear-gradient(180deg, #F5EFE3, #FFFBF3);
  border: 1px dashed var(--r2v-border-2);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.r2v-ann-editor__preview-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--r2v-ink-mute);
}
.r2v-ann-editor__preview-label i { width: 13px; height: 13px; }

/* The actual preview card — mirrors the public Announcement card visual. */
.r2v-ann-preview { display: flex; flex-direction: column; min-width: 0; }
.r2v-ann-preview__card {
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--r2v-shadow-1);
  display: flex; flex-direction: column;
}
.r2v-ann-preview__media {
  aspect-ratio: 16 / 9; background: var(--r2v-cream-2);
  overflow: hidden;
}
.r2v-ann-preview__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r2v-ann-preview__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.r2v-ann-preview__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.r2v-ann-preview__tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
}
.r2v-ann-preview__tag--blue  { background: var(--r2v-blue-soft);    color: var(--r2v-blue-dark); }
.r2v-ann-preview__tag--teal  { background: #D6EEF7;                 color: var(--r2v-blue-teal); }
.r2v-ann-preview__tag--amber { background: #FBEFC8;                 color: #7A5A05; }
.r2v-ann-preview__tag--red   { background: var(--r2v-red-soft);     color: var(--r2v-red); }
.r2v-ann-preview__tag--green { background: #DDF3EA;                 color: #0E6C53; }
.r2v-ann-preview__tag--plum  { background: #EEE6F2;                 color: #5B3F73; }
.r2v-ann-preview__pin {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--r2v-red-soft); color: var(--r2v-red);
  font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
}
.r2v-ann-preview__pin i { width: 10px; height: 10px; }
.r2v-ann-preview__status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.r2v-ann-preview__status--live      { background: #DDF3EA; color: #0E6C53; }
.r2v-ann-preview__status--scheduled { background: #FBEFC8; color: #7A5A05; }
.r2v-ann-preview__status--expired   { background: #E5E7EB; color: var(--r2v-ink-soft); }
.r2v-ann-preview__title {
  font-family: var(--r2v-font-head); font-weight: 800;
  font-size: 19px; color: var(--r2v-ink); line-height: 1.25;
  margin: 0;
}
.r2v-ann-preview__p {
  margin: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--r2v-ink-soft);
  white-space: pre-wrap;
}
.r2v-ann-preview__meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--r2v-ink-mute);
  padding-top: 8px;
  border-top: 1px solid var(--r2v-border);
}
.r2v-ann-preview__meta i { width: 12px; height: 12px; }

/* =========================================================
   Reports & analytics
   ========================================================= */
.r2v-report-kpis {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1400px) { .r2v-report-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .r2v-report-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .r2v-report-kpis { grid-template-columns: 1fr; } }
.r2v-kpi__sub {
  font-size: 11px; color: var(--r2v-ink-mute);
  margin-top: 2px;
}

.r2v-report-card { margin-bottom: 18px; }
.r2v-report-card__body { padding: 16px 18px; }

.r2v-report-2col {
  display: grid; gap: 18px; margin-bottom: 0;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px) { .r2v-report-2col { grid-template-columns: 1fr; } }

/* Chart */
.r2v-chart-wrap { display: grid; gap: 10px; }
.r2v-chart { width: 100%; height: auto; display: block; }
.r2v-chart__hit { cursor: crosshair; }
.r2v-chart__hit:hover ~ .r2v-chart__tip,
.r2v-chart__tip { pointer-events: none; }
.r2v-chart-legend {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--r2v-ink-soft);
  margin-right: 8px;
}
.r2v-chart-legend__sw {
  width: 12px; height: 12px; border-radius: 3px;
}

/* Bar rows (categories + regions) */
.r2v-bar-row {
  display: grid; grid-template-columns: 140px 1fr 56px;
  align-items: center; gap: 12px;
  padding: 8px 4px;
  border-radius: 8px;
}
.r2v-bar-row__label { font-size: 13px; font-weight: 700; color: var(--r2v-ink); display: flex; align-items: center; }
.r2v-bar-row__track { background: var(--r2v-surface-2); border-radius: 999px; height: 10px; overflow: hidden; }
.r2v-bar-row__fill { height: 100%; border-radius: 999px; transition: width var(--r2v-dur), filter var(--r2v-dur); }
.r2v-bar-row__value { font-family: var(--r2v-font-head); font-weight: 800; font-size: 14px; color: var(--r2v-ink); text-align: right; }
.r2v-bar-row--clickable { cursor: pointer; transition: background var(--r2v-dur); }
.r2v-bar-row--clickable:hover { background: var(--r2v-surface-2); }
.r2v-bar-row--clickable:hover .r2v-bar-row__fill { filter: brightness(1.08); }

/* Onboarding funnel */
.r2v-funnel { display: flex; flex-direction: column; gap: 12px; }
.r2v-funnel__step { display: flex; flex-direction: column; gap: 4px; }
.r2v-funnel__head { display: flex; align-items: center; gap: 8px; }
.r2v-funnel__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--r2v-blue-soft); color: var(--r2v-blue-dark);
  font-size: 11px; font-weight: 800;
}
.r2v-funnel__label { font-weight: 700; color: var(--r2v-ink); font-size: 13px; }
.r2v-funnel__dropoff {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--r2v-red);
  background: var(--r2v-red-soft);
  padding: 2px 8px; border-radius: 999px;
}
.r2v-funnel__bar {
  background: var(--r2v-surface-2);
  border-radius: 999px; height: 22px; overflow: hidden;
  position: relative;
}
.r2v-funnel__fill {
  height: 100%; border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  transition: width .4s var(--r2v-ease);
  min-width: 36px;
}
.r2v-funnel__pct { font-size: 11px; font-weight: 800; color: #fff; }
.r2v-funnel__count { font-size: 11px; color: var(--r2v-ink-mute); }

/* Engagement summary grid */
.r2v-eng-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .r2v-eng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .r2v-eng-grid { grid-template-columns: 1fr; } }
.r2v-eng-stat {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  background: var(--r2v-surface-2);
  border: 1px solid var(--r2v-border);
  border-radius: 12px;
}
.r2v-eng-stat__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--r2v-blue-soft); color: var(--r2v-blue-dark);
}
.r2v-eng-stat--green .r2v-eng-stat__icon { background: #DDF3EA; color: #0E6C53; }
.r2v-eng-stat--red   .r2v-eng-stat__icon { background: var(--r2v-red-soft); color: var(--r2v-red); }
.r2v-eng-stat__icon i { width: 20px; height: 20px; }
.r2v-eng-stat__value { font-family: var(--r2v-font-head); font-weight: 800; font-size: 22px; color: var(--r2v-ink); line-height: 1; }
.r2v-eng-stat__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--r2v-ink-mute); margin-top: 4px; }
.r2v-eng-stat .r2v-kpi__trend { margin-top: 4px; }

/* =========================================================
   Admin calendar (Manage events → Calendar view)
   Distinct from the volunteer events calendar — built for managing.
   ========================================================= */
.r2v-admincal {
  background: var(--r2v-surface);
  border: 1px solid var(--r2v-border);
  border-radius: var(--r2v-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2v-shadow-1);
}
.r2v-admincal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--r2v-border);
  background: linear-gradient(180deg, #FFFCF7, var(--r2v-surface));
  flex-wrap: wrap; gap: 12px;
}
.r2v-admincal__title-wrap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.r2v-admincal__title { font-family: var(--r2v-font-head); font-size: 20px; font-weight: 800; color: var(--r2v-blue-dark); }
.r2v-admincal__stats {
  display: flex; align-items: center; gap: 8px;
  color: var(--r2v-ink-soft); font-size: 13px;
}
.r2v-admincal__stats strong { color: var(--r2v-ink); font-weight: 800; }
.r2v-admincal__nav { display: flex; align-items: center; gap: 6px; }

.r2v-admincal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.r2v-admincal__dow {
  padding: 8px 10px; font-size: 12px; font-weight: 800; color: var(--r2v-ink-mute);
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--r2v-surface-2);
  border-bottom: 1px solid var(--r2v-border);
}

.r2v-admincal__cell {
  min-height: 124px; padding: 6px;
  border-right: 1px solid var(--r2v-border);
  border-bottom: 1px solid var(--r2v-border);
  background: #fff;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.r2v-admincal__cell:nth-child(7n) { border-right: 0; }
.r2v-admincal__cell--other { background: #FBF7F0; color: var(--r2v-ink-mute); }
.r2v-admincal__cell--today { background: linear-gradient(180deg, #FFF6E5, #fff 70%); }
.r2v-admincal__cell--today .r2v-admincal__cell-num { background: var(--r2v-red-hot); color: #fff; }

.r2v-admincal__cell-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.r2v-admincal__cell-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-weight: 800; font-size: 12px; color: var(--r2v-ink-soft);
}
.r2v-admincal__add {
  width: 22px; height: 22px; border-radius: 6px;
  background: transparent; border: 1px dashed transparent; color: var(--r2v-ink-mute);
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity var(--r2v-dur), background var(--r2v-dur), border-color var(--r2v-dur), color var(--r2v-dur);
}
.r2v-admincal__add i { width: 13px; height: 13px; }
.r2v-admincal__cell:hover .r2v-admincal__add { opacity: 1; border-color: var(--r2v-border-2); }
.r2v-admincal__add:hover { background: var(--r2v-blue-soft); color: var(--r2v-blue-dark); border-color: var(--r2v-blue-teal); opacity: 1; }

.r2v-admincal__chip {
  display: grid; grid-template-columns: 1fr auto;
  align-items: stretch;
  background: var(--r2v-surface-2);
  border: 1px solid var(--r2v-border);
  border-left: 3px solid var(--r2v-blue-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--r2v-dur), box-shadow var(--r2v-dur), background var(--r2v-dur);
}
.r2v-admincal__chip:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: var(--r2v-shadow-1);
}
.r2v-admincal__chip-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px; align-items: center;
  padding: 4px 8px;
  min-width: 0;
  text-decoration: none; color: inherit;
}
.r2v-admincal__chip-main:hover { text-decoration: none; color: inherit; }
.r2v-admincal__chip-time {
  font-family: var(--r2v-font-head); font-weight: 800; font-size: 10px;
  color: var(--r2v-blue-dark);
  letter-spacing: .02em;
}
.r2v-admincal__chip-title {
  font-size: 11px; font-weight: 700; color: var(--r2v-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r2v-admincal__chip-signups {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; color: var(--r2v-ink-soft);
  background: rgba(0,0,0,.05); padding: 2px 6px; border-radius: 999px;
}
.r2v-admincal__chip-signups i { width: 10px; height: 10px; }
.r2v-admincal__chip-edit {
  border: 0; background: transparent; cursor: pointer;
  padding: 0 8px;
  color: var(--r2v-ink-mute);
  border-left: 1px solid var(--r2v-border);
  display: grid; place-items: center;
  transition: background var(--r2v-dur), color var(--r2v-dur);
}
.r2v-admincal__chip-edit:hover { background: var(--r2v-blue-dark); color: #fff; }
.r2v-admincal__chip-edit i { width: 12px; height: 12px; }

.r2v-admincal__more {
  border: 0; background: transparent; cursor: pointer;
  padding: 2px 4px;
  font-size: 11px; font-weight: 700; color: var(--r2v-blue-dark);
  text-align: left;
  border-radius: 4px;
  transition: background var(--r2v-dur);
}
.r2v-admincal__more:hover { background: var(--r2v-blue-soft); }

@media (max-width: 900px) {
  .r2v-admincal__cell { min-height: 90px; padding: 4px; }
  .r2v-admincal__chip-title { display: none; }
  .r2v-admincal__chip-main { grid-template-columns: auto 1fr; padding: 4px 6px; }
}
@media (max-width: 600px) {
  .r2v-admincal__cell { min-height: 70px; padding: 3px; }
  .r2v-admincal__chip-signups { padding: 1px 4px; font-size: 9px; }
  .r2v-admincal__cell-num { width: 22px; height: 22px; font-size: 11px; }
  .r2v-admincal__add { display: none; }
}
