/* =========================================================
   Prima Monitor — Dashboard Monitoring Peserta Kursus
   ========================================================= */
:root {
  --bg: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --line: #e9edf5;
  --text: #2b3445;
  --text-2: #4a5568;
  --muted: #8c96a8;
  --faint: #b9c1ce;

  --primary: #6d8cf6;
  --primary-600: #5876e8;
  --primary-soft: #eaeffe;
  --yellow: #ffc21a;
  --yellow-soft: #fff6dc;
  --dark: #2f3a4c;
  --green: #34c38f;
  --green-soft: #e2f7ee;
  --orange: #f5a04a;
  --orange-soft: #fff0e0;
  --red: #ef6464;
  --red-soft: #fdeaea;
  --purple: #a987f2;
  --purple-soft: #f3edfe;
  --cyan: #4cc5e6;
  --cyan-soft: #e2f6fc;

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(62, 84, 140, 0.08);
  --shadow-sm: 0 4px 14px rgba(62, 84, 140, 0.06);
  --shadow-primary: 0 12px 26px rgba(109, 140, 246, 0.38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; padding: 18px 16px 120px; max-width: 1480px; margin: 0 auto; width: 100%; }
.page { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sidebar (desktop) */
.sidebar { display: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 20px; box-shadow: var(--shadow-primary);
}
.brand-name { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  color: var(--muted); font-weight: 500; transition: .2s;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--primary-soft); color: var(--primary-600); }
.side-link .count { margin-left: auto; }
.side-card { margin-top: auto; background: var(--surface-2); border-radius: var(--radius-md); padding: 16px; }
.side-card-title { font-weight: 600; margin-bottom: 8px; }
.side-card-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.side-card-row b { color: var(--text); font-weight: 600; }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50; display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); border-radius: 28px; padding: 12px 8px; box-shadow: 0 10px 40px rgba(62, 84, 140, .16);
}
.bn-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #3c4658; padding: 4px 10px; font-size: 10.5px; }
.bn-link svg.ic { width: 23px; height: 23px; }
.bn-link span { color: var(--muted); }
.bn-link.active { color: var(--primary); }
.bn-link.active span { color: var(--primary); font-weight: 600; }
.bn-link .dot { position: absolute; top: 0; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; }

/* Topbar */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 48px; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title .hello { font-size: 13px; color: var(--muted); }
.topbar-title h1 { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { font-size: 12.5px; color: var(--muted); display: none; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: var(--text); transition: .2s; flex: none;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn.solid { background: var(--surface); box-shadow: var(--shadow-sm); }
.icon-btn .pip { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.top-search { display: none; }
.top-date { display: none; }

/* ---------------- Grid ---------------- */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }

/* ---------------- Card ---------------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head h3, .section-head h3 { font-size: 16px; font-weight: 600; }
.card-head small { color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 12px; gap: 10px; }
.link { color: var(--primary); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.link svg.ic { width: 16px; height: 16px; }

/* Hero (like credit card) */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius); padding: 22px;
  background: linear-gradient(135deg, #7797fb 0%, #6283f1 100%); box-shadow: var(--shadow-primary);
  display: flex; flex-direction: column; min-height: 190px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 160px; height: 160px; right: 60px; bottom: -110px; }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .92; }
.hero-amount { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 30px; font-weight: 500; letter-spacing: .5px; }
.hero-amount .tag { font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 8px; letter-spacing: .5px; }
.hero-mid { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.hero-mid b { font-size: 17px; font-weight: 600; margin-right: 4px; }
.hero-bottom { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; font-size: 14px; }
.hero-bottom small { display: block; font-size: 10.5px; opacity: .8; text-align: right; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text-2); font-size: 12.5px; }
.tile-ic { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; transition: transform .2s; }
.tile:hover .tile-ic { transform: translateY(-3px); }
.tile-ic svg.ic { width: 24px; height: 24px; }
.tile-num { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 11px; font-weight: 600; color: var(--text); display: grid; place-items: center; font-style: normal; }
.c-green { background: var(--green-soft); color: var(--green); }
.c-orange { background: var(--orange-soft); color: var(--orange); }
.c-purple { background: var(--purple-soft); color: var(--purple); }
.c-cyan { background: var(--cyan-soft); color: var(--cyan); }
.c-red { background: var(--red-soft); color: var(--red); }
.c-blue { background: var(--primary-soft); color: var(--primary); }
.c-yellow { background: var(--yellow-soft); color: #d99a00; }

/* Donut */
.donut-wrap { display: grid; place-items: center; position: relative; margin: 4px auto 6px; width: 180px; height: 180px; }
.donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; }
.donut-center span { font-size: 11.5px; color: var(--muted); }
.donut-label { font-size: 10px; font-weight: 600; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; margin-top: 14px; gap: 6px; }
.trio span { display: block; font-size: 12px; color: var(--muted); }
.trio b { font-size: 17px; font-weight: 600; }

