:root {
  --k-primary: #2563EB;
  --k-primary-dark: #1D4ED8;
  --k-primary-soft: #EFF6FF;
  --k-primary-muted: #93C5FD;
  --k-sidebar-from: #082A66;
  --k-sidebar-via: #0A3275;
  --k-sidebar-to: #0D3E8F;
  --vaca-navy: #0F172A;
  --vaca-mist: #F4F8FF;
  --vaca-surface: #F4F8FF;
  --vaca-line: #E7EEF8;
  --vaca-muted: #64748B;
  --vaca-card: #fff;
  --vaca-radius: 1.25rem;
  --vaca-shadow: 0 4px 16px rgba(8, 42, 102, 0.04);
  --nav-h: 56px;
  --side-w: 300px;
  --lekuk: 28px;
  --page-pad-x: 14px;
  --page-pad-y: 12px;
  --touch: 44px;
  --content-max: 1280px;
  --gap: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--vaca-navy);
  background: var(--vaca-surface);
  -webkit-font-smoothing: antialiased;
}
a, a:hover, a:visited, a:active, a:focus { text-decoration: none !important; }
button, input, select, textarea { font-family: inherit; }

.btn-primary {
  background: linear-gradient(90deg, var(--k-primary-dark), var(--k-primary));
  color: #fff;
  border: 0;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--k-primary) 22%, transparent);
  transition: filter .25s ease, transform .25s ease;
}
.btn-primary:hover { filter: brightness(1.05); transform: scale(1.02); }
.text-primary { color: var(--k-primary); }
.bg-primary { background: var(--k-primary); }
.nav-active { color: var(--k-primary) !important; }
.k-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #E7EEF8;
  box-shadow: 0 4px 16px rgba(8, 42, 102, .04);
}
.k-input {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  min-height: var(--touch);
  color: var(--vaca-navy);
  background: #fff;
  font-size: 16px; /* cegah zoom iOS */
  line-height: 1.35;
}
.k-input:focus {
  outline: 0;
  border-color: var(--k-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-primary) 12%, transparent);
}
textarea.k-input { min-height: 96px; resize: vertical; }
select.k-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.2rem; }
label:has(> .k-input),
label:has(> .vaff-combo) {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: #334155;
}

/* ---- Guest / login ---- */
body.vaff-guest {
  min-height: 100vh;
  background: var(--vaca-surface);
  padding: 0;
}
body.vaff-guest:not(:has(.vaff-login-page)) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--k-primary) 18%, transparent), transparent 55%),
    linear-gradient(160deg, #F8FBFF 0%, var(--k-primary-soft) 100%);
}
.vaff-login {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  background: #fff;
  border: 1px solid var(--vaca-line);
  border-radius: 1.5rem;
  box-shadow: 0 15px 50px rgba(15, 23, 42, .08);
  text-align: center;
}
.vaff-login--wide { max-width: 520px; text-align: left; }

/* ---- Install wizard ---- */
.vaff-install {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--vaca-line);
  border-radius: 1.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 18px 48px rgba(15, 42, 102, .07);
}
.vaff-install__brand {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--vaca-line);
}
.vaff-install__wordmark {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.vaff-install__mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.vaff-install__fallback {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--k-primary);
  margin-bottom: 10px;
}
.vaff-install__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--vaca-muted);
}
.vaff-install__form { display: flex; flex-direction: column; gap: 18px; }
.vaff-install__section { display: flex; flex-direction: column; gap: 10px; }
.vaff-install__h {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-primary);
}
.vaff-install__lab {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vaca-navy);
}
.vaff-install__hint {
  margin: -4px 0 0;
  font-size: 0.75rem;
  color: var(--vaca-muted);
}
.vaff-install__alert {
  margin: 0 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid transparent;
}
.vaff-install__alert.is-err {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.vaff-install__alert.is-ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.vaff-install__alert.is-wait {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.vaff-install__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vaff-install__db-ok {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--k-primary) 22%, #fff);
  font-size: 0.85rem;
  color: var(--vaca-navy);
}
.vaff-install__db-ok strong { font-size: 0.8rem; color: var(--k-primary-dark); }
.vaff-install__submit {
  width: 100%;
  margin-top: 4px;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  .vaff-install { padding: 22px 18px; border-radius: 1.1rem; }
  .vaff-install__grid { grid-template-columns: 1fr; }
}

.vaff-login-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}
.vaff-login-brand {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, var(--k-sidebar-from) 0%, var(--k-sidebar-via) 48%, var(--k-sidebar-to) 100%);
}
.vaff-login-brand::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .9;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.09), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(96,165,250,.14), transparent 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.055'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 36px 36px;
}
.vaff-login-brand__deco {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vaff-login-brand__deco::before,
.vaff-login-brand__deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .10);
  background: transparent;
  box-shadow: none;
}
/* cincin kanan-atas — lembut, tidak “potong” kasar */
.vaff-login-brand__deco::before {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -90px;
  opacity: .55;
  background:
    radial-gradient(circle at center, transparent 58%, rgba(255,255,255,.04) 59%, transparent 72%);
  border-color: rgba(255, 255, 255, .11);
}
/* cincin kanan-bawah — lebih kecil, seimbang */
.vaff-login-brand__deco::after {
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -70px;
  opacity: .45;
  background:
    radial-gradient(circle at 45% 40%, rgba(147,197,253,.10), transparent 62%);
  border-color: rgba(255, 255, 255, .09);
}
.vaff-login-brand__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1;
  padding: 56px 48px 40px;
  max-width: 460px;
  min-height: 100%;
}
.vaff-login-brand__top { display: flex; flex-direction: column; }
.vaff-login-brand__school {
  width: 112px; height: 112px; border-radius: 28px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  outline: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center;
  margin-bottom: 22px;
  overflow: hidden;
}
.vaff-login-brand__school img {
  width: 100%; height: 100%; object-fit: contain;
}
.vaff-login-brand__school span {
  font-size: 2.6rem; font-weight: 800; color: var(--k-primary); line-height: 1;
}
.vaff-login-brand h1 {
  margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.45rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; color: #fff;
}
.vaff-login-brand__bar {
  margin-top: 18px; height: 3px; width: 48px; border-radius: 99px;
  background: linear-gradient(90deg, #D4A017, #F5D76E);
}
.vaff-login-brand__tag {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .01em;
}
.vaff-login-brand__app {
  margin-top: 48px;
  opacity: .92;
  max-width: 110px;
}
.vaff-login-brand__app img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.vaff-login-brand__app.is-mark {
  max-width: 40px;
}
.vaff-login-brand__app.is-mark img {
  max-height: 40px;
}
.vaff-login-brand__appname {
  margin-top: 48px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.9);
}
.vaff-login-main {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: linear-gradient(160deg, var(--k-sidebar-from) 0%, var(--k-sidebar-via) 45%, var(--k-sidebar-to) 100%);
}
.vaff-login-panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.vaff-login-card {
  position: relative; z-index: 1;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.35rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  padding: 28px 24px 24px;
}
.vaff-login-ico {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--k-primary-soft); color: var(--k-primary);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k-primary) 12%, transparent);
}
.vaff-login-ico svg { width: 30px; height: 30px; }
.vaff-login-card h2 {
  text-align: center; margin: 0;
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--vaca-navy);
}
.vaff-login-card .sub {
  text-align: center; margin: 8px 0 22px; color: var(--vaca-muted); font-size: 14px; line-height: 1.45;
}
.vaff-login-card label.fld {
  display: block; font-weight: 600; font-size: 14px; color: #334155; margin: 0 0 8px;
}
.vaff-field { position: relative; margin-bottom: 16px; }
.vaff-field .ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #94a3b8; pointer-events: none; z-index: 1;
}
.vaff-field .k-input {
  height: 52px;
  padding-left: 48px !important;
  padding-right: 48px !important;
  border-radius: 12px;
}
.vaff-field .toggle-pass {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; color: #94a3b8;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center; z-index: 1;
}
.vaff-field .toggle-pass:hover { color: var(--k-primary); background: var(--k-primary-soft); }
.vaff-field .toggle-pass svg { width: 18px; height: 18px; }
.vaff-login-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 22px; font-size: 14px; color: #475569;
}
.vaff-login-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.vaff-login-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--k-primary); cursor: pointer;
}
.vaff-login-forgot {
  color: var(--k-primary) !important;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.vaff-login-forgot:hover { color: var(--k-primary-dark) !important; }
.vaff-login-forgot-hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--k-primary-soft);
  color: #334155;
  font-size: 12.5px;
  line-height: 1.45;
  display: none;
}
.vaff-login-forgot-hint:target { display: block; }
.vaff-login-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--k-primary) 28%, transparent);
}
.vaff-login-submit svg {
  width: 20px; height: 20px; flex-shrink: 0;
}
.vaff-login-foot {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vaff-login-foot__brand {
  display: none;
}
.vaff-login-foot__brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin: 0 auto;
}
.vaff-login-foot__brand.is-mark img {
  height: 32px;
}
.vaff-login-foot__appname {
  display: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--k-primary);
  letter-spacing: -.02em;
}
.vaff-login-foot__copy {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.vaff-login-alert {
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; font-size: 14px;
}
@media (min-width: 1024px) {
  .vaff-login-page { grid-template-columns: minmax(340px, 40%) 1fr; }
  .vaff-login-brand { display: flex; }
  .vaff-login-main {
    background: #EEF2F7;
  }
  .vaff-login-card { padding: 40px 36px 32px; }
  .vaff-login-foot { color: #94a3b8; }
}

/* ---- Shell ---- */
body.vaff-shell {
  padding-bottom: 0;
  background: linear-gradient(160deg, var(--k-sidebar-from) 0%, var(--k-sidebar-via) 45%, var(--k-sidebar-to) 100%) fixed;
}
.vaff-wrap {
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F4F8FF;
  border-top-left-radius: var(--lekuk);
  transition: margin-left .2s ease;
}
.vaff-navbar {
  position: relative;
  height: var(--nav-h);
  margin: 14px 20px 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--vaca-line);
  box-shadow: 0 4px 24px rgba(8, 42, 102, .04);
  z-index: 40;
  border-radius: 1.5rem;
}
.vaff-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 22px;
}
.vaff-navbar__left, .vaff-navbar__right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vaff-navbar__title { min-width: 0; line-height: 1.15; }
.vaff-navbar__title strong {
  display: block; font-size: 15px; font-weight: 700; color: var(--vaca-navy);
  letter-spacing: -.02em;
}
.vaff-navbar__title small,
.vaff-navbar__sub {
  margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--vaca-muted);
  max-width: min(640px, 58vw);
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vaff-navbar__sub:not([hidden]):empty { display: none !important; }
.vaff-navbar__sub[hidden] { display: none !important; }
.vaff-navbar__inner:has(.vaff-navbar__sub:not([hidden]):not(:empty)) {
  height: auto;
  min-height: var(--nav-h);
  padding-top: 10px;
  padding-bottom: 10px;
  align-items: center;
}
/* Lead diangkat ke header via PHP; sisa di body disembunyikan */
.vaff-main > .vaff-page-lead,
.vaff-main .vaff-page-head .vaff-page-lead,
.vaff-main form > .vaff-page-lead,
.vaff-main .flex > div > .vaff-page-lead {
  display: none !important;
}
h1.is-dup-title { display: none !important; }
.vaff-page-head:empty { display: none !important; }
.vaff-toolbar-end { justify-content: flex-end !important; }
.vaff-bars {
  width: 40px; height: 40px;
  border: 0; background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
}
.vaff-bars:hover { background: var(--k-primary-soft); }
.vaff-bars span {
  display: block; width: 18px; height: 2px;
  background: var(--k-primary); border-radius: 2px;
}
.vaff-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none !important; min-width: 0;
}
.vaff-brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.vaff-brand__mark, .vaff-side-brand__mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: #fff; color: var(--k-primary);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  flex: 0 0 48px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.vaff-brand__text {
  font-weight: 800; color: var(--vaca-navy);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vaff-nav-bell {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #64748B;
  text-decoration: none !important;
}
.vaff-nav-bell:hover { background: var(--k-primary-soft); color: var(--k-primary); }
.vaff-nav-bell__badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #DC2626; color: #fff;
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.vaff-nav-count {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25rem;
  text-align: center;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(8, 42, 102, .25);
}
.vaff-nav-item.is-active .vaff-nav-count {
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.vaff-nav-user { position: relative; }
.vaff-nav-user__btn {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 6px 4px 4px; border-radius: 999px;
}
.vaff-nav-user__btn:hover, .vaff-nav-user.is-open .vaff-nav-user__btn { background: #F8FAFC; }
.vaff-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--k-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.vaff-nav-user__meta { text-align: left; line-height: 1.15; }
.vaff-nav-user__meta strong { display: block; font-size: 13px; color: var(--vaca-navy); }
.vaff-nav-user__meta small { display: block; font-size: 11px; color: var(--vaca-muted); font-weight: 500; }
.vaff-caret { width: 18px; height: 18px; color: #94A3B8; }
.vaff-drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 200px; background: #fff;
  border: 1px solid #E8EEF2; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 6px; z-index: 50;
}
.vaff-drop a, .vaff-drop button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--vaca-navy); text-decoration: none !important; cursor: pointer;
}
.vaff-drop .vaff-side-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--k-primary); }
.vaff-drop form { margin: 0; }
.vaff-drop a:hover, .vaff-drop button:hover { background: var(--k-primary-soft); color: var(--k-primary); }

.vaff-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  max-width: var(--side-w);
  height: 100vh;
  height: 100dvh;
  /* Template Sipintar: gradient gelap; warna via --k-sidebar-* (tema) */
  background: linear-gradient(160deg, var(--k-sidebar-from) 0%, var(--k-sidebar-via) 45%, var(--k-sidebar-to) 100%) !important;
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  border-right: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  transition: margin-left .2s ease;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.vaff-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.10), transparent 36%),
    radial-gradient(circle at 86% 78%, color-mix(in srgb, var(--k-primary) 22%, transparent), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 900' fill='none' stroke='%23ffffff' stroke-opacity='0.08'%3E%3Cpath d='M-50 160 C140 60 260 260 430 150 S720 70 880 190' stroke-width='1.3'/%3E%3Cpath d='M-40 260 C160 150 280 340 450 230 S740 140 900 270' stroke-width='1'/%3E%3Cpath d='M-30 720 C170 620 300 820 470 700 S760 620 920 760' stroke-width='1.15'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: auto, auto, 28px 28px, cover;
  pointer-events: none;
  z-index: 0;
}
.vaff-sidebar > * { position: relative; z-index: 1; }

.vaff-side-brand-block {
  flex-shrink: 0;
  padding: 1.35rem 1.25rem 1rem;
  background: transparent;
}
.vaff-side-brand-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.vaff-side-brand-logo {
  width: 3.35rem;
  height: 3.35rem;
  min-width: 3.35rem;
  background: rgba(255, 255, 255, .95);
  border-radius: .85rem;
  padding: .35rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  outline: 1px solid rgba(255, 255, 255, .35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--k-primary);
}
.vaff-side-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vaff-side-brand__mark {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--k-primary);
}
.vaff-side-brand-text { min-width: 0; flex: 1; }
.vaff-side-brand-wordmark {
  display: block;
  max-width: 132px;
  width: 100%;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 .2rem;
}
.vaff-side-brand-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-side-brand-sub {
  color: rgba(255,255,255,.92);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: .25rem;
  max-width: 13.5rem;
}
.vaff-side-close {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: .65rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.vaff-side-profile {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  margin-top: .75rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  padding: .85rem .9rem;
  color: inherit;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}
button.vaff-side-profile {
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
button.vaff-side-profile:hover,
button.vaff-side-profile:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  outline: 0;
}
.vaff-side-profile.is-static {
  cursor: default;
}
.vaff-side-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  overflow: hidden;
}
.vaff-side-avatar--period {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.vaff-side-period-ico__svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.vaff-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vaff-side-profile-meta { min-width: 0; flex: 1; }
.vaff-side-profile-name {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-side-profile-online {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #86efac;
  font-size: .7rem;
  font-weight: 600;
  margin-top: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vaff-online-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
  flex-shrink: 0;
}

.vaff-sidebar-nav {
  padding: .6rem .75rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.vaff-sidebar-nav::-webkit-scrollbar { width: 3px; }
.vaff-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 99px;
}

.vaff-nav-group {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.vaff-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 2.2rem;
  padding: .45rem .85rem;
  border-radius: .85rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-family: inherit;
  pointer-events: none;
}
.vaff-nav-group.is-current > .vaff-nav-group-toggle {
  color: rgba(255,255,255,.8);
}
.vaff-nav-group-toggle .vaff-nav-ico {
  width: 1rem;
  min-width: 1rem;
  opacity: .75;
}
.vaff-nav-group-toggle .vaff-nav-ico svg {
  width: .95rem;
  height: .95rem;
}
.vaff-nav-group-label { flex: 1; min-width: 0; }
.vaff-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .05rem 0 .45rem .35rem;
  margin: 0 0 .35rem .55rem;
  border-left: 1px solid rgba(255,255,255,.12);
}

.vaff-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.65rem;
  padding: .75rem 1.15rem;
  border-radius: 1rem;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  text-decoration: none !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: all .3s ease;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.vaff-nav-item.is-sub {
  min-height: 2.35rem;
  padding: .55rem .85rem .55rem 1rem;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-radius: .85rem;
}
.vaff-nav-item.is-deep {
  padding-left: 1.35rem;
  font-size: 13px;
}
.vaff-nav-ico {
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vaff-nav-ico svg,
.vaff-nav-item .vaff-side-ico {
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(255,255,255,.8);
  flex: 0 0 auto;
}
.vaff-nav-item.is-sub .vaff-nav-ico svg {
  width: 1rem;
  height: 1rem;
}
.vaff-nav-item:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
.vaff-nav-item:hover .vaff-nav-ico svg { color: #fff; }
/* Active: gradient terang seperti Sipintar (#2563EB → #1D4ED8), warna = tema */
.vaff-nav-item.is-active {
  background: linear-gradient(90deg, var(--k-primary) 0%, var(--k-primary-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--k-primary) 42%, transparent) !important;
}
.vaff-nav-item.is-sub.is-active {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--k-primary) 32%, transparent) !important;
}
.vaff-nav-item.is-active .vaff-nav-ico svg { color: #fff !important; }

.vaff-nav-parent .vaff-sub-caret {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: .8;
  transition: transform .15s ease;
  flex: 0 0 16px;
}
.vaff-nav-group.is-open > .vaff-nav-parent .vaff-sub-caret,
.vaff-nav-nested.is-open > .vaff-nav-parent .vaff-sub-caret {
  transform: rotate(90deg);
}
.vaff-nav-group-body[data-sub-body]:not(.is-open) { display: none; }
.vaff-nav-group-body[data-sub-body].is-open { display: flex; }
.vaff-nav-nested-body { display: none; flex-direction: column; gap: .1rem; margin-top: .15rem; }
.vaff-nav-nested.is-open > .vaff-nav-nested-body { display: flex; }

.vaff-sidebar-footer {
  border-top: 0;
  background: transparent;
  padding: .85rem 1rem 1.25rem;
  margin-top: auto;
  flex-shrink: 0;
}
.vaff-side-logout-form { margin: 0 0 .85rem; }
.vaff-side-logout {
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border-radius: 1rem !important;
}
.vaff-side-logout:hover {
  background: rgba(255,255,255,.12) !important;
}
.vaff-side-copy {
  color: rgba(255,255,255,.42);
  font-size: .68rem;
  line-height: 1.45;
  padding: 0 .25rem;
}

/* legacy helpers still used in sheets/drop */
.vaff-side-brand { display: none; }
.vaff-logo-pick { display: flex; align-items: flex-start; gap: 14px; }
.vaff-logo-pick__preview {
  width: 88px; height: 88px; border-radius: 16px; flex: 0 0 88px;
  border: 1px solid var(--vaca-line); background: #F8FAFC;
  display: grid; place-items: center; overflow: hidden;
}
.vaff-logo-pick__preview img { width: 100%; height: 100%; object-fit: contain; }
.vaff-logo-pick__ph { font-size: 28px; font-weight: 800; color: var(--k-primary); }

.vaff-theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vaff-theme-swatch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border-radius: 999px;
  padding: 2px;
  border: 2px solid transparent;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vaff-theme-swatch:hover { transform: translateY(-1px); }
.vaff-theme-swatch.is-selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-primary) 28%, transparent);
}
.vaff-theme-swatch__dot {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

.vaff-api-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.vaff-api-row .k-input { flex: 1 1 220px; min-width: 0; }
.vaff-api-row .vaff-btn-outline { flex: 0 0 auto; }

.vaff-ai-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vaff-ai-typechip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--vaca-line, #e2e8f0);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.vaff-ai-typechip:has(input:checked) {
  border-color: color-mix(in srgb, var(--k-primary) 45%, #e2e8f0);
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
  color: var(--k-primary);
}
.vaff-ai-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  padding: 24px 12px;
}
.vaff-ai-loading.is-on {
  display: flex;
}
.vaff-ai-loading[hidden] {
  display: none !important;
}
.vaff-ai-loading__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vaca-navy, #0f172a);
}
.vaff-ai-bot {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.vaff-ai-bot__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--k-primary) 22%, transparent);
  border-top-color: var(--k-primary);
  animation: vaff-ai-spin 1.1s linear infinite;
}
.vaff-ai-bot__ring.is-2 {
  inset: 10px;
  border-top-color: color-mix(in srgb, var(--k-primary) 55%, #94a3b8);
  border-right-color: color-mix(in srgb, var(--k-primary) 25%, transparent);
  animation-duration: 1.7s;
  animation-direction: reverse;
}
.vaff-ai-bot__core {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--k-primary), var(--k-primary-dark));
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--k-primary) 35%, transparent),
    0 0 0 6px color-mix(in srgb, var(--k-primary) 12%, transparent);
  animation: vaff-ai-pulse 1.6s ease-in-out infinite;
}
.vaff-ai-bot__icon {
  width: 28px;
  height: 28px;
}
.vaff-ai-bot__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--k-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-primary) 18%, transparent);
  animation: vaff-ai-orbit 2.4s linear infinite;
}
.vaff-ai-bot__dot.is-a { top: 4px; left: 50%; margin-left: -4px; animation-delay: 0s; }
.vaff-ai-bot__dot.is-b { bottom: 10px; right: 8px; animation-delay: -.8s; }
.vaff-ai-bot__dot.is-c { bottom: 10px; left: 8px; animation-delay: -1.6s; }
@keyframes vaff-ai-spin {
  to { transform: rotate(360deg); }
}
@keyframes vaff-ai-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes vaff-ai-orbit {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.vaff-ai-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--vaca-line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}
.vaff-ai-card__check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vaca-muted);
  padding-top: 4px;
}
.vaff-ai-card__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--k-primary);
}
.vaff-ai-card__body { min-width: 0; }

