.aim-tt {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  font-family: inherit;
}

.aim-tt-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.aim-tt-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.aim-tt-dates {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.aim-tt-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.aim-tt-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.aim-tt-btn.is-active {
  border-color: #3fe1d1;
  box-shadow: 0 0 0 3px rgba(63, 225, 209, 0.25);
}

.aim-tt-day {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.aim-tt-body {
  padding: 14px 16px 18px;
}

.aim-tt-loading {
  color: #6b7280;
  font-size: 14px;
}

.aim-tt-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.aim-tt-col {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
}

.aim-tt-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.aim-tt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.aim-tt-item {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
}

.aim-tt-item a {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

.aim-tt-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  display: grid;
  gap: 2px;
}

.aim-tt-empty {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 980px) {
  .aim-tt-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .aim-tt-header {
    flex-direction: column;
    align-items: stretch;
  }

  .aim-tt-week {
    grid-template-columns: 1fr;
  }
}

/* Prevent long class titles spilling into neighbouring columns */
.aim-tt-item {
  overflow: hidden;
}

.aim-tt-item > div:first-child {
  display: block !important;
  min-width: 0;
}

.aim-tt-item > div:first-child a,
.aim-tt-item > div:first-child span {
  display: block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-overflow: clip !important;
}

/* Make session titles turquoise, always */
.aim-tt .aim-tt-item > div:first-child a,
.aim-tt .aim-tt-item > div:first-child a:visited,
.aim-tt .aim-tt-item > div:first-child span {
  color: #3fe1d1 !important;
}

/* Optional, keep a clear hover and focus cue */
.aim-tt .aim-tt-item > div:first-child a:hover,
.aim-tt .aim-tt-item > div:first-child a:focus,
.aim-tt .aim-tt-item > div:first-child a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