/* Bars */
.bars { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; height: 150px; margin-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.bar-track { flex: 1; width: 9px; border-radius: 6px; background: var(--primary-soft); position: relative; overflow: hidden; }
.bar-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; background: var(--primary); transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.bar.today .bar-fill { background: var(--yellow); }
.bar-lbl { text-align: center; line-height: 1.2; }
.bar-lbl b { display: block; font-size: 12px; font-weight: 600; }
.bar-lbl small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.bar-val { font-size: 10px; color: var(--muted); margin-bottom: -4px; }
.limit-row { display: flex; align-items: center; gap: 12px; }
.limit-row .sq { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.limit-row .sq svg.ic { width: 18px; height: 18px; }
.limit-row .val { margin-left: auto; text-align: right; font-size: 18px; font-weight: 600; line-height: 1.2; }
.limit-row .val small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* Rings */
.rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ring-card { background: var(--surface-2); border-radius: var(--radius-md); padding: 14px 8px; text-align: center; }
.ring { width: 64px; height: 64px; margin: 0 auto 6px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ring-card span { font-size: 12.5px; color: var(--text-2); }
.ring-card small { display: block; font-size: 11px; color: var(--muted); }

/* List items */
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 14px 16px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); min-width: 0;
}
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub.wrap { white-space: normal; }
.item-end { text-align: right; flex: none; }
.clickable { cursor: pointer; transition: .2s; }
.clickable:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: 14px; letter-spacing: .3px;
}
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
.avatar.lg { width: 58px; height: 58px; border-radius: 18px; font-size: 19px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

.time-box { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-600); display: grid; place-items: center; text-align: center; flex: none; line-height: 1.15; }
.time-box b { font-size: 14px; font-weight: 600; display: block; }
.time-box small { font-size: 10.5px; opacity: .8; }