.vaff-side-ico, .vaff-ico, .vaff-ico-sm, .vaff-mnav-ico {
  width: 20px; height: 20px; flex: 0 0 20px;
}
.vaff-emblem { width: 42px; height: 42px; flex: 0 0 42px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.vaff-emblem svg { width: 100%; height: 100%; }

.vaff-main {
  flex: 1;
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x) 24px;
  width: 100%;
  max-width: var(--content-max);
  min-width: 0;
}
.vaff-main > h1:first-child,
.vaff-main h1 {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--vaca-navy); margin: 0;
}
.vaff-main h2 {
  color: var(--vaca-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.vaff-flash {
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; font-size: 14px;
}
.vaff-flash.is-ok { background: #ecfdf5; color: #065f46; }
.vaff-flash.is-err { background: #fff1f2; color: #9f1239; }

/* ---- Dashboard Sipintar-style ---- */
.vaff-dash-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: #fff; border: 1px solid #E7EEF8; border-radius: 1.5rem;
  padding: 1.5rem 1.75rem; box-shadow: 0 8px 28px rgba(8, 42, 102, .06);
  background-image:
    radial-gradient(ellipse 70% 80% at 92% 40%, rgba(59, 130, 246, .12), transparent 55%),
    linear-gradient(135deg, #fff 0%, #F8FBFF 100%);
  overflow: hidden;
}
.vaff-dash-welcome__copy { min-width: 0; flex: 1; }
.vaff-dash-welcome__copy h1 {
  margin: 0 !important; font-size: 1.65rem !important; font-weight: 800 !important;
  letter-spacing: -.03em; color: #0F172A; line-height: 1.2;
}
.vaff-dash-welcome__copy p {
  margin: .55rem 0 0; font-size: 14px; color: #64748B; font-weight: 500;
  line-height: 1.5; max-width: 36rem;
}
.vaff-dash-welcome__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.vaff-dash-welcome__art {
  flex: 0 0 auto; width: min(280px, 34vw); max-width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.vaff-dash-welcome__art img {
  width: 100%; height: auto; display: block; object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, .16));
}
.vaff-dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px 20px; margin: 4px 0 1.25rem;
}
.vaff-dash-head__copy { min-width: 0; flex: 1; }
.vaff-dash-head h1 {
  margin: 0 !important; font-size: 1.75rem !important; font-weight: 800 !important;
  letter-spacing: -.03em; color: #0F172A; line-height: 1.15;
}
.vaff-dash-head p {
  margin: .4rem 0 0; font-size: 14px; color: #64748B; font-weight: 500;
  line-height: 1.45; max-width: 40rem;
}
.vaff-dash-head__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vaff-dash-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: .45rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid #E7EEF8; font-size: 12px; font-weight: 700; color: #0F172A;
  box-shadow: 0 2px 8px rgba(8, 42, 102, .04);
}
.vaff-dash-chip.is-muted { color: #64748B; font-weight: 600; }
.vaff-dash-chip.is-role {
  background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8;
}
.vaff-dash-chip.is-period {
  background: #ECFDF5; border-color: #A7F3D0; color: #047857;
}
.vaff-dash-chip__ico {
  display: inline-flex; width: 14px; height: 14px; color: inherit;
}
.vaff-dash-chip__ico svg { width: 14px !important; height: 14px !important; }
.vaff-sec-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.vaff-kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.vaff-kpi {
  display: flex; align-items: flex-start; gap: .9rem; background: #fff;
  border: 1px solid #E7EEF8; border-radius: 1.5rem; padding: 1.35rem 1.25rem 1.2rem;
  text-decoration: none !important; color: inherit;
  box-shadow: 0 4px 16px rgba(8, 42, 102, .04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.vaff-kpi:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(8, 42, 102, .1); }
.vaff-kpi--fresh {
  flex-direction: row; align-items: flex-start; gap: .9rem; padding: 1.2rem 1.15rem 1.1rem;
  position: relative;
}
.vaff-kpi__top { display: none; }
.vaff-kpi__ico {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vaff-kpi--fresh .vaff-kpi__ico {
  width: 3rem; height: 3rem; border-radius: .95rem;
}
.vaff-kpi__ico svg { width: 1.25rem !important; height: 1.25rem !important; }
.vaff-kpi__body { min-width: 0; flex: 1; width: 100%; }
.vaff-kpi__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #64748B;
}
.vaff-kpi__value {
  font-size: 2rem; font-weight: 800; color: #0F172A; line-height: 1.15;
  margin: .2rem 0 .35rem; letter-spacing: -.03em;
}
.vaff-kpi__link { font-size: .75rem; font-weight: 600; color: var(--k-primary); }
.vaff-kpi__sub {
  font-size: .72rem; font-weight: 500; color: #64748B; line-height: 1.35;
  margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vaff-kpi.is-danger {
  border-color: #FECACA; background: linear-gradient(180deg, #FFF7F7 0%, #fff 55%);
}
.vaff-kpi.is-danger .vaff-kpi__value { color: #BE123C; }
.vaff-kpi.is-warn {
  border-color: #FDE68A; background: linear-gradient(180deg, #FFFBEB 0%, #fff 55%);
}
.vaff-kpi.is-warn .vaff-kpi__value { color: #B45309; }
.vaff-kpi.is-ok .vaff-kpi__value { color: #0F766E; }
.vaff-kpi-grid--info .vaff-kpi,
.vaff-kpi-grid--fresh .vaff-kpi {
  padding: 1.2rem 1.15rem 1.1rem;
}
.vaff-mod--fresh {
  gap: 12px; padding: 1.05rem 1rem; border-radius: 1.15rem;
}
.vaff-mod__ico {
  width: 2.65rem; height: 2.65rem; border-radius: .9rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vaff-mod__ico svg { width: 1.15rem !important; height: 1.15rem !important; }
.vaff-mod--fresh .vaff-mod__val {
  font-size: 1.15rem; margin-left: auto; padding-left: 6px;
}
.vaff-mod__chev {
  color: #94A3B8; font-size: 1.25rem; font-weight: 600; line-height: 1; flex-shrink: 0;
}
.vaff-mod--fresh:hover .vaff-mod__chev { color: var(--k-primary); }
.plan-strip--dash .plan-strip-inner {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
}
.plan-strip--dash .plan-strip-text { flex: 1; min-width: 12rem; margin: 0; }
.plan-strip-cta {
  margin-left: auto; font-size: 13px; font-weight: 700; color: #9A3412;
  text-decoration: none !important; white-space: nowrap;
}
.plan-strip-cta:hover { text-decoration: underline !important; }

.vaff-update-banner {
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--k-primary) 28%, #E7EEF8);
  background:
    radial-gradient(700px 180px at 0% 0%, color-mix(in srgb, var(--k-primary) 12%, transparent), transparent 60%),
    #fff;
  box-shadow: 0 10px 28px rgba(15, 42, 102, .06);
}
.vaff-update-banner__top {
  display: flex; flex-wrap: wrap; gap: .85rem 1rem; align-items: flex-start; justify-content: space-between;
}
.vaff-update-banner__badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--k-primary-dark); background: color-mix(in srgb, var(--k-primary) 12%, #fff);
  border-radius: 999px; padding: .2rem .55rem; margin-bottom: .35rem;
}
.vaff-update-banner__title {
  margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--vaca-navy);
}
.vaff-update-banner__title small {
  display: block; margin-top: .2rem; font-size: .78rem; font-weight: 600; color: var(--vaca-muted);
}
.vaff-update-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vaff-update-banner__notes {
  margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--vaca-line);
}
.vaff-update-banner__notes strong {
  display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--k-primary); margin-bottom: .35rem;
}
.vaff-update-banner__notes ul {
  margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--vaca-navy); line-height: 1.45;
}
.vaff-update-banner__notes li { margin: .15rem 0; }

.vaff-dash-urgent {
  background: linear-gradient(135deg, #0B3A82 0%, #1D4ED8 55%, #2563EB 100%);
  border-radius: 1.35rem; padding: 1.15rem 1.2rem 1.25rem; color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, .22);
}
.vaff-dash-urgent__head h2 {
  margin: 0 !important; font-size: 1.05rem !important; font-weight: 800 !important;
  letter-spacing: -.02em; color: #fff !important;
}
.vaff-dash-urgent__head p {
  margin: .35rem 0 0; font-size: 12.5px; opacity: .88; font-weight: 500; line-height: 1.4;
}
.vaff-dash-urgent__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .95rem;
}
.vaff-alert {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 1rem; padding: .75rem .85rem; text-decoration: none !important; color: #fff !important;
  transition: background .2s ease, transform .2s ease;
}
.vaff-alert:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.vaff-alert__count {
  flex: 0 0 auto; min-width: 2.4rem; height: 2.4rem; border-radius: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; background: #fff; color: #0B3A82;
}
.vaff-alert.is-danger .vaff-alert__count { color: #BE123C; }
.vaff-alert.is-warn .vaff-alert__count { color: #B45309; }
.vaff-alert__meta { min-width: 0; flex: 1; }
.vaff-alert__meta b {
  display: block; font-size: .82rem; font-weight: 800; line-height: 1.2;
}
.vaff-alert__meta small {
  display: block; margin-top: .15rem; font-size: .7rem; opacity: .9; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vaff-alert__go { font-weight: 700; opacity: .75; }
.vaff-dash-card.is-urgent-card {
  border-color: #FECACA;
  box-shadow: 0 4px 16px rgba(190, 18, 60, .06);
}
@media (max-width: 1100px) {
  .vaff-dash-urgent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vaff-dash-welcome__art { width: min(220px, 32vw); }
}
@media (max-width: 767px) {
  .vaff-dash-urgent__grid { grid-template-columns: 1fr; }
  .vaff-dash-welcome {
    flex-direction: column; align-items: stretch; padding: 1.15rem 1.1rem 1.25rem;
  }
  .vaff-dash-welcome__copy h1 { font-size: 1.3rem !important; }
  .vaff-dash-welcome__art { width: min(200px, 70%); margin: 0 auto; }
}
.vaff-dash-card {
  background: #fff; border: 1px solid #E7EEF8; border-radius: 1.5rem;
  padding: 1.5rem 1.35rem; box-shadow: 0 4px 16px rgba(8, 42, 102, .04);
}
@media (max-width: 1100px) {
  .vaff-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vaff-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .vaff-kpi { flex-direction: column; padding: 1.1rem 1rem; }
  .vaff-kpi__value { font-size: 1.6rem; }
  .vaff-dash-head h1 { font-size: 1.45rem !important; }
}

.vaff-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 28px;
  padding: 2px 2px 20px;
  border-bottom: 1px solid var(--vaca-line);
}
.vaff-hero__copy { min-width: 0; flex: 1; }
.vaff-hero__hi {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--k-primary);
}
.vaff-hero h1 {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: 0 !important;
}
.vaff-hero__lead {
  margin: 8px 0 0;
  color: var(--vaca-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 42rem;
}
.vaff-hero__meta {
  flex: 0 0 auto;
  text-align: right;
  padding-bottom: 2px;
}
.vaff-hero__meta span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--vaca-navy);
}
.vaff-hero__meta small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--vaca-muted);
}
.vaff-hero__art { width: 220px; max-width: 36%; flex: 0 0 auto; }
.vaff-hero__art svg { width: 100%; height: auto; display: block; }
.vaff-hero__chip {
  display: inline-flex; align-items: center;
  background: var(--k-primary-soft); color: var(--k-primary);
  font-size: 12px; font-weight: 700; border-radius: 99px;
  padding: 4px 10px; margin-bottom: 8px;
}

.vaff-stat--link { text-decoration: none !important; color: inherit; transition: box-shadow .15s, border-color .15s; }
.vaff-stat--link:hover { border-color: color-mix(in srgb, var(--k-primary) 35%, var(--vaca-line)); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }

.vaff-sec-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #64748B;
  margin: 0 0 12px;
}

