.tkc-month,
.tkc-week {
  display: block;
  width: 100%;
}

.tkc-month__toolbar,
.tkc-week__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tkc-month__label,
.tkc-week__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  flex: 1;
}

.tkc-month__nav,
.tkc-week__nav {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 0.75rem;
  min-width: 42px;
  min-height: 42px;
  cursor: pointer;
  font-size: 1rem;
}

.tkc-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tkc-month__weekdays > div {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.35rem 0;
}

.tkc-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.tkc-month__day {
  min-height: 142px;
  padding: 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

.tkc-month__day--outside {
  background: #f8fafc;
  border-style: dashed;
  border-color: #eef2f7;
  cursor: default;
}

.tkc-month__day.is-today,
.tkc-weekgrid__day.is-today {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.tkc-month__day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tkc-month__day-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.tkc-month__events {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tkc-month__event {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.65rem;
  background: #eef2ff;
  color: #312e81;
  padding: 0.44rem 0.5rem 0.48rem;
  border: 1px solid #c7d2fe;
  cursor: pointer;
}

.tkc-month__event:hover,
.tkc-month__event:focus {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.tkc-month__event-time {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.tkc-month__event-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.22;
  color: #111827;
}

.tkc-month__event-session {
  display: block;
  color: #4338ca;
  font-size: 0.68rem;
  margin-top: 0.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkc-month__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.28rem;
}

.tkc-month__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  font-size: 0.64rem;
  line-height: 1.2;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.tkc-month__badge--price {
  background: #111827;
  color: #ffffff;
}

.tkc-month__badge--tinker_level {
  background: #dbeafe;
  color: #1d4ed8;
}

.tkc-month__badge--age {
  background: #ecfeff;
  color: #155e75;
}

.tkc-month__badge--visibility {
  background: #fef3c7;
  color: #92400e;
}

.tkc-month__more {
  font-size: 0.74rem;
  color: #6b7280;
  padding: 0.15rem 0.1rem 0;
}

.tkc-weekgrid {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.tkc-weekgrid__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.tkc-weekgrid__times-head,
.tkc-weekgrid__day-head {
  height: 44px;
}

.tkc-weekgrid__times-head {
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
}

.tkc-weekgrid__times-allday {
  height: 48px;
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.8rem;
}

.tkc-weekgrid__times-body {
  position: relative;
  height: calc(28px * var(--tkc-slot-count, 29));
}

.tkc-weekgrid__time {
  height: 28px;
  font-size: 0.72rem;
  color: #6b7280;
  display: flex;
  align-items: flex-start;
}

.tkc-weekgrid__day {
  display: grid;
  grid-template-rows: 44px 48px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.tkc-weekgrid__day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.tkc-weekgrid__day-label { font-weight:700; color:#111827; font-size:0.9rem; }
.tkc-weekgrid__day-count { font-size:0.75rem; color:#6b7280; }

.tkc-weekgrid__allday {
  padding: 0.45rem 0.45rem 0.35rem;
  border-bottom: 1px solid #f3f4f6;
  display: grid;
  gap: 0.35rem;
}

.tkc-weekgrid__allday-item {
  width: 100%;
  text-align: left;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #312e81;
  border-radius: 0.65rem;
  padding: 0.36rem 0.46rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.tkc-weekgrid__tracks {
  position: relative;
  height: calc(28px * var(--tkc-slot-count, 29));
}

.tkc-weekgrid__slot {
  height: 28px;
  border-top: 1px solid #f3f4f6;
}

.tkc-weekgrid__event {
  position: absolute;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-radius: 0.78rem;
  padding: 0.34rem 0.4rem 0.4rem;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.tkc-weekgrid__event:hover,
.tkc-weekgrid__event:focus {
  background: #f8fafc;
  border-color: #a5b4fc;
}

.tkc-weekgrid__event-time { font-size:0.68rem; font-weight:700; color:#4338ca; margin-bottom:0.16rem; line-height:1.15; }
.tkc-weekgrid__event-title { font-size:0.8rem; font-weight:700; color:#111827; line-height:1.18; }
.tkc-weekgrid__event-session { font-size:0.7rem; color:#475569; margin-top:0.15rem; line-height:1.15; }
.tkc-weekgrid__event .tkc-badges { margin-top:0.26rem; gap:0.22rem; }
.tkc-weekgrid__event .tkc-badge { font-size:0.6rem; padding:0.08rem 0.3rem; }

@media (max-width: 1100px) {
  .tkc-month__grid,
  .tkc-month__weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tkc-weekgrid {
    grid-template-columns: 1fr;
  }
  .tkc-weekgrid__times {
    display: none;
  }
  .tkc-weekgrid__days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tkc-month__grid,
  .tkc-month__weekdays,
  .tkc-weekgrid__days {
    grid-template-columns: 1fr;
  }

  .tkc-month__day {
    min-height: auto;
  }
}
