/* ==========================================================================
   Tampilan aplikasi SSO setelah login (di atas Bootstrap 5.3).
   Satu sistem ukuran untuk semua halaman; ubah token di bawah, jangan ukuran satuan di view.

   Skala huruf : 12 (mikro/eyebrow) · 13 (bantuan) · 14 (label) · 15 (isi) · 17 (judul kartu) · 32 (judul halaman)
   Radius      : 10 kontrol (isian, tombol, item menu) · 16 kartu · 24 kartu besar halaman login · pil untuk badge/avatar
   Tinggi      : 44 kontrol · 36 kontrol kecil & tombol ikon
   Semua warna lewat token; mode gelap cukup mengganti token (html[data-theme="dark"]).
   ========================================================================== */

:root {
    --fs-micro: .75rem; --fs-help: .8125rem; --fs-label: .875rem; --fs-body: .9375rem; --fs-card-title: 1.0625rem; --fs-title: 2rem;
    --r-control: 10px; --r-control-sm: 8px; --r-card: 16px; --r-card-lg: 24px;
    --h-control: 44px; --h-control-sm: 36px;
    --appbar-height: 72px; --page-max: 1320px; --page-pad: 2.25rem;

    --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #F8FAFC; --hover: #F1F4F8;
    --line: #E1E6ED; --line-soft: #ECEFF3;
    --ink: #101C2E; --muted: #5A687C; --subtle: #8793A4;
    --primary: #0B5CA8; --primary-strong: #084A8A; --primary-soft: #EAF1F9; --primary-rgb: 11, 92, 168; --on-primary: #FFFFFF;
    --navy: #0F2742; --orange: #E8890C;
    --success: #2E7D4F; --danger: #B4372B; --warning: #9A640F; --info: #1F6F8B;
    --shadow-card: 0 1px 2px rgba(16, 28, 46, .04);
    --shadow-pop: 0 16px 36px -14px rgba(16, 28, 46, .24);

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-emphasis-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-color: var(--subtle);
    --bs-secondary-bg: var(--surface-2);
    --bs-tertiary-bg: var(--surface-2);
    --bs-border-color: var(--line);
    --bs-border-color-translucent: var(--line);
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--primary);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-link-hover-color: var(--primary-strong);
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: var(--fs-body);
    --bs-body-line-height: 1.55;
    --bs-heading-color: var(--ink);
}
:root[data-theme="dark"] {
    --bg: #0C131C; --surface: #121B27; --surface-2: #162130; --hover: #1A2636;
    --line: #233145; --line-soft: #1C2838;
    --ink: #E5EBF3; --muted: #9BA9BB; --subtle: #6F7E92;
    --primary: #5B9DE1; --primary-strong: #8ABAEC; --primary-soft: rgba(91, 157, 225, .14); --primary-rgb: 91, 157, 225; --on-primary: #0C131C;
    --navy: #DCE6F2; --orange: #F0A23A;
    --success: #5CBF88; --danger: #EE8274; --warning: #E0AE4E; --info: #5BB4CF;
    --shadow-card: none;
    --shadow-pop: 0 18px 40px -12px rgba(0, 0, 0, .65);
}

body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.015em; }
a { text-underline-offset: 3px; }
small, .small { font-size: var(--fs-help); }
::selection { background: rgba(var(--primary-rgb), .2); }

/* Bilah atas -------------------------------------------------------------------- */
.appbar {
    position: sticky; top: 0; z-index: 1030; height: var(--appbar-height);
    background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.appbar-inner { height: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); display: flex; align-items: center; gap: 1.5rem; }