.vaff-dash-charts {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 900px) {
  .vaff-dash-charts { grid-template-columns: 1fr 1fr; }
}
.vaff-chart__head h2 {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #64748B; margin: 0 0 2px;
}
.vaff-chart__head p { margin: 0 0 10px; font-size: 13px; color: #94A3B8; }
.vaff-chart__svg { width: 100%; height: auto; display: block; }
.vaff-chart__svg.is-donut {
  width: min(240px, 55%);
  max-width: 240px;
  flex: 0 0 auto;
}
.vaff-chart__body.has-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.vaff-chart__legend { list-style: none; margin: 0; padding: 0; min-width: 160px; flex: 1 1 140px; }
.vaff-chart__legend li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #334155; padding: 5px 0;
}
.vaff-chart__legend i { width: 10px; height: 10px; border-radius: 99px; flex: 0 0 10px; }
.vaff-chart__legend span { flex: 1; }
.vaff-chart__legend b { color: #0F172A; font-variant-numeric: tabular-nums; }

.vaff-mod-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 900px) {
  .vaff-mod-grid { grid-template-columns: repeat(4, 1fr); }
}
.vaff-mod {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important; color: inherit;
  background: #fff; border: 1px solid #E7EEF8; border-radius: 1.25rem;
  padding: 1rem 1.1rem; box-shadow: 0 4px 16px rgba(8, 42, 102, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vaff-mod:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 42, 102, .08);
  border-color: color-mix(in srgb, var(--k-primary) 28%, #E7EEF8);
}
.vaff-mod__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vaff-mod__label { font-weight: 800; font-size: 13px; color: #0F172A; }
.vaff-mod__desc { font-size: 11px; color: #64748B; }
.vaff-mod__val { font-size: 20px; font-weight: 800; color: var(--k-primary); }

.vaff-dash-lists {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 900px) {
  .vaff-dash-lists { grid-template-columns: 1fr 1fr; }
}
.vaff-dash-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid #E7EEF8; border-radius: 14px;
  text-decoration: none !important; color: inherit; background: #F8FBFC;
}
a.vaff-dash-row:hover {
  border-color: color-mix(in srgb, var(--k-primary) 35%, #E7EEF8);
  background: #fff;
}
.vaff-dash-row b { display: block; font-size: 13px; color: #0F172A; }
.vaff-dash-row small { display: block; font-size: 12px; color: #64748B; }
.vaff-dash-row__hint { font-size: 12px; color: #64748B; max-width: 40%; text-align: right; }

.vaff-sched-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vaff-sched-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  border: 1px solid var(--vaca-line);
  border-radius: 14px;
  background: #fff;
}
.vaff-sched-row.is-now {
  border-color: color-mix(in srgb, var(--k-primary) 45%, var(--vaca-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--k-primary) 20%, transparent);
}
.vaff-sched-row.is-past { opacity: 0.78; }
.vaff-sched-row__time {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.vaff-sched-row__time b { display: block; font-size: 13px; color: var(--vaca-navy); }
.vaff-sched-row__time small { display: block; font-size: 11px; color: var(--vaca-muted); }
.vaff-sched-row__body b { display: block; font-size: 14px; color: var(--vaca-navy); }
.vaff-sched-row__body small { display: block; font-size: 12px; color: var(--vaca-muted); }
.vaff-sched-row__st { display: block; font-size: 11px; color: var(--vaca-muted); margin-top: 4px; }
.vaff-sched-row__act {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
}
.vaff-sched-row__act .btn-primary,
.vaff-sched-row__act .vaff-btn-ghost { flex: 1 1 auto; min-height: var(--touch); justify-content: center; }
.vaff-sched-row__act form { flex: 1 1 auto; margin: 0; }
.vaff-sched-row__act form .btn-primary { width: 100%; }
.vaff-sched-row__act button:disabled,
.vaff-sched-row__act .vaff-btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.vaff-session-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.vaff-session-head__status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vaff-session-hub {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.vaff-session-hub__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--vaca-line); border-radius: 12px;
  text-decoration: none !important; color: inherit; background: #f8fafc;
}
.vaff-session-hub__item:hover { border-color: color-mix(in srgb, var(--k-primary) 40%, var(--vaca-line)); background: #fff; }
.vaff-session-hub__item b { font-size: 13px; color: var(--vaca-navy); }
.vaff-session-hub__item span { font-size: 11px; color: var(--vaca-muted); }

/* ---- Jurnal show (ruang sesi) ---- */
.vaff-jshow-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.vaff-jshow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.vaff-jshow-head__eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748B;
}
.vaff-jshow-head__title {
  margin: 0;
  font-size: 1.15rem !important;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--vaca-navy);
  line-height: 1.25;
}
.vaff-jshow-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
}
.vaff-jshow-head__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #CBD5E1;
}
.vaff-jshow-head__side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.vaff-jshow-note,
.vaff-jshow-hub,
.vaff-jshow-mats,
.vaff-jshow-att,
.vaff-jshow-disc {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.vaff-jshow-sec__head {
  margin-bottom: 10px;
}
.vaff-jshow-sec__head h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 750;
  color: var(--vaca-navy);
}
.vaff-jshow-sec__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748B;
}
.vaff-jshow-note {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
.vaff-jshow-mats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vaff-jshow-mats__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E7EEF8;
  background: #F8FAFC;
  color: var(--k-primary);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none !important;
}
.vaff-jshow-mats__list a:hover { background: #fff; border-color: color-mix(in srgb, var(--k-primary) 28%, #E7EEF8); }
.vaff-jshow-att__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.vaff-jshow-att__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #64748B;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F1F5F9;
}
.vaff-jshow-att__save[hidden] { display: none !important; }
.vaff-jshow-att__save.is-ok { color: #047857; background: #ECFDF5; }
.vaff-jshow-att__save.is-err { color: #BE123C; background: #FFF1F2; }
.vaff-jshow-att__spin {
  width: 14px;
  height: 14px;
  border: 2px solid #CBD5E1;
  border-top-color: var(--k-primary);
  border-radius: 50%;
  animation: vaff-spin .7s linear infinite;
}
.vaff-jshow-att__save.is-ok .vaff-jshow-att__spin,
.vaff-jshow-att__save.is-err .vaff-jshow-att__spin { display: none; }
@keyframes vaff-spin { to { transform: rotate(360deg); } }
.vaff-jshow-att__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.vaff-jshow-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: #F1F5F9;
  color: #475569;
}
.vaff-jshow-pill b { font-weight: 800; }
.vaff-jshow-pill.is-h { background: #ECFDF5; color: #047857; }
.vaff-jshow-pill.is-t { background: #FFFBEB; color: #B45309; }
.vaff-jshow-pill.is-s { background: #EFF6FF; color: #1D4ED8; }
.vaff-jshow-pill.is-i { background: #EEF2FF; color: #4338CA; }
.vaff-jshow-pill.is-a { background: #FFF1F2; color: #BE123C; }
.vaff-jshow-att__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.vaff-jshow-att__search { flex: 1 1 180px; min-width: 140px; margin: 0; }
.vaff-jshow-att__sort { flex: 0 0 140px; margin: 0; max-width: 100%; }
.vaff-jshow-att__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 2px;
}
.vaff-jshow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #E7EEF8;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, opacity .15s ease;
}
.vaff-jshow-row.is-saving { opacity: .65; }
.vaff-jshow-row.is-saved {
  border-color: color-mix(in srgb, #10B981 40%, #E7EEF8);
}
.vaff-jshow-row__name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--vaca-navy);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vaff-jshow-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.vaff-jshow-seg__btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.vaff-jshow-seg__btn:hover { border-color: #CBD5E1; background: #fff; }
.vaff-jshow-seg__btn.is-h.is-on { background: #ECFDF5; border-color: #6EE7B7; color: #047857; }
.vaff-jshow-seg__btn.is-t.is-on { background: #FFFBEB; border-color: #FCD34D; color: #B45309; }
.vaff-jshow-seg__btn.is-s.is-on { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.vaff-jshow-seg__btn.is-i.is-on { background: #EEF2FF; border-color: #A5B4FC; color: #4338CA; }
.vaff-jshow-seg__btn.is-a.is-on { background: #FFF1F2; border-color: #FDA4AF; color: #BE123C; }
.vaff-jshow-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: #94A3B8;
}
.vaff-jshow-disc__feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow: auto;
}
.vaff-jshow-disc__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E7EEF8;
}
.vaff-jshow-disc__item header {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--vaca-navy);
}
.vaff-jshow-disc__item p {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}
.vaff-jshow-disc__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.vaff-jshow-disc__form .k-input { flex: 1 1 180px; min-width: 0; }
@media (min-width: 768px) {
  .vaff-jshow-head__title { font-size: 1.25rem; }
}

/* ---- Jurnal show (ruang sesi) ---- */
.vaff-jshow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.vaff-jshow-head__eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748B;
}
.vaff-jshow-head__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--vaca-navy);
}
.vaff-jshow-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
}
.vaff-jshow-head__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #CBD5E1;
}
.vaff-jshow-head__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.vaff-jshow-note {
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
.vaff-jshow-hub,
.vaff-jshow-mats,
.vaff-jshow-att,
.vaff-jshow-disc {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.vaff-jshow-sec__head {
  margin-bottom: 12px;
}
.vaff-jshow-sec__head h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 750;
  color: var(--vaca-navy);
}
.vaff-jshow-sec__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748B;
}
.vaff-jshow-att__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.vaff-jshow-att__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--k-primary);
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--k-primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--k-primary) 22%, #E2E8F0);
}
.vaff-jshow-att__save[hidden] { display: none !important; }
.vaff-jshow-att__save.is-ok { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.vaff-jshow-att__save.is-err { color: #BE123C; background: #FFF1F2; border-color: #FECDD3; }
.vaff-jshow-att__spin {
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--k-primary) 25%, transparent);
  border-top-color: var(--k-primary);
  border-radius: 50%;
  animation: vaffSpin .7s linear infinite;
}
.vaff-jshow-att__save.is-ok .vaff-jshow-att__spin,
.vaff-jshow-att__save.is-err .vaff-jshow-att__spin { display: none; }
@keyframes vaffSpin { to { transform: rotate(360deg); } }
.vaff-jshow-att__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.vaff-jshow-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
}
.vaff-jshow-pill b { font-weight: 800; }
.vaff-jshow-pill.is-h { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.vaff-jshow-pill.is-t { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.vaff-jshow-pill.is-s { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.vaff-jshow-pill.is-i { background: #EEF2FF; border-color: #C7D2FE; color: #4338CA; }
.vaff-jshow-pill.is-a { background: #FFF1F2; border-color: #FECDD3; color: #BE123C; }
.vaff-jshow-att__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.vaff-jshow-att__search { flex: 1 1 180px; min-width: 0; margin: 0; }
.vaff-jshow-att__sort { flex: 0 0 140px; margin: 0; max-width: 100%; }
.vaff-jshow-att__search .k-input,
.vaff-jshow-att__sort .k-input {
  min-height: 36px;
  height: 36px;
  font-size: 13px;
}
.vaff-jshow-att__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E7EEF8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.vaff-jshow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  transition: background .15s ease, opacity .15s ease;
}
.vaff-jshow-row:last-child { border-bottom: 0; }
.vaff-jshow-row.is-saving { opacity: .55; pointer-events: none; }
.vaff-jshow-row.is-saved { background: color-mix(in srgb, var(--k-primary) 5%, #fff); }
.vaff-jshow-row__name {
  font-size: 13.5px;
  font-weight: 650;
  color: #0F172A;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vaff-jshow-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #F1F5F9;
}
.vaff-jshow-seg__btn {
  min-width: 30px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.vaff-jshow-seg__btn:hover { background: #fff; color: #0F172A; }
.vaff-jshow-seg__btn.is-on.is-h { background: #059669; color: #fff; }
.vaff-jshow-seg__btn.is-on.is-t { background: #D97706; color: #fff; }
.vaff-jshow-seg__btn.is-on.is-s { background: #2563EB; color: #fff; }
.vaff-jshow-seg__btn.is-on.is-i { background: #4F46E5; color: #fff; }
.vaff-jshow-seg__btn.is-on.is-a { background: #E11D48; color: #fff; }
.vaff-jshow-empty {
  margin: 0;
  padding: 16px 4px;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}
.vaff-jshow-mats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vaff-jshow-mats__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E7EEF8;
  background: #F8FAFC;
  color: var(--k-primary);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
}
.vaff-jshow-mats__list a:hover { background: #fff; border-color: color-mix(in srgb, var(--k-primary) 28%, #E7EEF8); }
.vaff-jshow-disc__feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow: auto;
}
.vaff-jshow-disc__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E7EEF8;
}
.vaff-jshow-disc__item header {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--vaca-navy);
}
.vaff-jshow-disc__item p {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}
.vaff-jshow-disc__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vaff-jshow-disc__form .k-input { flex: 1 1 200px; min-width: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 639px) {
  .vaff-jshow-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .vaff-jshow-seg { width: 100%; justify-content: space-between; }
  .vaff-jshow-seg__btn { flex: 1 1 auto; }
}

.vaff-stat {
  background: #fff;
  border: 1px solid var(--vaca-line);
  border-radius: var(--vaca-radius);
  box-shadow: var(--vaca-shadow);
  padding: 16px 16px 12px;
  min-height: 132px;
  display: flex; flex-direction: column;
}
.vaff-stat__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vaff-stat__ico {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
}
.vaff-stat__ico svg { width: 18px !important; height: 18px !important; }
.vaff-stat__label { font-size: 13px; font-weight: 700; color: #334155; }
.vaff-stat__val { font-size: 28px; font-weight: 800; color: var(--vaca-navy); line-height: 1.1; }
.vaff-stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.vaff-stat__sub { font-size: 12px; color: var(--vaca-muted); }
.vaff-stat__spark { width: 72px; height: 28px; }

.vaff-empty {
  border: 1.5px dashed #D5DEEA;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  color: #94A3B8;
}
.vaff-empty__ico {
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  background: var(--k-primary-soft); color: var(--k-primary);
}

.vaff-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35); z-index: 25;
}

.vaff-mnav { display: none; }

@media (min-width: 768px) {
  .vaff-m-list,
  .vaff-m-fab,
  .vaff-m-chips,
  .vaff-m-page-more,
  .vaff-m-skel,
  .vaff-m-empty { display: none !important; }
  .vaff-m-hide-dt table.dataTable { display: table !important; }
}

.k-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.4);
}
.k-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow: auto;
}
.k-sheet__handle { width: 40px; height: 4px; background: #e2e8f0; border-radius: 99px; margin: 0 auto 16px; }
.k-sheet__panel h2 { margin: 0 0 8px; font-size: 16px; }
.k-sheet__panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important; font-weight: 600; font-size: 14px;
  color: var(--vaca-navy);
}
.k-sheet__panel a .vaff-side-ico { color: var(--k-primary); }

@media (min-width: 992px) {
  body.sidebar-collapsed .vaff-sidebar { margin-left: calc(-1 * var(--side-w)); }
  body.sidebar-collapsed .vaff-wrap { margin-left: 0; }
}

@media (max-width: 991px) {
  body.vaff-shell { background: var(--vaca-surface); }
  .vaff-wrap { margin-left: 0; border-top-left-radius: 0; background: transparent; }
  .vaff-navbar { border-radius: 1.25rem; margin: 10px 12px 0; }
  .vaff-nav-user__meta { display: none; }
  .vaff-sidebar {
    margin-left: 0;
    transform: translateX(-110%);
    box-shadow: none !important;
    filter: none !important;
    visibility: hidden;
    pointer-events: none;
    z-index: 90;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  body.nav-open .vaff-sidebar {
    margin-left: 0;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: none !important;
  }
  body.nav-open .vaff-overlay { display: block; z-index: 85; }
  body.nav-open .vaff-navbar { z-index: 40; }
  .vaff-side-close { display: inline-flex; align-items: center; justify-content: center; }
  .vaff-hero__art { display: none; }
  .vaff-hero { align-items: flex-start; }
  .vaff-hero h1 { font-size: 1.4rem !important; }
  .vaff-navbar__title small,
  .vaff-navbar__sub { max-width: min(200px, 42vw); -webkit-line-clamp: 2; }
  .vaff-main { padding: var(--page-pad-y) var(--page-pad-x) 28px; max-width: none; }
}

@media (max-width: 767px) {
  .vaff-mnav {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #E8EFF2;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }
  .vaff-mnav__grid {
    display: grid;
    grid-template-columns: repeat(var(--m-nav-n, 5), minmax(0, 1fr));
    gap: 2px;
    max-width: 560px;
    margin: 0 auto;
    padding: 6px 0 4px;
  }
  .vaff-mnav__item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 52px; padding: 4px 2px;
    text-decoration: none !important; color: #94A3B8;
    border-radius: 12px;
  }
  .vaff-mnav__item.is-active { color: var(--k-primary); }
  .vaff-mnav__item .vaff-nav-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    margin-left: 0;
    min-width: 1.05rem;
    height: 1.05rem;
    line-height: 1.05rem;
    font-size: 9px;
    padding: 0 .28rem;
    box-shadow: 0 0 0 2px #fff;
  }
  .vaff-mnav__item span:not(.vaff-mnav__dot):not(.vaff-nav-count) {
    font-size: 10px; font-weight: 700; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .vaff-mnav__dot {
    position: absolute; top: 4px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--k-primary);
  }
  .vaff-mnav-ico { width: 22px; height: 22px; }
  body.vaff-shell { padding-bottom: 72px; }
  .vaff-main { margin-bottom: 12px; }
}
.vaff-badge.is-off { background: #f1f5f9; color: #64748B; }
.vaff-badge.is-warn { background: #FFFBEB; color: #B45309; }
.vaff-badge.is-danger { background: #FFF1F2; color: #BE123C; }

/* ---- Filter bar (semua page) ---- */
.k-card.vaff-filters,
.vaff-filters.k-card {
  border-radius: 14px;
  border: 1px solid #E7EEF8;
  box-shadow: 0 2px 10px rgba(8, 42, 102, .04);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.vaff-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.vaff-filters__search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  margin: 0 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
}
.vaff-filters.is-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 8px 12px;
}
.vaff-filters.is-grid .vaff-filters__actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.vaff-filters.is-grid.vaff-filters--actions-start .vaff-filters__actions {
  justify-content: flex-start;
}
.vaff-filters.is-grid .k-input { width: 100%; min-width: 0; }
.vaff-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  width: 148px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
}
.vaff-filters .k-input,
.vaff-filters .vaff-combo__btn {
  width: 100%;
  min-width: 0;
  min-height: 36px !important;
  height: 36px;
  padding: 0 12px;
  font-size: 13px !important;
  line-height: 1.2;
  border-radius: 10px;
  border-color: #E2E8F0;
  background: #F8FBFC;
}
.vaff-filters select.k-input {
  padding-right: 2rem;
  background-color: #F8FBFC;
  background-position: right 12px center;
}
.vaff-filters input[type="search"].k-input,
.vaff-filters input[type="date"].k-input,
.vaff-filters input[type="text"].k-input {
  min-width: 0;
}
.vaff-filters .k-input:focus,
.vaff-filters .vaff-combo.is-open .vaff-combo__btn {
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-primary) 12%, transparent);
}
.vaff-filters .vaff-combo {
  width: 100%;
  min-width: 0 !important;
}
.vaff-filters__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  width: auto;
  flex: 0 0 auto;
  /* sejajarkan dengan tinggi input (bukan label) */
  padding-top: 16px;
}
.vaff-filters__actions .btn-primary,
.vaff-filters__actions .vaff-btn-ghost,
.vaff-filters__actions a.btn-primary,
.vaff-filters__actions a.vaff-btn-ghost {
  flex: 0 0 auto;
  min-height: 36px !important;
  height: 36px;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: none;
  gap: 5px;
}
.vaff-filters__actions .btn-ico__svg {
  width: 15px;
  height: 15px;
}
.vaff-filters__actions .btn-primary {
  box-shadow: 0 4px 12px color-mix(in srgb, var(--k-primary) 22%, transparent);
}
.vaff-filters__actions .btn-primary:hover { transform: none; filter: brightness(1.04); }
.vaff-filters__actions > .flex {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.vaff-filters button,
.vaff-filters a.vaff-btn-ghost,
.vaff-filters a.btn-primary {
  min-height: 36px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vaff-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vaff-form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  min-width: 0;
  max-width: 100%;
}
.vaff-form-grid > label > .k-input,
.vaff-form-grid > label > .vaff-combo,
.vaff-form-grid > label > textarea.k-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vaff-form-grid .is-full { grid-column: 1 / -1; }
.vaff-form-grid .is-span-2 { grid-column: span 2; }
.vaff-form-grid.is-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .vaff-form-grid.is-2 { grid-template-columns: 1fr; }
}
.room-group { margin-bottom: 22px; }
.room-group h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #17324D;
}
.room-group h2 small { font-size: 13px; font-weight: 600; color: #64748b; }

.vaff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vaff-table th, .vaff-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #E8EFF2; vertical-align: middle; }
.vaff-dt-group td {
  background: #F1F5F9 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 10px 14px !important;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.01em;
}
.vaff-dt-group__lab {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748B;
  margin-right: 8px;
}
.vaff-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #64748B; font-weight: 700; background: #F8FBFC;
}
.vaff-table tbody tr:last-child td { border-bottom: 0; }
.vaff-td-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.vaff-td-actions form, form.inline { display: inline; margin: 0; }
.vaff-link {
  background: none; border: 0; padding: 0; color: var(--k-primary);
  font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none !important;
}
.vaff-link.is-danger { color: #e11d48; }
.vaff-badge {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 700;
}
.vaff-btn-ghost {
  background: #fff; border: 1px solid var(--vaca-line); border-radius: 1rem;
  padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--vaca-navy);
}
.vaff-btn-ghost:hover { background: var(--k-primary-soft); color: var(--k-primary); border-color: color-mix(in srgb, var(--k-primary) 28%, #e2e8f0); }
.vaff-mode-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vaff-mode-opt:has(input:checked) {
  border-color: var(--k-primary);
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-primary) 14%, transparent);
}
.vaff-mode-opt input {
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--k-primary);
}
.vaff-mode-opt__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vaff-mode-opt__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--vaca-navy);
  line-height: 1.3;
}
.vaff-sch__tabs {
  margin-bottom: 10px;
}
.vaff-sch__tabs .vaff-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #EEF3FA;
  border: 1px solid #E2E8F0;
}
.vaff-sch__tabs .vaff-btn-ghost {
  border: 0;
  background: transparent;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 14px;
  gap: 6px;
}
.vaff-sch__tabs .vaff-btn-ghost.is-on {
  background: #fff;
  color: var(--k-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  border: 1px solid color-mix(in srgb, var(--k-primary) 22%, #e2e8f0);
  font-weight: 700;
}
.vaff-sch-filter--asg {
  border-left: 3px solid var(--k-primary);
}
.vaff-sch-filter--jam {
  border-left: 3px solid #0D9488;
  flex-wrap: wrap;
}
.vaff-sch-days {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 100%;
  min-width: 0;
}
.vaff-sch-days__lab {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.vaff-sch-days__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vaff-sch-day {
  display: inline-flex;
  align-items: center;
  margin: 0;
  width: auto !important;
  max-width: none;
  flex: 0 0 auto;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 12.5px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
}
.vaff-sch-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vaff-sch-day {
  position: relative;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  align-items: center;
  justify-content: center;
}
.vaff-sch-day:has(input:checked) {
  background: color-mix(in srgb, #0D9488 12%, #fff);
  border-color: #0D9488;
  color: #0F766E;
}
.vaff-sch-empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.vaff-sch-empty__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #0D9488 12%, #fff);
  color: #0D9488;
  margin-bottom: 6px;
}
.vaff-sch-empty__ico svg {
  width: 22px;
  height: 22px;
}
@media (min-width: 900px) {
  .vaff-sch-filter--jam .vaff-sch-days {
    flex: 1 1 auto;
    max-width: none;
  }
}


.vaff-seg-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
  justify-content: space-between; margin-bottom: 14px;
  flex-direction: column;
}
.vaff-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.vaff-room-seg .vaff-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  color: #64748B;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 8px 14px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.vaff-room-seg__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.vaff-room-seg .vaff-btn-ghost:hover {
  color: var(--k-primary);
  border-color: color-mix(in srgb, var(--k-primary) 35%, #E2E8F0);
  background: color-mix(in srgb, var(--k-primary) 6%, #fff);
}
.vaff-room-seg .vaff-btn-ghost.is-on {
  color: #fff !important;
  background: var(--k-primary) !important;
  border-color: var(--k-primary) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--k-primary) 28%, transparent);
}
.vaff-room-seg .vaff-btn-ghost.is-on .vaff-room-seg__ico {
  color: #fff;
}
[data-seg-pane][hidden],
[data-seg-only][hidden],
[data-seg-only].is-seg-off {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* DataTables — pola Sipintar */
.k-card:has(.dataTables_wrapper) { padding: 0; overflow: hidden; }
.dataTables_wrapper {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 10px; padding: .75rem 1rem .7rem;
  font-size: .875rem; width: 100% !important;
}
.vaff-filters__search .k-input,
.vaff-filters__search .js-dt-q {
  width: 100%;
  min-height: 36px !important;
  height: 36px;
  padding: 0 12px;
  font-size: 13px !important;
  border-radius: 10px;
  border-color: #E2E8F0;
  background: #F8FBFC;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: var(--vaca-navy);
}
.vaff-filters__search .k-input:focus {
  background: #fff;
}
.vaff-filters.is-grid .vaff-filters__search {
  max-width: none;
  width: 100%;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { display: none !important; }
.dataTables_wrapper table.dataTable,
.dataTables_wrapper .dataTables_scroll { order: 3; flex: 1 0 100%; width: 100% !important; margin: 0 !important; }
.dataTables_wrapper .dataTables_info { order: 4; margin: 0 auto 0 0; float: none !important; padding: .35rem 0 0 !important; }
.dataTables_wrapper .dataTables_paginate { order: 5; margin: 0 0 0 auto; float: none !important; padding: .35rem 0 0 !important; }
.dataTables_wrapper .dataTables_processing { order: 3; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
  font-size: .8rem; color: #64748b; font-weight: 500;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #64748b; font-size: .8rem; font-weight: 500; margin: 0;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #e2e8f0 !important;
  border-radius: .5rem !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-size: .8rem !important;
  padding: .4rem .75rem !important;
  margin: 0 !important; height: 36px; min-width: 0;
  outline: none; box-shadow: none !important;
}
.dataTables_wrapper .dataTables_filter input { min-width: 180px; }
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--k-primary) !important;
  box-shadow: 0 0 0 3px var(--k-primary-soft) !important;
  background: #fff !important;
}
.dataTables_wrapper .dataTables_paginate {
  display: flex !important; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end; align-items: center;
}
.dataTables_wrapper.is-dt-paging-off .dataTables_paginate,
.dataTables_wrapper.is-dt-paging-off .dataTables_info {
  display: none !important;
}
.dataTables_wrapper .dataTables_paginate span { display: flex; gap: 6px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  box-sizing: border-box;
  min-width: 36px; height: 36px; margin: 0 !important;
  padding: 0 10px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0 !important;
  border-radius: .65rem !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: .8rem !important; font-weight: 600;
  box-shadow: none !important; cursor: pointer;
  text-decoration: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--k-primary) !important;
  border-color: var(--k-primary) !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
  background: var(--k-primary-soft) !important;
  border-color: color-mix(in srgb, var(--k-primary) 28%, #e2e8f0) !important;
  color: var(--k-primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: .4; cursor: default; pointer-events: none;
  background: #fff !important; color: #94a3b8 !important; border-color: #e2e8f0 !important;
}
table.dataTable {
  border-collapse: collapse !important; width: 100% !important;
  margin: 0 !important; font-size: .875rem;
}
table.dataTable thead th,
.vaff-table thead th {
  padding: .7rem 1rem !important;
  text-align: left;
  font-size: .72rem !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: .05em;
  color: #64748b !important; background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 0 !important; white-space: nowrap; vertical-align: middle;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-image: none !important; cursor: pointer;
}
table.dataTable thead th.sorting:after { content: ' ↕'; opacity: .28; font-size: .7rem; font-weight: 500; }
table.dataTable thead th.sorting_asc:after { content: ' ↑'; color: var(--k-primary); opacity: 1; }
table.dataTable thead th.sorting_desc:after { content: ' ↓'; color: var(--k-primary); opacity: 1; }
table.dataTable.no-footer { border-bottom: 0 !important; }
table.dataTable tbody td,
.vaff-table tbody td {
  padding: .75rem 1rem !important;
  font-size: .875rem; color: #334155;
  border-top: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
}
table.dataTable tbody tr:nth-child(even) td { background: #f8fafc; }
table.dataTable tbody tr:hover td { background: #f1f5f9; }
table.dataTable tbody tr:last-child td { border-bottom: 0 !important; }
.dataTables_processing {
  background: color-mix(in srgb, var(--k-primary) 8%, #fff) !important;
  color: var(--k-primary) !important; font-weight: 700; border-radius: 10px;
  border: 1px solid var(--k-primary-soft) !important; box-shadow: none !important;
}
@media (max-width: 720px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    order: unset; flex: 1 0 100%; margin: 0 !important; justify-content: flex-start;
    text-align: left !important;
  }
  .dataTables_wrapper .dataTables_filter input { width: 100%; min-width: 0; }
}
.vaff-menu-card {
  display: flex; align-items: flex-start; gap: 12px;
  text-decoration: none !important; color: inherit;
}
.vaff-menu-card__ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: var(--k-primary-soft); color: var(--k-primary);
}
.vaff-menu-card__ico svg { width: 20px; height: 20px; }
.vaff-modal {
  position: fixed !important; inset: 0 !important; z-index: 9999;
  background: rgba(15, 23, 42, .5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vaff-modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: none;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid #E7EEF8;
  border-bottom: 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .22);
  max-height: min(92vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.vaff-modal__card::-webkit-scrollbar {
  width: 6px;
}
.vaff-modal__card::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}
.vaff-modal__card::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 99px;
}
.vaff-modal__card::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
.vaff-modal__card.is-wide { max-width: none; }
.vaff-modal__card::before {
  content: "";
  display: block; width: 40px; height: 4px; border-radius: 99px;
  background: #e2e8f0; margin: 0 auto 12px;
}

/* Confirm dialog elegan (pengganti window.confirm) */
.vaff-modal.vaff-confirm-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 16px !important;
  z-index: 14000 !important;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vaff-confirm-card {
  width: min(400px, calc(100vw - 32px)) !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
  border: 1px solid #E7EEF8 !important;
  border-bottom: 1px solid #E7EEF8 !important;
  padding: 28px 22px 20px !important;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28) !important;
  max-height: none !important;
  animation: vaffConfirmIn 0.22s ease;
}
.vaff-confirm-card::before { display: none !important; }
@keyframes vaffConfirmIn {
  from { transform: translateY(10px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.vaff-confirm__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.vaff-confirm__ico svg {
  width: 28px;
  height: 28px;
}
.vaff-confirm__ico.is-warn {
  background: #FFF7ED;
  color: #EA580C;
}
.vaff-confirm__ico.is-danger {
  background: #FEF2F2;
  color: #DC2626;
}
.vaff-confirm__ico.is-info {
  background: #EFF6FF;
  color: #2563EB;
}
.vaff-confirm__title {
  margin: 0 0 8px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1.3;
}
.vaff-confirm__msg {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
}
.vaff-confirm__msg.hidden { display: none; }
.vaff-confirm__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  text-align: left;
}
.vaff-confirm__fields.hidden { display: none; }
.vaff-confirm__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vaff-confirm__field .k-input {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  font-size: 14px;
  color: #0F172A;
}
.vaff-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vaff-confirm__actions .vaff-btn-ghost,
.vaff-confirm__actions .btn-primary {
  min-height: 46px;
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
}
.vaff-confirm-card.is-warn .vaff-confirm__ok {
  background: #EA580C;
  border-color: #EA580C;
}
.vaff-confirm-card.is-warn .vaff-confirm__ok:hover {
  filter: brightness(1.05);
}
.vaff-confirm__ok.is-danger-ok,
.vaff-confirm-card.is-danger .vaff-confirm__ok {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}
body.vaff-confirm-open .vaff-mnav,
body.vaff-confirm-open .vaff-m-fab {
  display: none !important;
}

.vaff-modal__sec {
  margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #64748B;
}
.vaff-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.vaff-modal__head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #0F172A; }
.vaff-modal__x {
  width: 36px; height: 36px; border: 0; background: #f1f5f9; border-radius: 10px;
  font-size: 22px; cursor: pointer; line-height: 1; color: #334155; flex: 0 0 36px;
}
.vaff-modal__x:hover { background: #e2e8f0; }
.vaff-modal__card form .flex.justify-end {
  border-top: 1px solid #E7EEF8;
  margin-top: 12px; padding-top: 14px;
}
body.modal-open { overflow: hidden; }

.btn-ico {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
}
.btn-ico__svg { width: 16px; height: 16px; flex: 0 0 16px; }
.vaff-btn-ghost.btn-ico { padding: .65rem 1.1rem; }
.vaff-act {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px;
}
.vaff-act-btn {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--k-primary) 22%, #E2E8F0);
  border-radius: 10px;
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
  color: var(--k-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.vaff-act-btn { line-height: 0; }
.vaff-act-btn:hover {
  background: color-mix(in srgb, var(--k-primary) 14%, #fff);
  border-color: color-mix(in srgb, var(--k-primary) 40%, #E2E8F0);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--k-primary) 16%, transparent);
  transform: translateY(-1px);
}
.vaff-act-btn.is-danger {
  color: #E11D48;
  background: #FFF1F2;
  border-color: #FECDD3;
}
.vaff-act-btn.is-danger:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  box-shadow: 0 4px 10px rgba(225, 29, 72, .14);
}
.vaff-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.vaff-ctrl-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.vaff-ctrl-btn:hover {
  border-color: color-mix(in srgb, var(--k-primary) 35%, #E2E8F0);
  color: var(--k-primary);
  background: color-mix(in srgb, var(--k-primary) 7%, #fff);
}
.vaff-ctrl-btn.is-time {
  color: #0369A1;
  border-color: #BAE6FD;
  background: #F0F9FF;
}
.vaff-ctrl-btn.is-time:hover {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #075985;
}
.vaff-ctrl-btn.is-lock {
  color: #B45309;
  border-color: #FDE68A;
  background: #FFFBEB;
}
.vaff-ctrl-btn.is-lock:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}
.vaff-ctrl-btn.is-unlock {
  color: #047857;
  border-color: #A7F3D0;
  background: #ECFDF5;
}
.vaff-ctrl-btn.is-unlock:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #065F46;
}
.vaff-ctrl-btn.is-danger {
  color: #E11D48;
  border-color: #FECDD3;
  background: #FFF1F2;
}
.vaff-ctrl-btn.is-danger:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
}
.vaff-ctrl-btn.is-reset {
  color: #C2410C;
  border-color: #FED7AA;
  background: #FFF7ED;
}
.vaff-ctrl-btn.is-reset:hover {
  background: #FFEDD5;
  border-color: #FDBA74;
  color: #9A3412;
}
.vaff-act-ico { width: 15px; height: 15px; }
.vaff-td-actions {
  display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap;
  flex-wrap: wrap;
  overflow: visible;
}
.vaff-td-actions .vaff-act-btn { vertical-align: middle; flex: 0 0 auto; }
.vaff-td-actions .vaff-kebab { z-index: 2; }
.vaff-td-actions .vaff-kebab.is-open { z-index: 40; }
.vaff-chip-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.vaff-chip-btn:hover {
  color: var(--k-primary);
  border-color: color-mix(in srgb, var(--k-primary) 35%, #E2E8F0);
  background: color-mix(in srgb, var(--k-primary) 7%, #fff);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--k-primary) 12%, transparent);
}
.vaff-chip-btn.is-ok {
  color: #047857;
  border-color: #A7F3D0;
  background: #ECFDF5;
}
.vaff-chip-btn.is-ok:hover {
  color: #065F46;
  border-color: #6EE7B7;
  background: #D1FAE5;
  box-shadow: 0 2px 6px rgba(4, 120, 87, .12);
}
.vaff-chip-btn.is-danger {
  color: #BE123C;
  border-color: #FECDD3;
  background: #FFF1F2;
}
.vaff-chip-btn.is-danger:hover {
  color: #9F1239;
  border-color: #FDA4AF;
  background: #FFE4E6;
  box-shadow: 0 2px 6px rgba(190, 18, 60, .12);
}
form.inline { display: inline; }
table.dataTable tbody td.vaff-td-actions {
  overflow: visible;
}

.vaff-toast-wrap {
  position: fixed; top: 16px; right: 16px; z-index: 10050;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; max-width: min(420px, calc(100vw - 24px));
}
.vaff-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600; font-size: 14px; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
  animation: vaffToastIn .22s ease;
  border: 1px solid transparent;
}
.vaff-toast__msg { flex: 1; min-width: 0; }
.vaff-toast__x {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  margin: -4px -6px -4px 0;
  border: 0; border-radius: 8px;
  background: transparent;
  color: inherit; opacity: .55;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.vaff-toast__x:hover { opacity: 1; background: rgba(15, 23, 42, .06); }
.vaff-toast.is-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.vaff-toast.is-err { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.vaff-toast.is-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.vaff-toast.is-info {
  background: #eff6ff; color: #1e40af;
  border-color: #bfdbfe;
  max-width: min(420px, calc(100vw - 24px));
}
.vaff-exam-bar {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--k-primary) 18%, #e2e8f0);
  position: sticky; top: 0; z-index: 20;
}
.vaff-exam-bar__right { text-align: right; }
.vaff-exam-timer {
  font-size: 15px; font-weight: 700;
  padding: 8px 12px; border-radius: 10px;
  background: #0f172a; color: #fff;
}
.vaff-exam-timer b { font-variant-numeric: tabular-nums; }
.is-exam-take .vaff-nav-bell { opacity: .45; pointer-events: none; }
#examSaveStatus.is-err { color: #9f1239; font-weight: 600; }

/* —— CBT / UNBK full page —— */
.vaff-cbt-body {
  margin: 0;
  min-height: 100vh;
  background: #0b3d91;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
}
.vaff-cbt-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #0a327a, #1250b8);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.vaff-cbt-chrome__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.vaff-cbt-chrome__titles { min-width: 0; }
.vaff-cbt-chrome__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; }
.vaff-cbt-chrome__app {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  max-width: min(520px, 58vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-cbt-chrome__sub {
  font-size: 11px;
  opacity: .85;
  max-width: min(520px, 58vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-cbt-chrome__user {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
}
.vaff-cbt-chrome__link {
  appearance: none; border: 0; background: rgba(255,255,255,.14);
  color: #fff; font: inherit; font-weight: 700; font-size: 12px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.vaff-cbt-stage {
  padding: 12px 20px 28px;
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.vaff-unbk.is-cbt {
  --unbk-blue: #1d4ed8;
  --unbk-navy: #0b3d91;
  --unbk-fs: 16px;
  --unbk-fs-opt: 15.5px;
}
.vaff-unbk.is-cbt[data-font="md"] {
  --unbk-fs: 16px;
  --unbk-fs-opt: 15.5px;
}
.vaff-unbk.is-cbt[data-font="lg"] {
  --unbk-fs: 19px;
  --unbk-fs-opt: 18.5px;
}
.vaff-unbk.is-cbt[data-font="xl"] {
  --unbk-fs: 23px;
  --unbk-fs-opt: 22px;
}
.vaff-unbk__card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 100px);
}
.vaff-unbk__empty {
  background: #fff; border-radius: 14px; padding: 40px; text-align: center; color: #64748b;
}
.vaff-unbk__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.vaff-unbk__soal-no {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: #0f172a;
}
.vaff-unbk__soal-label { font-size: 13px; letter-spacing: .04em; }
.vaff-unbk__soal-badge {
  min-width: 36px; height: 36px; padding: 0 8px;
  display: inline-grid; place-items: center;
  background: var(--unbk-blue); color: #fff;
  border-radius: 8px; font-size: 18px; font-weight: 800;
}
.vaff-unbk__soal-badge.is-answered { background: #16a34a; }
.vaff-unbk__soal-badge.is-ragu { background: #eab308; color: #422006; }
.vaff-unbk__timer-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 2px solid #fca5a5;
  border-radius: 999px;
  background: #fff5f5;
  font-size: 13px; font-weight: 700; color: #991b1b;
}
.vaff-unbk__timer-pill b {
  font-size: 16px; font-variant-numeric: tabular-nums; color: #7f1d1d;
}
.vaff-unbk__daftar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  appearance: none; border: 0; cursor: pointer;
  background: var(--unbk-blue); color: #fff;
  font: inherit; font-weight: 700; font-size: 13px;
  padding: 10px 14px; border-radius: 10px;
}
.vaff-unbk__daftar-btn:hover { filter: brightness(1.05); }
.vaff-unbk__fontbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px; font-weight: 600; color: #475569;
}
.vaff-unbk__fonts { display: inline-flex; gap: 4px; }
.vaff-unbk__fonts button {
  appearance: none; border: 1px solid #cbd5e1; background: #fff;
  width: 32px; height: 28px; border-radius: 6px; cursor: pointer;
  font-weight: 800; color: #334155;
}
.vaff-unbk__fonts button:nth-child(1) { font-size: 12px; }
.vaff-unbk__fonts button:nth-child(2) { font-size: 15px; }
.vaff-unbk__fonts button:nth-child(3) { font-size: 18px; }
.vaff-unbk__fonts button.is-on {
  border-color: var(--unbk-blue); color: var(--unbk-blue);
  background: #eff6ff;
}
.vaff-unbk__save {
  margin-left: auto; font-size: 11px; font-weight: 600; color: #64748b;
}
.vaff-unbk__save.is-ok { color: #047857; }
.vaff-unbk__save.is-err { color: #9f1239; }
.vaff-unbk__body {
  flex: 1 1 auto;
  padding: 18px 24px 12px;
  overflow: auto;
  font-size: var(--unbk-fs, 16px);
  line-height: 1.6;
}
.vaff-unbk.is-cbt .vaff-unbk__body,
.vaff-unbk.is-cbt .vaff-q__stem,
.vaff-unbk.is-cbt .vaff-q__stem .vaff-rich,
.vaff-unbk.is-cbt .vaff-q__stem .vaff-prose,
.vaff-unbk.is-cbt .vaff-q__opt-text,
.vaff-unbk.is-cbt .vaff-q__opt-text .vaff-rich,
.vaff-unbk.is-cbt .vaff-q__opt-text .vaff-prose,
.vaff-unbk.is-cbt .vaff-q__left,
.vaff-unbk.is-cbt .vaff-q__hint,
.vaff-unbk.is-cbt .vaff-q__match,
.vaff-unbk.is-cbt .vaff-rich,
.vaff-unbk.is-cbt .vaff-prose,
.vaff-unbk.is-cbt textarea.k-input,
.vaff-unbk.is-cbt .k-input {
  font-size: var(--unbk-fs, 16px) !important;
  line-height: 1.65 !important;
}
.vaff-unbk.is-cbt .vaff-rich p,
.vaff-unbk.is-cbt .vaff-rich li,
.vaff-unbk.is-cbt .vaff-rich td,
.vaff-unbk.is-cbt .vaff-prose p,
.vaff-unbk.is-cbt .vaff-prose li {
  font-size: inherit !important;
  line-height: inherit !important;
}
.vaff-unbk.is-cbt .vaff-q__opt,
.vaff-unbk.is-cbt .vaff-q__opt.is-cbt {
  font-size: var(--unbk-fs-opt, 15.5px) !important;
}
.vaff-unbk.is-cbt .vaff-q__letter {
  font-size: calc(var(--unbk-fs, 16px) * 0.9) !important;
  width: calc(var(--unbk-fs, 16px) * 2.1);
  height: calc(var(--unbk-fs, 16px) * 2.1);
  min-width: 36px;
  min-height: 36px;
}
.vaff-unbk__q[hidden] { display: none !important; }
.vaff-unbk__q.is-on { display: block; }
.vaff-unbk__nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between;
  padding: 14px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.vaff-unbk__nav-btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px;
  padding: 12px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
}
.vaff-unbk__nav-btn[hidden] { display: none !important; }
.vaff-unbk__nav-btn:disabled { opacity: .45; cursor: not-allowed; }
.vaff-unbk__nav-btn.is-prev,
.vaff-unbk__nav-btn.is-next {
  background: var(--unbk-blue); color: #fff;
}
.vaff-unbk__nav-btn.is-ragu {
  background: #facc15; color: #422006;
  margin-left: auto; margin-right: auto;
}
.vaff-unbk__nav-btn.is-ragu.is-on {
  box-shadow: inset 0 0 0 2px #a16207;
}
.vaff-unbk__ragu-box {
  width: 16px; height: 16px; border-radius: 3px;
  border: 2px solid #854d0e; background: #fff;
  display: inline-block;
}
.vaff-unbk__nav-btn.is-ragu.is-on .vaff-unbk__ragu-box {
  background: #854d0e;
}
.vaff-unbk__nav-btn.is-submit {
  background: #b91c1c;
  color: #fff;
  border-radius: 999px;
  width: auto;
  margin-left: auto;
  justify-content: center;
  padding-left: 22px;
  padding-right: 22px;
}
.vaff-unbk__nav-btn.is-next:not([hidden]) ~ .vaff-unbk__nav-btn.is-submit {
  margin-left: 0;
}
.vaff-unbk__sheet-finish {
  margin-top: 16px;
  width: 100%;
  margin-left: 0;
  border-radius: 12px;
}

/* CBT confirm elegan (ganti window.confirm) */
.vaff-cbt-confirm {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.vaff-cbt-confirm[hidden] { display: none !important; }
.vaff-cbt-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 72, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.vaff-cbt-confirm__card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  border: 1px solid #E7EEF8;
  padding: 28px 22px 20px;
  text-align: center;
  box-shadow: 0 28px 64px rgba(8, 28, 72, 0.35);
  animation: vaffCbtConfirmIn .22s ease;
}
@keyframes vaffCbtConfirmIn {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.vaff-cbt-confirm__ico {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #FEF2F2;
  color: #DC2626;
}
.vaff-cbt-confirm__ico.is-warn {
  background: #FFF7ED;
  color: #EA580C;
}
.vaff-cbt-confirm__ico svg { width: 28px; height: 28px; }
.vaff-cbt-confirm__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}
.vaff-cbt-confirm__msg {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #64748B;
}
.vaff-cbt-confirm__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}
.vaff-cbt-confirm__stats[hidden] { display: none !important; }
.vaff-cbt-confirm__stat {
  border-radius: 12px;
  padding: 10px 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.vaff-cbt-confirm__stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}
.vaff-cbt-confirm__stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.vaff-cbt-confirm__stat.is-warn b { color: #C2410C; }
.vaff-cbt-confirm__stat.is-ok b { color: #047857; }
.vaff-cbt-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vaff-cbt-confirm__btn {
  appearance: none;
  border: 0;
  min-height: 46px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}
.vaff-cbt-confirm__btn.is-ghost {
  background: #F1F5F9;
  color: #334155;
}
.vaff-cbt-confirm__btn.is-ghost:hover { background: #E2E8F0; }
.vaff-cbt-confirm__btn.is-danger {
  background: #DC2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .28);
}
.vaff-cbt-confirm__btn.is-danger:hover { filter: brightness(1.05); }
body.cbt-confirm-open { overflow: hidden; }

.vaff-unbk__drawer[hidden] { display: none !important; }
.vaff-unbk__drawer {
  position: fixed; inset: 0; z-index: 80;
}
.vaff-unbk__drawer-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .45);
}
.vaff-unbk__drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: #fff;
  padding: 14px;
  box-shadow: -12px 0 40px rgba(0,0,0,.2);
  overflow: auto;
}
.vaff-unbk__sheet-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 12px; color: #64748b;
}
.vaff-unbk__sheet-head strong { color: #0f172a; font-size: 14px; margin-right: auto; }
.vaff-unbk__drawer-x {
  appearance: none; border: 0; background: #f1f5f9;
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; cursor: pointer; line-height: 1;
}
.vaff-unbk__nums {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.vaff-unbk__num {
  height: 40px; border-radius: 10px;
  border: 1px solid #cbd5e1; background: #fff;
  color: #334155; font-weight: 800; font-size: 14px; cursor: pointer;
}
.vaff-unbk__num.is-answered {
  background: #1d4ed8; border-color: #1e40af; color: #fff;
}
.vaff-unbk__num.is-ragu {
  background: #facc15; border-color: #eab308; color: #422006;
}
.vaff-unbk__num.is-current {
  box-shadow: 0 0 0 2px #93c5fd;
}
.vaff-unbk__legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11px; color: #64748b;
}
.vaff-unbk__legend i {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; border: 1px solid #cbd5e1;
  background: #fff; margin-right: 6px; vertical-align: -2px;
}
.vaff-unbk__legend i.is-answered { background: #1d4ed8; border-color: #1e40af; }
.vaff-unbk__legend i.is-ragu { background: #facc15; border-color: #eab308; }
.vaff-unbk__legend i.is-current { box-shadow: 0 0 0 2px #93c5fd; }
@media (max-width: 720px) {
  .vaff-unbk__nav { justify-content: stretch; }
  .vaff-unbk__nav-btn.is-prev,
  .vaff-unbk__nav-btn.is-next,
  .vaff-unbk__nav-btn.is-ragu { flex: 1 1 auto; justify-content: center; margin: 0; }
  .vaff-unbk__nav-btn.is-submit:not(.vaff-unbk__sheet-finish) {
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
  }
}

/* Opsi PG abjad lingkaran (CBT) */
.vaff-q__opts.is-cbt { gap: 10px; }
.vaff-q__opts.is-cbt.is-bs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
}
.vaff-q__opt.is-cbt.is-bs {
  justify-content: flex-start;
  min-height: 56px;
}
.vaff-q__opt.is-cbt {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
}
.vaff-q__opt.is-cbt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.vaff-q__letter {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 2px solid #64748b;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  color: #334155;
  background: #fff;
  line-height: 1;
}
.vaff-q__opt.is-cbt:has(input:checked),
.vaff-q__opt.is-cbt.is-checked {
  border-color: var(--unbk-blue, var(--k-primary));
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
}
.vaff-q__opt.is-cbt:has(input:checked) .vaff-q__letter,
.vaff-q__opt.is-cbt.is-checked .vaff-q__letter {
  background: var(--unbk-blue, var(--k-primary));
  border-color: var(--unbk-blue, var(--k-primary));
  color: #fff;
}
.vaff-q__opt-text { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.vaff-unbk .vaff-q__stem { font-weight: 500; color: #0f172a; }

/* —— Ujian UNBK (legacy fallback removed; CBT above) —— */
.vaff-unbk:not(.is-cbt) { margin: -4px 0 24px; }

.vaff-photo-up { margin-top: 0; }
.vaff-photo-up__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.vaff-photo-up__grid.is-empty { display: none; margin: 0; }
.vaff-photo-up__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}
.vaff-photo-up__item img,
.vaff-photos img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vaff-photo-up__rm {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border: 0; border-radius: 999px;
  background: rgba(15,23,42,.78); color: #fff; font-size: 16px; line-height: 1;
  cursor: pointer;
}
.vaff-photo-up__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 14px;
  border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--k-primary) 40%, #94a3b8);
  background: color-mix(in srgb, var(--k-primary) 6%, #fff);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.vaff-photo-up__hint {
  margin: 8px 0 0; font-size: 12px; color: var(--vaca-muted, #64748b);
}
.vaff-photo-up__hint.is-err { color: #9f1239; font-weight: 600; }
.vaff-photo-up__hint.hidden { display: none; }

.vaff-task-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vaff-task-attach {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vaff-attach-card {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #F8FAFC;
  padding: 12px;
}
.vaff-attach-card.is-photo {
  background: color-mix(in srgb, var(--k-primary, #2563eb) 4%, #fff);
  border-color: color-mix(in srgb, var(--k-primary, #2563eb) 18%, #E2E8F0);
}
.vaff-attach-card.is-file {
  background: #FFFBF5;
  border-color: #F1E4D0;
}
.vaff-attach-card.has-file {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.vaff-attach-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vaff-attach-card__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
  color: var(--k-primary, #2563eb);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.vaff-attach-card.is-file .vaff-attach-card__ico { color: #C2410C; }
.vaff-attach-card__ico svg { width: 20px; height: 20px; }
.vaff-attach-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.vaff-attach-card__meta strong {
  font-size: 14px;
  font-weight: 750;
  color: #0F172A;
  line-height: 1.25;
}
.vaff-attach-card__meta small {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.vaff-attach-card__action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--k-primary, #2563eb) 35%, #CBD5E1);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vaff-attach-card.is-file .vaff-attach-card__action {
  border-color: color-mix(in srgb, #C2410C 28%, #CBD5E1);
}
.vaff-attach-card__action:hover,
.vaff-attach-card__action:focus-within {
  border-style: solid;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  background: #fff;
}
.vaff-attach-card__action-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--k-primary, #2563eb) 12%, #fff);
  color: var(--k-primary, #2563eb);
}
.vaff-attach-card.is-file .vaff-attach-card__action-ico {
  background: #FFEDD5;
  color: #C2410C;
}
.vaff-attach-card__action-ico svg { width: 18px; height: 18px; }
.vaff-attach-card__action-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.vaff-attach-card__action-txt b {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-attach-card__action-txt em {
  font-style: normal;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.vaff-task-form__submit {
  min-height: 46px;
  font-weight: 700;
}
.vaff-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.vaff-photos a {
  display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: #e2e8f0;
}
.vaff-account-head {
  display: flex; align-items: center; gap: 14px;
}
.vaff-account-avatar {
  width: 72px; height: 72px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--k-primary) 18%, #e2e8f0);
  display: grid; place-items: center;
  font-weight: 800; font-size: 28px; color: var(--k-primary);
  flex-shrink: 0;
}
.vaff-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vaff-default-pw {
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 12px 14px;
}
.vaff-default-pw__label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #64748B; margin-bottom: 6px;
}
.vaff-default-pw__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.vaff-default-pw__val {
  display: inline-block; font-size: 15px; font-weight: 700; color: #0F172A;
  background: #fff; border: 1px dashed #CBD5E1; border-radius: 8px;
  padding: 6px 10px; letter-spacing: .02em; word-break: break-all;
}
.vaff-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.vaff-dt-user {
  display: inline-flex; align-items: center; gap: 8px;
}
.vaff-dt-avatar {
  width: 28px; height: 28px; border-radius: 999px; object-fit: cover;
  display: inline-grid; place-items: center;
  background: #e2e8f0; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.vaff-dt-avatar.is-ini { color: #475569; }
.vaff-photo-up.is-avatar .vaff-photo-up__btn { width: 100%; }

.vaff-help {
  width: 100%;
  max-width: none;
}
.vaff-help__hero {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--k-primary) 16%, #fff), transparent 55%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--k-primary) 4%, #f8fafc));
  border: 1px solid color-mix(in srgb, var(--k-primary) 14%, #e2e8f0);
}
.vaff-help__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--k-primary); margin-bottom: 4px;
}
.vaff-help__hero h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 6px; }
.vaff-help__intro { margin: 0; font-size: 14px; color: var(--vaca-muted, #64748b); line-height: 1.5; max-width: none; }
.vaff-help__tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.vaff-help__tab {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid #e2e8f0; color: #334155;
  text-decoration: none;
}
.vaff-help__tab.is-active {
  background: var(--k-primary); border-color: var(--k-primary); color: #fff;
}
.vaff-help__search-wrap { margin-bottom: 16px; width: 100%; }
.vaff-help__search-wrap .k-input { width: 100%; max-width: none; }
.vaff-help__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
  width: 100%;
}
.vaff-help__sec { margin-bottom: 0; min-width: 0; }
.vaff-help__sec h2 {
  font-size: 15px; font-weight: 800; margin: 0 0 8px;
  color: #0f172a;
}
.vaff-help__list { display: flex; flex-direction: column; gap: 8px; }
.vaff-help__item {
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  overflow: hidden;
}
.vaff-help__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px; font-weight: 650; font-size: 14px;
}
.vaff-help__item summary::-webkit-details-marker { display: none; }
.vaff-help__q { flex: 1; line-height: 1.4; }
.vaff-help__chev {
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--k-primary) 12%, #fff);
  color: var(--k-primary); font-weight: 800;
}
.vaff-help__item[open] .vaff-help__chev { transform: rotate(45deg); }
.vaff-help__a {
  padding: 0 14px 14px; font-size: 14px; line-height: 1.55;
  color: #475569; border-top: 0;
}
.vaff-help__foot { margin-top: 16px; width: 100%; }
@media (max-width: 900px) {
  .vaff-help__body { grid-template-columns: 1fr; }
}
/* Strip lisensi di beranda (mirip apotek plan-strip) — tidak sticky */
.plan-strip {
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
}
.plan-strip--trial {
  border-color: #fdba74;
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
}
.plan-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #ea580c;
  color: #fff;
}
.plan-strip-text {
  margin: 0;
  flex: 1 1 200px;
  font-size: 13px;
  color: #9a3412;
  line-height: 1.45;
}
.plan-strip-text a {
  font-weight: 700;
  color: #c2410c;
  text-decoration: underline;
}
.vaff-license-usage {
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--k-primary) 6%, #f8fafc);
  border: 1px solid #e2e8f0;
}
@media (max-width: 640px) {
  .vaff-help__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .vaff-help__tab { white-space: nowrap; }
}

.vaff-toast.is-out { opacity: 0; transform: translateY(-6px); transition: .25s ease; }
@keyframes vaffToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.vaff-combo { position: relative; width: 100%; min-width: 0; }
.vaff-filters .vaff-combo { min-width: 0; }
.vaff-combo__native { display: none !important; }
.vaff-combo__btn {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff;
}
.vaff-combo__btn .vaff-combo__val,
.vaff-combo__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vaff-combo__btn::after {
  content: ''; width: 8px; height: 8px; flex: 0 0 8px;
  border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg); margin-bottom: 4px;
}
.vaff-combo.is-open .vaff-combo__btn { border-color: var(--k-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-primary) 12%, transparent); }
.vaff-combo__backdrop {
  position: fixed; inset: 0; z-index: 10110;
  background: rgba(15, 23, 42, 0.45);
}
.vaff-combo__backdrop.hidden { display: none !important; }
.vaff-combo__panel {
  position: fixed; z-index: 10120;
  background: #fff; border: 1px solid #E7EEF8; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  padding: 10px; max-height: min(380px, 55vh);
  display: flex; flex-direction: column; gap: 8px;
}
.vaff-combo__panel.hidden { display: none !important; }
.vaff-combo__head { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.vaff-combo__title {
  display: none;
  font-size: 15px; font-weight: 800; color: #0F172A; letter-spacing: -0.01em;
}
.vaff-combo__search {
  position: relative; display: flex; align-items: center;
}
.vaff-combo__search-ico {
  position: absolute; left: 12px; width: 18px; height: 18px; color: #94A3B8; pointer-events: none;
}
.vaff-combo__q {
  width: 100% !important;
  font-size: 14px !important;
  padding: 10px 36px 10px 40px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
  background: #F8FAFC !important;
}
.vaff-combo__clear {
  position: absolute; right: 8px; width: 28px; height: 28px;
  border: 0; border-radius: 99px; background: #E2E8F0; color: #64748B;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vaff-combo__clear.hidden { display: none !important; }
.vaff-combo__list { overflow: auto; min-height: 0; flex: 1 1 auto; }
.vaff-combo__opt {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px 10px; min-height: var(--touch); border-radius: 10px; font-size: 14px; cursor: pointer; color: #0f172a;
}
.vaff-combo__opt:hover, .vaff-combo__opt.is-on { background: var(--k-primary-soft); color: var(--k-primary); }
.vaff-combo__opt.is-focus { outline: 2px solid color-mix(in srgb, var(--k-primary) 35%, transparent); outline-offset: -2px; }
.vaff-combo__opt--check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.vaff-combo__check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #CBD5E1;
  border-radius: 5px;
  background: #fff;
  position: relative;
}
.vaff-combo__opt--check.is-on .vaff-combo__check {
  border-color: var(--k-primary);
  background: var(--k-primary);
}
.vaff-combo__opt--check.is-on .vaff-combo__check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vaff-combo--multi .vaff-combo__foot { display: block !important; margin-top: 4px; }
.vaff-combo--multi .vaff-combo__cancel {
  background: var(--k-primary) !important;
  color: #fff !important;
}
.vaff-target-classes {
  display: grid;
  gap: 8px;
}
.vaff-target-classes__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vaff-target-classes__quick .vaff-btn-ghost {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.vaff-due-per-class {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #E7EEF8;
  border-radius: 14px;
  background: #F8FAFC;
}
.vaff-due-per-class__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vaff-due-per-class__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.vaff-due-per-class__row {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.vaff-due-per-class__row > span {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}
.vaff-due-per-class__row .k-input {
  width: 100%;
  min-width: 0;
}
@media (max-width: 520px) {
  .vaff-due-per-class__list {
    grid-template-columns: 1fr;
  }
}
.vaff-combo__empty { padding: 14px 10px; font-size: 13px; color: #64748b; text-align: center; }
.vaff-combo__foot { display: none; }
.vaff-combo__cancel {
  width: 100%; min-height: 44px; border: 0; border-radius: 12px;
  background: #F1F5F9; color: #64748B; font-weight: 700; cursor: pointer;
}

/* Mobile / sheet mode: full search picker */
.vaff-combo__panel.is-sheet {
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: 100% !important; max-width: none !important;
  max-height: min(88dvh, 720px) !important;
  border-radius: 22px 22px 0 0 !important;
  border: 0 !important;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
  animation: vaffComboSheet 0.22s ease;
}
.vaff-combo__panel.is-sheet::before {
  content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 10px;
  border-radius: 99px; background: #CBD5E1;
}
.vaff-combo__panel.is-sheet .vaff-combo__title { display: block; }
.vaff-combo__panel.is-sheet .vaff-combo__q {
  min-height: 48px !important; font-size: 16px !important; background: #fff !important;
  border: 1px solid #E2E8F0 !important;
}
.vaff-combo__panel.is-sheet .vaff-combo__opt {
  min-height: 48px; font-size: 15px; padding: 14px 12px;
}
.vaff-combo__panel.is-sheet .vaff-combo__foot { display: block; margin-top: 4px; }
body.combo-sheet-open { overflow: hidden; }
@keyframes vaffComboSheet {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Soal / bank / ujian ---- */
.vaff-q__stem { margin: 0 0 10px; font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--vaca-navy); }
.vaff-q__hint { margin: 0 0 8px; font-size: 12px; color: var(--vaca-muted); }
.vaff-q__opts { display: flex; flex-direction: column; gap: 6px; }
.vaff-q__opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--vaca-line); border-radius: 12px;
  background: #fff; cursor: pointer; font-size: 14px;
}
.vaff-q__opt:has(input:checked) {
  border-color: color-mix(in srgb, var(--k-primary) 45%, var(--vaca-line));
  background: var(--k-primary-soft);
}
.vaff-q__opt input { margin-top: 3px; flex: 0 0 auto; }
.vaff-q__bullet {
  width: 22px; height: 22px; border-radius: 8px; flex: 0 0 22px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: #f1f5f9; color: #64748b;
}
.vaff-q.is-preview .vaff-q__opt { cursor: default; }
.vaff-q__match { display: flex; flex-direction: column; gap: 8px; }
.vaff-q__pair {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 10px; border: 1px solid var(--vaca-line); border-radius: 12px; background: #fff;
}
.vaff-q__left { font-size: 14px; font-weight: 600; color: var(--vaca-navy); }
.vaff-q__right.is-muted {
  font-size: 13px; color: #94a3b8; padding: 10px 12px;
  border: 1px dashed #cbd5e1; border-radius: 10px;
}
.vaff-q__key { margin: 10px 0 0; font-size: 12px; color: #047857; font-weight: 600; }
.vaff-q-answer-key {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.vaff-q-answer-key .vaff-q__key { margin-top: 0; }
.vaff-q-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.vaff-q-keychip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--vaca-line); border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer; background: #fff;
}
.vaff-q-keychip:has(input:checked) {
  border-color: var(--k-primary); background: var(--k-primary-soft); color: var(--k-primary);
}
@media (min-width: 640px) {
  .vaff-q__pair { grid-template-columns: 1fr 1fr; align-items: center; }
}


/* ========== Mobile-first → tablet → laptop ========== */

.vaff-page-head,
.vaff-main > .flex.items-center.justify-between,
.vaff-main > .flex.flex-wrap.items-start.justify-between,
.vaff-main > .flex.flex-wrap.items-end.justify-between {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.vaff-page-head > .btn-primary,
.vaff-main > .flex.items-center.justify-between > .btn-primary,
.vaff-main > .flex.flex-wrap.items-start.justify-between > .btn-primary {
  width: auto;
  min-height: 38px;
  justify-content: center;
}
.vaff-page-head__acts,
.vaff-page-head > .flex.gap-2,
.vaff-page-head > div.flex {
  width: auto;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.vaff-page-head__acts > .btn-primary,
.vaff-page-head__acts > .vaff-btn-ghost,
.vaff-page-head__acts > a,
.vaff-page-head > .flex.gap-2 > .btn-primary,
.vaff-page-head > .flex.gap-2 > .vaff-btn-ghost,
.vaff-page-head > div.flex > .btn-primary,
.vaff-page-head > div.flex > .vaff-btn-ghost,
.vaff-page-head > div.flex > a {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto !important;
  max-width: none;
  min-width: max-content;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  box-sizing: border-box;
  padding-left: 1rem !important;
  padding-right: 1.15rem !important;
}
.vaff-page-head a.btn-primary.btn-ico,
.vaff-page-head button.btn-primary.btn-ico {
  gap: 8px;
  line-height: 1.2;
}
.vaff-page-head a.btn-primary.btn-ico .btn-ico__svg,
.vaff-page-head button.btn-primary.btn-ico .btn-ico__svg {
  flex: 0 0 16px;
}
/* Setelah aksi dipindah ke filter: judul saja */
.vaff-page-head:not(:has(button)):not(:has(a.btn-primary)):not(:has(.flex)) {
  margin-bottom: 8px;
}
@media (max-width: 639px) {
  .vaff-filters {
    flex-wrap: wrap;
  }
  .vaff-filters label {
    flex: 1 1 calc(50% - 8px);
    width: auto;
  }
  .vaff-filters__search {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  .vaff-filters__actions {
    margin-left: 0;
    width: 100%;
    padding-top: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .vaff-filters__actions .btn-primary,
  .vaff-filters__actions .vaff-btn-ghost {
    flex: 0 0 auto;
  }
}

.vaff-seg-bar {
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.vaff-seg {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.vaff-seg::-webkit-scrollbar { display: none; }
.vaff-seg .vaff-btn-ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 40px;
}
.vaff-seg-bar > .btn-primary {
  width: 100%;
  min-height: var(--touch);
  justify-content: center;
}

.vaff-table-wrap,
.k-card.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vaff-table, table.dataTable {
  min-width: 520px;
}

.btn-primary, .vaff-btn-ghost { min-height: 42px; }
.vaff-filters .btn-primary,
.vaff-filters .vaff-btn-ghost { min-height: 36px !important; }
.vaff-act-btn { width: 36px; height: 36px; }

.vaff-mod-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vaff-stat { min-height: 118px; padding: 14px; }
.vaff-stat__val { font-size: 24px; }
.vaff-hero {
  padding: 16px;
  border-radius: 1.15rem;
  margin-bottom: 14px;
}
.vaff-session-hub { grid-template-columns: 1fr 1fr; }

body.role-siswa .vaff-main h1 { font-size: 1.35rem; }

@media (min-width: 640px) {
  :root {
    --page-pad-x: 18px;
    --page-pad-y: 14px;
    --nav-h: 60px;
    --vaca-radius: 1.35rem;
  }
  .vaff-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .vaff-form-grid.is-jurnal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vaff-filters.is-grid { grid-template-columns: 1fr 1fr; }
  .vaff-filters.is-grid .vaff-filters__actions { grid-column: 1 / -1; }
  .vaff-filters label { width: 156px; }
  .vaff-filters__actions { width: auto; margin-left: auto; padding-top: 16px; }
  .vaff-filters__actions .btn-primary,
  .vaff-filters__actions .vaff-btn-ghost { flex: 0 0 auto; }
  .vaff-seg-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .vaff-seg-bar > .btn-primary { width: auto; }
  .vaff-sched-row {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
  }
  .vaff-sched-row__time { display: block; }
  .vaff-sched-row__time small { margin-top: 2px; }
  .vaff-sched-row__time .vaff-badge { margin-top: 6px; }
  .vaff-sched-row__act {
    flex-direction: column;
    align-items: flex-end;
  }
  .vaff-sched-row__act .btn-primary,
  .vaff-sched-row__act .vaff-btn-ghost,
  .vaff-sched-row__act form { flex: 0 0 auto; width: auto; }
  .vaff-session-hub { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .k-input { font-size: 15px; }
}

@media (min-width: 768px) {
  .vaff-modal {
    align-items: center;
    padding: 24px 16px;
  }
  .vaff-modal__card {
    max-width: 520px;
    border-radius: 1.25rem;
    border-bottom: 1px solid #E7EEF8;
    padding: 22px;
    margin: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  }
  .vaff-modal__card.is-wide { max-width: 640px; width: min(640px, calc(100vw - 32px)); }
  .vaff-modal__card.is-xl {
    max-width: min(920px, calc(100vw - 48px));
    width: min(920px, calc(100vw - 48px));
    max-height: min(92vh, 920px);
  }
  .vaff-modal__card.is-wide.is-xl {
    max-width: min(920px, calc(100vw - 48px));
    width: min(920px, calc(100vw - 48px));
  }
  .vaff-modal__card::before { display: none; }
  .vaff-filters.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.role-guru .vaff-main,
  body.role-operator .vaff-main,
  body.role-kepala .vaff-main,
  body.role-waka_kurikulum .vaff-main,
  body.role-pustakawan .vaff-main {
    --content-max: 1400px;
  }
}

@media (min-width: 992px) {
  :root {
    --page-pad-x: 28px;
    --page-pad-y: 16px;
    --nav-h: 64px;
    --lekuk: 36px;
    --vaca-radius: 1.5rem;
    --content-max: 1360px;
  }
  .vaff-filters.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vaff-filters.is-grid .vaff-filters__actions { grid-column: 1 / -1; }
  .vaff-filters label { width: 160px; flex: 0 0 auto; }
  .vaff-filters .k-input,
  .vaff-filters .vaff-combo { width: 100%; min-width: 0; }
  .vaff-filters input[type="search"].k-input { min-width: 0; }
  .vaff-form-grid.is-3,
  .vaff-modal__card.is-wide .vaff-form-grid:not(.is-jurnal) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vaff-modal__card.is-wide .vaff-form-grid.is-jurnal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vaff-mod-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .vaff-table, table.dataTable { min-width: 0; }
}

@media (min-width: 1200px) {
  :root { --content-max: 1480px; }
  body.role-guru .vaff-dash-lists,
  body.role-operator .vaff-dash-lists {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 991px) {
  .vaff-main { max-width: none; }
}

@media (max-width: 767px) {
  .dataTables_wrapper {
    padding: 12px;
    gap: 8px;
  }
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length {
    flex: 1 1 100%;
  }
  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100% !important;
    min-width: 0 !important;
    height: var(--touch) !important;
    font-size: 16px !important;
  }
  .dataTables_wrapper .dataTables_paginate {
    width: 100%;
    justify-content: center !important;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 40px;
    height: 40px;
  }
  .vaff-toast-wrap {
    left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

/* --- Perpustakaan: katalog seperti toko (cover + filter) --- */
.vaff-lib-filter__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto;
  gap: 10px 12px;
  align-items: end;
}
.vaff-lib-filter label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vaca-muted, #64748b);
  margin: 0;
}
.vaff-lib-filter__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}
.vaff-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.vaff-lib-sec-title {
  margin: 0;
  font-size: .95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: var(--vaca-navy);
  line-height: 1.3;
}
.vaff-lib-sec-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.4;
}
.vaff-book-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: inherit;
}
.vaff-book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--k-primary) 28%, #e2e8f0);
}
.vaff-book-card:focus-visible {
  outline: 2px solid var(--k-primary);
  outline-offset: 2px;
}
.vaff-book-card--digital {
  text-decoration: none !important;
  color: inherit;
}
.vaff-book-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
  overflow: hidden;
}
.vaff-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.vaff-book-card:hover .vaff-book-card__cover img {
  transform: scale(1.04);
}
.vaff-book-card__ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--k-primary) 18%, #e2e8f0), #f1f5f9);
  color: color-mix(in srgb, var(--k-primary) 70%, #334155);
  font-weight: 800;
  font-size: 1.75rem;
}
.vaff-book-card__ph small {
  font-size: 11px;
  font-weight: 600;
  opacity: .75;
}
.vaff-book-card__ph.is-digital {
  background: linear-gradient(160deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}
.vaff-book-card__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10px !important;
  padding: 2px 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.vaff-book-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.vaff-book-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--k-primary, #2563eb);
  line-height: 1.2;
}
.vaff-book-card__title {
  margin: 0;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1.35;
  color: var(--vaca-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.vaff-book-card__meta,
.vaff-book-card__stock {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vaff-book-card__stock { font-size: 11px; color: #94a3b8; }
.vaff-book-card__hint {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--k-primary);
  opacity: .85;
}
.vaff-book-card__act {
  margin-top: auto;
  padding-top: 8px;
}
.vaff-book-card__off {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.vaff-book-detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  margin-bottom: 14px;
}
.vaff-book-detail__cover {
  width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.vaff-book-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vaff-book-detail__cover .vaff-book-card__ph {
  min-height: 0;
  font-size: 1.5rem;
}
.vaff-book-detail__info { min-width: 0; }
.vaff-book-detail__tag {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 11px !important;
}
.vaff-book-detail__info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--vaca-navy);
  line-height: 1.3;
}
.vaff-book-detail__author {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
}
.vaff-book-detail__meta {
  margin: 0;
  display: grid;
  gap: 6px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  font-size: 12.5px;
}
.vaff-book-detail__meta dt {
  margin: 0;
  color: #94A3B8;
  font-weight: 600;
}
.vaff-book-detail__meta dd {
  margin: 0;
  color: #334155;
  font-weight: 550;
  min-width: 0;
  word-break: break-word;
}
.vaff-book-detail__notes {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E7EEF8;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  white-space: pre-wrap;
}
.vaff-book-detail__act {
  border-top: 1px solid #E7EEF8;
  padding-top: 14px;
}
.vaff-book-detail__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748B;
}
.vaff-book-detail__off {
  margin: 0 0 10px;
  font-size: 13px;
  color: #94A3B8;
}
@media (max-width: 479px) {
  .vaff-book-detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .vaff-book-detail__meta {
    grid-template-columns: 1fr;
    text-align: left;
    width: 100%;
  }
}
.vaff-book-thumb {
  width: 40px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}
.vaff-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vaff-book-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
}
.vaff-book-cover-field {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  align-items: start;
}
.vaff-book-cover-field__prev {
  width: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.vaff-book-cover-field__prev img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* Form katalog: fields + thumbnail cover */
.vaff-book-form { display: flex; flex-direction: column; gap: 0; }
.vaff-book-form__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px 20px;
  align-items: start;
}
.vaff-book-form__fields { min-width: 0; }
.vaff-book-form__cover {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
}
.vaff-book-form__file { display: flex; flex-direction: column; gap: 6px; }
.vaff-book-thumb {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vaff-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vaff-book-thumb__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #64748b;
  background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
}
.vaff-ref-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.vaff-ref-field > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  min-width: 0;
}
.vaff-ref-field__new { margin-top: 0; }

@media (max-width: 900px) {
  .vaff-lib-filter__row {
    grid-template-columns: 1fr 1fr;
  }
  .vaff-lib-filter__grow { grid-column: 1 / -1; }
  .vaff-lib-filter__acts { grid-column: 1 / -1; }
  .vaff-book-form__body {
    grid-template-columns: 1fr;
  }
  .vaff-book-form__cover {
    position: static;
    max-width: 160px;
  }
  .vaff-form-grid .is-span-2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .vaff-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .vaff-lib-filter__row {
    grid-template-columns: 1fr;
  }
  .vaff-book-cover-field {
    grid-template-columns: 1fr;
  }
  .vaff-book-form__cover {
    max-width: 140px;
  }
}

.vaff-badge.is-open {
  background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0;
}

/* Laporan perpustakaan */
.vaff-lib-report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.vaff-lib-report-kpis .vaff-stat { min-height: 118px; }
.vaff-lib-report-kpis .vaff-stat__val { font-size: 1.45rem; }
.vaff-lib-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vaff-lib-report-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vaca-line, #e2e8f0);
}
.vaff-lib-report-sec h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--vaca-navy, #17324D);
}
.vaff-lib-export {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vaff-lib-export__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.vaff-lib-export__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vaff-lib-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vaff-lib-dl { display: grid; gap: 8px; margin: 0; }
.vaff-lib-dl > div { display: grid; gap: 2px; }
.vaff-lib-dl dt { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .02em; }
.vaff-lib-dl dd { margin: 0; font-weight: 600; color: #0f172a; }
/* Backup & reset — full width */
.vaff-backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
}
.vaff-backup-grid > .k-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .vaff-backup-grid { grid-template-columns: 1fr; }
}

/* Laporan penilaian — rekap full width */
.vaff-grade-sheet { width: 100%; }
.vaff-grade-rekap { min-width: 640px; }
.vaff-grade-rekap th, .vaff-grade-rekap td { white-space: nowrap; vertical-align: middle; }
.vaff-grade-col { min-width: 72px; text-align: center !important; }
.vaff-grade-col__sub {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: #64748b; margin-bottom: 2px;
}
.vaff-grade-col__lab {
  display: block; max-width: 110px; margin: 0 auto;
  font-size: 12px; font-weight: 700; white-space: normal; line-height: 1.25;
}
.vaff-grade-score, .vaff-grade-final { text-align: center !important; }
.vaff-grade-final { min-width: 88px; background: color-mix(in srgb, var(--k-primary) 6%, #fff); }
.vaff-grade-sticky {
  position: sticky; left: 0; z-index: 2;
  background: #fff; box-shadow: 1px 0 0 #e2e8f0;
}
.vaff-grade-sticky.is-name { left: 40px; min-width: 160px; text-align: left !important; white-space: normal; }
thead .vaff-grade-sticky { z-index: 3; background: #f8fafc; }
.vaff-grade-meta { border-left: 4px solid var(--k-primary); }
@media print {
  .vaff-filters, .vaff-page-head .flex.gap-2, .vaff-sidebar, .vaff-navbar, .vaff-bottom { display: none !important; }
  .vaff-grade-sticky { position: static; box-shadow: none; }
}

.vaff-lib-accred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 16px;
}

/* Insight dashboard */
.vaff-insight-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.vaff-insight-kpi { min-height: 0; padding: 14px; }
.vaff-insight-kpi .vaff-stat__val { font-size: 1.5rem; }
.vaff-insight-kpi.is-danger .vaff-stat__val { color: #BE123C; }
.vaff-insight-kpi.is-warn .vaff-stat__val { color: #B45309; }
.vaff-insight-kpi.is-ok .vaff-stat__val { color: #0F766E; }
.vaff-insight-list {
  display: grid;
  gap: 10px;
}
.vaff-insight-card { padding: 14px 16px; border-left: 4px solid #cbd5e1; }
.vaff-insight-card.is-critical { border-left-color: #e11d48; }
.vaff-insight-card.is-warn { border-left-color: #f59e0b; }
.vaff-insight-card.is-ok { border-left-color: #10b981; }
.vaff-insight-card.is-info { border-left-color: #3b82f6; }
.vaff-insight-card__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px;
}
.vaff-insight-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569;
}
.vaff-insight-pill.is-critical { background: #ffe4e6; color: #be123c; }
.vaff-insight-pill.is-warn { background: #ffedd5; color: #c2410c; }
.vaff-insight-pill.is-ok { background: #d1fae5; color: #047857; }
.vaff-insight-pill.is-info { background: #dbeafe; color: #1d4ed8; }
.vaff-insight-area { font-size: 12px; font-weight: 700; color: #64748b; }
.vaff-insight-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #0f172a; }
.vaff-insight-card__detail { margin: 0; font-size: 13px; color: #475569; line-height: 1.45; }
.vaff-insight-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vaff-insight-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}
.vaff-insight-actgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.vaff-insight-actgrid > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.vaff-insight-actgrid b { font-size: 1.15rem; color: var(--vaca-navy, #17324D); }
.vaff-insight-heat {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 1px;
}
.vaff-insight-heat > div { height: 10px; border-radius: 2px; }
@media (max-width: 900px) {
  .vaff-insight-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .vaff-lib-report-grid { grid-template-columns: 1fr; }
  .vaff-lib-portal-grid { grid-template-columns: 1fr; }
}

.vaff-jdate {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  line-height: 1.15; gap: 2px;
}
.vaff-jdate b {
  font-size: 1.35rem; font-weight: 800; color: #0F172A; letter-spacing: -.03em;
}
.vaff-jdate small {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #64748B;
}
.vaff-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--k-primary) 45%, #BFDBFE);
  background: #fff; color: var(--k-primary);
  font-size: 13px; font-weight: 700; text-decoration: none !important;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.vaff-btn-outline:hover {
  background: #EFF6FF;
  border-color: var(--k-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .1);
}
.dataTables_wrapper .vaff-dt-foot {
  order: 6;
  flex: 1 0 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 2px 0;
  border-top: 1px solid #F1F5F9;
}
.dataTables_wrapper .vaff-dt-foot .dataTables_info {
  order: 0;
  margin: 0;
  padding: 0;
  color: #64748B;
  font-size: 13px;
}
.dataTables_wrapper .vaff-dt-foot .dataTables_length {
  order: 1;
  margin: 0;
  padding: 0;
}
.dataTables_wrapper:not(.is-dt-paging-off) .vaff-dt-foot .dataTables_length {
  display: inline-block !important;
}
.dataTables_wrapper .vaff-dt-foot .dataTables_paginate {
  order: 2;
  margin: 0 0 0 auto;
  padding: 0;
}
.vaff-dt-foot .dataTables_length label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #64748B;
  text-transform: none; letter-spacing: 0; width: auto;
}
.vaff-dt-foot .dataTables_length select {
  min-width: 4.5rem; padding: 6px 10px; border-radius: 10px;
  border: 1px solid #E2E8F0; background: #fff;
}

@media (min-width: 768px) {
  .vaff-jurnal-panel {
    padding: 1.15rem 1.25rem 1.2rem;
    margin-bottom: 1.15rem;
  }
  .vaff-jurnal-filters {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
    width: 100%;
    flex-wrap: unset;
  }
  .vaff-jurnal-filters > label {
    width: auto !important;
    max-width: none;
    flex: unset;
  }
  .vaff-jurnal-filters .k-input,
  .vaff-jurnal-filters .vaff-combo,
  .vaff-jurnal-filters .vaff-combo__btn {
    width: 100%;
  }
  .vaff-jurnal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E8EEF5;
  }
  .vaff-jurnal-toolbar__left,
  .vaff-jurnal-toolbar__mid,
  .vaff-jurnal-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .vaff-jurnal-toolbar__mid { flex: 1; justify-content: center; }
  .vaff-jurnal-toolbar__right { margin-left: auto; }
  .vaff-jurnal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
  }
  .vaff-jurnal-stats .vaff-stat {
    min-height: 0;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 1.15rem;
  }
  .vaff-jurnal-stats .vaff-stat__ico {
    border-radius: .85rem;
    width: 2.5rem; height: 2.5rem;
  }
  .vaff-jurnal-stats .vaff-stat__val {
    font-size: 1.75rem;
    margin: .15rem 0 .2rem;
  }
  .vaff-jurnal-table {
    border-radius: 1.15rem;
    padding: 1rem 1.1rem 1.15rem !important;
  }
  .vaff-jurnal-table .vaff-table thead th {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 700;
    background: transparent;
  }
  .vaff-jurnal-table .vaff-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 767px) {
  .vaff-jurnal-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .vaff-jurnal-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 10px 0 14px;
  }
  .vaff-jurnal-toolbar__left,
  .vaff-jurnal-toolbar__mid,
  .vaff-jurnal-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .vaff-jurnal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
}

/* Dashboard guru / siswa ringkas */
.vaff-work-list { display:flex; flex-direction:column; gap:10px; }
.vaff-work-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; border-radius:1rem;
  background:#fff; border:1px solid #E8EEF5;
  text-decoration:none !important; color:inherit;
  transition: border-color .15s, box-shadow .15s;
}
.vaff-work-item:hover { border-color: color-mix(in srgb, var(--k-primary) 35%, #E2E8F0); box-shadow:0 4px 14px rgba(15,23,42,.06); }
.vaff-work-item__count {
  min-width:2.5rem; height:2.5rem; border-radius:.85rem;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.1rem;
  background: #EFF6FF; color: var(--k-primary);
}
.vaff-work-item__body { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.vaff-work-item__body b { font-size:14px; color:var(--vaca-navy); }
.vaff-work-item__body small { font-size:12px; color:#64748B; }
.vaff-work-item__go { font-size:13px; font-weight:700; color:var(--k-primary); white-space:nowrap; }

.vaff-sched-strip { padding: 0 !important; overflow:hidden; }
.vaff-sched-strip__track {
  display:flex; gap:0; overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; padding: 4px 0 8px;
}
.vaff-sched-day {
  flex: 0 0 min(100%, 320px);
  scroll-snap-align: start;
  padding: 1rem 1.1rem 1.15rem;
  border-right: 1px solid #F1F5F9;
  min-height: 180px;
}
.vaff-sched-day.is-today { background: #F8FBFF; }
.vaff-sched-day__head { margin-bottom: 12px; }
.vaff-sched-day__head b { display:block; font-size:15px; color:var(--vaca-navy); }
.vaff-sched-day__head small { font-size:12px; color:#64748B; }
.vaff-sched-day__empty { font-size:13px; color:#94A3B8; margin:0; }
@media (min-width: 900px) {
  .vaff-sched-day { flex-basis: 280px; }
}

/* Rumah mapel — header & toolbar */
.vaff-room-head__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.vaff-room-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.vaff-room-back:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.vaff-room-back__ico { width: 16px; height: 16px; flex: 0 0 auto; }
.vaff-room-head__main h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--vaca-navy, #0F172A);
  letter-spacing: -.02em;
}
.vaff-room-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  max-width: 280px;
  min-width: 140px;
  margin: 0;
}
.vaff-room-switch .k-input,
.vaff-room-switch .vaff-combo {
  width: 100%;
}
.vaff-target-classes__list {
  max-height: 180px;
  overflow: auto;
}
.vaff-room-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px 12px;
}
.vaff-room-toolbar .vaff-room-switch {
  order: -1;
}
.vaff-room-toolbar .vaff-filters__search {
  margin-left: 0;
  flex: 1 1 180px;
  max-width: none;
}
.vaff-room-toolbar .vaff-filters__actions {
  margin-left: auto;
  padding-top: 16px;
}
@media (max-width: 640px) {
  .vaff-room-toolbar .vaff-room-switch {
    flex: 1 1 100%;
    max-width: none;
  }
  .vaff-room-toolbar .vaff-filters__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* Rumah mapel — hierarki unit (clean white cards) */
.vaff-room-pane {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.vaff-room-tree-wrap { display: block; }
.vaff-room-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  font-size: 13px;
  line-height: 1.45;
  color: #1E40AF;
}
.vaff-room-hint__ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #2563EB;
}
.vaff-room-units {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vaff-room-unit {
  border: 1px solid #E8EEF5;
  border-radius: 16px;
  background: #fff;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  position: relative;
  z-index: 1;
}
.vaff-room-unit:has(.vaff-kebab.is-open) {
  z-index: 20;
}
.vaff-room-unit.is-empty {
  border-style: dashed;
  background: #fff;
  box-shadow: none;
}
.vaff-room-empty-state {
  padding: 36px 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.vaff-room-unit__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
  border-radius: 16px 16px 0 0;
}
.vaff-room-unit__addbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
}
.vaff-room-unit__addlabel {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-right: 4px;
}
.vaff-room-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  background: #fff;
}
.vaff-room-add__ico { width: 12px; height: 12px; }
.vaff-room-add.is-material {
  color: #1D4ED8;
  border-color: #BFDBFE;
  background: #EFF6FF;
}
.vaff-room-add.is-material:hover {
  background: #DBEAFE;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}
.vaff-room-add.is-task {
  color: #C2410C;
  border-color: #FED7AA;
  background: #FFF7ED;
}
.vaff-room-add.is-task:hover {
  background: #FFEDD5;
  box-shadow: 0 2px 8px rgba(234, 88, 12, .1);
}
.vaff-room-add.is-quiz {
  color: #6D28D9;
  border-color: #DDD6FE;
  background: #F5F3FF;
}
.vaff-room-add.is-quiz:hover {
  background: #EDE9FE;
  box-shadow: 0 2px 8px rgba(109, 40, 217, .1);
}
.vaff-room-unit__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.vaff-room-unit__info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--vaca-navy, #0F172A);
}
.vaff-room-unit__counts {
  font-size: 12px;
  color: #64748B;
}
.vaff-room-unit__acts,
.vaff-room-item__acts {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
.vaff-kebab {
  position: relative;
  flex: 0 0 auto;
}
.vaff-kebab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.vaff-kebab__btn:hover {
  background: #F1F5F9;
  color: #334155;
}
.vaff-kebab__ico { width: 18px; height: 18px; }
.vaff-kebab__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 148px;
  padding: 4px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  z-index: 80;
}
.vaff-kebab.is-open .vaff-kebab__menu { display: block; }
.vaff-kebab.is-drop-up:not(.is-fixed-menu) .vaff-kebab__menu {
  top: auto;
  bottom: calc(100% + 4px);
}
.vaff-kebab.is-fixed-menu.is-open .vaff-kebab__menu {
  z-index: 10050;
}
.vaff-kebab__form { margin: 0; }
.vaff-kebab__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .12s;
}
.vaff-kebab__item:hover { background: #F8FAFC; }
.vaff-kebab__item.is-danger { color: #DC2626; }
.vaff-kebab__item.is-danger:hover { background: #FEF2F2; }
.vaff-room-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #94A3B8;
  cursor: grab;
  flex: 0 0 auto;
  touch-action: none;
}
.vaff-room-drag:hover { background: #F1F5F9; color: #64748B; }
.vaff-room-drag:active { cursor: grabbing; }
.vaff-room-drag__ico { width: 16px; height: 16px; }
.vaff-room-items {
  list-style: none;
  margin: 0;
  padding: 14px 16px 16px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  border-radius: 0 0 16px 16px;
  background: #fff;
}
.vaff-room-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #EEF2F7;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.vaff-room-item:not(.is-empty):hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.vaff-room-item.has-detail:not(.is-empty) {
  cursor: pointer;
}
.vaff-room-item.has-detail:not(.is-empty):hover {
  border-color: #93C5FD;
  background: #FAFCFF;
}
.vaff-room-item.has-detail .vaff-room-drag,
.vaff-room-item.has-detail .vaff-kebab,
.vaff-room-item.has-detail .vaff-kebab__btn {
  cursor: pointer;
}
.vaff-room-item.has-detail .vaff-room-drag {
  cursor: grab;
}
.vaff-room-item.is-empty {
  border: 1px dashed #D8E2F0;
  background: #F8FAFC;
  padding: 28px 16px;
  box-shadow: none;
  justify-content: center;
  min-height: 140px;
}
.vaff-room-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.vaff-room-empty__ico {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.vaff-room-empty__svg {
  width: 28px;
  height: 28px;
}
.vaff-room-empty__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #93C5FD;
}
.vaff-room-empty__spark--a {
  top: 10px;
  right: 12px;
  width: 5px;
  height: 5px;
}
.vaff-room-empty__spark--b {
  bottom: 12px;
  left: 10px;
  width: 4px;
  height: 4px;
  background: #BFDBFE;
}
.vaff-room-empty__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}
.vaff-room-empty__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748B;
}
.vaff-room-item__badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
}
.vaff-room-item.is-task .vaff-room-item__badge {
  background: #FFF7ED;
  color: #C2410C;
}
.vaff-room-item.is-quiz .vaff-room-item__badge {
  background: #F5F3FF;
  color: #6D28D9;
}
.vaff-room-item__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vaff-room-item__meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
}
.vaff-room-orphan {
  margin-top: 18px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid #E8EEF5;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.vaff-room-orphan__head {
  margin: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #F1F5F9;
}
.vaff-room-orphan__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}
.vaff-room-orphan__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94A3B8;
}
.vaff-room-orphan .vaff-room-items {
  padding: 14px 16px 16px;
  background: #fff;
  border-radius: 0;
  border: 0;
  overflow: visible;
}
.sortable-ghost {
  opacity: .45;
  background: #EFF6FF !important;
}
.sortable-chosen {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
@media (max-width: 640px) {
  .vaff-room-item__meta { display: none; }
  .vaff-room-items { padding: 12px; }
  .vaff-room-unit__addbar { padding: 10px 12px; }
  .vaff-room-unit__head { padding: 12px; }
  .vaff-room-item.is-empty { padding: 22px 12px; min-height: 120px; }
}

/* ========== Guru dashboard (elegant) ========== */
.vaff-gdash {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.vaff-gdash-welcome {
  position: relative;
  margin: -8px -8px 0;
  padding: 4px 8px 14px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  /* samakan dengan .vaff-wrap (#F4F8FF) agar hero tidak terlihat seperti panel terpisah */
  background: transparent;
  overflow: hidden;
}
.vaff-gdash-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  min-height: 96px;
}
.vaff-gdash-hero__text {
  position: relative;
  z-index: 2;
  max-width: min(36rem, 56%);
  padding-top: 2px;
}
.vaff-gdash-hero__hello {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  line-height: 1.25;
}
.vaff-gdash-hero__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
  font-weight: 500;
}
.vaff-gdash-hero__art {
  position: absolute;
  right: -4px;
  top: -6px;
  bottom: auto;
  z-index: 0;
  width: min(460px, 54%);
  max-width: 500px;
  margin: 0;
  line-height: 0;
  pointer-events: none;
  opacity: .92;
  background: transparent !important;
}
.vaff-gdash-hero__art img {
  width: 100%;
  height: auto;
  max-height: 150px;
  display: block;
  object-fit: contain;
  object-position: right top;
  user-select: none;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  /* PNG sudah transparan; jangan multiply (menggelapkan warna ilustrasi) */
  mix-blend-mode: normal;
}

.vaff-gdash-welcome .vaff-gdash-stats {
  position: relative;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.vaff-gdash-stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #E8EEF5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 148px;
}
.vaff-gdash-stat:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}
.vaff-gdash-stat__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
}
.vaff-gdash-stat__ico {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-bottom: 0;
}
.vaff-gdash-stat__ico svg { width: 20px; height: 20px; }
.vaff-gdash-stat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}
.vaff-gdash-stat__label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.3;
}
.vaff-gdash-stat__metric {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 2px;
}
.vaff-gdash-stat__unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.3;
}
.vaff-gdash-stat__value { display: none; }
.vaff-gdash-stat__go {
  display: block;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #EEF2F7;
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  line-height: 1.3;
}

.vaff-gdash-mid {
  display: block;
  width: 100%;
}
.vaff-gdash-panel {
  background: #fff;
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  min-width: 0;
}
.vaff-gdash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vaff-gdash-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
}
.vaff-gdash-empty {
  margin: 8px 0 4px;
  font-size: 13px;
  color: #94A3B8;
}

.vaff-gdash-sched {
  list-style: none;
  margin: 0;
  padding: 6px 2px 2px 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.vaff-gdash-sched__item {
  position: relative;
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0;
  border-radius: 12px;
  border: 1px solid #EEF2F7;
  background: #fff;
  overflow: visible;
  height: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.vaff-gdash-sched__item:hover {
  border-color: #Dbe4f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.vaff-gdash-sched__num {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #334155;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
  line-height: 1;
}
.vaff-gdash-sched__item.is-done .vaff-gdash-sched__num { background: #059669; }
.vaff-gdash-sched__item.is-live .vaff-gdash-sched__num { background: #2563EB; }
.vaff-gdash-sched__item.is-soon .vaff-gdash-sched__num { background: #64748B; }
.vaff-gdash-sched__item.is-warn .vaff-gdash-sched__num { background: #EA580C; }
.vaff-gdash-sched__bar {
  background: #CBD5E1;
  border-radius: 12px 0 0 12px;
}
.vaff-gdash-sched__item.is-done .vaff-gdash-sched__bar { background: #34D399; }
.vaff-gdash-sched__item.is-live .vaff-gdash-sched__bar { background: #3B82F6; }
.vaff-gdash-sched__item.is-soon .vaff-gdash-sched__bar { background: #94A3B8; }
.vaff-gdash-sched__item.is-warn .vaff-gdash-sched__bar { background: #F59E0B; }
.vaff-gdash-sched__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  padding: 8px 10px 9px 14px;
  min-width: 0;
  height: 100%;
  border-radius: 0 12px 12px 0;
}
.vaff-gdash-sched__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 4px;
}
.vaff-gdash-sched__time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  padding-right: 78px;
}
.vaff-gdash-sched__subj {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-gdash-sched__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.vaff-gdash-sched__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  margin-top: auto;
  width: 100%;
}
.vaff-gdash-pill {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-gdash-pill.is-done { background: #ECFDF5; color: #047857; }
.vaff-gdash-pill.is-live { background: #EFF6FF; color: #1D4ED8; }
.vaff-gdash-pill.is-soon { background: #F1F5F9; color: #64748B; }
.vaff-gdash-pill.is-warn { background: #FFF7ED; color: #C2410C; }
.vaff-gdash-class {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 1px 7px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  line-height: 1.3;
}
.vaff-gdash-sched__extra {
  font-size: 10px;
  color: #94A3B8;
}
.vaff-gdash-sched__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, filter .15s;
  white-space: nowrap;
}
.vaff-gdash-sched__ico {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.vaff-gdash-sched__btn.is-primary {
  background: var(--k-primary);
  border-color: var(--k-primary);
  color: #fff;
}
.vaff-gdash-sched__btn.is-primary:hover {
  filter: brightness(1.06);
}
.vaff-gdash-sched__btn.is-ghost {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: default;
  font-weight: 600;
}
.vaff-gdash-sched__btn.is-ghost:disabled {
  opacity: 1;
}

.vaff-gdash-ann {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vaff-gdash-ann__item {
  display: block;
  padding: 0;
  border-bottom: 1px solid #F1F5F9;
}
.vaff-gdash-ann__item:last-child { border-bottom: 0; }
.vaff-gdash-ann__details {
  margin: 0;
}
.vaff-gdash-ann__sum {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.vaff-gdash-ann__sum::-webkit-details-marker { display: none; }
.vaff-gdash-ann__sum::marker { content: ''; }
.vaff-gdash-ann__sum:hover { background: #F8FAFC; border-radius: 10px; }
.vaff-gdash-ann__ico {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-gdash-ann__ico svg { width: 16px; height: 16px; }
.vaff-gdash-ann__ico.is-blue { background: #EFF6FF; color: #2563EB; }
.vaff-gdash-ann__ico.is-green { background: #ECFDF5; color: #059669; }
.vaff-gdash-ann__ico.is-purple { background: #F5F3FF; color: #7C3AED; }
.vaff-gdash-ann__ico.is-orange { background: #FFF7ED; color: #EA580C; }
.vaff-gdash-ann__line {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vaff-gdash-ann__line b {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-gdash-ann__line small {
  flex: 0 0 auto;
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
}
.vaff-gdash-ann__more {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--k-primary);
  white-space: nowrap;
}
.vaff-gdash-ann__chev {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: #94A3B8;
  line-height: 1;
  transition: transform .18s ease;
}
.vaff-gdash-ann__details[open] .vaff-gdash-ann__chev {
  transform: rotate(90deg);
  color: var(--k-primary);
}
.vaff-gdash-ann__detail {
  padding: 0 4px 12px 50px;
}
.vaff-gdash-ann__detail p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}
.vaff-gdash-ann__detail p.is-empty {
  color: #94A3B8;
  font-style: italic;
}

.vaff-gdash-quick {
  background: #fff;
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  width: 100%;
}
.vaff-gdash-quick .vaff-gdash-panel__head { margin-bottom: 12px; }
.vaff-gdash-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.vaff-gdash-quick__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #EEF2F7;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.vaff-gdash-quick__card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.vaff-gdash-quick__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-gdash-quick__ico svg { width: 18px; height: 18px; }
.vaff-gdash-quick__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vaff-gdash-quick__label {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-gdash-quick__desc {
  font-size: 11px;
  line-height: 1.35;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-gdash-ann-panel { margin: 0; }

/* Siswa dashboard extras */
.vaff-sdash-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.vaff-sdash-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #DC2626;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #FEE2E2;
}
.vaff-sdash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vaff-sdash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vaff-sdash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #E8EEF5;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
a.vaff-sdash-row:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}
.vaff-sdash-row.is-static { cursor: default; }
.vaff-sdash-row__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-sdash-row__ico svg { width: 18px; height: 18px; }
.vaff-sdash-row__ico.is-orange { background: #FFEDD5; color: #C2410C; }
.vaff-sdash-row__ico.is-green { background: #D1FAE5; color: #047857; }
.vaff-sdash-row__ico.is-purple { background: #EDE9FE; color: #6D28D9; }
.vaff-sdash-row__ico.is-blue { background: #DBEAFE; color: #1D4ED8; }
.vaff-sdash-row__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vaff-sdash-row__meta b {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-sdash-row__meta small {
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-sdash-row__go {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--k-primary);
}
.vaff-gdash-panel__head .vaff-nav-count {
  margin-left: 6px;
  vertical-align: middle;
}
.vaff-gdash-quick__label .vaff-nav-count {
  margin-left: 4px;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .vaff-sdash-grid { grid-template-columns: 1fr; }
  .vaff-gdash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vaff-gdash-sched { grid-template-columns: 1fr 1fr; }
  .vaff-gdash-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vaff-gdash-ann__line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .vaff-gdash-ann__detail { padding-left: 4px; }
}
@media (max-width: 640px) {
  .vaff-gdash { gap: 12px; }
  .vaff-gdash-welcome {
    margin: 0 0 4px;
    padding: 2px 0 8px;
    border-radius: 0;
    background: transparent;
  }
  .vaff-gdash-hero {
    padding: 4px 2px 8px;
    min-height: 0;
    display: block;
  }
  .vaff-gdash-hero__text {
    max-width: 100%;
    padding-top: 0;
  }
  .vaff-gdash-hero__hello { font-size: 1.28rem; }
  .vaff-gdash-hero__art { display: none; }
  .vaff-gdash-stat__go { display: none; }
  .vaff-gdash-welcome .vaff-gdash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vaff-gdash-stat { padding: 14px 12px; border-radius: 14px; min-height: 0; }
  .vaff-gdash-stat__metric { font-size: 1.35rem; }
  .vaff-gdash-stat__ico { width: 40px; height: 40px; }
  .vaff-gdash-panel { padding: 14px; border-radius: 16px; }
  .vaff-gdash-sched {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 2px 2px 8px;
  }
  /* Mobile: kartu penuh lebar — status pojok, tombol bawah */
  .vaff-gdash-sched__main {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 12px 12px 14px;
  }
  .vaff-gdash-sched__info {
    padding-right: 4px;
    min-width: 0;
  }
  .vaff-gdash-sched__time {
    font-size: 12px;
    white-space: nowrap;
    padding-right: 96px;
  }
  .vaff-gdash-sched__subj {
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vaff-gdash-sched__meta {
    margin-top: 4px;
    min-width: 0;
    max-width: 100%;
  }
  .vaff-gdash-sched__side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  .vaff-gdash-sched__btn {
    min-height: 36px;
    font-size: 12px;
    padding: 6px 12px;
    width: 100%;
  }
  .vaff-gdash-pill {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 10px;
    padding: 3px 8px;
    max-width: 42%;
  }
  .vaff-gdash-class {
    font-size: 11px;
    padding: 3px 8px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .vaff-gdash-sched__num { width: 22px; height: 22px; font-size: 11px; top: -6px; left: -6px; }
  .vaff-gdash-quick { padding: 14px; }
  .vaff-gdash-quick__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vaff-gdash-quick__card { padding: 10px 12px; }
  .vaff-gdash-quick__label { font-size: 12px; }
  .vaff-gdash-quick__desc { font-size: 10px; }
}

/* ---- Siswa: halaman Belajar (mata pelajaran) ---- */
.vaff-learn {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.vaff-learn__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vaff-learn__title {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1.2;
}
.vaff-learn__sub {
  margin: 0;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}
.vaff-learn__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(260px, 100%);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.vaff-learn__filter-ico {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  display: grid;
  place-items: center;
}
.vaff-learn__filter-ico svg { width: 16px; height: 16px; }
.vaff-learn__filter-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
}
.vaff-learn__filter-input::placeholder { color: #94A3B8; font-weight: 500; }
.vaff-learn__empty {
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed #CBD5E1;
  background: #F8FAFC;
  text-align: center;
  color: #64748B;
  font-size: 14px;
}
.vaff-learn__empty p { margin: 0; }
.vaff-learn__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vaff-learn-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E8EEF5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vaff-learn-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}
.vaff-learn-card__ico {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-learn-card__ico svg { width: 24px; height: 24px; }
.vaff-learn-card__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.vaff-learn-card__todo {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: #DC2626;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .28);
}
.vaff-learn-card__todo.is-zero {
  background: #F1F5F9;
  color: #94A3B8;
  box-shadow: none;
}
.vaff-learn-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vaff-learn-card__name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-learn-card__guru {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-learn-card__class {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
}
.vaff-learn-card__progress {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.vaff-learn-card__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.vaff-learn-card__stats b {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
}
.vaff-learn-card__stats small {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}
.vaff-learn-card__bar {
  width: 72px;
  height: 5px;
  border-radius: 99px;
  background: #E2E8F0;
  overflow: hidden;
}
.vaff-learn-card__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.vaff-learn-card__status {
  font-size: 11px;
  font-weight: 700;
}
.vaff-learn-card__status.is-on { color: #16A34A; }
.vaff-learn-card__status.is-off { color: #94A3B8; }

@media (max-width: 1100px) {
  .vaff-learn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vaff-learn__grid { grid-template-columns: 1fr; }
  .vaff-learn-card {
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
    padding: 14px;
  }
  .vaff-learn-card__ico { width: 46px; height: 46px; }
  .vaff-learn-card__todo { width: 36px; height: 36px; min-width: 36px; font-size: 13px; border-radius: 10px; }
  .vaff-learn__title { font-size: 1.25rem; }
}

/* ---- Siswa: detail mapel (hierarki unit) ---- */
.vaff-slearn {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.vaff-slearn__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  text-decoration: none !important;
  width: fit-content;
}
.vaff-slearn__back:hover { color: var(--k-primary); }
.vaff-slearn__back-ico {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.vaff-slearn__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #EAF2FF 0%, #F0F7FF 45%, #F8FAFC 100%);
  border: 1px solid #DCE8F8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.vaff-slearn__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748B;
}
.vaff-slearn__title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  line-height: 1.2;
}
.vaff-slearn__sub {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}
.vaff-slearn__class {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 8px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
}
.vaff-slearn__ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.vaff-slearn__ring {
  position: relative;
  width: 76px;
  height: 76px;
}
.vaff-slearn__ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.vaff-slearn__ring-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 3;
}
.vaff-slearn__ring-fg {
  fill: none;
  stroke: var(--k-primary);
  stroke-width: 3;
  stroke-linecap: round;
}
.vaff-slearn__ring-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}
.vaff-slearn__ring-cap {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
}
.vaff-slearn__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.vaff-slearn__stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #E8EEF5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.vaff-slearn__stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-slearn__stat-ico svg { width: 20px; height: 20px; }
.vaff-slearn__stat-ico.is-mat { background: #DBEAFE; color: #1D4ED8; }
.vaff-slearn__stat-ico.is-task { background: #FFEDD5; color: #C2410C; }
.vaff-slearn__stat-ico.is-quiz { background: #EDE9FE; color: #6D28D9; }
.vaff-slearn__stat-ico.is-done { background: #DCFCE7; color: #16A34A; }
.vaff-slearn__stat-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.vaff-slearn__stat-meta b {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}
.vaff-slearn__stat-meta span {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}
.vaff-slearn__stat.is-done .vaff-slearn__stat-meta b { color: #16A34A; }
.vaff-slearn__empty {
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed #CBD5E1;
  background: #F8FAFC;
  text-align: center;
  color: #64748B;
}
.vaff-slearn__section-title {
  margin: 4px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.vaff-slearn__toolbar {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 12px 14px;
}
.vaff-slearn__toolbar > label {
  flex: 0 0 auto;
  width: 168px;
  max-width: 100%;
  margin: 0;
  min-width: 0;
}
.vaff-slearn__toolbar-search {
  flex: 1 1 220px;
  width: auto !important;
  min-width: 200px;
  max-width: none;
}
.vaff-slearn__toolbar .k-input {
  width: 100%;
}
.vaff-slearn__filter-empty {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
  font-size: 0.9rem;
  text-align: center;
}
.vaff-slearn__flat {
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  padding: 12px;
}
.vaff-slearn__flat .vaff-slearn-unit__items {
  gap: 10px;
}
.vaff-slearn__tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vaff-slearn-unit {
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.vaff-slearn-unit.is-locked { border-style: dashed; background: #F8FAFC; }
.vaff-slearn-unit__head {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}
.vaff-slearn-unit__head::-webkit-details-marker { display: none; }
.vaff-slearn-unit__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--k-primary) 12%, #fff);
  color: var(--k-primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-slearn-unit__ico svg { width: 18px; height: 18px; }
.vaff-slearn-unit__ico.is-soft {
  background: #F1F5F9;
  color: #64748B;
}
.vaff-slearn-unit__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vaff-slearn-unit__info strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
}
.vaff-slearn-unit__counts {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-slearn-unit__prog {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 110px;
}
.vaff-slearn-unit__prog b {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  min-width: 2.5rem;
  text-align: right;
}
.vaff-slearn-unit__bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: #E2E8F0;
  overflow: hidden;
  min-width: 56px;
}
.vaff-slearn-unit__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--k-primary);
}
.vaff-slearn-unit.is-complete .vaff-slearn-unit__bar > span { background: #16A34A; }
.vaff-slearn-unit__lockpill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
}
.vaff-slearn-unit__todopill {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #FEE2E2;
}
.vaff-slearn-unit__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid #94A3B8;
  border-bottom: 2px solid #94A3B8;
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex: 0 0 auto;
  margin-left: 2px;
}
.vaff-slearn-unit[open] > .vaff-slearn-unit__head .vaff-slearn-unit__chev {
  transform: rotate(225deg);
  margin-top: 4px;
}
.vaff-slearn-unit__body {
  padding: 4px 16px 16px;
  border-top: 1px solid #F1F5F9;
  background: #FAFBFC;
}
.vaff-slearn-unit__hint,
.vaff-slearn-unit__empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
}
.vaff-slearn-unit__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.vaff-slearn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #E8EEF5;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.vaff-slearn-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}
.vaff-slearn-item.is-locked {
  opacity: .72;
  background: #F8FAFC;
}
.vaff-slearn-item__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.vaff-slearn-item__ico svg { width: 20px; height: 20px; }
.vaff-slearn-item.is-material .vaff-slearn-item__ico { background: #DBEAFE; color: #1D4ED8; }
.vaff-slearn-item.is-task .vaff-slearn-item__ico { background: #FFEDD5; color: #C2410C; }
.vaff-slearn-item.is-quiz .vaff-slearn-item__ico { background: #EDE9FE; color: #6D28D9; }
.vaff-slearn-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vaff-slearn-item__top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vaff-slearn-item__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748B;
}
.vaff-slearn-item__tick {
  font-size: 10px;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  padding: 1px 7px;
  border-radius: 999px;
}
.vaff-slearn-item__lock {
  font-size: 10px;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 1px 7px;
  border-radius: 999px;
}
.vaff-slearn-item__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaff-slearn-item__meta {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
}
.vaff-slearn-item__go {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
}
.vaff-slearn-item__go svg { width: 16px; height: 16px; }
.vaff-slearn-item__go.is-done {
  background: #16A34A;
  color: #fff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, .25);
}
.vaff-slearn-item__go.is-todo {
  background: #DC2626;
  color: #fff;
  box-shadow: 0 4px 10px rgba(220, 38, 38, .25);
}
.vaff-slearn-item__go.is-lock {
  background: #E2E8F0;
  color: #64748B;
  box-shadow: none;
}

@media (max-width: 900px) {
  .vaff-slearn__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .vaff-slearn__toolbar > label,
  .vaff-slearn__toolbar-search {
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0;
  }
  .vaff-slearn__hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .vaff-slearn__ring-wrap { align-self: flex-end; }
  .vaff-slearn__title { font-size: 1.25rem; }
  .vaff-slearn-unit__head { flex-wrap: wrap; }
  .vaff-slearn-unit__prog { width: 100%; min-width: 0; order: 5; }
}

/* Rekap nilai / analisis butir */
.vaff-rekap-pick__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
  cursor: pointer;
}
.vaff-rekap-pick__row:has(input:checked) {
  border-color: color-mix(in srgb, var(--k-primary) 45%, #E2E8F0);
  background: color-mix(in srgb, var(--k-primary) 8%, #fff);
}
.vaff-rekap-pick__row input { margin-top: 3px; }
.vaff-rekap__section { margin-bottom: 28px; }
.vaff-rekap__head {
  text-align: center;
  margin-bottom: 12px;
}
.vaff-rekap__head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.vaff-rekap__head p {
  margin: 0;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}
.vaff-rekap__scroll {
  overflow: auto;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #fff;
}
.vaff-rekap__table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
.vaff-rekap__table th,
.vaff-rekap__table td {
  border: 1px solid #94A3B8;
  padding: 5px 7px;
  white-space: nowrap;
}
.vaff-rekap__table thead th {
  background: #FDE68A;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}
.vaff-rekap__table th.is-name,
.vaff-rekap__table td.is-name {
  text-align: left;
  min-width: 160px;
  white-space: normal;
}
.vaff-rekap__table th.is-q {
  min-width: 36px;
  line-height: 1.2;
}
.vaff-rekap__qno { display: block; font-weight: 800; }
.vaff-rekap__qkey {
  display: block;
  font-weight: 700;
  color: #1E3A8A;
  font-size: 11px;
}
.vaff-rekap__table td.is-center { text-align: center; }
.vaff-rekap__table td.is-ans {
  text-align: center;
  font-weight: 700;
  min-width: 34px;
}
.vaff-rekap__table td.is-ok { background: #86EFAC; }
.vaff-rekap__table td.is-bad { background: #FCA5A5; }
.vaff-rekap__table td.is-empty { background: #F1F5F9; color: #94A3B8; }
.vaff-rekap__table td.is-essay { background: #E2E8F0; font-weight: 500; }
.vaff-rekap__table td.is-final { font-weight: 800; background: #FEF9C3; }
@media print {
  .no-print, .vaff-rekap-toolbar, .vaff-sidebar, .vaff-topbar, .vaff-bottom-nav, .back-link, [data-back-link] {
    display: none !important;
  }
  .vaff-rekap__scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .vaff-rekap__table { font-size: 10px; }
  .vaff-rekap__section { page-break-inside: avoid; }
}

/* Penilaian siswa — kartu elegan + konfirmasi mulai */
.vaff-penilai { max-width: 880px; }
.vaff-penilai__intro { margin-bottom: 18px; }
.vaff-penilai__intro h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
}
.vaff-penilai__intro p {
  margin: 0;
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
}
.vaff-penilai__list {
  display: grid;
  gap: 14px;
}
.vaff-penilai__card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  position: relative;
  overflow: hidden;
}
.vaff-penilai__card::before {
  content: " \;
 position: absolute;
 left: 0; top: 0; bottom: 0;
 width: 4px;
 background: color-mix(in srgb, var(--k-primary) 70%, #94A3B8);
}
.vaff-penilai__card.is-active::before { background: #F59E0B; }
.vaff-penilai__card.is-done::before,
.vaff-penilai__card.is-exhausted::before { background: #94A3B8; }
.vaff-penilai__card.is-locked::before { background: #EF4444; }
.vaff-penilai__card.is-window::before { background: #64748B; }
.vaff-penilai__top { padding-left: 8px; }
.vaff-penilai__meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 8px;
 margin-bottom: 8px;
}
.vaff-penilai__badge {
 display: inline-flex;
 align-items: center;
 min-height: 24px;
 padding: 0 10px;
 border-radius: 999px;
 font-size: 11px;
 font-weight: 800;
 letter-spacing: .04em;
 background: color-mix(in srgb, var(--k-primary) 12%, #fff);
 color: var(--k-primary);
}
.vaff-penilai__status {
 display: inline-flex;
 align-items: center;
 min-height: 24px;
 padding: 0 10px;
 border-radius: 999px;
 font-size: 11px;
 font-weight: 700;
 background: #F1F5F9;
 color: #475569;
}
.vaff-penilai__status.is-ready { background: #ECFDF5; color: #047857; }
.vaff-penilai__status.is-active { background: #FFF7ED; color: #C2410C; }
.vaff-penilai__status.is-done { background: #EFF6FF; color: #1D4ED8; }
.vaff-penilai__status.is-exhausted { background: #FEF2F2; color: #B91C1C; }
.vaff-penilai__status.is-locked { background: #FEE2E2; color: #991B1B; }
.vaff-penilai__status.is-window { background: #F1F5F9; color: #334155; }
.vaff-penilai__title {
 margin: 0 0 4px;
 font-size: 1.08rem;
 font-weight: 800;
 color: #0F172A;
 line-height: 1.35;
}
.vaff-penilai__sub {
 margin: 0 0 14px;
 font-size: 13px;
 color: #64748B;
}
.vaff-penilai__rules {
 list-style: none;
 margin: 0 0 12px;
 padding: 0 0 0 8px;
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 8px;
}
.vaff-penilai__rules li {
 display: flex;
 gap: 8px;
 align-items: flex-start;
 padding: 8px 10px;
 border-radius: 12px;
 background: #F8FAFC;
 border: 1px solid #E2E8F0;
 min-width: 0;
}
.vaff-penilai__rule-ico {
 flex: 0 0 28px;
 width: 28px; height: 28px;
 border-radius: 8px;
 display: grid;
 place-items: center;
 background: #fff;
 border: 1px solid #E2E8F0;
 color: var(--k-primary);
}
.vaff-penilai__ico-svg { width: 15px; height: 15px; }
.vaff-penilai__rules small {
 display: block;
 font-size: 10px;
 font-weight: 700;
 letter-spacing: .03em;
 text-transform: uppercase;
 color: #94A3B8;
}
.vaff-penilai__rules strong {
 display: block;
 font-size: 12.5px;
 font-weight: 700;
 color: #0F172A;
 line-height: 1.35;
 word-break: break-word;
}
.vaff-penilai__types {
 padding: 0 0 0 8px;
 margin-bottom: 10px;
}
.vaff-penilai__types-label,
.vaff-exam-confirm__types .lab {
 display: block;
 font-size: 11px;
 font-weight: 700;
 color: #64748B;
 margin-bottom: 6px;
}
.vaff-penilai__chips,
.vaff-exam-confirm__types .chips {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
}
.vaff-penilai__chip,
.vaff-exam-confirm__types .chips span {
 display: inline-flex;
 align-items: center;
 min-height: 26px;
 padding: 0 10px;
 border-radius: 8px;
 font-size: 12px;
 font-weight: 700;
 background: color-mix(in srgb, var(--k-primary) 8%, #fff);
 color: #1E3A5F;
 border: 1px solid color-mix(in srgb, var(--k-primary) 18%, #E2E8F0);
}
.vaff-penilai__empty-q {
 margin: 0 0 10px 8px;
 font-size: 12px;
 color: #94A3B8;
}
.vaff-penilai__hint {
 margin: 0 0 14px 8px;
 font-size: 13px;
 color: #64748B;
 line-height: 1.45;
}
.vaff-penilai__foot {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 padding-left: 8px;
 padding-top: 4px;
 border-top: 1px solid #F1F5F9;
 margin-top: 2px;
 padding-top: 12px;
}
.vaff-penilai__score {
 font-size: 13px;
 color: #475569;
}
.vaff-penilai__score b {
 font-size: 1.1rem;
 color: #0F172A;
 margin-left: 4px;
}
.vaff-penilai__live {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 13px;
 font-weight: 700;
 color: #C2410C;
}
.vaff-penilai__pulse {
 width: 8px; height: 8px;
 border-radius: 999px;
 background: #F59E0B;
 box-shadow: 0 0 0 0 rgba(245, 158, 11, .55);
 animation: vaffPenilaiPulse 1.4s ease infinite;
}
@keyframes vaffPenilaiPulse {
 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
 70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.vaff-penilai__cta {
 appearance: none;
 border: 0;
 display: inline-flex;
 align-items: center;
 gap: 8px;
 min-height: 42px;
 padding: 0 16px;
 border-radius: 12px;
 font: inherit;
 font-size: 14px;
 font-weight: 700;
 cursor: pointer;
 text-decoration: none;
 color: #fff;
 background: var(--k-primary);
 box-shadow: 0 8px 18px color-mix(in srgb, var(--k-primary) 28%, transparent);
}
.vaff-penilai__cta.is-warn {
 background: #EA580C;
 box-shadow: 0 8px 18px rgba(234, 88, 12, .28);
}
.vaff-penilai__cta.is-muted,
.vaff-penilai__cta.is-disabled {
 background: #E2E8F0;
 color: #64748B;
 box-shadow: none;
 cursor: default;
}
.vaff-penilai__cta-ico {
 display: grid;
 place-items: center;
}
.vaff-penilai__cta-ico .vaff-penilai__ico-svg { width: 16px; height: 16px; }

.vaff-exam-confirm {
 position: fixed;
 inset: 0;
 z-index: 12000;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 20px 16px;
}
.vaff-exam-confirm[hidden] { display: none !important; }
.vaff-exam-confirm__backdrop {
 position: absolute;
 inset: 0;
 background: rgba(8, 28, 72, .58);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
}
.vaff-exam-confirm__card {
 position: relative;
 z-index: 1;
 width: min(440px, calc(100vw - 32px));
 max-height: min(90vh, 720px);
 overflow: auto;
 background: #fff;
 border-radius: 20px;
 border: 1px solid #E7EEF8;
 padding: 24px 20px 18px;
 text-align: center;
 box-shadow: 0 28px 64px rgba(8, 28, 72, .32);
 animation: vaffExamConfirmIn .22s ease;
}
@keyframes vaffExamConfirmIn {
 from { transform: translateY(12px) scale(.97); opacity: 0; }
 to { transform: none; opacity: 1; }
}
.vaff-exam-confirm__ico {
 width: 56px; height: 56px;
 margin: 0 auto 12px;
 border-radius: 999px;
 display: grid;
 place-items: center;
 background: color-mix(in srgb, var(--k-primary) 12%, #fff);
 color: var(--k-primary);
}
.vaff-exam-confirm__ico.is-warn {
 background: #FFF7ED;
 color: #EA580C;
}
.vaff-exam-confirm__ico svg { width: 26px; height: 26px; }
.vaff-exam-confirm__eyebrow {
 margin: 0 0 4px;
 font-size: 12px;
 font-weight: 700;
 color: #64748B;
}
.vaff-exam-confirm__title {
 margin: 0 0 8px;
 font-size: 1.15rem;
 font-weight: 800;
 color: #0F172A;
 line-height: 1.3;
}
.vaff-exam-confirm__msg {
 margin: 0 0 14px;
 font-size: 13.5px;
 line-height: 1.5;
 color: #64748B;
}
.vaff-exam-confirm__rules {
 list-style: none;
 margin: 0 0 12px;
 padding: 0;
 text-align: left;
 border: 1px solid #E2E8F0;
 border-radius: 14px;
 overflow: hidden;
}
.vaff-exam-confirm__rules li {
 display: flex;
 justify-content: space-between;
 gap: 12px;
 padding: 9px 12px;
 border-top: 1px solid #F1F5F9;
 font-size: 12.5px;
}
.vaff-exam-confirm__rules li:first-child { border-top: 0; }
.vaff-exam-confirm__rules span { color: #64748B; }
.vaff-exam-confirm__rules strong { color: #0F172A; font-weight: 700; text-align: right; }
.vaff-exam-confirm__types {
 text-align: left;
 margin-bottom: 14px;
}
.vaff-exam-confirm__types[hidden] { display: none !important; }
.vaff-exam-confirm__actions {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px;
}
.vaff-exam-confirm__btn {
 appearance: none;
 border: 0;
 min-height: 46px;
 border-radius: 12px;
 font: inherit;
 font-size: 14px;
 font-weight: 700;
 cursor: pointer;
}
.vaff-exam-confirm__btn.is-ghost {
 background: #F1F5F9;
 color: #334155;
}
.vaff-exam-confirm__btn.is-primary {
 background: var(--k-primary);
 color: #fff;
 box-shadow: 0 8px 18px color-mix(in srgb, var(--k-primary) 28%, transparent);
}
body.exam-confirm-open { overflow: hidden; }

@media (max-width: 640px) {
 .vaff-penilai__rules { grid-template-columns: 1fr; }
 .vaff-penilai__foot { align-items: stretch; }
 .vaff-penilai__cta { width: 100%; justify-content: center; }
}
