
.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-month {
  min-width: 9.5em;
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cal-legend .cal-chip {
  width: auto;
  cursor: default;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 3px solid var(--espresso);
  border-radius: 14px;
  background: var(--foam);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.cal-weekday {
  padding: 6px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 108px;
  padding: 4px;
  border-right: 1px solid rgba(59, 34, 24, 0.2);
  border-bottom: 1px solid rgba(59, 34, 24, 0.2);
  min-width: 0;
}

.cal-day:nth-child(7n + 7) {
  border-right: 0;
}

.cal-day.is-other {
  background: rgba(244, 230, 201, 0.55);
}

.cal-day.is-other .cal-date {
  opacity: 0.45;
}

.cal-date {
  align-self: flex-end;
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.cal-day.is-today .cal-date {
  border-radius: 999px;
  background: var(--caramel);
  color: var(--foam);
}

.cal-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 2px 6px;
  border: 1.5px solid var(--espresso);
  border-radius: 6px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.cal-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-time {
  flex-shrink: 0;
  font-weight: 800;
}

.cal-chip.is-hangout { background: var(--mustard); }

.cal-chip.is-hangout_option { background: var(--foam); border-style: dashed; }

.cal-chip.is-movie_night { background: #f3c9a5; }

.cal-chip.is-deadline { background: #e8e0cf; }

.cal-chip.is-birthday { background: #f6c3c9; }

.cal-chip.is-holiday { background: #d7e8c8; }

.cal-more {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--caramel);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
}

.cal-agenda {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-agenda-day {
  padding: 10px 0;
  border-bottom: 2px dotted rgba(59, 34, 24, 0.25);
}

.cal-agenda-day.is-today .cal-agenda-date {
  color: var(--caramel);
}

.cal-agenda-date {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.cal-agenda .cal-chip,
.cal-day-list .cal-chip {
  margin-bottom: 4px;
  padding: 5px 8px;
  font-size: 0.85rem;
  white-space: normal;
}

@media (max-width: 700px) {
    .cal-grid { display: none; }

    .cal-agenda { display: block; }

    .cal-month { font-size: 1.2rem; min-width: 0; }
}

.cal-when {
  font-weight: 700;
}

.cal-desc {
  white-space: pre-line;
}

.feed-help {
  margin: 12px 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
}

.feed-help li {
  margin-bottom: 6px;
}

.hangout-card .hg-when {
  margin: 0 0 10px;
  font-weight: 700;
}

.hg-desc {
  margin: 0 0 10px;
  white-space: pre-line;
}

.hg-options {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.hg-options th,
.hg-options td {
  padding: 6px 8px;
  vertical-align: middle;
}

.hg-options th {
  width: 34%;
  font-weight: 700;
}

.hg-options tr.is-best th,
.hg-options tr.is-best td {
  background: var(--cream);
}

.hg-options tr th:first-child { border-radius: 10px 0 0 10px; }

.hg-options tr td:last-child { border-radius: 0 10px 10px 0; }

.hg-best {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--avocado);
  color: var(--foam);
  font-size: 0.7rem;
  font-weight: 700;
}

.hg-answers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hg-names {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--mocha);
}

.hg-rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hg-list {
  margin: 2px 0;
  font-size: 0.85rem;
}

.night-past-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.night-past-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 0;
  border-bottom: 2px dotted rgba(59, 34, 24, 0.2);
  font-size: 0.9rem;
}

.night-past-list li > span:first-child {
  min-width: 7.5em;
  color: var(--mocha);
}

@media (max-width: 576px) {
    .hg-options, .hg-options tbody, .hg-options tr, .hg-options th, .hg-options td {
    display: block;
    width: 100%;
  }

    .hg-options tr th:first-child, .hg-options tr td:last-child { border-radius: 0; }
}

#plans-root .btn-link:not(.club-remove) {
  color: var(--caramel);
  font-weight: 700;
}
