/* ============================================================
   RaporKu — aplikasi e-Rapor (tampilan app-like Android)
   Palet: navy akademik + emas, kartu putih, sudut membulat.
   ============================================================ */
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --navy-950: #071733;
  --navy-900: #0a1e3f;
  --navy-800: #0f2c59;
  --navy-700: #173c74;
  --blue: #2f6fed;
  --blue-600: #2559c9;
  --blue-50: #eef4ff;
  --blue-100: #dde8ff;
  --gold: #d9a33a;
  --gold-600: #b0821f;
  --gold-100: #fbf1d9;
  --ok: #0f9d76;
  --ok-50: #e6f7f1;
  --warn: #b4711b;
  --warn-50: #fdf2e1;
  --danger: #c0362c;
  --danger-50: #fdeceb;
  --info: #1f6fd0;
  --ink: #101a2e;
  --muted: #5b6880;
  --muted-2: #8a95a9;
  --line: rgba(15, 44, 89, 0.10);
  --line-soft: rgba(15, 44, 89, 0.06);
  --bg: #f4f6fb;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-xs: 0 1px 2px rgba(13, 32, 61, 0.05);
  --shadow-sm: 0 2px 8px rgba(13, 32, 61, 0.05), 0 10px 24px -20px rgba(13, 32, 61, 0.4);
  --shadow: 0 4px 12px rgba(13, 32, 61, 0.06), 0 24px 48px -32px rgba(13, 32, 61, 0.45);
  --shadow-lg: 0 32px 60px -30px rgba(13, 32, 61, 0.4);
  --font: 'Poppins', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --appbar-h: 62px;
  --brand: #0f2c59;
  --accent: #d9a33a;
  --grad-brand: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 4% -8%, #e3ecff 0%, rgba(227, 236, 255, 0) 62%),
    radial-gradient(760px 460px at 104% 2%, #fbf1dc 0%, rgba(251, 241, 220, 0) 58%),
    radial-gradient(700px 520px at 50% 108%, #e8eefc 0%, rgba(232, 238, 252, 0) 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
.grow { flex: 1; min-width: 0; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.p-3 { padding: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.no-print { }
.show-m { display: none; }

/* ---------------- layout ---------------- */
.app { min-height: 100vh; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 18px 16px calc(96px + var(--safe-b)); width: 100%; max-width: 1180px; margin: 0 auto; }

/* ---------------- appbar ---------------- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.appbar-inner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: var(--appbar-h); max-width: 1180px; margin: 0 auto; }
.appbar-title { flex: 1; min-width: 0; }
.appbar-title h1 { font-size: 16.5px; line-height: 1.25; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar-title p { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--navy-800); cursor: pointer; transition: background .15s, transform .12s;
}
.icon-btn:hover { background: var(--blue-50); }
.icon-btn:active { transform: scale(.95); }
.appbar-term { display: none; }

/* ---------------- sidebar (desktop) ---------------- */
.rail { display: none; }
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  overflow: hidden;
}
.brand-mark.sm { width: 36px; height: 36px; border-radius: 11px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.brand-mark.has-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rail-name { display: flex; flex-direction: column; min-width: 0; }
.rail-name strong { font-size: 14px; color: var(--navy-900); }
.rail-name span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-nav { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.rail-group { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); padding: 14px 10px 6px; }
.rail-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  color: var(--navy-800); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
}
.rail-item .ico { color: var(--muted); }
.rail-item:hover { background: var(--blue-50); }
.rail-item.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.rail-item.active .ico { color: #fff; }
.rail-foot { padding: 12px; border-top: 1px solid var(--line-soft); }
.rail-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: inherit; }
.rail-user:hover { background: var(--blue-50); }
.rail-user strong { display: block; font-size: 12.5px; color: var(--navy-900); }
.rail-user small { font-size: 11px; color: var(--muted); }

/* ---------------- bottom nav (mobile) ---------------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(170%);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -12px 30px -22px rgba(13, 32, 61, .5);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; border-radius: 14px; color: var(--muted); font-size: 10.5px; font-weight: 600;
  transition: color .15s, background .15s;
}
.bn-item .ico { width: 22px; height: 22px; }
.bn-item.active { color: var(--navy-800); }
.bn-item.active .ico { color: var(--blue); }
.bn-item.active::before { content: ''; position: absolute; }
.bn-item.active span { font-weight: 700; }
.bn-item.active { background: linear-gradient(180deg, rgba(47, 111, 237, .1), rgba(47, 111, 237, 0)); }

/* ---------------- drawer ---------------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(7, 23, 51, .45); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: min(86vw, 320px);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(-104%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  box-shadow: var(--shadow-lg); border-radius: 0 22px 22px 0;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--grad-brand); color: #fff; border-radius: 0 22px 0 0; }
.drawer-head strong { display: block; font-size: 14px; }
.drawer-head small { font-size: 11.5px; opacity: .82; }
.drawer-head .icon-btn { color: #fff; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 6px 10px 14px; }
.drawer-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; color: var(--navy-800); font-size: 14px; font-weight: 500; }
.drawer-item .ico { color: var(--muted); }
.drawer-item.active { background: var(--blue-50); color: var(--navy-900); font-weight: 600; }
.drawer-item.active .ico { color: var(--blue); }
.drawer-foot { padding: 12px; border-top: 1px solid var(--line-soft); }

/* ---------------- typography blocks ---------------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 21px; color: var(--navy-900); letter-spacing: -0.02em; }
.page-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.section-title { font-size: 15px; color: var(--navy-900); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .ico { color: var(--blue); }

/* ---------------- cards ---------------- */
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px; overflow: hidden;
}
.card.flush { padding: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.card-ic.gold { background: var(--gold-100); color: var(--gold-600); }
.card-ic.ok { background: var(--ok-50); color: var(--ok); }
.card-ic.danger { background: var(--danger-50); color: var(--danger); }
.card-title { font-size: 14.5px; color: var(--navy-900); }
.card-sub { font-size: 12px; color: var(--muted); }
.card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: minmax(0, 1fr); }
.g3 { grid-template-columns: minmax(0, 1fr); }
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 20px;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 240px; height: 240px; right: -80px; top: -110px; background: radial-gradient(circle, rgba(217, 163, 58, .38), rgba(217, 163, 58, 0) 70%); }
.hero::after { width: 300px; height: 300px; left: -120px; bottom: -180px; background: radial-gradient(circle, rgba(88, 143, 255, .3), rgba(88, 143, 255, 0) 70%); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.hero-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); font-weight: 600; }
.hero-title { font-size: 20px; line-height: 1.3; margin-top: 4px; }
.hero-sub { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 6px; max-width: 46ch; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.hero-stat { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-size: 19px; line-height: 1.2; }
.hero-stat span { font-size: 10.5px; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------------- stats ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-xs); display: flex; gap: 11px; align-items: flex-start; }
.stat-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.stat-ic.gold { background: var(--gold-100); color: var(--gold-600); }
.stat-ic.ok { background: var(--ok-50); color: var(--ok); }
.stat-ic.danger { background: var(--danger-50); color: var(--danger); }
.stat-val { font-size: 20px; font-weight: 700; color: var(--navy-900); line-height: 1.15; }
.stat-label { font-size: 11.5px; color: var(--muted); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 13px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s;
  background: #fff; color: var(--navy-800); text-align: center; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 18px -12px rgba(15, 44, 89, .9); }
.btn-primary:hover { box-shadow: 0 12px 24px -12px rgba(15, 44, 89, .8); }
.btn-gold { background: linear-gradient(135deg, #e8bd63, var(--gold)); color: #3a2a05; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--navy-800); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--navy-800); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--navy-800); }
.field-hint { font-size: 11.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 46px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .12); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6880' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ico { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; }
.input-wrap input { padding-left: 38px; }
.pw-toggle { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 9px; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--blue-50); }
.form-grid { display: grid; gap: 14px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; }
.radio-pill span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.radio-pill input:checked + span { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------------- toolbar / search ---------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .search { flex: 1; min-width: 180px; position: relative; display: flex; align-items: center; }
.toolbar .search .ico { position: absolute; left: 12px; color: var(--muted-2); }
.toolbar .search input { padding-left: 38px; height: 44px; border-radius: 13px; }
.toolbar select { width: auto; min-width: 130px; height: 44px; border-radius: 13px; }
.toolbar .btn { height: 44px; }
.filter-count { font-size: 12px; color: var(--muted); }

/* ---------------- table ---------------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.tbl thead th {
  background: #f7f9fd; text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
table.tbl tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fbfcff; }
table.tbl .num { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
table.tbl .score { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }
table.tbl .aksi { text-align: right; white-space: nowrap; }
table.tbl tfoot td { padding: 10px 12px; background: #f7f9fd; font-size: 12px; color: var(--muted); }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user strong { display: block; font-size: 13px; color: var(--navy-900); }
.cell-user small { display: block; font-size: 11.5px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

/* ---------------- chips & badges ---------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f1f4fa; color: var(--muted); white-space: nowrap; }
.chip-ok { background: var(--ok-50); color: var(--ok); }
.chip-warn { background: var(--warn-50); color: var(--warn); }
.chip-danger { background: var(--danger-50); color: var(--danger); }
.chip-info { background: var(--blue-50); color: var(--blue-600); }
.chip-gold { background: var(--gold-100); color: var(--gold-600); }
.chip-navy { background: rgba(15, 44, 89, .08); color: var(--navy-800); }
.chip-lg { height: 26px; font-size: 11.5px; padding: 0 11px; }

/* ---------------- progress ---------------- */
.progress { height: 8px; border-radius: 999px; background: rgba(15, 44, 89, .08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #5f92f5); transition: width .4s ease; }
.progress.ok > span { background: linear-gradient(90deg, var(--ok), #35c79b); }
.progress.gold > span { background: linear-gradient(90deg, var(--gold), #e8c470); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row .pct { font-size: 11.5px; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* ---------------- list ---------------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: 0; }
.list-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.list-title { font-size: 13.5px; font-weight: 600; color: var(--navy-900); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-meta { font-size: 11.5px; color: var(--muted); }
.list-row.plain { color: inherit; }

/* ---------------- alerts / toast ---------------- */
.alert { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 13px; font-size: 12.8px; margin-bottom: 14px; line-height: 1.5; }
.alert-ok { background: var(--ok-50); color: #0a6b51; border: 1px solid rgba(15, 157, 118, .2); }
.alert-err { background: var(--danger-50); color: #94231b; border: 1px solid rgba(192, 54, 44, .2); }
.alert-warn { background: var(--warn-50); color: #8a560f; border: 1px solid rgba(180, 113, 27, .2); }
.alert-info { background: var(--blue-50); color: #1b4a9c; border: 1px solid rgba(47, 111, 237, .18); }
.toast-wrap { position: fixed; left: 12px; right: 12px; bottom: calc(84px + var(--safe-b)); z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: rgba(10, 30, 63, .96); color: #fff; padding: 12px 14px; border-radius: 14px; font-size: 13px; box-shadow: var(--shadow); pointer-events: auto; animation: toastIn .22s ease; }
.toast button { background: transparent; border: 0; color: rgba(255, 255, 255, .7); font-size: 14px; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- empty state ---------------- */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--muted-2); }
.empty strong { display: block; color: var(--navy-900); font-size: 14px; margin-bottom: 4px; }
.empty p { font-size: 12.5px; max-width: 34ch; margin: 0 auto; }

/* ---------------- tabs ---------------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: rgba(15, 44, 89, .05); border-radius: 14px; margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 14px; border-radius: 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-xs); }

/* ---------------- pagination ---------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pager-info { font-size: 12px; color: var(--muted); }
.pager-btns { display: flex; gap: 6px; }
.pager-btns a, .pager-btns span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: var(--navy-800); background: #fff; }
.pager-btns a.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pager-btns span.disabled { opacity: .45; }

/* ---------------- auth ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-side { display: none; }
.auth-main { display: grid; place-items: center; padding: 20px 16px calc(22px + var(--safe-b)); }
.auth-card { width: 100%; max-width: 430px; min-width: 0; background: #fff; border-radius: 24px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); padding: 20px 18px 16px; }
.auth-card-head { margin-bottom: 18px; }
.auth-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.auth-card-head h1 { font-size: 22px; color: var(--navy-900); letter-spacing: -0.02em; }
.auth-card-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.auth-form { display: grid; gap: 14px; }
.auth-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.auth-card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted-2); text-align: center; }
.err-page { display: grid; place-items: center; padding: 20px; }
.err-card { max-width: 420px; text-align: center; background: #fff; border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.err-code { font-size: 46px; font-weight: 700; color: var(--navy-800); line-height: 1; letter-spacing: -0.03em; }
.err-card h1 { font-size: 18px; margin: 10px 0 6px; color: var(--navy-900); }
.err-card p { font-size: 13px; color: var(--muted); }
.err-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------------- khusus: nilai form ---------------- */
.nilai-table input[type=number], .nilai-table input[type=text] { height: 38px; border-radius: 10px; padding: 0 9px; font-size: 13px; text-align: center; }
.nilai-table input[type=text] { text-align: left; }
.nilai-table td { padding: 7px 8px; }
.nilai-table .col-desk { min-width: 210px; }
.nilai-table .kurung { background: #fafbff; }
.nilai-table .akhir-val { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.locked-row { background: #fbfcff; opacity: .82; }
.simpan-bar { position: sticky; bottom: calc(78px + var(--safe-b)); z-index: 30; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); margin-top: 14px; }
.simpan-bar .info { font-size: 12px; color: var(--muted); }

/* ---------------- rapor: toolbar & preview ---------------- */
.rapor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.rapor-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-holder { background: #e9edf6; border-radius: 18px; padding: 12px; overflow-x: auto; }
.sheet-scale { transform-origin: top center; }

/* ---------------- misc ---------------- */
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy-900); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--gold); } .dot.muted { background: var(--muted-2); }
.kartu-kelas { display: grid; gap: 12px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6f9bf7, #2f6fed); min-height: 4px; }
.avatar-lg { width: 56px; height: 56px; border-radius: 18px; font-size: 17px; }

/* ---------------- responsive ---------------- */
@media (min-width: 560px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 720px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-side { display: flex; }
  .auth-main { padding: 40px; }
  .auth-card { max-width: 440px; padding: 26px 24px 20px; }
}
@media (min-width: 1024px) {
  .rail {
    display: flex; flex-direction: column; width: 258px; flex: none;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px);
    border-right: 1px solid var(--line-soft); position: sticky; top: 0; height: 100vh;
  }
  .bottomnav { display: none; }
  .appbar .icon-btn[data-drawer-open] { display: none; }
  .content { padding: 24px 28px 40px; }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 26px; }
  .hero-title { font-size: 24px; }
  .page-title { font-size: 24px; }
  .col-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .simpan-bar { bottom: 16px; }
}
@media (min-width: 1280px) {
  .appbar-term { display: inline-flex; }
}
@media (max-width: 1023px) {
  .appbar { background: var(--grad-brand); border-bottom-color: transparent; }
  .appbar-title h1 { color: #fff; }
  .appbar-title p { color: rgba(255, 255, 255, .72); }
  .appbar .icon-btn { color: #fff; }
  .appbar .icon-btn:hover { background: rgba(255, 255, 255, .14); }
  .appbar .avatar { background: rgba(255, 255, 255, .18); color: #fff; }
  .show-m { display: inline-flex; }
  .hide-m { display: none !important; }
  .card { border-radius: 18px; }
}
@media (max-width: 559px) {
  .hero { padding: 18px; border-radius: 20px; }
  .hero-title { font-size: 18px; }
  .hero-stats { gap: 8px; }
  .hero-stat strong { font-size: 17px; }
  .page-title { font-size: 19px; }
  .content { padding: 14px 14px calc(92px + var(--safe-b)); }
  table.tbl { font-size: 12.5px; }
  .toolbar select { flex: 1; min-width: 0; }
  .simpan-bar { bottom: calc(82px + var(--safe-b)); }
}
@media print {
  .no-print, .appbar, .bottomnav, .rail, .drawer, .drawer-scrim, .toast-wrap { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
}

/* ---------------- komponen tambahan ---------------- */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fbfcff; }
@media (min-width: 720px) { .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check-grid .check span { font-size: 12.5px; }

.nilai-list { display: grid; gap: 12px; }
.nilai-row { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 13px 14px; box-shadow: var(--shadow-xs); }
.nr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nr-head strong { display: block; font-size: 13.5px; color: var(--navy-900); }
.nr-head small { display: block; font-size: 11.5px; color: var(--muted); }
.nr-inputs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 11px; }
.nr-field { display: flex; flex-direction: column; gap: 4px; }
.nr-field > span { font-size: 11px; font-weight: 600; color: var(--muted); }
.nr-field input, .nr-field textarea { height: 42px; font-size: 14px; }
.nr-field textarea { height: auto; min-height: 62px; font-size: 12.8px; line-height: 1.5; }
@media (min-width: 720px) {
  .nr-inputs { grid-template-columns: 110px 110px minmax(0, 1fr); align-items: start; }
}
.nilai-matrix table.tbl th a { color: inherit; }

/* ---------------- kehadiran cepat (wali kelas) ---------------- */
.hadir-list { display: grid; gap: 10px; }
.hadir-row {
  display: grid; gap: 10px; align-items: center; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-xs);
}
.hadir-row .cell-user strong { font-size: 13.5px; }
.hadir-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hadir-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hadir-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hadir-field input {
  height: 42px; padding: 0 6px; text-align: center; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; border-radius: 11px;
}
@media (min-width: 720px) {
  .hadir-row { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
  .hadir-inputs { gap: 10px; }
}

.logo-preview { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 20px; background: #f7f9fd; border: 1px dashed var(--line); overflow: hidden; margin: 0 auto; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.logo-preview span { color: var(--muted-2); }

.reset-item { cursor: pointer; display: block; }
.reset-item .card-head { align-items: flex-start; }

.inline { display: inline; }

/* ---------------- halaman masuk: panel merek ---------------- */
.auth-side {
  position: relative; overflow: hidden; flex-direction: column; justify-content: space-between;
  padding: 34px 38px; color: #fff;
  background: linear-gradient(150deg, #071733 0%, #0f2c59 52%, #173c74 100%);
}
.auth-side-bg { position: absolute; inset: 0; pointer-events: none; }
.as-orb { position: absolute; border-radius: 50%; }
.as-orb-1 { width: 430px; height: 430px; right: -130px; top: -150px; background: radial-gradient(circle, rgba(217, 163, 58, .42), rgba(217, 163, 58, 0) 68%); }
.as-orb-2 { width: 540px; height: 540px; left: -200px; bottom: -230px; background: radial-gradient(circle, rgba(88, 143, 255, .38), rgba(88, 143, 255, 0) 68%); }
.as-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.auth-brand { position: relative; display: flex; align-items: center; gap: 13px; }
.auth-mark {
  width: 54px; height: 54px; border-radius: 17px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.auth-mark.has-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.auth-mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.auth-app { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.auth-school { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.auth-copy { position: relative; max-width: 32rem; padding: 24px 0; }
.auth-copy h2 { font-size: 29px; line-height: 1.24; letter-spacing: -.02em; }
.auth-copy p { margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .78); max-width: 36ch; }
.auth-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.8px; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.auth-list li span {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  background: rgba(217, 163, 58, .22); color: #f2cf85; display: grid; place-items: center;
}
.auth-foot { position: relative; font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.auth-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.auth-mobile-brand .auth-mark { background: var(--grad-brand); color: #fff; width: 46px; height: 46px; border-radius: 14px; }
.auth-mobile-brand .auth-app { color: var(--navy-900); font-size: 17px; }
.auth-mobile-brand .auth-school { color: var(--muted); font-size: 11.5px; }
@media (min-width: 720px) { .auth-mobile-brand { display: none; } }
@media (min-width: 1024px) { .auth-side { padding: 44px 48px; } .auth-copy h2 { font-size: 33px; } }

/* ============================================================
   MOBILE APP UI — splash, tarik-segarkan, ajakan pasang, akun demo
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center;
  gap: 10px; background: var(--grad-brand); color: #fff; pointer-events: none;
  transition: opacity .38s ease, transform .38s ease;
}
.splash.is-out { opacity: 0; transform: scale(1.03); }
.splash-mark {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  animation: splashPop .5s cubic-bezier(.2, .9, .2, 1.1);
}
.splash-mark.has-logo { background: #fff; }
.splash-mark img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.splash-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; }
.splash-sub { font-size: 11.5px; color: rgba(255, 255, 255, .74); text-align: center; max-width: 74vw; }
.splash-dots { display: flex; gap: 5px; margin-top: 8px; }
.splash-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: splashDot 1s infinite ease-in-out; }
.splash-dots i:nth-child(2) { animation-delay: .15s; }
.splash-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes splashPop { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splashDot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ptr {
  position: fixed; top: 6px; left: 50%; margin-left: -20px; z-index: 150;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy-800); box-shadow: var(--shadow); opacity: 0;
  transform: translateY(-14px); transition: opacity .18s, transform .18s; pointer-events: none;
}
.ptr.is-visible { opacity: 1; }
.ptr.is-ready .ptr-ic { transform: rotate(180deg); }
.ptr-ic { display: grid; place-items: center; transition: transform .2s; }

.install-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(84px + var(--safe-b)); z-index: 120;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.install-bar .ib-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.install-bar strong { display: block; font-size: 12.5px; color: var(--navy-900); }
.install-bar small { display: block; font-size: 11px; color: var(--muted); }
.install-bar .ib-x { width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; border-radius: 9px; }
@media (min-width: 1024px) { .install-bar { bottom: 18px; left: auto; right: 18px; width: 360px; } }

/* akun demo di halaman masuk */
.demo-box {
  margin-top: 14px; padding: 12px 13px; border-radius: 14px;
  background: linear-gradient(135deg, #fbf6e8, #f4f7ff); border: 1px dashed rgba(15, 44, 89, .18);
}
.demo-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--navy-800); margin-bottom: 9px; }
.demo-head .ico { color: var(--gold-600); }
.demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.demo-pill {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 11px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); text-align: center; transition: border-color .15s, transform .12s;
}
.demo-pill:active { transform: scale(.97); }
.demo-pill.is-aktif { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .12); }
.demo-pill span { font-size: 10.5px; font-weight: 700; color: var(--navy-800); }
.demo-pill code { font-size: 10.5px; color: var(--muted); }
.demo-hint { margin: 9px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.demo-pill.is-loading { opacity: .65; pointer-events: none; }
@media (min-width: 420px) { .demo-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* sentuhan aplikasi Android: transisi halaman & umpan balik tekan */
.content { animation: pageIn .24s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bn-item { position: relative; }
.bn-item.active::after {
  content: ''; position: absolute; top: 2px; left: 50%; margin-left: -11px;
  width: 22px; height: 3px; border-radius: 999px; background: var(--blue);
}
.card, .stat, .list-row, .demo-pill, .btn { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .card:active, .stat:active { transform: scale(.994); }
  .btn:active { transform: scale(.975); }
}
html { overscroll-behavior-y: contain; }
@media (prefers-reduced-motion: reduce) {
  .content, .splash-mark, .splash-dots i { animation: none !important; }
  .card:active, .stat:active, .btn:active { transform: none !important; }
}

/* Atribut `hidden` harus selalu menang atas display dari kelas (banner, splash, dst.) */
[hidden] { display: none !important; }

/* Cegah Chrome Android memperbesar halaman saat input difokus (font < 16px). */
@media (max-width: 767px) {
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
  input[type=date], input[type=search], select, textarea { font-size: 16px; }
  .toolbar .search input, .nilai-table input[type=number], .nilai-table input[type=text] { font-size: 16px; }
  .nr-field input, .nr-field textarea { font-size: 16px; }
  .auth-card { padding: 18px 16px 14px; border-radius: 22px; }
  .auth-card-head h1 { font-size: 20px; }
  .demo-pill span { font-size: 11px; }
  .demo-pill code { font-size: 10px; }
}

/* ============================================================
   HALAMAN MASUK v3 — panel merek gelap + kartu melayang (mobile-first)
   Blok ini ditulis paling akhir sehingga menimpa aturan .auth lama.
   ============================================================ */
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #061428;
  font-feature-settings: 'cv11', 'ss01';
}
.auth-side { display: none; }

.auth-main {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 calc(20px + var(--safe-b));
  background:
    radial-gradient(120% 58% at 6% -10%, rgba(217, 163, 58, .30), rgba(217, 163, 58, 0) 62%),
    radial-gradient(95% 55% at 102% -4%, rgba(84, 132, 246, .5), rgba(84, 132, 246, 0) 64%),
    linear-gradient(162deg, #07162c 0%, #0d2a52 48%, #123a6b 100%);
  overflow: hidden;
}
.auth-main::after {
  content: '';
  position: absolute; left: -12%; right: -12%; top: -40px; height: 260px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* --- kepala merek versi HP --- */
.auth-mobile-brand {
  position: relative; z-index: 1;
  width: 100%; display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 20px 18px 30px; color: #fff;
}
.auth-mobile-brand .auth-mark {
  width: 50px; height: 50px; border-radius: 16px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.auth-mobile-brand .auth-mark.has-logo { background: #fff; }
.auth-mobile-brand .auth-mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.auth-mobile-brand .auth-app { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.auth-mobile-brand .auth-school { font-size: 11.5px; color: rgba(255, 255, 255, .72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amb-pill {
  display: inline-flex; align-items: center; gap: 5px; flex: none; height: 26px; padding: 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); color: #f6d9a0;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

/* --- kartu formulir --- */
.auth-card {
  position: relative; z-index: 2;
  width: calc(100% - 24px); max-width: 432px;
  margin: -14px auto 0; padding: 18px 16px 14px;
  background: #fff; border: 1px solid rgba(255, 255, 255, .8); border-radius: 26px;
  box-shadow: 0 34px 68px -30px rgba(3, 12, 28, .8), 0 2px 8px rgba(3, 12, 28, .06);
}
.auth-card-head { margin-bottom: 14px; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: #eef4ff; color: #2559c9;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px;
}
.auth-card-head h1 {
  font-size: 23px; line-height: 1.2; color: var(--navy-900); letter-spacing: -.025em;
}
.auth-card-head p { font-size: 12.8px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.auth-form { display: grid; gap: 13px; }
.auth-form .field-label { font-size: 12px; letter-spacing: .01em; }
.auth-card input[type=text], .auth-card input[type=password] {
  height: 52px; font-size: 16px; border-radius: 14px; background: #f7f9fd;
  border-color: rgba(15, 44, 89, .13); padding-left: 42px;
}
.auth-card input[type=text]:focus, .auth-card input[type=password]:focus {
  background: #fff; border-color: #2f6fed; box-shadow: 0 0 0 4px rgba(47, 111, 237, .13);
}
.auth-card .input-wrap > .ico { left: 14px; color: #8494b0; }
.auth-card .pw-toggle { right: 5px; width: 42px; height: 42px; border-radius: 11px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: -2px; }
.auth-row-note { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted-2); }
.auth-row-note .ico { color: #0f9d76; }
.auth-help { font-size: 11.5px; }
.auth-help[open] { flex-basis: 100%; }
.auth-help summary {
  cursor: pointer; list-style: none; color: #2559c9; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.auth-help summary::-webkit-details-marker { display: none; }
.auth-help summary::after { content: '›'; font-size: 14px; line-height: 1; transform: translateY(-1px); }
.auth-help[open] summary::after { content: '⌄'; }
.auth-help p {
  margin-top: 8px; padding: 9px 11px; border-radius: 11px; background: #f4f7fd;
  color: var(--muted); font-size: 11.5px; line-height: 1.55;
}

.btn-login {
  height: 52px; margin-top: 2px; border-radius: 15px; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; color: #fff;
  background: linear-gradient(135deg, #123a6b 0%, #2f6fed 62%, #4f8cf7 100%);
  box-shadow: 0 16px 28px -16px rgba(47, 111, 237, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-login:hover { filter: brightness(1.04); }
.btn-login:active { transform: scale(.985); }

.auth-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.auth-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--muted-2);
}
.acf-left { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acf-right { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.acf-right .ico { width: 13px; height: 13px; color: #0f9d76; }

/* --- akun demo --- */
.demo-box {
  margin-top: 14px; padding: 11px; border-radius: 16px;
  background: linear-gradient(135deg, #fdf9ee 0%, #f2f7ff 100%);
  border: 1px dashed rgba(217, 163, 58, .55);
}
.demo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.demo-ic {
  width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: #fff; color: var(--gold-600); box-shadow: inset 0 0 0 1px rgba(217, 163, 58, .38);
}
.demo-head strong { display: block; font-size: 12px; color: var(--navy-900); line-height: 1.3; }
.demo-head small { display: block; font-size: 10.5px; color: var(--muted); }
.demo-head small b { color: var(--gold-600); letter-spacing: .02em; }
.demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.demo-pill {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px;
  min-width: 0; padding: 7px 8px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(15, 44, 89, .10); text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.demo-pill:hover { border-color: rgba(47, 111, 237, .45); box-shadow: 0 8px 18px -14px rgba(15, 44, 89, .6); }
.demo-pill:active { transform: scale(.975); }
.demo-pill.is-aktif { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .12); }
.demo-pill .dp-ic {
  width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: #eef4ff; color: #2559c9;
}
.demo-pill .dp-text { min-width: 0; display: block; flex: 1; }
.demo-pill strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 11px; font-weight: 700; color: var(--navy-900); line-height: 1.25; overflow: hidden;
}
.demo-pill code {
  display: block; font-size: 10px; color: var(--muted); font-family: var(--font);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo-pill.is-loading { opacity: .6; pointer-events: none; }
.demo-hint { margin: 9px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

/* --- panel merek (desktop) --- */
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .auth-side {
    position: relative; display: flex; flex-direction: column;
    min-height: 100dvh; padding: 44px 48px 30px; color: #fff; overflow: hidden;
    background: linear-gradient(160deg, #04101f 0%, #0a2144 46%, #123a6b 100%);
  }
  .auth-main { min-height: 100dvh; padding: 38px 30px; justify-content: center; background: #eef1f8; }
  .auth-main::after { display: none; }
  .auth-mobile-brand { display: none; }
  .auth-card { margin: 0 auto; width: 100%; max-width: 432px; padding: 26px 26px 20px; }
  .auth-card-head h1 { font-size: 25px; }
  .auth-side-bg { position: absolute; inset: 0; pointer-events: none; }
  .as-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
  .as-orb { position: absolute; border-radius: 50%; }
  .as-orb-1 { width: 460px; height: 460px; right: -150px; top: -170px; background: radial-gradient(circle, rgba(217, 163, 58, .42), rgba(217, 163, 58, 0) 68%); }
  .as-orb-2 { width: 560px; height: 560px; left: -220px; bottom: -240px; background: radial-gradient(circle, rgba(88, 143, 255, .40), rgba(88, 143, 255, 0) 68%); }
  .as-orb-3 { width: 240px; height: 240px; left: 42%; top: 34%; background: radial-gradient(circle, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%); }

  .auth-brand { position: relative; display: flex; align-items: center; gap: 13px; }
  .auth-mark {
    width: 54px; height: 54px; border-radius: 17px; flex: none; overflow: hidden;
    display: grid; place-items: center; background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  }
  .auth-mark.has-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
  .auth-mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
  .auth-app { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
  .auth-school { font-size: 12.5px; color: rgba(255, 255, 255, .72); }

  .auth-copy { position: relative; max-width: 34rem; padding: 30px 0 0; }
  .auth-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    color: #f4d79c; font-size: 9.8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  }
  .ae-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
  .auth-copy h2 { margin-top: 16px; font-size: 34px; line-height: 1.16; letter-spacing: -.03em; }
  .auth-copy h2 em { font-style: normal; color: #f2cf85; }
  .auth-copy p { margin-top: 13px; font-size: 13.4px; line-height: 1.68; color: rgba(255, 255, 255, .74); max-width: 42ch; }
  .auth-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
  .auth-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.6px; color: rgba(255, 255, 255, .82); line-height: 1.5; }
  .auth-list li span {
    width: 22px; height: 22px; border-radius: 7px; flex: none; margin-top: 1px;
    background: rgba(217, 163, 58, .18); color: #f2cf85; display: grid; place-items: center;
  }
  .auth-list strong { color: #fff; font-weight: 600; }

  .auth-preview { position: relative; width: 302px; margin: 28px 0 0 4px; transform: rotate(-3deg); }
  .ap-sheet { background: #fff; border-radius: 13px; padding: 14px 14px 12px; box-shadow: 0 34px 54px -28px rgba(2, 10, 24, .95); }
  .ap-kop { display: flex; align-items: center; gap: 8px; }
  .ap-logo { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #0f2c59, #2f6fed); flex: none; }
  .ap-kop-text { flex: 1; display: grid; gap: 4px; min-width: 0; }
  .ap-kop-text i { display: block; height: 5px; border-radius: 3px; background: #e2e8f4; }
  .ap-kop-text i:first-child { width: 72%; height: 6px; background: #0f2c59; }
  .ap-kop-text i:last-child { width: 92%; }
  .ap-photo { width: 22px; height: 28px; border-radius: 4px; background: #eef2fb; border: 1px dashed #c9d4e8; flex: none; }
  .ap-title { display: block; height: 8px; width: 62%; margin: 12px auto 0; border-radius: 4px; background: linear-gradient(90deg, #0f2c59, #2f6fed); }
  .ap-sub { display: block; height: 5px; width: 40%; margin: 6px auto 0; border-radius: 3px; background: #e2e8f4; }
  .ap-table { margin-top: 12px; display: grid; gap: 5px; }
  .ap-tr { display: grid; grid-template-columns: 16px 1fr 32px 24px; gap: 6px; }
  .ap-tr i { display: block; height: 7px; border-radius: 3px; background: #eef2fa; }
  .ap-tr i:nth-child(1) { background: #e4eaf7; }
  .ap-tr i:nth-child(3) { background: #dbe6ff; }
  .ap-tr-head i { background: #d6e1f5; height: 8px; }
  .ap-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 15px; }
  .ap-sign i { display: block; height: 15px; border-bottom: 1px solid #dbe3f2; }
  .ap-badge {
    position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 7px 10px;
    border-radius: 12px; background: #fff; font-size: 9.5px; color: #5b6880;
    box-shadow: 0 18px 32px -18px rgba(2, 10, 24, .9); animation: apFloat 5.5s ease-in-out infinite;
  }
  .ap-badge strong { font-size: 12px; color: #0f2c59; }
  .ap-badge-pdf { right: -16px; top: -18px; border-bottom: 2px solid #d9a33a; }
  .ap-badge-lock { left: -20px; bottom: 16px; animation-delay: -2.6s; border-bottom: 2px solid #0f9d76; }

  .auth-foot {
    position: relative; margin-top: auto; padding-top: 22px;
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    font-size: 11px; color: rgba(255, 255, 255, .48);
  }
  .af-sep { opacity: .6; }
}
@media (min-width: 1120px) {
  .auth-side { padding: 48px 56px 32px; }
  .auth-copy h2 { font-size: 37px; }
  .auth-preview { width: 326px; }
}
@media (min-width: 900px) and (max-height: 780px) {
  .auth-preview { display: none; }
}
@keyframes apFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-badge { animation: none !important; }
}
