/* Mentoring (MNT) — buku acara: jadwal bergaris, kursi bertitik, tiket untuk sesi yang pasti. Light mode only. */
:root {
  --bg: #f2f3f8;
  --surface: #ffffff;
  --sunk: #f7f8fb;
  --ink: #14162b;
  --ink-2: #44486a;
  --ink-3: #636884;
  --line: #e2e4ee;
  --line-2: #cfd3e3;
  --accent: #2337d8;
  --accent-press: #1a2bb5;
  --accent-soft: #e9ecff;
  --accent-ink: #1b2aa8;
  --hl: #ffd84d;
  --hl-soft: #fff6cf;
  --ok: #0c7a54;
  --ok-soft: #e1f5ec;
  --warn: #9a5208;
  --warn-soft: #fff0d9;
  --bad: #b8283f;
  --bad-soft: #fde7eb;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(20, 22, 43, .05), 0 2px 8px rgba(20, 22, 43, .04);
  --shadow-2: 0 8px 28px rgba(20, 22, 43, .12), 0 2px 6px rgba(20, 22, 43, .06);
  --shadow-sheet: 0 -10px 40px rgba(20, 22, 43, .16);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --num: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--hl); color: var(--ink); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid transparent; font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 2px 0 rgba(10, 18, 110, .25), 0 4px 14px rgba(35, 55, 216, .22); }
.btn.primary:hover { background: var(--accent-press); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.danger { background: var(--surface); border-color: #f1c2cb; color: var(--bad); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.loading::after, .btn.soft.loading::after { border-color: var(--line-2); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface); font-size: 16px; caret-color: var(--accent); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 55, 216, .14); }
::placeholder { color: #8a8ea6; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); height: 46px; }
.stepper button { width: 46px; height: 100%; border: 0; background: transparent; font-size: 20px; color: var(--ink-2); }
.stepper input { border: 0 !important; box-shadow: none !important; text-align: center; min-height: 0 !important; padding: 0 !important; height: 100%; font-family: var(--num); font-weight: 650; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.mute { background: var(--sunk); color: var(--ink-3); border: 1px solid var(--line); }
.badge.acc { background: var(--accent-soft); color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- avatar (monogram + cincin kuota) ---------- */
.ava { --h: #2337d8; --hs: #e9ecff; position: relative; width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--hs); color: var(--h); font-weight: 800; font-size: 16px; letter-spacing: -.02em; overflow: hidden; }
.ava::before { content: ""; position: absolute; inset: auto -30% -55% auto; width: 80%; height: 80%; border-radius: 50%; border: 2px solid currentColor; opacity: .18; }
.ava::after { content: ""; position: absolute; inset: auto auto -30% -25%; width: 55%; height: 55%; border-radius: 50%; background: currentColor; opacity: .08; }
.ava.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.ava.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 12.5px; }

/* ---------- seats ---------- */
.seats { display: inline-flex; align-items: center; gap: 4px; }
.seats i { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--ink-3); }
.seats i.f { background: var(--ink); border-color: var(--ink); }
.seats i.p { border-style: dashed; border-color: var(--warn); }
.seats-txt { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(84px + var(--safe-b)); display: grid; justify-items: center; z-index: 90; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-2); max-width: 440px; animation: toast-in .35s var(--ease); }
.toast.err { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 22, 43, .38); z-index: 60; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform .42s var(--ease); max-width: 560px; margin: 0 auto;
}
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 20px; flex: none; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.sheet-body { padding: 4px 20px calc(20px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 16px; }
@media (min-width: 700px) {
  .sheet { bottom: auto; top: 50%; border-radius: 20px; transform: translateY(-46%) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .2s; max-height: 86dvh; width: calc(100% - 32px); }
  .sheet.on { transform: translateY(-50%); opacity: 1; }
  .sheet .grab { visibility: hidden; height: 0; margin: 4px; }
}

.empty { text-align: center; padding: 36px 20px; color: var(--ink-3); display: grid; gap: 10px; justify-items: center; }
.empty svg.art { width: 120px; height: 84px; }
.empty b { color: var(--ink); font-size: 16px; }
.skel { background: linear-gradient(90deg, #eceef5 25%, #f6f7fb 50%, #eceef5 75%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
