/* Timetable: day tabs, filters, class cards. */
.hs-tt { display: flex; flex-direction: column; gap: 20px; }
.hs-tt__notice { padding: 24px; border: 1px dashed var(--h-line-2); border-radius: var(--h-r-lg); color: var(--h-muted); }

.hs-tt__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.hs-tt__day {
	flex: 0 0 auto; min-width: 88px; min-height: 64px; padding: 10px 14px; scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	border: 0; border-radius: var(--h-r-md); background: var(--h-surface); color: var(--h-ink);
	font-family: inherit; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .16s var(--h-ease-out);
	-webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.hs-tt__day:active { transform: scale(.97); }
.hs-tt__day:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.hs-tt__day[aria-selected="true"] { background: var(--h-btn); color: var(--h-btn-ink); }
@media (hover: hover) and (pointer: fine) {
	.hs-tt__day[aria-selected="false"]:hover { background: var(--h-tint); }
}
.hs-tt__dow { font-size: 13px; line-height: 1.2; opacity: .8; }
.hs-tt__num { font-family: var(--h-font-head); font-weight: var(--h-head-weight); font-size: 22px; line-height: 1.1; }
.hs-tt__moon { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.2; white-space: nowrap; }

.hs-tt__filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.hs-tt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-tt .h-chip { min-height: 40px; font-size: 14px; border-width: 2px; border-color: var(--h-ink); background: transparent; }
.hs-tt .h-chip[aria-pressed="true"] { background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink); }
.hs-tt__selects { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hs-tt__select { min-width: 0; }
.hs-tt__select select {
	max-width: 260px; min-width: 0; text-overflow: ellipsis;
	min-height: 40px; padding: 0 36px 0 16px; border: 0; border-radius: var(--h-r-btn);
	background: var(--h-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232A2633' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--h-ink); font-family: inherit; font-size: 14px; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.hs-tt__select select:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
@media (pointer: coarse) { .hs-tt__select select { font-size: 16px; } }

.hs-tt__date { margin: 4px 0 12px; font-size: 18px; line-height: 1.3; }
.hs-tt__date-moon { font-family: var(--h-font-body); font-size: 14px; font-weight: 500; color: var(--h-muted); }
.hs-tt__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.hs-tt__card {
	display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px;
	border-radius: var(--h-r-lg); background: var(--h-surface); color: var(--h-ink);
}
.hs-tt__card[hidden] { display: none; }
.hs-tt__card.is-past { opacity: .55; }
.hs-tt__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-tt__time { font-family: var(--h-font-head); font-weight: var(--h-head-weight); letter-spacing: var(--h-head-track); font-size: 38px; line-height: 1; white-space: nowrap; }
.hs-tt__time small { margin-left: 3px; font-size: 15px; letter-spacing: 0; }
.hs-tt__cat { padding: 5px 12px; border-radius: var(--h-r-btn); background: var(--hs-tt-c, var(--h-tint)); color: var(--hs-tt-ci, var(--h-ink)); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hs-w .hs-tt__name { margin: 2px 0 0; font-family: var(--h-font-body); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.hs-tt__meta { font-size: 14px; color: var(--h-muted); }
.hs-tt__teacher { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hs-tt__av { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--h-tint); font-weight: 700; font-size: 13px; }
.hs-tt__foot { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hs-tt__left { font-size: 14px; font-weight: 700; color: #3F6B2F; }
.hs-tt__left.is-few { color: #A4501C; }
.hs-tt__left.is-full, .hs-tt__card.is-past .hs-tt__left { color: var(--h-muted); }
.hs-tt .h-btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }
.hs-tt__empty { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--h-r-lg); background: var(--h-surface); color: var(--h-body); }
.hs-tt__empty p { margin: 0; line-height: 1.6; }
.hs-tt__empty strong { color: var(--h-ink); }
.hs-tt__empty a:not(.h-link-arrow) { color: var(--h-ink); font-weight: 600; }
.hs-tt__admin span { color: var(--h-muted); font-size: 13px; }
.hs-tt__none { padding: 24px; border-radius: var(--h-r-lg); background: var(--h-surface); color: var(--h-muted); }
.hs-tt__panel[hidden] { display: none; }
@media (max-width: 639px) {
	.hs-tt__time { font-size: 32px; }
	.hs-tt__filters { flex-direction: column; align-items: stretch; }
	/* contain: the scrolling row's content must not widen the page. */
	.hs-tt__chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; min-width: 0; contain: inline-size; }
	.hs-tt__chips .h-chip { flex: none; }
	.hs-tt__selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.hs-tt__select select { width: 100%; max-width: none; }
}
