/* ELS Fit — gaya layar kelompok V2: Jadwal, Detail sesi, Buat sesi, Buat polling (views/schedule.js, session.js, session-new.js, poll-new.js
   dan components/session-extra/*). Hanya token (tokens.css / fit.css); tanpa warna mentah, tanpa gaya inline. Nilai dinamis lewat setProperty. */

/* ------------------------------------------------------------------ umum V2 */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-row > .btn { flex: 1 1 auto; }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-2) 0; width: 100%; }
.page-head .back { min-height: var(--tap); padding-right: var(--space-3); color: var(--color-muted); font-weight: 600; }
.page-head .back:hover { color: var(--color-text); }
.page-head .back .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ Jadwal */
.sched-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sched-list > .card { margin-top: 0; }

/* kartu polling (judul / catatan tanpa spasi, mis. URL panjang, dipatahkan: tidak boleh melebarkan halaman) */
.poll-card { min-width: 0; }
.poll-head { align-items: flex-start; }
.poll-head .grow { min-width: 0; }
.poll-head .card-t, .poll-head .sub { overflow-wrap: anywhere; }
.poll-opts { display: flex; flex-direction: column; gap: var(--space-3); }
.poll-opts > li + li { margin-top: 0; }
.poll-item { display: flex; flex-direction: column; gap: var(--space-1); align-items: stretch; }
.poll-item > .btn { align-self: flex-start; }
.poll-opt {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-3);
  border: 1.5px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
button.poll-opt:hover { border-color: var(--color-border-strong); }
.poll-opt[aria-pressed="true"], .poll-opt.mine { border-color: var(--info-line); background: var(--info-soft); }
.poll-opt.static { cursor: default; }
.poll-box {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid var(--color-border-strong); background: var(--color-surface-solid); color: var(--color-on-primary);
}
.poll-box .icon { width: 16px; height: 16px; }
.poll-opt[aria-pressed="true"] .poll-box, .poll-opt.mine .poll-box { background: var(--info); border-color: var(--info); }
.poll-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.poll-text .poll-sub { overflow-wrap: anywhere; }
.poll-day { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); overflow-wrap: anywhere; }
.poll-sub:empty { display: none; }
.poll-count { flex: none; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; min-width: 1.5ch; text-align: right; }
.poll-text .bar { margin-top: 2px; }

/* ------------------------------------------------------------------ Detail sesi */
.sess { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.sess > .card + .card, .sess > * + * { margin-top: 0; }
.sess-title { font-size: var(--fs-2xl); letter-spacing: -.02em; overflow-wrap: anywhere; }
.sess-hero .stats { margin-top: var(--space-1); }
.banner-link {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface);
  color: var(--color-text); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm);
}
.banner-link:hover { border-color: var(--color-primary); }
.banner-link.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.admin-card { background: var(--accent-soft); border-color: var(--accent-glow); }
.admin-card .card-t { color: var(--accent-ink); }
.admin-card .cap, .admin-card .sub { color: var(--color-text); }

/* panel bayar */
.pay-panel {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3);
  border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-soft);
}
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pay-title { font-size: var(--fs-md); font-weight: 800; color: var(--warn); }
.pay-count { font-size: var(--fs-sm); font-weight: 800; color: var(--warn); }
.pay-count.expired { color: var(--due); }
.pay-count:empty { display: none; }
.pay-panel .copy-field { background: var(--color-surface-solid); }
.proof-row { display: flex; align-items: center; gap: var(--space-3); }
.proof-thumb {
  display: block; flex: none; width: 88px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--color-surface-2); min-height: var(--tap);
}
.proof-thumb img { display: block; width: 100%; height: auto; max-height: 132px; object-fit: cover; }

/* peserta */
.part-lead { gap: var(--space-2); }
.part-no { width: 20px; text-align: right; font-size: var(--fs-sm); color: var(--color-dim); }

/* kontrol lapangan admin */
.court-ctl-list { display: flex; flex-direction: column; gap: var(--space-3); }
.court-ctl-list > li + li { margin-top: 0; }
.court-ctl { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-solid); }
.court-ctl .court-top { margin-bottom: 0; font-size: var(--fs-md); }
.court-form { display: flex; flex-direction: column; gap: var(--space-2); }

/* WhatsApp */
.wa-box { gap: var(--space-2); }
.wa-text { height: auto; padding: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.5; resize: vertical; }
.join-form { gap: var(--space-3); }
.join-form .btn-row > .btn { flex: 1 1 0; }

/* ------------------------------------------------------------------ formulir buat sesi / polling */
.poll-row {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2);
}
.poll-row .input, .poll-row .select { background-color: var(--color-surface-solid); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); min-width: 0; }
.pair > * { min-width: 0; }
@media (max-width: 420px) { .pair.stack-narrow { grid-template-columns: 1fr; } }   /* tanggal + ikon kalender perlu lebar penuh di ponsel kecil */
.poll-row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.poll-row-head .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.poll-row-head .icon-btn:disabled:hover { background: transparent; color: var(--color-muted); }
.card.form-grid { gap: var(--space-4); }
.card.form-grid .form-grid { gap: var(--space-3); }

@media (min-width: 640px) {
  .sess-hero .stats { max-width: 520px; }
}