/* Badges & buttons */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.badge svg.ic { width: 13px; height: 13px; }
.b-ok { background: var(--green-soft); color: #20a472; }
.b-warn { background: var(--yellow-soft); color: #c68a00; }
.b-danger { background: var(--red-soft); color: var(--red); }
.b-info { background: var(--primary-soft); color: var(--primary-600); }
.b-dark { background: #e7eaf0; color: var(--dark); }
.b-muted { background: var(--surface-2); color: var(--muted); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; background: var(--red); color: #fff; }
.count.soft { background: var(--surface-2); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 13px; font-weight: 500; font-size: 13.5px; transition: .2s; white-space: nowrap;
}
.btn svg.ic { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(109, 140, 246, .3); }
.btn-primary:hover { background: var(--primary-600); }
.btn-soft { background: var(--primary-soft); color: var(--primary-600); }
.btn-soft:hover { background: #dde5fd; }
.btn-ghost { background: var(--surface-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #fbd9d9; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 18px rgba(37, 211, 102, .28); }
.btn-wa:hover { background: #1fbd5a; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn-sm svg.ic { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-btn { background: var(--primary); color: #fff; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pay-btn:hover { background: var(--primary-600); }
.pay-btn svg.ic { width: 14px; height: 14px; }
.pay-btn.soft { background: var(--primary-soft); color: var(--primary-600); }

.mini-icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.mini-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.mini-icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }
.mini-icon-btn svg.ic { width: 17px; height: 17px; }

/* Tabs (Unpaid bill style) */
.tabs { display: flex; gap: 22px; border-bottom: 1.5px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 8px 0 12px; color: var(--muted); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab.active { color: var(--primary); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.tab .count { height: 19px; min-width: 19px; font-size: 10px; padding: 0 5px; }
.tab:not(.active) .count { background: var(--line); color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface); color: var(--text-2); font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.chip.active { background: var(--dark); color: #fff; }
.chip .n { font-size: 11px; opacity: .7; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface-2); outline: none; transition: .2s; font-size: 14px;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 34px; background-image: 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='%238c96a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(109, 140, 246, .12); }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.search-box { position: relative; flex: 1; min-width: 0; }
.search-box svg.ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search-box .input { padding-left: 42px; background: var(--surface); border-color: transparent; box-shadow: var(--shadow-sm); }

.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 13px; cursor: pointer; transition: .2s; user-select: none; }
.toggle-chip input { display: none; }
.toggle-chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-600); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

/* Progress */
.progress { height: 7px; border-radius: 4px; background: var(--primary-soft); overflow: hidden; position: relative; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.progress.yellow > i { background: var(--yellow); }
.progress.red > i { background: var(--red); }
.progress.green > i { background: var(--green); }
.progress .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--dark); border-radius: 2px; }
.prog-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; gap: 8px; }
.prog-label b { color: var(--text); font-weight: 600; }

/* ---------------- Sesi ---------------- */
.date-nav { display: flex; align-items: center; gap: 6px; background: var(--surface); padding: 5px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.date-nav .input { height: 34px; border: 0; background: transparent; padding: 0 6px; width: 140px; font-weight: 500; }
.date-nav .input:focus { box-shadow: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.wday { background: var(--surface); border-radius: 16px; padding: 10px 4px; text-align: center; box-shadow: var(--shadow-sm); transition: .2s; line-height: 1.25; }
.wday small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.wday b { display: block; font-size: 17px; font-weight: 600; margin: 2px 0; }
.wday i { font-style: normal; font-size: 10px; color: var(--muted); }
.wday.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.wday.active small, .wday.active i { color: rgba(255, 255, 255, .85); }
.wday.is-today:not(.active) b { color: var(--primary); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.mini-stat { background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.mini-stat .tile-ic { width: 40px; height: 40px; border-radius: 12px; }
.mini-stat .tile-ic svg.ic { width: 19px; height: 19px; }
.mini-stat b { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.mini-stat span { font-size: 11.5px; color: var(--muted); }

.session { padding: 0; overflow: hidden; transition: box-shadow .2s; }
.session:hover, .session.open { box-shadow: var(--shadow); }
.session-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; }
.session-head:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--radius); }
.session-meta { flex: 1; min-width: 0; display: block; }
.teacher-names { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.teacher-names svg.ic { width: 14px; height: 14px; }
.teacher-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-chev { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; transition: transform .25s, background .2s; }
.session-chev svg.ic { width: 16px; height: 16px; }
.session.open .session-chev { transform: rotate(90deg); background: var(--primary-soft); color: var(--primary); }
.session .session-body { display: none; }
.session.open .session-body { display: block; animation: fade .2s ease; }
.session-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 12px; flex-wrap: wrap; }
.session-title { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.teachers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.teacher { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 3px 10px 3px 3px; border-radius: 9px; }
.teacher .avatar { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
.session-count { text-align: center; line-height: 1.1; padding: 0 6px; }
.session-count b { font-size: 22px; font-weight: 600; display: block; }
.session-count small { font-size: 10.5px; color: var(--muted); }
.session-actions { display: flex; gap: 6px; }
.session-body { border-top: 1.5px solid var(--line); }
.srow.srow-head { display: none; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.srow:last-child { border-bottom: 0; }
.srow .s-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.srow .s-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .s-pc { justify-self: end; }
.srow .s-materi { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); min-width: 0; padding-left: 40px; }
.srow .s-materi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { font-weight: 600; font-size: 11.5px; padding: 3px 8px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-600); white-space: nowrap; flex: none; }
.pc { font-weight: 500; font-size: 11.5px; padding: 3px 8px; border-radius: 7px; background: #e9ecf2; color: var(--dark); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pc svg.ic { width: 13px; height: 13px; }
.flag-ic { color: var(--orange); display: inline-flex; }
.flag-ic.danger { color: var(--red); }
.flag-ic svg.ic { width: 16px; height: 16px; }
.pc-map { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 16px; background: var(--surface-2); }
.pc-dot { font-size: 10px; font-weight: 500; width: 40px; text-align: center; padding: 3px 0; border-radius: 6px; background: #fff; color: var(--faint); border: 1px dashed var(--line); }
.pc-dot.used { background: var(--primary); color: #fff; border-color: var(--primary); }

.fab { position: fixed; right: 20px; bottom: calc(100px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-primary); z-index: 45; }
.fab svg.ic { width: 26px; height: 26px; }

/* ---------------- Peserta ---------------- */
.p-head { display: none; }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; background: var(--surface); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: .2s; }
.p-row:hover { box-shadow: var(--shadow); }
.p-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-id > div { min-width: 0; flex: 1; }
.p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-stat small { display: block; font-size: 11px; color: var(--muted); }
.p-stat b { font-weight: 600; font-size: 14px; }
.p-flags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-act { display: flex; gap: 6px; justify-content: flex-end; }
.p-mobile-status { margin-left: auto; }

/* Detail */
.grid.detail > .hero { align-self: start; }
.profile { display: flex; align-items: center; gap: 14px; }
.profile h2 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.profile p { font-size: 12.5px; opacity: .85; }
.hero .avatar { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.hero-stat { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 12px; }
.hero-stat small { display: block; font-size: 11px; opacity: .85; }
.hero-stat b { font-size: 18px; font-weight: 600; }
.hero-stat b span { font-size: 12px; font-weight: 400; opacity: .8; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.materi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.m-cell { height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--faint); position: relative; }
.m-cell.done { background: var(--primary); color: #fff; }
.m-cell.current { background: var(--yellow); color: var(--dark); box-shadow: 0 0 0 3px var(--yellow-soft); }
.m-cell.target { outline: 2px dashed var(--dark); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; align-items: flex-start; }
.alert svg.ic { margin-top: 1px; }
.alert b { display: block; font-weight: 600; font-size: 13.5px; }
.alert span { font-size: 12.5px; }
.alert.warn { background: var(--yellow-soft); color: #9a6c00; }
.alert.danger { background: var(--red-soft); color: #c94141; }
.alert.ok { background: var(--green-soft); color: #1e8b61; }
.alert .grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl-no { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.tl-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-top b { font-weight: 500; }
.tl-sub { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 3px; }

/* Peringatan */
.warn-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.warn-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.warn-detail { font-size: 12.5px; color: var(--text-2); }
.warn-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.warn-foot .last-sent { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.warn-foot .last-sent svg.ic { width: 14px; height: 14px; }
.level-bar { width: 4px; align-self: stretch; border-radius: 3px; flex: none; }
.level-bar.warn { background: var(--yellow); }
.level-bar.danger { background: var(--red); }
.banner { display: flex; align-items: center; gap: 14px; background: var(--dark); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 180px; }
.banner b { font-size: 15px; font-weight: 600; display: block; }
.banner span { font-size: 12.5px; opacity: .75; }
.banner .ic-wrap { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--yellow); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .tile-ic { margin: 0 auto 10px; }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* Settings */
.set-list { display: flex; flex-direction: column; gap: 8px; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--surface-2); }
.set-row .grow { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-add { display: flex; gap: 8px; margin-top: 10px; }
.pc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); padding: 4px 4px 4px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 500; }
.pc-tag button { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.pc-tag button:hover { background: var(--red-soft); color: var(--red); }
.pc-tag svg.ic { width: 13px; height: 13px; }
.materi-edit { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; }
.materi-edit .input { height: 38px; font-size: 13px; }
.scroll-box { max-height: 420px; overflow: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; }
.placeholders code { font-size: 11px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--primary-600); cursor: pointer; }

/* ---------------- Modal ---------------- */
.modal-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(33, 41, 61, .45); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative; background: var(--surface); width: 100%; max-height: 92vh; display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0; animation: up .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.modal-head h3 { flex: 1; font-size: 17px; font-weight: 600; }
.modal-head p { font-size: 12px; color: var(--muted); }
.modal-body { padding: 4px 20px 16px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--line); flex-wrap: wrap; justify-content: flex-end; }
.modal-foot .btn { flex: 1; }
.modal-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; }

.row-editor { display: flex; flex-direction: column; gap: 10px; }
.row-card { background: var(--surface-2); border-radius: 14px; padding: 12px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
.row-card .field:first-child { grid-column: 1 / -1; }
.row-card .select { height: 40px; background-color: #fff; font-size: 13px; }
.row-card .rm { align-self: end; height: 40px; }
.row-card .row-hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -2px; }
.recipient { display: flex; align-items: center; gap: 12px; background: var(--surface-2); padding: 12px; border-radius: 14px; margin-bottom: 14px; }
.queue-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.queue-bar .progress { flex: 1; }

/* Toast */
.toast-root { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 380px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: fade .25s ease; }
.toast.success svg.ic { color: var(--green); }
.toast.error svg.ic { color: var(--red); }
.toast.warn svg.ic { color: var(--yellow); }

/* ---------------- Responsive ---------------- */
@media (min-width: 600px) {
  .main { padding: 22px 24px 120px; }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid .span-all { grid-column: 1 / -1; }
  .mini-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .materi-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .row-card { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) 34px; }
  .row-card .field:first-child { grid-column: auto; }
  .modal-layer { align-items: center; padding: 24px; }
  .modal { max-width: 560px; border-radius: 26px; max-height: 88vh; }
  .modal.lg { max-width: 820px; }
  .modal-grab { display: none; }
  .modal-foot { padding-bottom: 16px; }
  .modal-foot .btn { flex: none; }
  .srow { grid-template-columns: minmax(0, 1.3fr) 90px minmax(0, 2fr); }
  .srow .s-pc { justify-self: start; }
  .srow .s-materi { grid-column: auto; padding-left: 0; }
  .srow.srow-head { display: grid; padding: 10px 16px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; background: var(--surface-2); border-bottom: 0; }
  .warn-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .warn-foot { justify-content: flex-end; }
}

@media (min-width: 768px) {
  .grid.dash { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dash .s-12 { grid-column: span 12; }
  .dash .s-6, .dash .s-5, .dash .s-7, .dash .s-4, .dash .s-8 { grid-column: span 6; }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.detail .full { grid-column: 1 / -1; }
  .grid.detail .s-2 { grid-column: span 2; }
  .fab { display: none; }
  .topbar-title p { display: block; }
}
@media (max-width: 767px) {
  .only-desktop-md { display: none !important; }
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; width: 256px; flex: none;
    background: var(--surface); padding: 24px 16px; box-shadow: 4px 0 30px rgba(62, 84, 140, .05);
  }
  .bottom-nav { display: none; }
  .main { padding: 26px 32px 40px; }
  .topbar { margin-bottom: 24px; }
  .topbar-title h1 { font-size: 24px; }
  .top-search { display: block; width: 280px; flex: none; }
  .top-date { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--text-2); white-space: nowrap; }
  .top-date svg.ic { width: 17px; height: 17px; color: var(--primary); }
  .only-mobile { display: none !important; }

  .grid.dash { gap: 20px; }
  .dash .s-4 { grid-column: span 4; }
  .dash .s-5 { grid-column: span 5; }
  .dash .s-7 { grid-column: span 7; }
  .dash .s-8 { grid-column: span 8; }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.detail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.detail .s-2 { grid-column: span 2; }
  .grid.detail .full { grid-column: 1 / -1; }

  .p-head, .p-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 96px; align-items: center; gap: 16px; }
  .p-head { display: grid; padding: 4px 18px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .p-row { padding: 14px 18px; border-radius: 16px; }
  .p-stats { display: contents; }
  .p-stat small { display: none; }
  .p-mobile-status { display: none; }
  .modal.lg { max-width: 920px; }
}

@media (max-width: 1023px) {
  .only-desktop { display: none !important; }
}

@media (min-width: 1280px) {
  .materi-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .tiles { gap: 6px; }
  .tile-ic { width: 52px; height: 52px; }
  .tile { font-size: 11.5px; }
  .hero-amount { font-size: 26px; }
  .week { gap: 4px; }
  .wday b { font-size: 15px; }
}

/* Info filter/pencarian peserta */
.filter-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--primary-soft); color: var(--primary-600); border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 14px; font-size: 12.5px; }
.filter-info svg.ic { width: 16px; height: 16px; }
.filter-info span { flex: 1; min-width: 160px; }
.filter-info .btn { background: #fff; }

/* Modul materi (Word / Excel / PowerPoint) */
.modul-block + .modul-block { margin-top: 16px; }
.modul-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; flex-wrap: wrap; }
.modul-head b { font-weight: 600; font-size: 13.5px; }
.modul-head .progress { min-width: 60px; }
.modul-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.modul-set { display: flex; flex-direction: column; gap: 8px; }
.modul-set + .modul-set { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.modul-set .modul-head { margin-bottom: 2px; }
.modul-count { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.modul-count .input { width: 70px; height: 34px; padding: 0 10px; }

/* Peringatan — daftar ringkas */
.warn-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.warn-summary .grow { flex: 1; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.warn-summary .lv { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lv-dot.danger { background: var(--red); }
.lv-dot.warn { background: var(--yellow); }
.warn-info { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-sm); }
.warn-info svg.ic { width: 17px; height: 17px; color: var(--primary); margin-top: 1px; }
.warn-list { padding: 4px 0; }
.wrow + .wrow { border-top: 1px solid var(--line); }
.wrow-top { display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.wrow-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; text-align: left; }
.wrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.wrow-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-short { font-size: 12px; color: #c68a00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-short.danger { color: var(--red); }
.wrow-sent { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.wrow-sent svg.ic { width: 13px; height: 13px; color: var(--green); }
.wrow .session-chev { width: 26px; height: 26px; background: transparent; }
.wrow.open .session-chev { transform: rotate(90deg); color: var(--primary); }
.send-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-600); flex: none; transition: .2s; }
.send-ic:hover { background: var(--primary); color: #fff; }
.send-ic svg.ic { width: 16px; height: 16px; }
.wrow-body { display: none; padding: 0 16px 14px 54px; }
.wrow.open .wrow-body { display: block; animation: fade .2s ease; }
.wrow.open { background: var(--surface-2); }
.reasons { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); }
.reasons li + li { margin-top: 2px; }
.wrow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); margin: 10px 0 12px; }
@media (max-width: 599px) { .wrow-body { padding-left: 16px; } }

/* ---------------- Login & akun ---------------- */
body.logged-out .app, body.logged-out .bottom-nav { display: none; }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth::before, .auth::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.auth::before { width: 420px; height: 420px; background: rgba(109, 140, 246, .14); top: -160px; right: -140px; }
.auth::after { width: 300px; height: 300px; background: rgba(255, 194, 26, .14); bottom: -120px; left: -100px; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--surface); border-radius: 26px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-brand { padding: 0 0 22px; }
.auth-card h1 { font-size: 24px; font-weight: 600; }
.auth-card > p { margin: 2px 0 20px; font-size: 13px; }
.auth-hint { margin-top: 16px; font-size: 12.5px; }
.auth-hint b { display: inline; font-size: inherit; }
.auth-error { background: var(--red-soft); color: #c94141; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.auth-foot { position: relative; z-index: 1; margin-top: 18px; font-size: 12px; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--line); color: var(--text); }
.pw-toggle svg.ic { width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }

.user-chip { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 4px; border-radius: 14px; flex: none; text-align: left; }
.user-chip:hover { background: var(--surface); }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.user-chip b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
@media (min-width: 1024px) { .user-chip { padding: 0 12px 0 4px; background: var(--surface); box-shadow: var(--shadow-sm); } }

.side-user { margin-top: auto; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-md); border: 1.5px solid var(--line); }
.side-user .grow { flex: 1; min-width: 0; line-height: 1.3; }
.side-user b { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: 11.5px; color: var(--muted); }
.side-user + .side-card { margin-top: 0; }

.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; background: var(--surface-2); font-weight: 500; text-align: left; }
.menu-item span { flex: 1; }
.menu-item svg.ic:last-child { width: 16px; height: 16px; color: var(--muted); }
.menu-item:hover { background: var(--line); }
.menu-item.danger { color: var(--red); }

.set-row .u-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-row .u-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-row.is-off { opacity: .6; }
.toggle-chip.locked { cursor: default; }

/* Server mode */
body.booting .app, body.booting #authRoot { visibility: hidden; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 11.5px; color: var(--muted); text-align: center; }
.auth-note svg.ic { width: 14px; height: 14px; color: var(--green); }
.audit-detail { font-size: 11px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.tl-no.c-red { background: var(--red-soft); color: var(--red); }
.tl-no svg.ic { width: 15px; height: 15px; }
.btn:disabled, .pay-btn:disabled { opacity: .55; cursor: progress; }

/* Login Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; font-weight: 500; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9ce; box-shadow: 0 2px 8px rgba(60, 64, 67, .12); }
.g-logo { width: 18px; height: 18px; flex: none; }
.auth-card .btn-google { height: 46px; margin-bottom: 4px; }
.auth-card #loginErrorTop { margin-bottom: 14px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 12px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.g-status .g-logo { width: 14px; height: 14px; }
.g-status b { color: #1e8b61; font-weight: 600; }

/* Impor peserta */
.import-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.import-step { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.import-step .grow { flex: 1; min-width: 180px; line-height: 1.35; }
.import-step b { display: block; font-weight: 600; font-size: 13.5px; }
.import-step span { font-size: 12px; color: var(--muted); }
.step-no { width: 28px; height: 28px; border-radius: 9px; background: var(--primary); color: #fff !important; display: grid; place-items: center; font-weight: 600; font-size: 13px !important; flex: none; }
.file-btn { cursor: pointer; }
.import-opts { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; padding: 0 2px; }
.imp-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 12px; }
.imp-table-wrap { max-height: 340px; overflow: auto; border: 1.5px solid var(--line); border-radius: 12px; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.imp-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.imp-table td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.imp-table tr.is-error td { background: #fff7f7; }
.imp-note .err { color: var(--red); }
.imp-note .warn { color: #b07c00; }
.awal-box { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.awal-box summary { cursor: pointer; font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 8px; list-style: none; }
.awal-box summary::-webkit-details-marker { display: none; }
.awal-box summary svg.ic { width: 16px; height: 16px; color: var(--primary); }
.awal-box .input, .awal-box .select { background: #fff; }

/* Jadwal & komputer tetap */
.jadwal-box { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.jadwal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.jadwal-head svg.ic { width: 16px; height: 16px; color: var(--primary); }
.jadwal-box .select, .jadwal-box .toggle-chip { background: #fff; }
.toggle-chip small { font-size: 10.5px; margin-left: 2px; }
.slot-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-pick .select { flex: 1; min-width: 200px; }
.tabs .tab svg.ic { width: 16px; height: 16px; }

/* Ketersediaan PC */
.kursi-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ks-item { background: var(--surface); border-radius: 14px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); line-height: 1.2; }
.ks-item b { display: block; font-size: 20px; font-weight: 600; color: #1e9e6a; }
.ks-item span { display: block; font-size: 12px; font-weight: 500; }
.ks-item small { font-size: 10.5px; color: var(--muted); }
.ks-item.full b { color: var(--red); }
.kursi-card { padding: 0; overflow: hidden; }
.kursi-wrap { overflow-x: auto; max-height: 70vh; }
.kursi { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.kursi th { background: var(--surface-2); font-weight: 600; padding: 8px 10px; text-align: left; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.kursi th small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.kursi tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
.kursi td { padding: 4px; border-top: 1px solid var(--line); min-width: 112px; vertical-align: top; }
.seat { display: flex; flex-direction: column; width: 100%; min-height: 40px; border-radius: 9px; padding: 5px 8px; text-align: left; font-size: 12px; line-height: 1.25; }
.seat + .seat { margin-top: 3px; }
.seat small { font-size: 10px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat.free { background: var(--green-soft); color: #1e8b61; border: 1px dashed #9fdcc2; justify-content: center; align-items: center; font-weight: 500; }
.seat.free:hover { background: #c9f0de; }
.seat.taken { background: var(--primary-soft); color: var(--primary-600); }
.seat.taken.intensif { background: var(--purple-soft); color: #7a57d1; }
.seat.taken.clash { background: var(--red-soft); color: var(--red); }
.seat.taken:hover { filter: brightness(.96); }

/* Pengaturan jam sesi */
.slot-rows { display: flex; flex-direction: column; gap: 8px; }
.slot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 6px; align-items: center; }
.slot-row .input { height: 38px; font-size: 13px; padding: 0 10px; }

/* Langkah berurutan jadwal peserta */
.step-no.sm { width: 18px; height: 18px; border-radius: 6px; font-size: 10.5px !important; display: inline-grid; margin-right: 6px; vertical-align: 1px; }
.step-no.off { background: var(--faint); }
.step-lock { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1.5px dashed var(--line); background: #fff; color: var(--muted); font-size: 12.5px; }
.step-lock svg.ic { width: 15px; height: 15px; }
.select:disabled { color: var(--muted); cursor: not-allowed; background-color: #f1f3f8; }
