/* =====================================================================
   FAM-CPR — Tema Antarmuka
   ---------------------------------------------------------------------
   Prinsip: 60/30/10 (netral dominan, teal untuk aksi, oranye hanya
   penekanan). Pemisah memakai garis 1px, bukan bayangan tebal.
   Radius konsisten 10–12px. Spasi kelipatan 8px.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  1. TOKEN                                                           */
/* ------------------------------------------------------------------ */
:root {
	/* Warna inti */
	--primary:        #0F8A7E;
	--primary-hover:  #0C7469;
	--primary-dark:   #16324F;
	--primary-soft:   #E6F3F1;
	--accent:         #E58A3C;
	--accent-soft:    #FCF0E4;

	--success:        #0F8A7E;
	--warning:        #E5A63C;
	--danger:         #D64550;
	--danger-soft:    #FBEAEC;

	/* Netral */
	--ink:            #1B2430;
	--muted:          #6B7785;
	--line:           #E2E8EC;
	--bg:             #F4F7F9;
	--surface:        #FFFFFF;
	--surface-alt:    #F8FAFB;

	/* Warna grafik tiga konstruk (mengikuti mockup SB-06 / SB-13 / SB-16) */
	--chart-1:        #2E9E62;   /* Kesiapsiagaan */
	--chart-2:        #0F8A7E;   /* Self-Efficacy */
	--chart-3:        #E58A3C;   /* Keterampilan  */
	--chart-neutral:  #A9B4BE;   /* nilai awal    */

	/* Tipografi */
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Ukuran */
	--radius:      12px;
	--radius-sm:   10px;
	--radius-pill: 999px;
	--space:       8px;

	--header-h:     56px;
	--bottomnav-h:  64px;
	--sidebar-w:    232px;

	--tap:         44px;    /* target sentuh minimum */

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ */
/*  2. DASAR                                                           */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

img, video { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: calc(var(--space) * 3) 0; }

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.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;
}

/* ------------------------------------------------------------------ */
/*  3. TIPOGRAFI                                                       */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0 0 var(--space); color: var(--primary-dark); font-weight: 700; }

h1 { font-size: 26px; letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: 20px; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 var(--space); }

.text-muted   { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-accent  { color: var(--accent)  !important; }
.text-ink     { color: var(--ink)     !important; }

.caption { font-size: 12px; color: var(--muted); }
.lead    { font-size: 16px; color: var(--muted); }

.section-title {
	font-size: 18px; font-weight: 600; color: var(--primary-dark);
	margin: 0 0 calc(var(--space) * 2);
}

/* ------------------------------------------------------------------ */
/*  4. KERANGKA — KELUARGA (mobile-first)                              */
/* ------------------------------------------------------------------ */
.app-family {
	min-height: 100vh;
	padding-bottom: calc(var(--bottomnav-h) + var(--space) * 2);
}

.f-header {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: var(--space);
	height: var(--header-h);
	padding: 0 calc(var(--space) * 2);
	background: var(--primary-dark);
	color: #fff;
}

.f-header__back {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--tap); height: var(--tap); margin-left: calc(var(--space) * -1.5);
	color: #fff; border-radius: var(--radius-sm);
	transition: background 180ms var(--ease);
}
.f-header__back:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }

.f-header__title {
	font-size: 17px; font-weight: 700; color: #fff; margin: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.f-header__brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; flex: 0 0 32px;
	background: var(--primary); color: #fff; border-radius: 50%;
	font-size: 14px;
}

/* Logo unggahan administrator; menggantikan .brand-mark bila tersedia. */
.brand-logo {
	flex: 0 0 auto;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	padding: 2px;
}

.logo-preview {
	display: flex; align-items: center; justify-content: center;
	min-height: 140px;
	padding: calc(var(--space) * 2);
	background: var(--surface-alt);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}
.logo-preview img {
	max-width: 160px; max-height: 120px;
	object-fit: contain;
}

.brand-text { line-height: 1.15; }
.brand-text__name { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.brand-text__sub  { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.72); }

.f-main { padding: calc(var(--space) * 2); }

.f-bottomnav {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: var(--bottomnav-h);
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom);
}

.f-bottomnav__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 3px; min-height: var(--tap);
	font-size: 11px; font-weight: 600; color: var(--muted);
	transition: color 180ms var(--ease);
}
.f-bottomnav__item:hover { color: var(--primary); text-decoration: none; }
.f-bottomnav__item i { font-size: 17px; }
.f-bottomnav__item.is-active { color: var(--primary); }

