/* Tivrela Check-in Plus — ใช้ตัวแปรสีของธีม Tivrela */
.tvx-crowd { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tvx-crowd legend { width: 100%; padding: 0; margin-bottom: 6px; font-weight: 600; color: var(--ink, #24163B); font-size: .95rem; }
.tvx-crowd legend small { font-weight: 400; color: var(--mute, #6B6080); }
.tvx-crowd.is-sent { display: none; }
.tvx-pill { position: relative; }
.tvx-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tvx-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2, #DCD4EA); background: var(--card, #fff); color: var(--ink2, #4A3F5C); cursor: pointer; font-weight: 600; }
.tvx-pill input:checked + span { background: var(--violet, #7C4DFF); border-color: var(--violet, #7C4DFF); color: #fff; }
.tvx-pill input:focus-visible + span { outline: 3px solid var(--blue, #3B82F6); outline-offset: 2px; }

.tvx-months { background: var(--card, #fff); border: 1px solid var(--line, #ECE7F4); border-radius: var(--r, 18px); padding: 16px 18px; margin-bottom: 16px; }
.tvx-mt { margin: 0 0 10px; font-weight: 700; color: var(--ink, #24163B); }
.tvx-mt span { font-weight: 400; color: var(--mute, #6B6080); font-size: .875rem; margin-left: 6px; }
.tvx-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.tvx-m { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tvx-bar { width: 100%; height: 28px; border-radius: 8px; }
.tvx-mn { font-size: .72rem; color: var(--mute, #6B6080); }
.tvx-l0 .tvx-bar, i.tvx-l0 { background: var(--card, #fff); border: 1px dashed var(--line2, #DCD4EA); }
.tvx-l1 .tvx-bar, i.tvx-l1 { background: #C9B8FF; }
.tvx-l2 .tvx-bar, i.tvx-l2 { background: var(--violet, #7C4DFF); }
.tvx-l3 .tvx-bar, i.tvx-l3 { background: #3A1C99; }
.tvx-key { margin: 10px 0 0; font-size: .8rem; color: var(--mute, #6B6080); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tvx-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }

.tvx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.tvx-item { background: var(--card, #fff); border: 1px solid var(--line, #ECE7F4); border-radius: var(--r, 18px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tvx-who { display: flex; align-items: center; gap: 10px; }
.tvx-who b { display: block; color: var(--ink, #24163B); font-size: .95rem; }
.tvx-who small { color: var(--mute, #6B6080); font-size: .8rem; }
.tvx-av { width: 36px; height: 36px; border-radius: 50%; background: var(--violet-l, #EFE9FF); color: var(--violet-d, #5B2FE0); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.tvx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tvx-chip { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg, #F7F5FB); color: var(--ink2, #4A3F5C); }
.tvx-c1, .tvx-go { background: var(--go-l, #DDF6EC); color: var(--go-d, #0B6B4F); }
.tvx-c2, .tvx-amber { background: var(--amber-l, #FFF1DC); color: var(--amber-d, #8A4B00); }
.tvx-c3, .tvx-red { background: var(--red-l, #FDE4E4); color: var(--red-d, #A3161C); }
.tvx-note { margin: 0; color: var(--ink2, #4A3F5C); }

@media (max-width: 520px) {
	.tvx-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
