/* ── Events list ── */
.ev-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px 80px;
}
.ev-list::-webkit-scrollbar { display: none; }

.ev-month-header {
  font-size: 11px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 16px 4px 8px;
}

/* ── Event rows ── */
.ev-row {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-bottom: 6px;
  touch-action: manipulation;
}
.ev-row.gcal-ev-row {
  background: #F8FBFF;
  border-color: #4285F420;
}
.ev-row-stripe { width: 4px; flex-shrink: 0; }
.ev-row-date {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.ev-row-day  { font-size: 18px; font-weight: 500; color: var(--t1); }
.ev-row-mon  { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .4px; }
.ev-row-body { flex: 1; padding: 10px 12px; min-width: 0; }
.ev-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-row-meta { font-size: 12px; color: var(--t3); margin-top: 2px; }

/* GCal tag in event meta */
.ev-gcal-tag {
  font-size: 10px;
  font-weight: 600;
  color: #4285F4;
  letter-spacing: .2px;
}

/* ── Month nav arrows ── */
.ev-month-nav { display: flex; align-items: center; gap: 4px; }
.ev-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.ev-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--t2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── View toggle (Timeline / Month) ── */
.ev-view-toggle {
  display: flex;
  gap: 0;
  padding: 0 20px 12px;
  flex-shrink: 0;
}
.ev-view-btn {
  flex: 1;
  padding: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--t3);
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.ev-view-btn:first-child { border-radius: 10px 0 0 10px; }
.ev-view-btn:last-child  { border-radius: 0 10px 10px 0; margin-left: -1.5px; }
.ev-view-btn.active {
  background: var(--terra);
  color: #fff;
  font-weight: 500;
  border-color: var(--terra);
  z-index: 1;
}

/* ── Filter bar ── */
.ev-filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ev-filter-bar::-webkit-scrollbar { display: none; }

.filter-select {
  padding: 7px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--t2);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239C8E7E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
}
.filter-select.active { border-color: var(--terra); color: var(--terra); }
