.ev-chip, .tabs button, .ev-kind {
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.ev-chip.on, .ev-kind.on, .tabs button[aria-selected="true"] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.ev-filters, .ev-kinds, .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ev-kinds, .tabs { margin-top: 14px; }
.ev-day h3 { margin: 18px 0 8px; }
.ev-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; }
.ev-back .icon { width: 20px; height: 20px; }
#ev-new .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

.ev-card {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ev-card.cancelled { opacity: 0.65; }
.ev-card.cancelled .ev-kind-title, .ev-card.cancelled .ev-kind { text-decoration: line-through; }

.ev-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.ev-date { display: grid; justify-items: center; min-width: 40px; line-height: 1.1; }
.ev-date small { font-size: 0.72rem; color: var(--muted); }
.ev-date strong { font-size: 1.3rem; }
.ev-heading { display: grid; min-width: 0; }
.ev-kind { font-weight: 700; font-size: 1.05rem; }
.ev-head .ev-kind { min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; color: inherit; }
.ev-sub { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ev-times { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 12px 4px; text-align: center; }
.ev-times div { display: grid; }
.ev-times span { font-size: 0.75rem; color: var(--muted); }
.ev-place { margin: 4px 12px; color: var(--muted); font-size: 0.9rem; text-align: center; overflow-wrap: anywhere; }
.ev-deadline { margin: 6px 12px; font-size: 0.9rem; text-align: center; color: var(--muted); }
.ev-deadline.over { color: var(--no); }

.ev-cancelled { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 12px; overflow-wrap: anywhere; }
.ev-badge { padding: 2px 10px; font-weight: 700; font-size: 0.8rem; color: #fff; background: var(--no); border-radius: 6px; }

.ev-counts { display: flex; align-items: center; gap: 14px; padding: 6px 12px 10px; }
.ev-count { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ev-count .icon, .ev-answer .icon, .ev-set .icon { width: 20px; height: 20px; }
.ev-count.yes { color: var(--yes); }
.ev-count.maybe { color: var(--maybe); }
.ev-count.no { color: var(--no); }
.ev-people { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; color: var(--muted); }

.ev-mine { padding: 0 12px 12px; display: grid; gap: 10px; }
.ev-who { display: grid; gap: 6px; }
.ev-who-name { font-weight: 600; }
.ev-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.ev-answer, .ev-set {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.ev-answer:disabled { opacity: 0.45; }
.ev-answer.yes.on, .ev-set.yes.on { color: #fff; background: var(--yes); border-color: var(--yes); }
.ev-answer.maybe.on, .ev-set.maybe.on { color: #fff; background: var(--maybe); border-color: var(--maybe); }
.ev-answer.no.on, .ev-set.no.on { color: #fff; background: var(--no); border-color: var(--no); }

.ev-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.ev-info dt { color: var(--muted); }
.ev-info dd { margin: 0; overflow-wrap: anywhere; }
section.ev-mine.card { padding: 12px; margin-bottom: 14px; }
section.ev-mine h3 { margin: 0; }
.ev-manage { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ev-manage .btn { min-height: 44px; display: inline-flex; align-items: center; }

.ev-group { margin-top: 18px; }
.ev-group-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.ev-group-title { margin: 0; }
.ev-group-count { font-weight: 700; color: var(--muted); }
.ev-group-roles { margin: 4px 0; font-size: 0.8rem; color: var(--muted); }
.ev-people-list { margin: 0; padding: 0; list-style: none; }

.ev-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.ev-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-radius: 50%;
}

.ev-person-text { display: grid; flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.ev-person-role, .ev-person-note { font-size: 0.8rem; color: var(--muted); }
.ev-set-row { display: flex; gap: 4px; margin-left: auto; }
.ev-set { padding: 0; }
.ev-remove { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); background: none; border: 0; }
.ev-remove .icon { width: 18px; height: 18px; }

.ev-form-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-form select, .sheet select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ev-form input[type="time"], .ev-form input[type="date"] { min-width: 0; }
.ev-form .btn, .sheet .btn { min-height: 44px; }

.abs-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.abs-text { display: grid; min-width: 0; overflow-wrap: anywhere; }
.abs-period { font-size: 0.85rem; color: var(--muted); }
.abs-delete { width: 44px; height: 44px; color: var(--no); }
#all-aboard { margin: 16px 0; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat-tile { display: grid; gap: 2px; text-align: center; }
.stat-tile strong { font-size: 1.3rem; color: var(--accent); }
.stat-tile span { font-size: 0.78rem; color: var(--muted); }
.stat-row { display: grid; gap: 6px; }
.stat-line { display: flex; justify-content: space-between; gap: 8px; }
.stat-name { overflow-wrap: anywhere; }

.bar { display: block; height: 10px; overflow: hidden; background: var(--line); border-radius: 999px; }
.bar-fill { display: block; width: var(--w, 0%); height: 100%; background: var(--yes); border-radius: 999px; }

.cal-link { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.actions .btn, .actions button { min-height: 44px; }
