.sched-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sched-head h1 { margin: 6px 0 10px; }

/* legend */
.sched-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; }

/* calendar */
.cal-card { padding: 22px; }
.cal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-month { font-size: 22px; min-width: 200px; }
.cal-nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.cal-nav:hover { border-color: var(--text-faint); }
.cal-nav svg { width: 16px; height: 16px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-weekdays span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

/* Fixed height so every day cell is exactly the same size; long titles wrap to the
   next line inside the cell instead of stretching it. */
.cal-day { height: 116px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: border-color .15s, background .15s; }
.cal-day.empty { background: transparent; border-color: transparent; }
.cal-day.has-events { cursor: pointer; }
.cal-day.has-events:hover { border-color: var(--border-2); background: var(--surface-2); }
.cal-day.today { border-color: var(--accent); }
.cal-day.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-daynum { font-size: 13px; color: var(--text-dim); font-family: var(--mono); flex-shrink: 0; }
.cal-day.today .cal-daynum { color: var(--accent); font-weight: 600; }
.cal-pill { font-size: 11px; line-height: 1.25; padding: 3px 6px; border-radius: 5px; color: #0c0d0f; font-weight: 600; white-space: normal; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.cal-more { font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); flex-shrink: 0; }

@media (max-width: 680px) {
  .cal-day { height: 60px; padding: 6px; }
  .cal-pill, .cal-more { display: none; }
  .cal-day.has-events::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
}

/* day detail */
.day-detail { margin-top: 20px; }
.day-detail h3 { margin-bottom: 14px; }
.dd-event { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.dd-event:first-of-type { border-top: none; padding-top: 0; }
.dd-time { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); min-width: 78px; padding-top: 2px; }
.dd-body { flex: 1; }
.dd-body h4 { font-size: 16px; margin-bottom: 5px; }
.dd-body .dd-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 8px 0 12px; }

/* type chip */
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); letter-spacing: 0.02em; }

/* overview */
.sched-overview { margin-top: 40px; }
.ov-item { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--rule); }
.ov-date { text-align: center; min-width: 56px; }
.ov-date .d { font-family: var(--serif); font-size: 26px; line-height: 1; color: #f4f3f1; }
.ov-date .m { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-top: 4px; }
.ov-main { flex: 1; }
.ov-main h4 { font-size: 16px; margin: 6px 0 6px; }
.ov-main .ov-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.ov-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ov-time { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.join-btn svg { width: 14px; height: 14px; }
.no-events { color: var(--text-dim); padding: 8px 0; }