.appbar-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.appbar-brand:hover { color: var(--ink); }
.brand-mark {
    width: 40px; height: 40px; border-radius: var(--r-control); background: #fff; border: 1px solid var(--line); flex: none;
    display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 9px 8px;
}
.brand-mark span { display: block; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 10px; background: #F39200; }
.brand-mark span:nth-child(2) { height: 19px; background: #0B5CA8; }
.brand-mark span:nth-child(3) { height: 14px; background: #3AAA35; }
.appbar-brand-text { font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.appbar-brand-text small { display: block; font-weight: 500; font-size: var(--fs-micro); color: var(--muted); }

.appbar-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.appbar-link {
    display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .9rem; border-radius: var(--r-control);
    color: var(--muted); font-weight: 600; font-size: var(--fs-body); text-decoration: none; white-space: nowrap;
    transition: color .15s, background-color .15s;
}
.appbar-link:hover { color: var(--ink); background: var(--hover); }
.appbar-link.active { color: var(--primary-strong); background: var(--primary-soft); }
.appbar-dropdown > .appbar-link { border: 0; background: transparent; }
.appbar-dropdown > .appbar-link::after { margin-left: .15rem; }
.appbar-dropdown .dropdown-item.active { background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; }
.appbar-tools { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.appbar-divider { width: 1px; height: 28px; background: var(--line); margin: 0 .35rem; }

.icon-btn, .theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
    display: inline-grid; place-items: center; font-size: 1.05rem; transition: color .15s, border-color .15s, background-color .15s;
}
.icon-btn:hover, .theme-toggle:hover { color: var(--primary); border-color: rgba(var(--primary-rgb), .45); background: var(--surface); }
:root[data-theme="dark"] .theme-toggle-dark, :root:not([data-theme="dark"]) .theme-toggle-light { display: none; }
.appbar-menu-toggle { display: none; }

.user-chip {
    display: flex; align-items: center; gap: .6rem; height: 44px; padding: 0 .75rem 0 .3rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.user-chip:hover { color: var(--ink); border-color: rgba(var(--primary-rgb), .45); }
.user-chip::after { display: none; }
.user-chip-name { font-weight: 600; font-size: var(--fs-label); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .bi-chevron-down { font-size: .7rem; color: var(--subtle); }

@media (max-width: 1099.98px) {
    .appbar-menu-toggle { display: inline-grid; }
    .appbar-nav {
        position: absolute; left: 0; right: 0; top: var(--appbar-height); margin: 0; padding: .75rem var(--page-pad) 1rem;
        flex-direction: column; align-items: stretch; gap: .15rem; background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-pop); display: none;
    }
    .appbar-nav.open { display: flex; }
    .appbar-link { height: var(--h-control); }
    /* Menu bertingkat dibuka datar di panel seluler. */
    .appbar-dropdown > .appbar-link { width: 100%; pointer-events: none; }
    .appbar-dropdown > .appbar-link::after { display: none; }
    .appbar-dropdown .dropdown-menu { display: block; position: static; margin: 0 !important; padding: 0 0 0 1rem; border: 0; background: transparent; box-shadow: none !important; }
    .appbar-tools { margin-left: auto; }
    .user-chip-name, .user-chip .bi-chevron-down { display: none; }
    .user-chip { padding: 0 .3rem; }
}
@media (max-width: 575.98px) {
    :root { --page-pad: 1rem; --fs-title: 1.6rem; --appbar-height: 64px; }
    .appbar-brand-text small { display: none; }
}

/* Halaman ---------------------------------------------------------------------- */
.page { max-width: var(--page-max); margin: 0 auto; padding: 2.5rem var(--page-pad) 3rem; min-height: calc(100vh - var(--appbar-height) - 58px); }
.page-footer {
    max-width: var(--page-max); margin: 0 auto; padding: 1.1rem var(--page-pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: var(--fs-help); color: var(--subtle); border-top: 1px solid var(--line);
}

/* Jejak halaman di atas judul, mis. "ADMINISTRASI / PENGGUNA" */
.eyebrow, .crumbs {
    font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 0 0 .6rem;
}
.crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li { padding-left: 0; }
.crumbs li + li::before { content: "/"; color: var(--subtle); font-weight: 500; float: none; padding: 0; }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li:last-child:not(:first-child) { color: var(--muted); }

.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.75rem; }
.page-header h1 { font-size: var(--fs-title); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: 0; }
.page-header p { color: var(--muted); margin: .5rem 0 0; max-width: 70ch; }
.page-header .badge { vertical-align: middle; }

/* Tombol: 44px, kecil 36px ------------------------------------------------------- */
.btn {
    --bs-btn-padding-y: .5625rem; --bs-btn-padding-x: 1.15rem; --bs-btn-font-size: var(--fs-body); --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--r-control); --bs-btn-line-height: 1.5; min-height: var(--h-control);
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn > .bi { font-size: 1.05em; }
.btn > .bi.me-1, .btn > .bi.me-2 { margin-right: 0 !important; }
.btn.py-2 { padding-top: .5625rem !important; padding-bottom: .5625rem !important; }
.btn-sm, .btn-group-sm > .btn {
    --bs-btn-padding-y: .375rem; --bs-btn-padding-x: .85rem; --bs-btn-font-size: var(--fs-label); --bs-btn-border-radius: var(--r-control-sm);
    min-height: var(--h-control-sm);
}
.btn-icon, .btn-sm.btn-icon { width: var(--h-control-sm); height: var(--h-control-sm); min-height: 0; padding: 0; border-radius: var(--r-control-sm); }
.btn-primary {
    --bs-btn-color: var(--on-primary); --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: var(--on-primary); --bs-btn-hover-bg: var(--primary-strong); --bs-btn-hover-border-color: var(--primary-strong);
    --bs-btn-active-color: var(--on-primary); --bs-btn-active-bg: var(--primary-strong); --bs-btn-active-border-color: var(--primary-strong);
    --bs-btn-disabled-color: var(--on-primary); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary); --bs-btn-border-color: rgba(var(--primary-rgb), .45);
    --bs-btn-hover-color: var(--primary-strong); --bs-btn-hover-bg: var(--primary-soft); --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-color: var(--primary-strong); --bs-btn-active-bg: var(--primary-soft); --bs-btn-active-border-color: var(--primary);
}
.btn-light {
    --bs-btn-color: var(--ink); --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--hover); --bs-btn-hover-border-color: color-mix(in srgb, var(--line) 60%, var(--muted));
    --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--hover); --bs-btn-active-border-color: color-mix(in srgb, var(--line) 60%, var(--muted));
}
.btn-light.btn-icon { color: var(--muted); }
.btn-light.btn-icon:hover { color: var(--ink); }
.btn-dark {
    --bs-btn-color: var(--surface); --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: var(--surface); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-color: var(--surface); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy);
}
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: color-mix(in srgb, var(--danger) 40%, transparent); --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger); --bs-btn-hover-color: #fff; }
.btn-danger { --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-color: #fff; }
.btn-success { --bs-btn-color: #fff; --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: #256A42; --bs-btn-hover-border-color: #256A42; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }

/* Isian: 44px, kecil 36px --------------------------------------------------------- */
.form-label { font-size: var(--fs-label); font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.form-label.small { font-size: var(--fs-label); }
.form-control, .form-select {
    min-height: var(--h-control); padding: .5625rem .9rem; font-size: var(--fs-body); border-radius: var(--r-control);
    border-color: var(--line); background-color: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form-select { padding-right: 2.4rem; }
textarea.form-control { line-height: 1.55; }
.form-control-sm, .form-select-sm, .input-group-sm > .form-control, .input-group-sm > .form-select, .input-group-sm > .input-group-text, .input-group-sm > .btn {
    min-height: var(--h-control-sm); padding-top: .375rem; padding-bottom: .375rem; font-size: var(--fs-label); border-radius: var(--r-control-sm);
}
.form-control:hover, .form-select:hover { border-color: color-mix(in srgb, var(--line) 55%, var(--muted)); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--primary-rgb), .7); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .14); }
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-2); color: var(--muted); }
.form-control::placeholder { color: var(--subtle); }
.input-group-text { border-radius: var(--r-control); border-color: var(--line); background: var(--surface-2); color: var(--subtle); min-height: var(--h-control); }
.input-group > .btn { border-color: var(--line); }
.input-group:not(.input-group-sm) > .btn { min-height: var(--h-control); }
.form-text { font-size: var(--fs-help); color: var(--muted); margin-top: .4rem; }
.invalid-feedback { font-size: var(--fs-help); }
.form-check-input { border-color: color-mix(in srgb, var(--line) 40%, var(--subtle)); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-top: .15em; }
.form-switch { padding-left: 3.1em; }
.form-switch .form-check-input { margin-left: -3.1em; }
.form-check-label { font-size: var(--fs-body); }
.form-check-label.small { font-size: var(--fs-label); }