/* ------------------------------------------------------------------ */
/*  5. KERANGKA — ADMIN (desktop-first, tetap responsif)               */
/* ------------------------------------------------------------------ */
.a-topbar {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between;
	gap: calc(var(--space) * 2);
	height: var(--header-h);
	padding: 0 calc(var(--space) * 3);
	background: var(--primary-dark);
	color: #fff;
}

.a-topbar__user { display: flex; align-items: center; gap: calc(var(--space) * 2); font-size: 14px; }
.a-topbar__role { color: rgba(255, 255, 255, 0.7); font-size: 12px; }

.a-burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--tap); height: var(--tap);
	background: none; border: 0; color: #fff; border-radius: var(--radius-sm);
	cursor: pointer;
}
.a-burger:hover { background: rgba(255, 255, 255, 0.12); }

.a-shell { display: flex; min-height: calc(100vh - var(--header-h)); }

.a-sidebar {
	flex: 0 0 var(--sidebar-w);
	width: var(--sidebar-w);
	background: var(--primary-dark);
	padding: calc(var(--space) * 2) var(--space);
	transition: transform 200ms var(--ease);
}

.a-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }

.a-sidebar__item {
	display: flex; align-items: center; gap: 12px;
	min-height: var(--tap);
	padding: 0 14px;
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px; font-weight: 600;
	transition: background 180ms var(--ease), color 180ms var(--ease);
}
.a-sidebar__item i { width: 18px; font-size: 15px; text-align: center; }
.a-sidebar__item:hover { background: rgba(255, 255, 255, 0.09); color: #fff; text-decoration: none; }
.a-sidebar__item.is-active { background: var(--primary); color: #fff; }

.a-content { flex: 1 1 auto; min-width: 0; padding: calc(var(--space) * 3); }

.a-backdrop {
	display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 35;
	background: rgba(22, 50, 79, 0.45);
}
.a-backdrop.is-open { display: block; }

/* ------------------------------------------------------------------ */
/*  6. JUDUL HALAMAN                                                   */
/* ------------------------------------------------------------------ */
.page-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: calc(var(--space) * 2);
	margin-bottom: calc(var(--space) * 3);
	flex-wrap: wrap;
}

.page-head__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.page-head__subtitle { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.page-head__action { display: flex; gap: var(--space); flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/*  7. KARTU                                                           */
/* ------------------------------------------------------------------ */
.card-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: calc(var(--space) * 3);
}

.card-panel + .card-panel { margin-top: calc(var(--space) * 2); }

.card-panel__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space);
	margin: calc(var(--space) * -1) 0 calc(var(--space) * 2);
	flex-wrap: wrap;
}

.card-panel--flush { padding: 0; overflow: hidden; }
.card-panel--soft  { background: var(--primary-soft); border-color: transparent; }

/* Kartu statistik ---------------------------------------------------- */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: calc(var(--space) * 2);
	margin-bottom: calc(var(--space) * 3);
}

.stat-card {
	display: flex; flex-direction: column; gap: 4px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: calc(var(--space) * 2);
	min-width: 0;
}

.stat-card--highlight { background: var(--primary-soft); border-color: var(--primary); }

.stat-card__label { font-size: 13px; color: var(--muted); }
.stat-card__value {
	font-size: 30px; font-weight: 700; line-height: 1.15;
	color: var(--primary-dark); letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}
