/* Shared charts: one renderer and one coordinator for both activity views. */
body.admin-ios .activity-workspace-nav { position: sticky; top: 0; z-index: 8; display: flex; gap: 8px; width: 100%; padding: 10px 0; margin: 0 0 16px; background: #f7f7f5; }
body.admin-ios .activity-workspace-nav button { flex: 0 1 180px; min-height: 44px; padding: 8px 16px; border: 1px solid #e9e9e6; border-radius: 10px; background: #fff; color: #68686d; font: inherit; font-weight: 500; }
body.admin-ios .activity-workspace-nav [aria-current="page"] { color: #356c9f; background: #edf4f9; border-color: #dbe8f1; }
body.admin-ios .activity-workspace-nav button:focus-visible { outline: 3px solid #356c9f; outline-offset: 3px; }
body.admin-ios #dashboard-charts { min-width: 0; margin: 24px 0; }
body.admin-ios #dashboard-charts > h2 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
body.admin-ios #dashboard-charts :is(.home-chart-scope, .home-chart-status, .analytics-caption) { color: #68686d; font-size: 14px; line-height: 1.55; }
body.admin-ios #dashboard-charts .home-chart-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
body.admin-ios #dashboard-charts .home-chart-filters label { display: grid; gap: 6px; min-width: 0; color: #68686d; font-size: 14px; }
body.admin-ios #dashboard-charts .home-chart-filters input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #e9e9e6; border-radius: 10px; background: #fff; font: inherit; }
body.admin-ios #dashboard-charts .analytics-panel { min-width: 0; padding: 22px 24px; margin-top: 16px; background: #fff; border: 1px solid #e9e9e6; border-radius: 18px; }
body.admin-ios #dashboard-charts .analytics-panel h2 { color: #252526; font-size: 18px; font-weight: 500; line-height: 1.45; }
body.admin-ios #dashboard-charts .analytics-empty { border: 0; background: #fafaf9; color: #68686d; font-size: 14px; }
body.admin-ios #dashboard-charts .table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
 body.admin-ios #dashboard-charts .home-chart-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 body.admin-ios #dashboard-charts .home-chart-filters button { grid-column: 1 / -1; }
 body.admin-ios #dashboard-charts .analytics-panel { padding: 18px 16px; }
 body.admin-ios .activity-workspace-nav button { flex: 1 1 0; }
}
:is(#analytics-view, #dashboard-charts) .analytics-metric-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 4px;
}
:is(#analytics-view, #dashboard-charts) .analytics-metric-group {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #e9e9e6;
  border-radius: 16px;
}
:is(#analytics-view, #dashboard-charts) .analytics-metric-group h3 { margin: 0 0 2px; color: #252526; font-size: 14px; font-weight: 500; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .analytics-metric-group-note { margin: 0 0 12px; color: #68686d; font-size: 14px; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .analytics-people-lead { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; margin: 8px 0 16px; }
:is(#analytics-view, #dashboard-charts) .analytics-people-lead > span { color: #68686d; font-size: 14px; line-height: 1.45; }
:is(#analytics-view, #dashboard-charts) .analytics-people-lead > strong { justify-self: end; color: #252526; font-size: 32px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#analytics-view, #dashboard-charts) .analytics-people-lead > small { grid-column: 1 / -1; color: #68686d; font-size: 14px; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .analytics-people-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 10px; border-top: 1px solid #e9e9e6; }
:is(#analytics-view, #dashboard-charts) .analytics-people-split-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
:is(#analytics-view, #dashboard-charts) .analytics-people-split-item > span { color: #68686d; font-size: 14px; line-height: 1.45; }
:is(#analytics-view, #dashboard-charts) .analytics-people-split-item > strong { color: #252526; font-size: 18px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#analytics-view, #dashboard-charts) .analytics-count-group { background: #fafaf9; border-color: transparent; }
:is(#analytics-view, #dashboard-charts) .analytics-metric-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
:is(#analytics-view, #dashboard-charts) .analytics-metric-value { display: grid; align-content: start; gap: 2px; min-width: 0; }
:is(#analytics-view, #dashboard-charts) .analytics-metric-value > span { color: #68686d; font-size: 14px; line-height: 1.45; }
:is(#analytics-view, #dashboard-charts) .analytics-metric-value > strong { color: #252526; font-size: 24px; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#analytics-view, #dashboard-charts) .analytics-checked-summary { margin: 8px 0 18px; color: #68686d; font-size: 14px; line-height: 1.55; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-back { margin: 0 0 16px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-daily-pair,
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-demographics-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 12px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-controls label { display: grid; gap: 4px; min-width: min(100%, 220px); color: #68686d; font-size: 14px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-controls select { min-height: 44px; min-width: 220px; max-width: 100%; padding: 8px 12px; color: #252526; background: #fff; border: 1px solid #e9e9e6; border-radius: 10px; font: inherit; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-status { min-height: 1.55em; margin: 6px 0 10px; color: #68686d; font-size: 14px; line-height: 1.55; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart-wrap:focus-visible { outline: 3px solid #356c9f; outline-offset: 3px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart { display: flex; align-items: flex-end; gap: 4px; width: max-content; min-width: 100%; height: 176px; padding: 8px 2px 0; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart-wrap[data-compact="true"] .analytics-traffic-chart { width: 100%; min-width: 100%; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-day { display: grid; grid-template-rows: 18px 126px 22px; flex: 1 0 40px; min-width: 40px; gap: 2px; height: 170px; color: #68686d; text-align: center; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart-wrap[data-compact="true"] .analytics-traffic-day { flex: 1 1 0; min-width: 0; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-count,
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-date { color: #68686d; font-size: 13px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-plot { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 126px; border-bottom: 1px solid #d9d9d6; background: repeating-linear-gradient(to top, transparent 0, transparent 31px, #e9e9e6 32px, transparent 33px); }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-bar { display: block; width: 60%; max-width: 44px; min-height: 0; background: #356c9f; border-radius: 4px 4px 0 0; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-demographics-pair .analytics-empty { min-height: 44px; display: grid; place-content: center; margin: 12px 0 0; padding: 12px; color: #68686d; background: #fafaf9; border-radius: 12px; text-align: center; font-size: 16px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-composition { padding: 22px 24px; background: #fff; border: 1px solid #e9e9e6; border-radius: 18px; }
body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-composition h2 { margin: 0 0 8px; color: #252526; font-size: 18px; font-weight: 500; }
body.admin-ios #dashboard-view .event-metrics { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 14px; }
body.admin-ios #dashboard-view .event-summary-group { min-width: 0; padding: 20px 22px; background: #fff; border: 1px solid #e9e9e6; border-radius: 18px; }
body.admin-ios #dashboard-view .event-summary-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
body.admin-ios #dashboard-view .event-summary-group h3 { margin: 0 0 8px; color: #252526; font-size: 18px; font-weight: 500; line-height: 1.4; }
body.admin-ios #dashboard-view .event-summary-people > h3,
body.admin-ios #dashboard-view .event-summary-people > .event-summary-lead,
body.admin-ios #dashboard-view .event-summary-people > .event-summary-checkin { grid-column: 1 / -1; }
body.admin-ios #dashboard-view .event-summary-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
body.admin-ios #dashboard-view .event-summary-lead > small { flex: 0 0 100%; color: #68686d; font-size: 14px; line-height: 1.55; }
body.admin-ios #dashboard-view .event-summary-lead strong { color: #252526; font-size: 32px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.admin-ios #dashboard-view .event-summary-lead span,
body.admin-ios #dashboard-view .event-summary-note { color: #68686d; font-size: 14px; line-height: 1.55; }
body.admin-ios #dashboard-view .event-summary-secondary { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-width: 0; padding: 9px 0; border-top: 1px solid #f0f0ed; }
body.admin-ios #dashboard-view .event-summary-secondary > span,
body.admin-ios #dashboard-view .event-summary-count > span { color: #68686d; font-size: 14px; line-height: 1.5; }
body.admin-ios #dashboard-view .event-summary-secondary > strong { color: #252526; font-size: 22px; line-height: 1.25; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.admin-ios #dashboard-view .event-summary-secondary > small { grid-column: 1 / -1; color: #68686d; font-size: 14px; line-height: 1.5; }
body.admin-ios #dashboard-view .event-summary-checkin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #f0f0ed; }
body.admin-ios #dashboard-view .event-summary-checkin > span,
body.admin-ios #dashboard-view .event-summary-checkin > small { color: #68686d; font-size: 14px; line-height: 1.5; }
body.admin-ios #dashboard-view .event-summary-checkin > strong { color: #252526; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
body.admin-ios #dashboard-view .event-summary-counts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.admin-ios #dashboard-view .event-summary-count { display: grid; align-content: start; gap: 4px; min-width: 0; }
body.admin-ios #dashboard-view .event-summary-count > strong { color: #252526; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.admin-ios #dashboard-view .event-summary-volunteers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
body.admin-ios #dashboard-view .event-summary-volunteers h3 { width: 100%; }
body.admin-ios #dashboard-view .event-sources > summary { min-height: 44px; display: flex; align-items: center; color: #252526; font-size: 18px; font-weight: 500; cursor: pointer; }
body.admin-ios #dashboard-view .event-sources > summary:focus-visible { outline: 3px solid #356c9f; outline-offset: 3px; border-radius: 6px; }
body.admin-ios #dashboard-view .event-sources > p { color: #68686d; font-size: 14px; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .entry-friends-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 18px 0 8px;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #252526;
  font-size: 14px;
  line-height: 1.55;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 440px);
  margin: 16px 0 8px;
  color: #252526;
  font-size: 16px;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-filter > span { flex: 0 0 auto; }
:is(#analytics-view, #dashboard-charts) .entry-friends-filter select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  color: #252526;
  background: #fff;
  border: 1px solid #e0e0dd;
  border-radius: 10px;
  font: inherit;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-filter-status {
  min-height: 1.55em;
  margin: 4px 0 8px;
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 3px;
  background: #8f938f;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-first .entry-friends-swatch { background: #b08b46; }
:is(#analytics-view, #dashboard-charts) .entry-friends-returning .entry-friends-swatch { background: #6f8b63; }
:is(#analytics-view, #dashboard-charts) .entry-friends-note {
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-wrap {
  width: 100%;
  margin: 18px 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-wrap:focus-visible { outline: 3px solid #356c9f; outline-offset: 3px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  height: 190px;
  padding: 8px 2px 0;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-daily-heading { margin: 16px 0 4px; color: #252526; font-size: 18px; font-weight: 500; line-height: 1.4; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day {
  display: grid;
  grid-template-rows: 20px 136px 22px;
  flex: 1 0 40px;
  align-items: end;
  gap: 2px;
  min-width: 40px;
  height: 180px;
  color: #68686d;
  text-align: center;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-day-count,
body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-day-count { color: #252526; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
:is(#analytics-view, #dashboard-charts) .entry-friends-plot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 136px;
  border-bottom: 1px solid #d9d9d6;
  background: repeating-linear-gradient(to top, transparent 0, transparent 33px, #e9e9e6 34px, transparent 35px);
}
:is(#analytics-view, #dashboard-charts) .entry-friends-bar {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  justify-content: flex-start;
  width: 60%;
  max-width: 44px;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-bar-missing { background: #8f938f; }
:is(#analytics-view, #dashboard-charts) .entry-friends-segment { display: block; flex: 0 0 auto; width: 100%; min-width: 0; min-height: 0; }
:is(#analytics-view, #dashboard-charts) .entry-friends-segment.entry-friends-first { background: #b08b46; }
:is(#analytics-view, #dashboard-charts) .entry-friends-segment.entry-friends-returning { background: #6f8b63; }
:is(#analytics-view, #dashboard-charts) .entry-friends-segment.entry-friends-unknown { background: #8f938f; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day-label,
body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-day-label { color: #68686d; font-size: 13px; line-height: 1.4; white-space: nowrap; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-wrap[data-compact="true"] .entry-friends-chart { width: 100%; min-width: 100%; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-wrap[data-compact="true"] .entry-friends-day { flex: 1 1 0; min-width: 0; }
:is(#analytics-view, #dashboard-charts) .entry-friends-composition { margin: 12px 0 24px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-composition h3 { margin: 0 0 8px; color: #252526; font-size: 18px; font-weight: 500; }
:is(#analytics-view, #dashboard-charts) .entry-friends-composition-track {
  width: 100%;
  height: 26px;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0ed;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-composition-fill { display: flex; height: 100%; min-width: 0; overflow: hidden; border-radius: inherit; }
:is(#analytics-view, #dashboard-charts) .entry-friends-fill-missing { background: #8f938f; }
:is(#analytics-view, #dashboard-charts) .entry-friends-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-breakdown-item {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-breakdown-item strong { color: #252526; font-weight: 500; font-variant-numeric: tabular-nums; }
:is(#analytics-view, #dashboard-charts) .entry-friends-missing { display: block; color: #68686d; font-size: 14px; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .entry-friends-missing p { margin: 0; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison { margin: 20px 0 0; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison h3 { margin: 0 0 8px; color: #252526; font-size: 18px; font-weight: 500; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table { min-width: 0; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table > .table-scroll { margin: 8px 0; overflow-x: auto; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table table { min-width: 600px; font-size: 14px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th,
:is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td { padding: 10px 12px; font-size: 14px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details { margin-top: 24px; border-top: 1px solid #e9e9e6; padding-top: 16px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details > summary { color: #356c9f; cursor: pointer; font-size: 16px; font-weight: 500; }
:is(#analytics-view, #dashboard-charts) .entry-friends-advanced { margin-top: 28px; border-top: 1px solid #e9e9e6; padding-top: 16px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-advanced > summary { color: #356c9f; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.55; }
:is(#analytics-view, #dashboard-charts) .entry-friends-advanced > summary:focus-visible { outline: 3px solid #356c9f; outline-offset: 3px; border-radius: 3px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details > h3 { margin: 20px 0 8px; color: #252526; font-size: 18px; font-weight: 500; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details > .table-scroll { margin: 14px 0 20px; overflow-x: auto; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details table { min-width: 850px; font-size: 14px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-details th,
:is(#analytics-view, #dashboard-charts) .entry-friends-details td { padding: 12px; font-size: 14px; }

@media (max-width: 760px) {
  body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-daily-pair,
  body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-demographics-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.admin-ios :is(#analytics-view, #dashboard-charts) .analytics-traffic-chart-wrap[data-compact="true"] .analytics-traffic-chart { gap: 0; }
  body.admin-ios #dashboard-view .event-metrics { grid-template-columns: minmax(0, 1fr); }
  body.admin-ios #dashboard-view .event-summary-group { padding: 16px; }
  body.admin-ios #dashboard-view .event-summary-people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
  body.admin-ios #dashboard-view .event-summary-counts-grid { gap: 6px; }
  body.admin-ios #dashboard-view .event-summary-count > strong { font-size: 22px; }
  :is(#analytics-view, #dashboard-charts) .analytics-metric-groups { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  :is(#analytics-view, #dashboard-charts) .analytics-metric-group { padding: 16px; }
  :is(#analytics-view, #dashboard-charts) .analytics-metric-value > strong { font-size: 24px; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-legend { gap: 8px 16px; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-chart { gap: 2px; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-chart-wrap[data-compact="true"] .entry-friends-chart { gap: 0; min-width: 238px; padding-inline: 0; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-breakdown { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-details > .table-scroll { overflow-x: auto; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table table { width: 100%; min-width: 0; table-layout: fixed; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th,
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td { padding: 8px 4px; font-size: 14px; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th { white-space: normal; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th:first-child,
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td:first-child { width: 28%; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th:not(:first-child) { width: 18%; white-space: normal; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td:not(:first-child) { width: 18%; white-space: nowrap; font-variant-numeric: tabular-nums; }
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td:first-child { overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table th,
  :is(#analytics-view, #dashboard-charts) .entry-friends-comparison-table td { padding-inline: 2px; }
}

/* Approved shadcn-inspired layout skin. Loaded after the shared warm-white layers. */
html.admin-shadcn body.admin-ios {
  --shadcn-paper: #f7f7f5;
  --shadcn-panel: #fff;
  --shadcn-ink: #252526;
  --shadcn-muted: #68686d;
  --shadcn-line: #e9e9e6;
  --shadcn-blue: #356c9f;
  background: var(--shadcn-paper);
}

html.admin-shadcn body.admin-ios .sidebar {
  width: 224px;
  min-width: 224px;
  flex-basis: 224px;
  background: #fbfbfa;
}

html.admin-shadcn body.admin-ios .content {
  padding: 24px 28px 36px;
}

html.admin-shadcn body.admin-ios .page-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

html.admin-shadcn body.admin-ios:has(#dashboard-view:not([hidden])) .page-heading,
html.admin-shadcn body.admin-ios:has(#analytics-view:not([hidden])) .page-heading { display: none; }

html.admin-shadcn body.admin-ios .topbar { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; }
html.admin-shadcn body.admin-ios .topbar #refresh { width: auto; min-height: 38px; margin-left: auto; padding: 6px 12px; white-space: nowrap; }
html.admin-shadcn body.admin-ios .topbar #refresh { min-height: 44px; }
html.admin-shadcn body.admin-ios .topbar .account-profile { width: auto; min-height: 44px; white-space: nowrap; }

html.admin-shadcn body.admin-ios .event-picker {
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid var(--shadcn-line);
  border-radius: 10px;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios .event-picker-heading { display: block; }
html.admin-shadcn body.admin-ios .event-picker-heading > div { display: none; }
html.admin-shadcn body.admin-ios .event-picker-heading label { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; color: var(--shadcn-muted); font-size: 14px; }
html.admin-shadcn body.admin-ios .event-picker-heading select { width: 100%; min-width: 0; min-height: 44px; }
html.admin-shadcn body.admin-ios .event-cards { max-height: 112px; margin-top: 6px; overflow: auto; }

html.admin-shadcn body.admin-ios #dashboard-view,
html.admin-shadcn body.admin-ios #analytics-view {
  min-width: 0;
}

html.admin-shadcn body.admin-ios .activity-workspace-nav {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  background: #f0f0ed;
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
}
html.admin-shadcn body.admin-ios #analytics-view .activity-workspace-nav { margin-bottom: 12px; }

html.admin-shadcn body.admin-ios .activity-workspace-nav button {
  width: auto;
  min-width: 112px;
  min-height: 44px;
  padding: 8px 14px;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--shadcn-muted);
  font-size: 14px;
}

html.admin-shadcn body.admin-ios .activity-workspace-nav button[aria-current="page"] {
  color: var(--shadcn-ink);
  background: #fff;
  box-shadow: 0 1px 2px rgb(37 37 38 / 8%);
  font-weight: 500;
}

html.admin-shadcn body.admin-ios .gather-management {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.admin-shadcn body.admin-ios #dashboard-view.event-dashboard,
html.admin-shadcn body.admin-ios #analytics-view {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios #dashboard-view .gather-management {
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.admin-shadcn body.admin-ios .gather-management > .event-picker,
html.admin-shadcn body.admin-ios .gather-management > .event-detail-heading,
html.admin-shadcn body.admin-ios .gather-management > .event-collection,
html.admin-shadcn body.admin-ios .gather-management > [data-gather-totals],
html.admin-shadcn body.admin-ios .gather-management > .event-count-note,
html.admin-shadcn body.admin-ios .gather-management > #dashboard-charts,
html.admin-shadcn body.admin-ios .gather-management > .shadcn-activity-summary,
html.admin-shadcn body.admin-ios .gather-management > .event-detail-actions,
html.admin-shadcn body.admin-ios .gather-management > [data-guardian-groups],
html.admin-shadcn body.admin-ios .gather-management > .event-sources,
html.admin-shadcn body.admin-ios .gather-management > .event-settings,
html.admin-shadcn body.admin-ios .gather-management > #event-roster {
  min-width: 0;
  margin: 0;
}

html.admin-shadcn body.admin-ios .gather-management > [data-gather-totals] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios .gather-management > .event-detail-heading { order: 0; }
html.admin-shadcn body.admin-ios .gather-management > .event-collection { order: 1; }
html.admin-shadcn body.admin-ios .gather-management > [data-gather-totals] { order: 2; }
html.admin-shadcn body.admin-ios .gather-management > .event-count-note { order: 3; }
html.admin-shadcn body.admin-ios .gather-management > #dashboard-charts { order: 4; }
html.admin-shadcn body.admin-ios .gather-management > .shadcn-activity-summary { order: 5; }
html.admin-shadcn body.admin-ios .gather-management > .event-detail-actions { order: 6; }
html.admin-shadcn body.admin-ios .gather-management > [data-guardian-groups] { order: 7; }
html.admin-shadcn body.admin-ios .gather-management > .event-sources { order: 8; }
html.admin-shadcn body.admin-ios .gather-management > .event-settings { order: 9; }
html.admin-shadcn body.admin-ios .gather-management > #event-roster { order: 10; }
html.admin-shadcn body.admin-ios #dashboard-view .event-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  grid-column: auto;
  min-width: 0;
  min-height: 84px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell + .shadcn-summary-cell { border-left: 1px solid var(--shadcn-line); }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .event-summary-lead { margin: 0; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell > :is(span, strong, small) { flex: none; width: auto; min-width: 0; grid-column: auto; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell > small { flex-basis: auto; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell > strong { margin: 0; font-size: 22px; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-total > strong { font-size: 30px; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading { padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading :is(h2, p) { margin: 0; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading h2 { font-size: 22px; font-weight: 500; line-height: 1.3; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading > div { display: grid; gap: 2px; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading [data-event-place] { display: none; }
html.admin-shadcn body.admin-ios #dashboard-view .event-collection { margin: 0; padding: 6px 10px; background: #f0f0ed; border: 0; border-radius: 8px; box-shadow: none; font-size: 14px; line-height: 1.45; }
html.admin-shadcn body.admin-ios #dashboard-view > [data-gather-notice] { margin: 4px 0; font-size: 14px; }
html.admin-shadcn body.admin-ios #dashboard-view > [data-gather-notice][data-compact-sync="true"] { margin: 4px 0; font-size: 12px; line-height: 1.5; white-space: nowrap; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

html.admin-shadcn body.admin-ios .shadcn-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html.admin-shadcn body.admin-ios .shadcn-summary-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 94px;
  padding: 14px 16px;
  background: var(--shadcn-panel);
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(37 37 38 / 3%);
}

html.admin-shadcn body.admin-ios .shadcn-summary-cell > span,
html.admin-shadcn body.admin-ios .shadcn-summary-cell > small {
  color: var(--shadcn-muted);
  font-size: 14px;
  line-height: 1.45;
}

html.admin-shadcn body.admin-ios .shadcn-summary-cell > strong {
  display: block;
  min-width: 0;
  color: var(--shadcn-ink);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

html.admin-shadcn body.admin-ios .shadcn-summary-total > strong { font-size: 30px; }
html.admin-shadcn body.admin-ios .shadcn-summary-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 4px 2px;
  color: var(--shadcn-muted);
}
html.admin-shadcn body.admin-ios .shadcn-summary-subline strong { color: var(--shadcn-ink); font-size: 14px; font-weight: 500; }
html.admin-shadcn body.admin-ios .shadcn-summary-subline small { font-size: 14px; }

html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts h3 { flex: 0 0 auto; margin: 0; font-size: 14px; font-weight: 500; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts > .event-summary-note { flex: 1 1 auto; margin: 0; color: var(--shadcn-muted); font-size: 14px; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  width: 100%;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts-grid .event-summary-count { display: flex; flex: 0 0 auto; gap: 5px; align-items: baseline; padding: 0; background: transparent; border: 0; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts-grid span { color: var(--shadcn-muted); font-size: 14px; }
html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts-grid strong { color: var(--shadcn-ink); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }

html.admin-shadcn body.admin-ios .event-count-note { margin: 0; color: var(--shadcn-muted); font-size: 14px; }

html.admin-shadcn body.admin-ios #dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  margin: 8px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}

html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results],
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  min-width: 0;
}

html.admin-shadcn body.admin-ios #dashboard-charts > h2,
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-scope { grid-column: 1; }
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-filters { grid-column: 2; grid-row: 1 / span 2; }
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-status,
html.admin-shadcn body.admin-ios #dashboard-charts > [data-home-chart-results] {
  grid-column: 1 / -1;
}
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .insights-metrics,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .analytics-metric-groups,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .analytics-checked-summary,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-filter-status,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-filter {
  grid-column: 1 / -1;
}

html.admin-shadcn body.admin-ios #dashboard-charts > h2 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; }
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-scope,
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-status { margin: 0; color: var(--shadcn-muted); font-size: 14px; line-height: 1.4; }
html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters { display: grid; grid-template-columns: repeat(2, minmax(110px, 150px)) auto; gap: 6px; align-items: end; margin: 0; }
html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters label { margin: 0; gap: 2px; font-size: 14px; }
html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters input { min-height: 44px; font-size: 16px; }
html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters button { grid-column: auto; min-height: 44px; padding: 8px 12px; }

html.admin-shadcn body.admin-ios #dashboard-charts .analytics-daily-pair,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-daily-pair,
html.admin-shadcn body.admin-ios #analytics-view .analytics-daily-pair {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  order: 0;
}

html.admin-shadcn body.admin-ios #dashboard-charts .analytics-demographics-pair,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-demographics-pair,
html.admin-shadcn body.admin-ios #analytics-view .analytics-demographics-pair { display: contents; }

html.admin-shadcn body.admin-ios #dashboard-charts .analytics-panel,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-panel,
html.admin-shadcn body.admin-ios #analytics-view .analytics-panel,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-composition,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-composition,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-comparison,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-comparison,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-composition,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-comparison,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-details,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-details,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-details,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-advanced,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-advanced,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-advanced {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(37 37 38 / 3%);
}

html.admin-shadcn body.admin-ios #dashboard-charts :is(h2, h3),
html.admin-shadcn body.admin-ios #analytics-view :is(h2, h3) { color: var(--shadcn-ink); font-weight: 500; }
html.admin-shadcn body.admin-ios #dashboard-charts :is(p, small, .entry-friends-note),
html.admin-shadcn body.admin-ios #analytics-view :is(p, small, .entry-friends-note) { color: var(--shadcn-muted); }
html.admin-shadcn body.admin-ios #dashboard-charts .analytics-panel h2,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-panel h2,
html.admin-shadcn body.admin-ios #analytics-view .analytics-panel h2,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-composition h2,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-composition h2,
html.admin-shadcn body.admin-ios #dashboard-charts .entry-friends-comparison h2,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .entry-friends-comparison h2,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-composition h2,
html.admin-shadcn body.admin-ios #analytics-view .entry-friends-comparison h2 { margin: 0 0 10px; font-size: 16px; }

html.admin-shadcn body.admin-ios #dashboard-charts > .entry-friends-composition,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-composition,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-composition { grid-column: 1; order: 1; }
html.admin-shadcn body.admin-ios #dashboard-charts > .entry-friends-comparison,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-comparison,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-comparison { grid-column: 2; order: 1; }
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-composition,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-comparison { order: 1; }
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-demographics-pair > *,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] .analytics-demographics-pair > * { order: 2; }
html.admin-shadcn body.admin-ios #dashboard-charts > .entry-friends-details,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-details,
html.admin-shadcn body.admin-ios #dashboard-charts > .entry-friends-advanced,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-advanced,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-details,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-advanced { grid-column: 1 / -1; order: 4; }
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-details,
html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-advanced,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .entry-friends-details { order: 3; }

html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .analytics-demographics-pair,
html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > .analytics-demographics-pair { order: 2; }

html.admin-shadcn body.admin-ios :is(#dashboard-charts, #analytics-view) .entry-friends-comparison-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
html.admin-shadcn body.admin-ios :is(#dashboard-charts, #analytics-view) .entry-friends-comparison-table th {
  white-space: normal;
}
html.admin-shadcn body.admin-ios :is(#dashboard-charts, #analytics-view) .entry-friends-comparison-table :is(th, td):first-child { width: 28%; }
html.admin-shadcn body.admin-ios :is(#dashboard-charts, #analytics-view) .entry-friends-comparison-table :is(th, td):not(:first-child) { width: 18%; }

html.admin-shadcn body.admin-ios .shadcn-activity-summary {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(37 37 38 / 3%);
}
html.admin-shadcn body.admin-ios .shadcn-activity-summary h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
html.admin-shadcn body.admin-ios .shadcn-checkin-line { display: flex; gap: 4px; align-items: baseline; margin: 0; color: var(--shadcn-muted); font-size: 14px; }
html.admin-shadcn body.admin-ios .shadcn-checkin-value { color: var(--shadcn-ink); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

html.admin-shadcn body.admin-ios .event-detail-actions,
html.admin-shadcn body.admin-ios .event-sources,
html.admin-shadcn body.admin-ios .event-settings,
html.admin-shadcn body.admin-ios #event-roster,
html.admin-shadcn body.admin-ios [data-guardian-groups] {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--shadcn-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(37 37 38 / 3%);
}

@media (max-width: 1024px) {
  html.admin-shadcn body.admin-ios .content { padding: 20px; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell:nth-child(3) { border-top: 1px solid var(--shadcn-line); border-left: 0; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell:nth-child(4) { border-top: 1px solid var(--shadcn-line); }
  html.admin-shadcn body.admin-ios #dashboard-charts { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results],
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts .analytics-daily-pair,
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-daily-pair,
  html.admin-shadcn body.admin-ios #analytics-view .analytics-daily-pair,
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] .analytics-daily-pair { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > :is(.entry-friends-composition, .entry-friends-comparison),
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > :is(.entry-friends-composition, .entry-friends-comparison),
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-demographics-pair > *,
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] .analytics-demographics-pair > * { grid-column: 1 / -1; width: 100%; }
  html.admin-shadcn body.admin-ios #dashboard-charts > h2,
  html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-scope,
  html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-filters { grid-column: 1; grid-row: auto; }
  html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
}

@media (max-width: 760px) {
  html.admin-shadcn body.admin-ios .content { padding: 16px; }
  html.admin-shadcn body.admin-ios .topbar { height: auto; min-height: 54px; }
  html.admin-shadcn body.admin-ios .sidebar { width: auto; min-width: 0; flex-basis: auto; }
  html.admin-shadcn body.admin-ios #dashboard-charts,
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-scope,
  html.admin-shadcn body.admin-ios #dashboard-charts > h2,
  html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-filters { grid-column: 1; grid-row: auto; }
  html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
  html.admin-shadcn body.admin-ios #dashboard-charts .home-chart-filters button { grid-column: 1 / -1; }
  html.admin-shadcn body.admin-ios #dashboard-charts .analytics-daily-pair,
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-daily-pair,
  html.admin-shadcn body.admin-ios #analytics-view .analytics-daily-pair { grid-template-columns: minmax(0, 1fr); }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-daily-pair > :first-child,
  html.admin-shadcn body.admin-ios #analytics-view .analytics-daily-pair > :first-child { order: 0; }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-daily-pair > :last-child,
  html.admin-shadcn body.admin-ios #analytics-view .analytics-daily-pair > :last-child { order: 1; }
  html.admin-shadcn body.admin-ios #dashboard-charts > :is(.entry-friends-composition, .entry-friends-comparison),
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > :is(.entry-friends-composition, .entry-friends-comparison),
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] > :is(.entry-friends-composition, .entry-friends-comparison) { grid-column: 1 / -1; width: 100%; }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-composition,
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] > .entry-friends-comparison { grid-column: 1 / -1; width: 100%; }
  html.admin-shadcn body.admin-ios #dashboard-charts [data-home-chart-results] .analytics-demographics-pair > *,
  html.admin-shadcn body.admin-ios #analytics-view [data-insights-results] .analytics-demographics-pair > * { grid-column: 1 / -1; width: 100%; order: 2; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell { min-height: 78px; padding: 10px 12px; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell:nth-child(3) { border-top: 1px solid var(--shadcn-line); border-left: 0; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-cell:nth-child(4) { border-top: 1px solid var(--shadcn-line); }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-people > .shadcn-summary-total > strong { font-size: 28px; }
  html.admin-shadcn body.admin-ios #dashboard-view .event-summary-counts { gap: 4px 10px; }
}

/* Readable registration counts on stacked bars, with labels outside only when needed. */
:is(#analytics-view, #dashboard-charts) .entry-friends-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
:is(#analytics-view, #dashboard-charts) .entry-friends-day-labels { display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; height: 100%; min-width: 0; overflow: visible; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day-note { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 20px; color: #111111; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
:is(#analytics-view, #dashboard-charts) .entry-friends-side-swatch { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #8f938f; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day-note.entry-friends-first .entry-friends-side-swatch { background: #b08b46; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day-note.entry-friends-returning .entry-friends-side-swatch { background: #6f8b63; }
:is(#analytics-view, #dashboard-charts) .entry-friends-day-note.entry-friends-unknown .entry-friends-side-swatch { background: #8f938f; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-with-labels { height: 262px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-with-labels .entry-friends-day { grid-template-rows: 20px 136px 60px 22px; height: 244px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-with-wide-labels { width: max-content; min-width: 100%; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart-with-wide-labels .entry-friends-day { flex: 1 0 48px; min-width: 48px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-chart:not(.entry-friends-chart-with-labels) .entry-friends-day { grid-template-rows: 20px 136px 0 22px; }
:is(#analytics-view, #dashboard-charts) .entry-friends-filter-status[data-chart-compact="true"] { display: flex; align-items: baseline; gap: 0; box-sizing: border-box; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; font-size: 12px; line-height: 1.5; }
:is(#analytics-view, #dashboard-charts) .entry-friends-filter-status[data-chart-compact="true"] .entry-friends-filter-status-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#analytics-view, #dashboard-charts) .entry-friends-filter-status[data-chart-compact="true"] .entry-friends-filter-status-range { flex: 0 0 auto; white-space: nowrap; }
html.admin-shadcn body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-segment[data-count],
html.admin-shadcn body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-day-note[data-count],
html.admin-shadcn body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-day-note[data-count] > span { font-size: 13px; }
html.admin-shadcn body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-filter-status[data-chart-compact="true"] > .entry-friends-filter-status-name,
html.admin-shadcn body.admin-ios :is(#analytics-view, #dashboard-charts) .entry-friends-filter-status[data-chart-compact="true"] > .entry-friends-filter-status-range { font-size: 12px; }
html.admin-shadcn body.admin-ios #dashboard-charts > .home-chart-status[data-chart-compact="true"] { box-sizing: border-box; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; white-space: nowrap; font-size: 12px; line-height: 1.5; }
html.admin-shadcn body.admin-ios #analytics-view > [data-insights-status] { font-size: 14px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
html.admin-shadcn body.admin-ios #analytics-view > [data-insights-status][data-chart-compact="true"] { box-sizing: border-box; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; white-space: nowrap; font-size: 12px; line-height: 1.5; }

/* The existing collection node follows its native open-state decision. */
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
html.admin-shadcn body.admin-ios #dashboard-view .event-detail-heading > .event-status-stack {
 display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 6px;
}
html.admin-shadcn body.admin-ios #dashboard-view .event-status-stack > [data-event-collection][data-open-registration-pill] {
 display: inline-flex; align-items: center; width: auto; margin: 0; padding: 4px 10px;
 border: 0; border-radius: 999px; background: #e9eff7; color: #315f98;
 font-size: 14px; font-weight: 400; line-height: 1.55; white-space: nowrap; box-shadow: none;
}

/* Full-scope roster search and cursor paging; controls stay with the roster. */
html.admin-shadcn body.admin-ios .gather-management > .roster-search {
  order: 10;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 12px 0 4px;
  padding: 16px;
  color: #252526;
  background: #fff;
  border: 1px solid #e9e9e6;
  border-radius: 14px;
}

html.admin-shadcn body.admin-ios .roster-search > label {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

html.admin-shadcn body.admin-ios .roster-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

html.admin-shadcn body.admin-ios .roster-search-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  color: #252526;
  background: #fff;
  border: 1px solid #d9d9d5;
  border-radius: 10px;
  font: inherit;
}

html.admin-shadcn body.admin-ios .roster-search-controls button,
html.admin-shadcn body.admin-ios .roster-pagination button {
  min-height: 44px;
  white-space: nowrap;
}

html.admin-shadcn body.admin-ios .roster-search-controls :focus-visible,
html.admin-shadcn body.admin-ios .roster-pagination :focus-visible,
html.admin-shadcn body.admin-ios #event-roster > summary:focus-visible {
  outline: 3px solid #356c9f;
  outline-offset: 2px;
}

html.admin-shadcn body.admin-ios .roster-search-status {
  min-height: 0;
  margin: 0;
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}

html.admin-shadcn body.admin-ios #event-roster {
  order: 10;
  min-width: 0;
}

html.admin-shadcn body.admin-ios #event-roster > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

html.admin-shadcn body.admin-ios #event-roster > summary::before {
  content: "›";
  flex: 0 0 24px;
  color: #356c9f;
  font-size: 24px;
  line-height: 1;
}

html.admin-shadcn body.admin-ios #event-roster[open] > summary::before {
  content: "⌄";
}

html.admin-shadcn body.admin-ios .roster-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}

html.admin-shadcn body.admin-ios .roster-pagination [data-roster-page-status] {
  flex: 1 1 auto;
  text-align: center;
}

@media (max-width: 560px) {
  html.admin-shadcn body.admin-ios .gather-management > .roster-search {
    padding: 12px;
  }

  html.admin-shadcn body.admin-ios .roster-search-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html.admin-shadcn body.admin-ios .roster-search-controls input {
    grid-column: 1 / -1;
  }

  html.admin-shadcn body.admin-ios .roster-search-controls button {
    width: 100%;
  }
}

html.admin-shadcn body.admin-ios .roster-page-jump {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

html.admin-shadcn body.admin-ios .roster-page-jump label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #68686d;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

html.admin-shadcn body.admin-ios .roster-page-jump input[type="number"] {
  box-sizing: border-box;
  width: 5.5ch;
  min-width: 72px;
  max-width: 88px;
  min-height: 44px;
  padding: 8px;
  color: #252526;
  background: #fff;
  border: 1px solid #d9d9d5;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

html.admin-shadcn body.admin-ios .roster-page-jump > span,
html.admin-shadcn body.admin-ios .roster-pagination [data-roster-page-status] {
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}

html.admin-shadcn body.admin-ios .roster-page-jump button {
  min-height: 44px;
  white-space: nowrap;
}

html.admin-shadcn body.admin-ios .roster-page-jump :focus-visible {
  outline: 3px solid #356c9f;
  outline-offset: 2px;
}

html.admin-shadcn body.admin-ios .roster-order-note {
  margin-block: 4px 8px;
  color: #68686d;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  html.admin-shadcn body.admin-ios .roster-page-jump {
    flex-basis: 100%;
  }

  html.admin-shadcn body.admin-ios .roster-pagination [data-roster-page-status] {
    flex: 1 1 100%;
    text-align: left;
  }
}

.recruitment-export{display:grid;gap:12px;margin:16px 0;padding:16px;border:1px solid var(--line,#e9e9e6);border-radius:12px;background:var(--panel,#fff)}
.recruitment-export[hidden]{display:none}
.recruitment-export h3{margin:0 0 4px;font-size:16px;font-weight:500}
.recruitment-export p{margin:0;color:var(--muted,#68686d);font-size:14px;line-height:1.55}
.recruitment-export label{display:grid;gap:6px;font-size:14px}
.recruitment-export select,.recruitment-export button{min-height:44px;font:inherit}
.recruitment-export select{font-size:16px}
html.admin-shadcn body.admin-ios .gather-management > .recruitment-export{order:10}
.recruitment-export-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.recruitment-export-status:empty{display:none}
.recruitment-export[aria-busy=true]{cursor:progress}
@media(max-width:520px){.recruitment-export{padding:14px}.recruitment-export-actions{display:grid;grid-template-columns:1fr}.recruitment-export-actions .button{width:100%}}