/* Kartu ------------------------------------------------------------------------- */
.card { --bs-card-bg: var(--surface); --bs-card-cap-bg: var(--surface); --bs-card-border-color: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--ink); }
.card-header {
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.15rem 1.5rem; min-height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    border-top-left-radius: var(--r-card) !important; border-top-right-radius: var(--r-card) !important;
}
.card-title { font-size: var(--fs-card-title); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.card-title > .bi:first-child { display: none; }
.card-header small { display: block; font-size: var(--fs-help); color: var(--muted); margin-top: .1rem; }
.card-body { padding: 1.5rem; }
.card > .list-group:last-child { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }

/* Label bagian di dalam kartu, mis. "DATA AKUN GOOGLE" */
.section-label, .stat-label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
h3.stat-label { margin-bottom: .75rem; }

/* Statistik */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
@media (max-width: 991.98px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.03em; margin-top: .45rem; font-variant-numeric: tabular-nums; }
.stat-meta { font-size: var(--fs-help); color: var(--muted); margin-top: .2rem; }
.stat-meta a { color: var(--orange); font-weight: 600; text-decoration: none; }
.stat-meta a:hover { text-decoration: underline; }

/* Tabel ------------------------------------------------------------------------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-hover-bg: var(--hover); --bs-table-hover-color: var(--ink); margin-bottom: 0; font-size: var(--fs-body); }
.table > :not(caption) > * > * { padding: .95rem 1.5rem; border-color: var(--line-soft); }
.table thead th {
    font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle);
    background: var(--surface-2); border-bottom: 1px solid var(--line); padding-top: .8rem; padding-bottom: .8rem; white-space: nowrap;
}
.table-sm > :not(caption) > * > * { padding: .6rem 1rem; }
.card > .table-responsive:last-child .table tr:last-child td { border-bottom: 0; }
.card > .table-responsive:last-child,
.card > .list-activity:last-child { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); overflow: hidden; }
.card > .table-responsive:first-child { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); overflow: hidden; }

/* Badge: pil, satu nada ----------------------------------------------------------- */
.badge { font-weight: 600; font-size: var(--fs-micro); line-height: 1.3; padding: .28rem .65rem; border-radius: 999px; letter-spacing: .01em; }
.badge.fs-6 { font-size: var(--fs-help) !important; padding: .3rem .75rem; }
.badge-soft-success, .badge-soft-danger, .badge-soft-primary, .badge-soft-info, .badge-soft-secondary, .badge-soft-warning {
    background: color-mix(in srgb, var(--tone) 9%, transparent); color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
}
.badge-soft-success { --tone: var(--success); }
.badge-soft-danger { --tone: var(--danger); }
.badge-soft-primary { --tone: var(--primary); }
.badge-soft-info { --tone: var(--info); }
.badge-soft-secondary { --tone: var(--muted); }
.badge-soft-warning { --tone: var(--warning); }
.badge.text-bg-warning { background: var(--orange) !important; color: #fff !important; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; vertical-align: .08em; }
.status-dot.bg-success { background: var(--success) !important; }
.status-dot.bg-danger { background: var(--danger) !important; }
.status-dot.bg-warning { background: var(--warning) !important; }
.status-dot.bg-info { background: var(--info) !important; }

/* Tab bergaris bawah */
.nav-tabs { --bs-nav-tabs-border-color: var(--line); border-bottom: 1px solid var(--line); gap: 1.75rem; }
.nav-tabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .7rem 0; margin-bottom: -1px;
    color: var(--muted); font-weight: 600; font-size: var(--fs-body); background: transparent;
}
.nav-tabs .nav-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-tabs .nav-link.active { color: var(--primary-strong); border-bottom-color: var(--primary); background: transparent; }
.nav-tabs .nav-link .bi { display: none; }

/* Avatar: 32 · 40 · 72 ------------------------------------------------------------- */
.avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: var(--fs-label); letter-spacing: .02em; color: var(--primary-strong); background: var(--primary-soft);
    border: 1px solid rgba(var(--primary-rgb), .18);
}
.avatar-sm { width: 32px; height: 32px; font-size: var(--fs-micro); }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }

