/* Class time by country (class-time.js). */
.ct { max-width: 820px; margin: 0 auto; }
.ct-search { position: relative; z-index: 3; }
.ct-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
.ct-box {
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 16px;
  background: var(--bg); border: 1.5px solid var(--border); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-box > svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }
.ct-search.is-open .ct-box, .ct-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.ct-input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.ct-input::placeholder { color: var(--text-muted); }
.ct-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); cursor: pointer; }
.ct-toggle:hover { background: var(--surface-2); color: var(--text); }
.ct-toggle svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.ct-search.is-open .ct-toggle svg { transform: rotate(180deg); }
.ct-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55); animation: ct-drop 0.18s ease-out;
}
.ct-list[hidden] { display: none; }
@keyframes ct-drop { from { opacity: 0; transform: translateY(-6px); } }
.ct-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.ct-opt:hover, .ct-opt.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.ct-opt.is-added .ct-opt-name::after { content: "Added"; font: 700 0.68rem/1 var(--font-body); padding: 3px 6px; border-radius: 6px; color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 50%, transparent); vertical-align: 2px; }
.ct-opt-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text); font-weight: 600; }
.ct-opt-name .ct-you { margin-left: 0; }
.ct-opt-time { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-none { padding: 14px 12px; color: var(--text-muted); }
.ct-code {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; flex-shrink: 0;
  font: 800 0.72rem/1 var(--font-body); letter-spacing: 0.06em; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.ct-you { margin-left: 8px; font: 700 0.68rem/1 var(--font-body); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 999px; color: #1a1200; background: var(--gold); vertical-align: 2px; }

.ct-count { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 14px; font-size: 0.92rem; color: var(--text-muted); }
.ct-count svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent-2); }
.ct-count strong { color: var(--text); }
.ct-count.is-live { color: var(--success); font-weight: 700; }
.ct-count.is-live svg { color: var(--success); }

.ct-cards { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ct-card {
  position: relative; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.6);
}
.ct-card.is-new { animation: ct-in 0.45s cubic-bezier(.2, .8, .2, 1); }
.ct-card.is-flash { animation: ct-flash 1.1s ease; }
@keyframes ct-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes ct-flash { 0%, 100% { box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.6); } 30% { box-shadow: 0 0 0 3px var(--accent), 0 18px 40px -18px color-mix(in srgb, var(--accent) 80%, transparent); } }
.ct-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ct-card-name { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; }
.ct-remove { width: 36px; height: 36px; margin: -6px -8px -6px 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; }
.ct-remove:hover, .ct-remove:focus-visible { background: var(--surface-2); color: var(--text); }
.ct-remove svg { width: 16px; height: 16px; }
.ct-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.ct-row:first-of-type { border-top: 0; padding-top: 4px; }
.ct-time { font: 700 1.7rem/1.1 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; min-width: 6.2ch; white-space: nowrap; }
.ct-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 120px; }
.ct-day { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.ct-area { font-size: 0.82rem; color: var(--text-muted); }
.ct-note { font: 700 0.74rem/1 var(--font-body); padding: 5px 9px; border-radius: 999px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.ct-empty { color: var(--text-muted); text-align: center; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; }
.ct-hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 480px) { .ct-time { font-size: 1.35rem; min-width: 0; } .ct-card { padding: 14px; } .ct-row { gap: 4px 12px; } .ct-day { font-size: 0.86rem; } .ct-opt { gap: 10px; } .ct-opt-time { font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .ct-list, .ct-card.is-new, .ct-card.is-flash { animation: none; } }

/* Panel version (TAAClassTime.open(), the homepage "Find my class time" button) */
html.ct-lock { overflow: hidden; }
.ct-sheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 20, 0.6); opacity: 0; transition: opacity 0.2s ease; }
.ct-sheet[hidden] { display: none; }
.ct-sheet.is-open { opacity: 1; }
.ct-sheet-box {
  width: 100%; max-width: 680px; max-height: min(86vh, 860px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 22px 18px; border-radius: 22px; background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7); transform: translateY(14px) scale(0.98); transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.ct-sheet.is-open .ct-sheet-box { transform: none; }
.ct-sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ct-sheet-head > div { flex: 1; min-width: 0; }
.ct-sheet-head h2 { margin: 0 0 4px; font-size: 1.3rem; line-height: 1.25; }
.ct-sheet-head p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.ct-sheet-close { width: 44px; height: 44px; margin: -8px -10px 0 0; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); cursor: pointer; }
.ct-sheet-close:hover, .ct-sheet-close:focus-visible { background: var(--surface-2); color: var(--text); }
.ct-sheet-close svg { width: 18px; height: 18px; }
.ct-sheet .ct-list { max-height: min(300px, 42vh); }
.ct-sheet-link { display: inline-block; margin-top: 14px; padding: 8px 0; font-size: 0.88rem; font-weight: 600; color: var(--accent-2); }
@media (max-width: 640px) {
  .ct-sheet { align-items: flex-end; padding: 0; }
  .ct-sheet-box { max-width: none; max-height: 90vh; border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .ct-sheet-head h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .ct-sheet, .ct-sheet-box { transition: none; } }