.stat-card--highlight .stat-card__value { font-size: 22px; }
.stat-card__note { font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------------ */
/*  8. PROGRESS                                                        */
/* ------------------------------------------------------------------ */
.progress-row { margin-bottom: calc(var(--space) * 2); }
.progress-row:last-child { margin-bottom: 0; }

.progress-row__label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.progress-row__body  { display: flex; align-items: center; gap: 12px; }
.progress-row__value { font-size: 13px; font-weight: 700; min-width: 32px; text-align: right; }

.progress-track {
	flex: 1 1 auto;
	height: 12px;
	background: var(--line);
	border-radius: var(--radius-pill);
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	border-radius: var(--radius-pill);
	background: var(--primary);
	transition: width 220ms var(--ease);
}

.progress-fill--primary { background: var(--chart-2); }
.progress-fill--success { background: var(--chart-1); }
.progress-fill--accent  { background: var(--chart-3); }
.progress-fill--warning { background: var(--warning); }
.progress-fill--danger  { background: var(--danger); }
.progress-fill--neutral { background: var(--chart-neutral); }

.progress-track--lg { height: 16px; }

/* Perbandingan pre-post (SB-13) -------------------------------------- */
.compare-row {
	display: grid; grid-template-columns: 160px 1fr; gap: calc(var(--space) * 2);
	padding: calc(var(--space) * 2) 0;
	border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }

.compare-row__label { font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.compare-row__bars  { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.compare-row__line  { display: flex; align-items: center; gap: 10px; }
.compare-row__cap   { font-size: 12px; color: var(--muted); width: 40px; flex: 0 0 40px; }
.compare-row__value { font-size: 13px; font-weight: 700; width: 36px; text-align: right; }

/* ------------------------------------------------------------------ */
/*  9. BADGE                                                           */
/* ------------------------------------------------------------------ */
.badge-status {
	display: inline-flex; align-items: center;
	padding: 3px 10px;
	font-size: 12px; font-weight: 700;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	white-space: nowrap;
}

.badge-status--success { background: var(--primary-soft); color: var(--primary); border-color: #C9E6E2; }
.badge-status--warning { background: #FCF3E2; color: #A9702A; border-color: #F2DFBC; }
.badge-status--danger  { background: var(--danger-soft); color: var(--danger); border-color: #F2CBD0; }
.badge-status--muted   { background: var(--surface-alt); color: var(--muted); border-color: var(--line); }
.badge-status--primary { background: var(--primary-soft); color: var(--primary-dark); border-color: #C9E6E2; }

.badge-pending {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px;
	font-size: 12px; font-weight: 600;
	color: #A9702A; background: #FCF3E2;
	border: 1px dashed #E0C48A;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.badge-sample {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 8px;
	font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
	color: #8A5A1F; background: var(--accent-soft);
	border: 1px solid #F0D9BE;
	border-radius: 6px;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  10. TOMBOL                                                         */
/* ------------------------------------------------------------------ */
.btn-f {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--tap);
	padding: 0 20px;
	font-family: var(--font);
	font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn-f:hover { text-decoration: none; }
.btn-f:disabled, .btn-f.is-disabled { opacity: 0.5; cursor: not-allowed; }

.btn-f--primary { background: var(--primary); color: #fff; }
.btn-f--primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }

.btn-f--outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-f--outline:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary-hover); }

.btn-f--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-f--ghost:hover:not(:disabled) { background: var(--surface-alt); color: var(--ink); }

.btn-f--danger { background: var(--surface); color: var(--danger); border-color: #F2CBD0; }
.btn-f--danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }

.btn-f--block { width: 100%; }
.btn-f--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.btn-row { display: flex; gap: calc(var(--space) * 1.5); flex-wrap: wrap; }
.btn-row--split > * { flex: 1 1 0; }

/* ------------------------------------------------------------------ */
/*  11. FORM                                                           */
/* ------------------------------------------------------------------ */
.field { margin-bottom: calc(var(--space) * 2.5); }

.field__label {
	display: block;
	font-size: 13px; font-weight: 700; color: var(--muted);
	margin-bottom: 6px;
}
.field__label .req { color: var(--danger); }

.field__hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.input-f, .select-f, .textarea-f {
	display: block; width: 100%;
	min-height: var(--tap);
	padding: 10px 14px;
	font-family: var(--font); font-size: 15px; color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.textarea-f { min-height: 96px; resize: vertical; }

.input-f:focus, .select-f:focus, .textarea-f:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(15, 138, 126, 0.12);
}

.input-f.is-invalid, .select-f.is-invalid, .textarea-f.is-invalid { border-color: var(--danger); }

.field-error {
	display: flex; align-items: flex-start; gap: 6px;
	font-size: 12px; font-weight: 600; color: var(--danger);
	margin: 6px 0 0;
}

/* Pilihan radio sebagai kartu (SB-05, SB-10) -------------------------- */
.choice-list { display: flex; flex-direction: column; gap: 10px; }

.choice {
	display: flex; align-items: center; gap: 12px;
	min-height: var(--tap);
	padding: 10px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.choice:hover { border-color: var(--primary); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice__mark {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 22px; width: 22px; height: 22px;
	border: 2px solid var(--primary); border-radius: 50%;
	transition: background 160ms var(--ease);
}
.choice__mark::after {
	content: ''; width: 10px; height: 10px; border-radius: 50%;
	background: transparent; transition: background 160ms var(--ease);
}
.choice input:checked ~ .choice__mark::after { background: var(--primary); }
.choice input:checked ~ .choice__text { font-weight: 600; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--surface); }
.choice input:focus-visible ~ .choice__mark { outline: 2px solid var(--primary); outline-offset: 2px; }

.choice__text { font-size: 15px; color: var(--ink); }

.choice--letter .choice__mark {
	border-radius: 50%; border: 0; background: var(--line);
	color: var(--muted); font-size: 12px; font-weight: 700;
}
.choice--letter .choice__mark::after { display: none; }
.choice--letter input:checked ~ .choice__mark { background: var(--primary); color: #fff; }

/* Checkbox persegi (SB-03) ------------------------------------------- */
.check {
	display: flex; align-items: center; gap: 12px;
	min-height: var(--tap);
	cursor: pointer;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__mark {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 24px; width: 24px; height: 24px;
	border: 2px solid var(--primary); border-radius: 7px;
	color: transparent; font-size: 12px;
	transition: background 160ms var(--ease), color 160ms var(--ease);
}
.check input:checked ~ .check__mark { background: var(--surface); color: var(--primary); }
.check input:focus-visible ~ .check__mark { outline: 2px solid var(--primary); outline-offset: 2px; }
.check__text { font-size: 15px; }

/* Tombol pilihan sebaris (SB-04) ------------------------------------- */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }

.pill-choice {
	flex: 1 1 0; min-width: 96px;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--tap); padding: 0 12px;
	font-size: 14px; font-weight: 600; color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice:has(input:checked) { border-color: var(--primary); color: var(--primary); font-weight: 700; }

/* Rating bintang (SB-15) --------------------------------------------- */
.rating { display: flex; gap: 6px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating__star {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--tap); height: var(--tap);
	font-size: 22px; color: var(--line); cursor: pointer;
	transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.rating__star:hover { transform: scale(1.08); }
.rating__star.is-on { color: var(--accent); }

/* Ya / Tidak untuk checklist evaluator (SB-11) ------------------------ */
.yesno { display: flex; gap: calc(var(--space) * 2); }
.yesno label { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.yesno input { position: absolute; opacity: 0; pointer-events: none; }
.yesno__dot {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border: 2px solid var(--primary); border-radius: 50%;
}
.yesno__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.yesno input:checked ~ .yesno__dot::after { background: var(--primary); }
.yesno__cap { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  12. STEPPER                                                        */
/* ------------------------------------------------------------------ */
.stepper {
	display: flex; align-items: flex-start;
	list-style: none; margin: 0 0 calc(var(--space) * 3); padding: 0;
}

.stepper__item {
	position: relative;
	flex: 1 1 0;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	text-align: center;
	min-width: 0;
}

.stepper__dot {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; flex: 0 0 32px;
	border-radius: 50%;
	background: var(--line); color: var(--muted);
	font-size: 13px; font-weight: 700;
	transition: background 200ms var(--ease), color 200ms var(--ease);
	position: relative; z-index: 2;
}

.stepper__label { font-size: 12px; font-weight: 600; color: var(--muted); }

.stepper__line {
	position: absolute; top: 15px; left: 50%; width: 100%;
	height: 2px; background: var(--line); z-index: 1;
}

.stepper__item--active .stepper__dot { background: var(--primary); color: #fff; }
.stepper__item--active .stepper__label { color: var(--primary-dark); font-weight: 700; }
.stepper__item--done .stepper__dot { background: var(--primary); color: #fff; }
.stepper__item--done .stepper__line { background: var(--primary); }
.stepper__item--done .stepper__label { color: var(--ink); }

/* ------------------------------------------------------------------ */
/*  13. DAFTAR & TIMELINE                                              */
/* ------------------------------------------------------------------ */
.list-card { display: flex; flex-direction: column; gap: calc(var(--space) * 1.5); }

.list-item {
	display: flex; align-items: center; gap: calc(var(--space) * 2);
	padding: calc(var(--space) * 2);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 160ms var(--ease);
	min-width: 0;
}
a.list-item:hover { border-color: var(--primary); text-decoration: none; }

.list-item--locked { background: var(--surface-alt); }
.list-item--locked .list-item__title { color: var(--muted); }

.list-item__no {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 44px; width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--primary); color: #fff;
	font-size: 13px; font-weight: 700;
}
.list-item--locked .list-item__no { background: var(--chart-neutral); }

.list-item__body { flex: 1 1 auto; min-width: 0; }
.list-item__title { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin: 0; }
.list-item__meta  { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.list-item__side  { flex: 0 0 auto; font-size: 13px; font-weight: 700; text-align: right; }

/* Timeline learning log (SB-14) --------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline__item {
	position: relative;
	display: flex; gap: calc(var(--space) * 2);
	padding-bottom: calc(var(--space) * 3);
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 40px; width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--primary); color: #fff;
	font-size: 14px; font-weight: 700;
	z-index: 2;
}

.timeline__item:not(:last-child)::before {
	content: ''; position: absolute;
	left: 19px; top: 44px; bottom: 6px; width: 2px;
	background: var(--line);
}

.timeline__body { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.timeline__date  { font-size: 12px; font-weight: 700; color: var(--primary); }
.timeline__title { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin: 2px 0; }
.timeline__meta  { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  14. TABEL                                                          */
/* ------------------------------------------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; }

.table-f { width: 100%; border-collapse: collapse; font-size: 14px; }

.table-f th {
	padding: 14px 16px;
	text-align: left;
	font-size: 13px; font-weight: 700; color: var(--primary-dark);
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
	background: var(--surface);
}

.table-f td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

.table-f tbody tr:last-child td { border-bottom: 0; }
.table-f tbody tr:hover { background: var(--surface-alt); }

.table-f .col-actions { white-space: nowrap; text-align: right; }
.table-f .col-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/*  15. EMPTY STATE, DISCLAIMER, NOTIFIKASI                            */
/* ------------------------------------------------------------------ */
.empty-state {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: var(--space);
	padding: calc(var(--space) * 6) calc(var(--space) * 3);
	text-align: center;
	color: var(--muted);
}
.empty-state__icon  { font-size: 34px; color: var(--line); }
.empty-state__title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.empty-state__text  { font-size: 14px; margin: 0; max-width: 46ch; }
.empty-state__action { margin-top: var(--space); }

.disclaimer {
	display: flex; gap: 12px;
	padding: calc(var(--space) * 2);
	background: var(--accent-soft);
	border: 1px solid #F0D9BE;
	border-left: 3px solid var(--accent);
	border-radius: var(--radius-sm);
	font-size: 13px; line-height: 1.55;
	margin-bottom: calc(var(--space) * 3);
}
.disclaimer__icon { color: var(--accent); font-size: 16px; flex: 0 0 auto; margin-top: 2px; }
.disclaimer__body p:last-child { margin-bottom: 0; }
.disclaimer__emergency { margin-top: var(--space); padding-top: var(--space); border-top: 1px solid #F0D9BE; }
.disclaimer--compact { font-size: 12px; padding: 12px; }

.notice {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	margin-bottom: calc(var(--space) * 2);
	border: 1px solid transparent;
}
.notice--info    { background: var(--primary-soft); border-color: #C9E6E2; color: #0B5A52; }
.notice--warning { background: #FCF3E2; border-color: #F2DFBC; color: #8A5A1F; }
.notice--danger  { background: var(--danger-soft); border-color: #F2CBD0; color: #97303A; }
.notice i { margin-top: 2px; }

/* ------------------------------------------------------------------ */
/*  16. PEMUTAR VIDEO (SB-08)                                          */
/* ------------------------------------------------------------------ */
.player {
	position: relative;
	background: var(--primary-dark);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	display: flex; align-items: center; justify-content: center;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #0B1622; }

.player__placeholder {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	color: rgba(255, 255, 255, 0.82);
	text-align: center; padding: calc(var(--space) * 3);
	font-size: 13px;
}
.player__badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--primary); color: #fff; font-size: 22px;
}

.player-meta {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 12px; color: var(--muted);
	margin: calc(var(--space) * 1.5) 0 6px;
}

.segment-list { list-style: none; margin: 0; padding: 0; }
.segment-list li {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 7px 0; font-size: 14px;
}
.segment-list i { color: var(--primary); margin-top: 3px; font-size: 12px; }
.segment-list li.is-pending i { color: var(--line); }

/* ------------------------------------------------------------------ */
/*  17. UTILITAS                                                       */
/* ------------------------------------------------------------------ */
.stack   { display: flex; flex-direction: column; gap: calc(var(--space) * 2); }
.stack-1 { display: flex; flex-direction: column; gap: var(--space); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space); flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--space) * 2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--space) * 2); }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: calc(var(--space) * 2); }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space) !important; }
.mt-2 { margin-top: calc(var(--space) * 2) !important; }
.mt-3 { margin-top: calc(var(--space) * 3) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space) !important; }
.mb-2 { margin-bottom: calc(var(--space) * 2) !important; }
.mb-3 { margin-bottom: calc(var(--space) * 3) !important; }

.divider { height: 1px; background: var(--line); margin: calc(var(--space) * 2) 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }

.auth-wrap {
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	padding: calc(var(--space) * 3);
	background: var(--bg);
}
.auth-card {
	width: 100%; max-width: 420px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.auth-card__head {
	background: var(--primary-dark); color: #fff;
	padding: calc(var(--space) * 3);
}
.auth-card__head h1 { color: #fff; font-size: 20px; margin: 0; }
.auth-card__head p  { color: rgba(255, 255, 255, 0.72); font-size: 13px; margin: 4px 0 0; }
.auth-card__body { padding: calc(var(--space) * 3); }

/* ------------------------------------------------------------------ */
/*  18. RESPONSIF — uji pada 360 / 576 / 768 / 992 / 1280              */
/* ------------------------------------------------------------------ */
@media (max-width: 1279.98px) {
	.stat-card__value { font-size: 26px; }
}

@media (max-width: 991.98px) {
	.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-sidebar { grid-template-columns: minmax(0, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.a-sidebar {
		position: fixed; top: var(--header-h); bottom: 0; left: 0; z-index: 36;
		transform: translateX(-100%);
		overflow-y: auto;
	}
	.a-sidebar.is-open { transform: translateX(0); }
	.a-content { padding: calc(var(--space) * 2); }
}

@media (min-width: 992px) {
	.a-burger { display: none; }
}

@media (max-width: 767.98px) {
	body { font-size: 14px; }

	h1, .page-head__title { font-size: 22px; }

	.a-content { padding: calc(var(--space) * 2) calc(var(--space) * 1.5); }
	.card-panel { padding: calc(var(--space) * 2); }

	.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }

	.compare-row { grid-template-columns: minmax(0, 1fr); gap: var(--space); }

	/* Tabel jadi kartu bertumpuk */
	.table-f--stack thead { display: none; }
	.table-f--stack tbody tr {
		display: block;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		padding: calc(var(--space) * 1.5);
		margin-bottom: calc(var(--space) * 1.5);
		background: var(--surface);
	}
	.table-f--stack tbody tr:hover { background: var(--surface); }
	.table-f--stack td {
		display: flex; align-items: baseline; justify-content: space-between; gap: var(--space);
		padding: 6px 0; border: 0;
	}
	.table-f--stack td::before {
		content: attr(data-label);
		font-size: 12px; font-weight: 700; color: var(--muted);
		flex: 0 0 auto;
	}
	.table-f--stack .col-actions { justify-content: flex-end; padding-top: var(--space); }

	/* Tabel yang tetap tabel: kolom pertama menempel */
	.table-wrap--sticky .table-f th:first-child,
	.table-wrap--sticky .table-f td:first-child {
		position: sticky; left: 0; z-index: 1;
		background: var(--surface);
		border-right: 1px solid var(--line);
	}
}

@media (max-width: 575.98px) {
	.stat-grid { gap: var(--space); }
	.stat-card { padding: calc(var(--space) * 1.5); }
	.stat-card__value { font-size: 24px; }
	.btn-row--split { flex-direction: column; }
	.btn-row--split > * { width: 100%; }
}

@media (max-width: 400px) {
	.stat-grid { grid-template-columns: minmax(0, 1fr); }
	.stepper__label { font-size: 11px; }
	.f-bottomnav__item { font-size: 10px; }
}

/* ------------------------------------------------------------------ */
/*  19. AKSESIBILITAS GERAK                                            */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------------ */
/*  20. CETAK                                                          */
/* ------------------------------------------------------------------ */
@media print {
	.f-header, .f-bottomnav, .a-topbar, .a-sidebar, .page-head__action, .btn-f { display: none !important; }
	.a-content, .f-main { padding: 0; }
	body { background: #fff; }
	.card-panel { break-inside: avoid; }
}