/* Lonceng notifikasi di bilah atas dan daftar notifikasi ---------------------------- */
.notif-bell { position: relative; text-decoration: none; }
.notif-bell.active { color: var(--primary-strong); border-color: var(--primary); }
.notif-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: var(--fs-micro); font-weight: 700; line-height: 18px; text-align: center;
}
.notif-item {
    display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line-soft);
    color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--hover); color: var(--ink); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .5rem; flex: none; background: transparent; }
.notif-item.unread .notif-dot { background: var(--primary); }
.notif-title { display: block; font-weight: 600; }
.notif-item:not(.unread) .notif-title { font-weight: 500; color: var(--muted); }
.notif-body { display: block; color: var(--muted); font-size: var(--fs-label); margin-top: .15rem; }
.notif-meta { display: block; color: var(--subtle); font-size: var(--fs-help); margin-top: .35rem; }

/* Pilihan foto per pose (profil) --------------------------------------------------- */
.pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.pose-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.pose-card.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pose-photo { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; color: var(--subtle); font-size: 2rem; position: relative; }
.pose-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pose-photo .badge { position: absolute; top: .6rem; left: .6rem; }
.pose-body { padding: .85rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pose-name { font-weight: 600; font-size: var(--fs-label); line-height: 1.3; }
.pose-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
/* Inisial aplikasi: selalu 44px, sudut sama dengan kontrol */
.app-avatar {
    width: var(--h-control) !important; height: var(--h-control) !important; border-radius: var(--r-control); font-weight: 700; font-size: 1.05rem !important;
    display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}

/* Menu samping (profil), item aktif berwarna penuh ---------------------------------- */
.side-card { padding: .75rem; }
.side-menu { display: flex; flex-direction: column; gap: .25rem; }
.side-link {
    display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 48px; padding: 0 1rem; border: 0; border-radius: var(--r-control);
    background: transparent; color: var(--muted); font-weight: 600; font-size: var(--fs-body); text-align: left; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.side-link .bi { font-size: 1.15rem; width: 1.25rem; text-align: center; }
.side-link:hover { background: var(--hover); color: var(--ink); }
.side-link.active { background: var(--primary); color: var(--on-primary); }
.side-link.danger { color: var(--danger); }
.side-link.danger:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); }
.side-divider { height: 1px; background: var(--line); margin: .5rem .25rem; }
.user-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; }
.user-card-name { font-weight: 700; font-size: var(--fs-card-title); line-height: 1.25; }
.user-card-email { color: var(--muted); font-size: var(--fs-help); word-break: break-all; }

/* Data hanya-baca: label kecil di atas nilai */
.datum-label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-bottom: .3rem; }
.datum-value { font-size: var(--fs-card-title); font-weight: 500; color: var(--ink); word-break: break-word; }
.card-section { padding: 1.5rem; border-bottom: 1px solid var(--line); }
.card-section:last-child { border-bottom: 0; }
.card-lead { padding: 1.5rem; border-bottom: 1px solid var(--line); }
.card-lead h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .3rem; }
.card-lead p { color: var(--muted); margin: 0; }

/* Kotak aplikasi di dashboard ----------------------------------------------------- */
.app-tile { height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.app-tile:hover { border-color: rgba(var(--primary-rgb), .45); box-shadow: 0 12px 28px -18px rgba(var(--primary-rgb), .55); }
.app-open { color: var(--primary); font-weight: 600; }

/* Daftar ------------------------------------------------------------------------ */
.list-activity { list-style: none; padding: 0; margin: 0; }
.list-activity li { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.list-activity li:last-child { border-bottom: 0; }
.progress-thin { height: 4px; border-radius: 2px; background: var(--line-soft); }
.progress-thin .progress-bar { background: var(--primary); border-radius: 2px; }
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state > .bi { font-size: 2.2rem; color: var(--subtle); }

/* Lain-lain ---------------------------------------------------------------------- */
.alert { border-radius: var(--r-control); font-size: var(--fs-body); }
.dropdown-menu {
    --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-hover-bg: var(--hover); --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-font-size: var(--fs-body); --bs-dropdown-border-radius: var(--r-control); --bs-dropdown-padding-y: .4rem;
    box-shadow: var(--shadow-pop) !important;
}
.dropdown-item { border-radius: var(--r-control-sm); margin: 0 .4rem; width: auto; padding: .55rem .7rem !important; }
.list-group { --bs-list-group-bg: var(--surface); --bs-list-group-border-color: var(--line); --bs-list-group-color: var(--ink); font-size: var(--fs-body); }
.pagination { --bs-pagination-color: var(--muted); --bs-pagination-bg: var(--surface); --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--hover); --bs-pagination-hover-color: var(--ink); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-disabled-bg: var(--surface-2); --bs-pagination-border-radius: var(--r-control-sm); --bs-pagination-font-size: var(--fs-label); }
code { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-soft); padding: .08em .35em; border-radius: 5px; font-size: .86em; }
pre code, .input-group code { background: none; border: 0; padding: 0; color: inherit; }
pre { border-radius: var(--r-control) !important; font-size: var(--fs-help); }
.rounded-3 { border-radius: var(--r-control) !important; }
hr { border-color: var(--line); opacity: 1; }
.min-w-0 { min-width: 0; }
