/* Module: layout/container.css — Layout Shell */
/* --------------------------------------------------------------------------
   3. Layout Shell
   -------------------------------------------------------------------------- */
.and-layout {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
    max-width: var(--and-content-max);
    margin-inline: auto;
    padding-top: var(--and-page-inset-top);
    padding-bottom: calc(var(--and-nav-total) + 8px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.and-layout--ambient:not(.and-layout--quran)::before {
    content: '';
    position: fixed;
    top: 20%;
    right: 5%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: rgba(192, 132, 252, 0.16);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

/* Tanpa ambient glow ungu (BAST Mandiri barang-baru, dll.) */
.and-layout--no-ambient.and-layout--ambient::before,
.and-layout--no-ambient.and-layout--ambient::after,
body.and-body--stm-barang-baru .and-layout--ambient::before,
body.and-body--stm-barang-baru .and-layout--ambient::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    filter: none !important;
    box-shadow: none !important;
    content: none !important;
    pointer-events: none !important;
}

/* Al-Qur'an — tanpa ambient glow ungu */
.and-layout--quran.and-layout--ambient::before,
.and-layout--quran.and-layout--ambient::after,
body.and-body--quran-surat .and-layout--ambient::before,
body.and-body--quran-surat .and-layout--ambient::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    filter: none !important;
    box-shadow: none !important;
    content: none !important;
    pointer-events: none !important;
}

.and-page-header {
    position: sticky;
    top: calc(var(--and-page-inset-top) + 8px);
    z-index: 50;
    margin: 8px var(--and-space-md) 0;
    min-height: 56px;
    padding: 10px var(--and-space-md);
    display: flex;
    align-items: center;
    gap: var(--and-space-sm);
    border-radius: var(--and-radius-2xl);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--and-shadow-glass);
    outline: 1px solid rgba(255, 255, 255, 0.4);
}

.and-page-header--dashboard {
    min-height: 72px;
    padding: 12px 16px;
    gap: 12px;
}

.and-page-header__search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.and-page-header__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.and-page-header__search-input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border-radius: var(--and-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.4);
    color: var(--and-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: background var(--and-transition), border-color var(--and-transition), box-shadow var(--and-transition);
}

.and-page-header__search-input::placeholder {
    color: #94a3b8;
}

.and-page-header__search-input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 90, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}

.and-page-header__search:focus-within .and-page-header__search-icon {
    color: var(--and-accent);
}

.and-page-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.and-page-header__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--and-text-primary);
    flex: 1;
    letter-spacing: -0.02em;
}

.and-page-header__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--and-radius-full);
    color: #64748b;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--and-shadow-sm);
    outline: 1px solid rgba(255, 255, 255, 0.3);
    transition: background var(--and-transition), color var(--and-transition), transform var(--and-transition);
}

.and-page-header__action:hover,
.and-page-header__action:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    color: var(--and-accent);
    outline: none;
    transform: scale(1.04);
}

.and-page-header__action:active {
    transform: scale(0.96);
}

/* Home notifikasi live slider */
.and-home-notif-slider {
    margin-bottom: 20px;
    padding: 18px 20px 16px;
    border-radius: 2.5rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.52) 0%, rgba(30, 58, 95, 0.16) 52%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #0f172a;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    outline: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: box-shadow .25s ease, border-color .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.and-home-notif-slider--unread {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

.and-home-notif-slider--pulse {
    animation: and-home-notif-pulse .6s ease 2;
}

@keyframes and-home-notif-pulse {
    0%, 100% { box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12); }
    50% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18), 0 8px 24px -12px rgba(15, 23, 42, 0.12); }
}

.and-home-notif-slider__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.and-home-notif-slider .and-live-badge--notif {
    background: rgba(255, 255, 255, 0.78);
    color: #b45309;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.16);
}

.and-home-notif-slider .and-live-badge--notif .and-live-badge__dot {
    background: #eab308;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.28);
}

.and-home-notif-slider .and-live-badge__bell {
    flex-shrink: 0;
    color: #ca8a04;
    stroke: #ca8a04;
}

.and-home-notif-slider__time {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.and-home-notif-slider__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    transition: opacity .3s ease;
}

.and-home-notif-slider__body.is-fading {
    opacity: 0;
}

.and-home-notif-slider__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    color: #ca8a04;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.and-home-notif-slider__icon--orange,
.and-home-notif-slider__icon--blue,
.and-home-notif-slider__icon--green,
.and-home-notif-slider__icon--rose,
.and-home-notif-slider__icon--amber,
.and-home-notif-slider__icon--indigo,
.and-home-notif-slider__icon--muted,
.and-home-notif-slider__icon--gold {
    color: #ca8a04;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.and-home-notif-slider__icon--gold svg,
.and-home-notif-slider__icon svg {
    color: #ca8a04;
    stroke: #ca8a04;
}

.and-home-notif-slider__text {
    min-width: 0;
    flex: 1;
}

.and-home-notif-slider__title {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.and-home-notif-slider__message {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.and-home-notif-slider__count {
    flex-shrink: 0;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 5px;
    border-radius: var(--and-radius-full);
    background: rgba(255, 255, 255, 0.78);
    color: #b45309;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.24);
    font-size: 0.625rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.and-home-notif-slider__progress-track {
    height: 4px;
    border-radius: var(--and-radius-full);
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.and-home-notif-slider__progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width .35s ease;
}

.and-home-notif-slider__progress-bar--done {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.and-home-notif-slider__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 90, 0, 0.22);
    border-radius: 999px;
    background: rgba(255, 90, 0, 0.1);
    color: #c2410c;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.and-home-notif-slider__btn:active {
    transform: scale(0.98);
}

/* Liquid Hub dashboard layout */
.and-main--dashboard {
    padding-top: 12px;
    padding-bottom: calc(var(--and-nav-height) + var(--and-nav-float-gap) + var(--and-safe-bottom) + 24px);
}

.and-dash-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.and-dash-burger {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--and-radius-full);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #334155;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.and-dash-burger:active {
    transform: scale(0.96);
}

.and-dash-burger[aria-expanded="true"] {
    color: var(--and-accent);
    border-color: rgba(255, 90, 0, 0.25);
    background: rgba(255, 90, 0, 0.08);
}

.and-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.and-nav-drawer[hidden] {
    display: none !important;
}

.and-nav-drawer:not([hidden]) {
    display: block;
    visibility: visible;
}

.and-nav-drawer.is-open {
    pointer-events: auto;
}

.and-nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    transition: opacity var(--and-nav-ease-out);
    will-change: opacity;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.and-nav-drawer.is-open .and-nav-drawer__backdrop {
    opacity: 1;
}

.and-nav-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--and-nav-sidebar-bg);
    border-radius: 0 20px 20px 0;
    border-right: 1px solid var(--and-nav-sidebar-border);
    box-shadow: 4px 0 24px -12px rgba(15, 23, 42, 0.18);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.and-nav-drawer__panel::before,
.and-nav-drawer__panel::after {
    display: none;
}

.and-nav-drawer.is-open .and-nav-drawer__panel {
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {

    .and-nav-drawer__backdrop,
    .and-nav-drawer__panel,
    .and-nav-drawer__indicator,
    .and-nav-drawer__link,
    .and-nav-drawer__link-icon,
    .and-nav-drawer__link-label {
        transition: none !important;
    }
}

.and-nav-drawer__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(var(--and-safe-top) + 16px) 16px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--and-nav-sidebar-border);
}

.and-nav-drawer__brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.and-nav-drawer__brand-logo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
    box-shadow: none;
}

.and-nav-drawer__brand-name {
    flex: 1;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--and-nav-text);
    letter-spacing: -0.025em;
}

.and-nav-drawer__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--and-nav-icon-bg);
    border: 1px solid var(--and-nav-sidebar-border);
    color: var(--and-nav-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    transition: background var(--and-nav-ease), color var(--and-nav-ease), transform var(--and-nav-ease);
}

.and-nav-drawer__close:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.1);
}

.and-nav-drawer__nav {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.and-nav-drawer__indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
    border-radius: 10px;
    background: var(--and-nav-active-bg);
    border: none;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        transform var(--and-nav-ease-out),
        width var(--and-nav-ease-out),
        height var(--and-nav-ease-out),
        opacity var(--and-nav-ease);
    will-change: transform, width, height;
}

/* Mobile: indicator dimatikan — highlight aktif sudah dari .is-active (solid).
   Sliding pill + will-change di atas layer scroll sering kedip di WebView Android. */
body:not(.and-body--desktop-nav) .and-nav-drawer__indicator {
    display: none !important;
    will-change: auto;
}

.and-nav-drawer__indicator.is-initial {
    transition: none !important;
}

.and-nav-drawer__section {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.and-nav-drawer__section:last-child {
    margin-bottom: 6px;
}

.and-nav-drawer__section-title {
    margin: 0 0 8px;
    padding: 0 8px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--and-nav-text-muted);
    opacity: 0.85;
}

.and-nav-drawer__groups {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.and-nav-drawer__group-panel[hidden],
.and-nav-drawer__subgroup-panel[hidden] {
    display: none !important;
}

/* ── Grup menu (opaque — cegah indicator tembus ke submenu) ── */
.and-nav-drawer__group {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--and-nav-group-bg);
    border: 1px solid var(--and-nav-sidebar-border);
    isolation: isolate;
}

.and-nav-drawer__group.is-open {
    background: var(--and-nav-group-bg);
    border-color: var(--and-nav-sidebar-border);
}

.and-nav-drawer__group:has(.and-nav-drawer__link.is-active),
.and-nav-drawer__group.has-active {
    border-color: rgba(255, 138, 26, 0.4);
}

.and-nav-drawer__group-toggle {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    min-height: 44px;
    border: none;
    border-radius: 0;
    background: var(--and-nav-group-bg);
    color: var(--and-nav-text);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--and-nav-ease), color var(--and-nav-ease);
}

.and-nav-drawer__group-toggle:active {
    transform: scale(0.99);
}

.and-nav-drawer__group.is-open > .and-nav-drawer__group-toggle {
    background: var(--and-nav-group-open-bg);
    color: var(--and-nav-text);
}

.and-nav-drawer__group:has(.and-nav-drawer__link.is-active) > .and-nav-drawer__group-toggle,
.and-nav-drawer__group.has-active > .and-nav-drawer__group-toggle {
    color: var(--and-nav-parent-fg);
    background: var(--and-nav-parent-bg);
}

.and-nav-drawer__group-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--and-nav-icon-fg);
    background: var(--and-nav-icon-bg);
    border: none;
    transition: color var(--and-nav-ease), background var(--and-nav-ease);
}

.and-nav-drawer__group.is-open .and-nav-drawer__group-icon {
    background: var(--and-nav-sidebar-border);
    color: var(--and-nav-text);
}

.and-nav-drawer__group:has(.and-nav-drawer__link.is-active) .and-nav-drawer__group-icon,
.and-nav-drawer__group.has-active .and-nav-drawer__group-icon {
    color: var(--and-nav-active);
    background: var(--and-nav-active-icon-bg);
}

.and-nav-drawer__group-label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.25;
}

.and-nav-drawer__group-chevron {
    flex-shrink: 0;
    color: var(--and-nav-text-muted);
    display: flex;
    transition: transform 0.2s ease, color 0.15s ease;
}

.and-nav-drawer__group.is-open .and-nav-drawer__group-chevron {
    transform: rotate(180deg);
    color: var(--and-nav-text);
}

.and-nav-drawer__group:has(.and-nav-drawer__link.is-active) .and-nav-drawer__group-chevron,
.and-nav-drawer__group.has-active .and-nav-drawer__group-chevron {
    color: var(--and-nav-parent-fg);
}

.and-nav-drawer__group-panel {
    position: relative;
    z-index: 1;
    padding: 4px 6px 8px;
    background: var(--and-nav-group-open-bg);
    border-top: 1px solid var(--and-nav-sidebar-border);
}

/* ── Sub-menu item (solid, redup) ── */
.and-nav-drawer__links--sub {
    gap: 3px;
    padding-top: 2px;
}

.and-nav-drawer__links--sub .and-nav-drawer__link {
    padding: 7px 9px 7px 12px;
    gap: 9px;
    border-radius: 8px;
    background: var(--and-nav-group-open-bg);
}

.and-nav-drawer__links--sub .and-nav-drawer__link.is-active,
.and-nav-drawer__links--sub .and-nav-drawer__link.is-navigating {
    background: var(--and-nav-active-bg);
}

.and-nav-drawer__links--sub .and-nav-drawer__link:not(.is-active) .and-nav-drawer__link-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: var(--and-nav-sub-icon);
    box-shadow: none;
}

.and-nav-drawer__links--sub .and-nav-drawer__link:not(.is-active) .and-nav-drawer__link-label {
    color: var(--and-nav-sub-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.and-nav-drawer__links--top {
    margin-bottom: 6px;
}

/* ── Subgrup nested: bedakan overlay, tanpa border ekstra ── */
.and-nav-drawer__subgroup {
    position: relative;
    z-index: 1;
    margin: 4px 0;
    border-radius: 10px;
    background: var(--and-nav-nested-bg);
    border: none;
    overflow: hidden;
    isolation: isolate;
}

.and-nav-drawer__subgroup-toggle {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 10px;
    border: none;
    border-radius: 0;
    background: var(--and-nav-nested-bg);
    color: var(--and-nav-sub-text);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--and-nav-ease), color var(--and-nav-ease);
}

.and-nav-drawer__subgroup-toggle:active {
    background: var(--and-nav-nested-panel-bg);
}

.and-nav-drawer__subgroup-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--and-nav-sub-icon);
    background: var(--and-nav-icon-bg);
    border: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__subgroup-icon,
.and-nav-drawer__subgroup.has-active .and-nav-drawer__subgroup-icon {
    color: var(--and-nav-active);
    background: var(--and-nav-active-icon-bg);
}

.and-nav-drawer__subgroup-label {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.25;
}

.and-nav-drawer__subgroup-chevron {
    flex-shrink: 0;
    color: var(--and-nav-text-muted);
    display: flex;
    transition: transform 0.2s ease, color 0.15s ease;
}

.and-nav-drawer__subgroup.is-open .and-nav-drawer__subgroup-chevron {
    transform: rotate(180deg);
    color: var(--and-nav-sub-text);
}

.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__subgroup-toggle,
.and-nav-drawer__subgroup.has-active .and-nav-drawer__subgroup-toggle,
.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__subgroup-label,
.and-nav-drawer__subgroup.has-active .and-nav-drawer__subgroup-label {
    color: var(--and-nav-parent-fg);
    background: var(--and-nav-parent-bg);
}

.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__subgroup-chevron,
.and-nav-drawer__subgroup.has-active .and-nav-drawer__subgroup-chevron {
    color: var(--and-nav-parent-fg);
}

.and-nav-drawer__subgroup-panel {
    position: relative;
    z-index: 1;
    padding: 4px 6px 6px;
    margin: 0;
    border: none;
    background: var(--and-nav-nested-panel-bg);
}

.and-nav-drawer__links--nested {
    gap: 2px;
    padding-top: 2px;
}

/* Nested submenu (Pengaturan di dalam Halaqoh / Pengasuhan / Akademik) */
.and-nav-drawer__links--nested > .and-nav-drawer__subgroup {
    margin: 4px 0 2px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.and-nav-drawer__links--nested > .and-nav-drawer__subgroup > .and-nav-drawer__subgroup-toggle {
    padding: 8px 10px;
    min-height: 40px;
    background: transparent;
}

.and-nav-drawer__links--nested > .and-nav-drawer__subgroup > .and-nav-drawer__subgroup-panel {
    background: rgba(255, 255, 255, 0.55);
}

.and-nav-drawer__links--nested > .and-nav-drawer__subgroup .and-nav-drawer__links--nested {
    padding-left: 4px;
}

.and-nav-drawer__links--nested .and-nav-drawer__link {
    padding: 6px 8px 6px 10px;
    gap: 8px;
    border-radius: 7px;
    background: var(--and-nav-nested-panel-bg);
}

.and-nav-drawer__links--nested .and-nav-drawer__link.is-active,
.and-nav-drawer__links--nested .and-nav-drawer__link.is-navigating {
    background: var(--and-nav-active-bg);
}

.and-nav-drawer__links--nested .and-nav-drawer__link:not(.is-active) .and-nav-drawer__link-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: transparent;
    border: none;
    color: var(--and-nav-nested-text);
    box-shadow: none;
}

.and-nav-drawer__links--nested .and-nav-drawer__link:not(.is-active) .and-nav-drawer__link-label {
    color: var(--and-nav-nested-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.and-nav-drawer__subgroup.is-open > .and-nav-drawer__subgroup-toggle {
    background: var(--and-nav-parent-bg);
    color: var(--and-nav-sub-text);
}

.and-nav-drawer__subgroup.is-open,
.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active),
.and-nav-drawer__subgroup.has-active {
    background: var(--and-nav-parent-bg);
}

.and-nav-drawer__subgroup.is-open .and-nav-drawer__subgroup-panel,
.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__subgroup-panel,
.and-nav-drawer__subgroup.has-active .and-nav-drawer__subgroup-panel {
    background: var(--and-nav-parent-bg);
}

.and-nav-drawer__subgroup.is-open .and-nav-drawer__links--nested .and-nav-drawer__link:not(.is-active):not(.is-navigating),
.and-nav-drawer__subgroup:has(.and-nav-drawer__link.is-active) .and-nav-drawer__links--nested .and-nav-drawer__link:not(.is-active):not(.is-navigating),
.and-nav-drawer__subgroup.has-active .and-nav-drawer__links--nested .and-nav-drawer__link:not(.is-active):not(.is-navigating) {
    background: var(--and-nav-parent-bg);
}

/* ── Link umum ── */
.and-nav-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.and-nav-drawer__link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    min-height: 44px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--and-nav-ease), transform 0.1s ease, background var(--and-nav-ease);
}

.and-nav-drawer__link.is-pressing {
    transform: scale(0.985);
}

.and-nav-drawer__link.is-pressing .and-nav-drawer__link-icon {
    transform: scale(0.94);
    transition-duration: 0.1s;
}

/* Aktif — solid opaque (menutupi indicator di belakang) */
.and-nav-drawer__link.is-navigating,
.and-nav-drawer__link.is-active {
    background: var(--and-nav-active-bg);
    z-index: 2;
}

.and-nav-drawer__link.is-navigating .and-nav-drawer__link-icon,
.and-nav-drawer__link.is-active .and-nav-drawer__link-icon {
    background: var(--and-nav-active-icon-bg);
    color: var(--and-nav-active-icon-fg);
    border: none;
    box-shadow: none;
}

.and-nav-drawer__link.is-navigating .and-nav-drawer__link-label,
.and-nav-drawer__link.is-active .and-nav-drawer__link-label {
    color: var(--and-nav-active-fg);
    font-weight: 700;
    text-shadow: none;
}

.and-nav-drawer__link-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--and-nav-icon-fg);
    background: var(--and-nav-icon-bg);
    border: none;
    box-shadow: none;
    transition:
        transform var(--and-nav-ease),
        color var(--and-nav-ease),
        background var(--and-nav-ease);
}

.and-nav-drawer__link-label {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--and-nav-text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--and-nav-ease);
}

.and-nav-drawer__badge {
    flex-shrink: 0;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ff5a00;
    color: #fff;
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    box-shadow: none;
}

.and-nav-drawer__badge[hidden] {
    display: none !important;
}

.and-nav-drawer__loading {
    margin: 0;
    padding: 24px 12px;
    font-size: 0.8125rem;
    color: var(--and-nav-brown-text-muted);
    text-align: center;
}

.and-nav-drawer__profile {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 10px 12px calc(var(--and-safe-bottom) + 12px);
    background: #2a1f19;
    border-top: 1px solid var(--and-nav-sidebar-border);
    box-shadow: none;
}

.and-nav-drawer__profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--and-nav-group-bg);
    border: 1px solid var(--and-nav-sidebar-border);
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--and-nav-ease);
}

.and-nav-drawer__profile-card:active {
    background: var(--and-nav-group-open-bg);
}

.and-nav-drawer__avatar-btn {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.and-nav-drawer__avatar-btn:active .and-nav-drawer__avatar {
    transform: scale(0.94);
}

.and-nav-drawer__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--and-nav-icon-bg);
    color: var(--and-nav-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.15s ease;
    box-shadow: none;
}

.and-nav-drawer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.and-nav-drawer__profile-text {
    flex: 1;
    min-width: 0;
}

.and-nav-drawer__name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-nav-drawer__role {
    margin: 2px 0 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--and-nav-text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-nav-drawer__logout {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--and-nav-text-muted);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid var(--and-nav-sidebar-border);
    background: var(--and-nav-icon-bg);
    transition: background 0.15s ease, color 0.15s ease;
}

.and-nav-drawer__logout:active {
    background: var(--and-nav-group-open-bg);
    border-color: var(--and-nav-sidebar-border);
    color: var(--and-nav-text);
}

body.and-nav-drawer-open {
    overflow: hidden;
    padding-right: var(--and-scrollbar-comp, 0px);
}

/* Desktop / tablet landscape — sidebar persisten, tanpa bottom bar */
@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
    :root {
        --and-sidebar-width: 264px;
    }

    body.and-body--desktop-nav {
        overflow: hidden;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding-right: 0;
    }

    body.and-body--desktop-nav.and-nav-drawer-open {
        overflow: hidden;
        padding-right: 0;
    }

    body.and-body--desktop-nav #and-spa-app {
        margin-left: var(--and-sidebar-width);
        width: calc(100% - var(--and-sidebar-width));
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    body.and-body--desktop-nav .and-bottom-nav,
    body.and-body--desktop-nav #and-spa-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.and-body--desktop-nav .and-dash-burger,
    body.and-body--desktop-nav #andPageBurger,
    body.and-body--desktop-nav #andHomeHeroBurger,
    body.and-body--desktop-nav .and-home-hero__burger,
    body.and-body--desktop-nav #andTopBurger {
        display: none !important;
    }

    body.and-body--desktop-nav .and-layout {
        padding-bottom: calc(var(--and-safe-bottom) + 16px);
    }

    body.and-body--desktop-nav .and-main--dashboard {
        padding-bottom: calc(var(--and-safe-bottom) + 24px);
        padding-top: calc(var(--and-page-inset-top) + 8px);
    }

    body.and-body--desktop-nav .and-nav-drawer,
    .and-nav-drawer.and-nav-drawer--pinned {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: var(--and-sidebar-width);
        height: 100dvh !important;
        max-height: 100dvh;
        z-index: 200;
        pointer-events: auto;
        visibility: visible;
        display: block;
        transform: none !important;
        will-change: auto;
        inset: 0 auto 0 0;
    }

    body.and-body--desktop-nav .and-nav-drawer[hidden],
    .and-nav-drawer.and-nav-drawer--pinned[hidden] {
        display: block !important;
    }

    body.and-body--desktop-nav .and-nav-drawer__backdrop,
    .and-nav-drawer.and-nav-drawer--pinned .and-nav-drawer__backdrop {
        display: none;
    }

    body.and-body--desktop-nav .and-nav-drawer__close,
    .and-nav-drawer.and-nav-drawer--pinned .and-nav-drawer__close {
        display: none;
    }

    body.and-body--desktop-nav .and-nav-drawer__panel,
    .and-nav-drawer.and-nav-drawer--pinned .and-nav-drawer__panel {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        transform: none !important;
        transition: none !important;
        will-change: auto;
        box-shadow: none;
        border-right: 1px solid var(--and-nav-sidebar-border);
    }

    body.and-body--desktop-nav .and-nav-drawer.is-open .and-nav-drawer__panel,
    .and-nav-drawer.and-nav-drawer--pinned .and-nav-drawer__panel {
        transform: none !important;
    }

    /* Top bar desktop: jangan hide saat scroll */
    body.and-body--desktop-nav #and-spa-topbar.and-top-nav,
    body.and-body--desktop-nav .and-top-nav {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: none;
    }

    body.and-body--desktop-nav .and-top-nav.is-scroll-hidden {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: none;
    }

    body.and-body--desktop-nav .and-top-nav__shell {
        pointer-events: auto;
    }

    body.and-body--desktop-nav #and-spa-topbar {
        left: var(--and-sidebar-width);
        width: calc(100% - var(--and-sidebar-width));
        max-width: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .and-nav-drawer__link:not(.is-active):hover {
            background: rgba(255, 255, 255, 0.06);
        }

        .and-nav-drawer__group-toggle:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .and-nav-drawer__close:hover,
        .and-nav-drawer__logout:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--and-nav-text);
        }

        .and-top-nav__item:hover .and-top-nav__icon--chip,
        .and-top-nav__item:hover .and-top-nav__icon--fab {
            background: #fff7ed;
            border-color: rgba(194, 65, 12, 0.4);
        }

        .and-bottom-nav__item:not(.and-bottom-nav__item--center):not(.is-active):hover .and-bottom-nav__icon {
            background: var(--and-nav-chip-active-bg);
            border-color: var(--and-nav-chip-active-border);
        }
    }
}

.and-dash-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.and-dash-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pencarian dengan AI smart search â€” ikon orange */
.and-dash-search--smart .and-dash-search__icon {
    color: #ff5a00;
}

.and-dash-search--smart .and-dash-search__input:focus {
    border-color: rgba(255, 90, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}

/* Voice search â€” field shell + mic slot */
.and-dash-search--has-voice {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.and-dash-search--has-voice .and-dash-search__field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: var(--and-radius-full);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: var(--and-elev-1);
    overflow: hidden;
    transition: border-color var(--and-nav-ease), box-shadow var(--and-nav-ease);
}

.and-dash-search--has-voice .and-dash-search__field.is-voice-active {
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1), 0 4px 16px -4px rgba(15, 23, 42, 0.08);
}

.and-dash-search--has-voice .and-dash-search__icon {
    position: static;
    transform: none;
    flex-shrink: 0;
    margin-left: 14px;
    margin-right: 2px;
}

.and-dash-search--has-voice .and-dash-search__search-spinner {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.and-dash-search--has-voice .and-dash-search__input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 12px 10px 12px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.and-dash-search--has-voice .and-dash-search__input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.and-voice-search__slot {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    margin-right: 4px;
}

.and-voice-search__slot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.and-voice-search__ripples {
    position: absolute;
    inset: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.and-voice-search__ripples span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(22, 163, 74, 0.4);
    animation: and-voice-ripple 1.4s ease-out infinite;
}

.and-voice-search__ripples span:nth-child(2) { animation-delay: 0.45s; }

.and-voice-search__slot.is-active .and-voice-search__ripples {
    opacity: 1;
}

.and-voice-search__btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 90, 0, 0.1);
    color: #ff5a00;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.and-voice-search__btn:active {
    transform: scale(0.92);
}

.and-voice-search__btn .and-voice-search__icon--stop {
    display: none;
}

.and-voice-search__btn.is-active {
    background: #16a34a;
    color: #fff;
}

.and-voice-search__btn.is-active .and-voice-search__icon--mic {
    display: none;
}

.and-voice-search__btn.is-active .and-voice-search__icon--stop {
    display: block;
}

.and-voice-search__strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: var(--and-radius-full);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.09) 0%, rgba(22, 163, 74, 0.04) 100%);
    border: 1px solid rgba(22, 163, 74, 0.14);
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
    animation: and-voice-fade-in 0.22s ease;
}

.and-voice-search__strip.is-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-color: rgba(220, 38, 38, 0.18);
    color: #b91c1c;
}

.and-voice-search__strip.is-error .and-voice-search__dot {
    background: #dc2626;
    animation: none;
}

.and-voice-search__strip[hidden] {
    display: none !important;
}

.and-voice-search__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: and-voice-pulse-dot 1.1s ease-in-out infinite;
}

.and-voice-search__strip-text {
    line-height: 1.3;
}

@keyframes and-voice-ripple {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes and-voice-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes and-voice-fade-in {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .and-voice-search__ripples span,
    .and-voice-search__dot,
    .and-voice-search__strip,
    .and-restock-search-panel.is-open {
        animation: none !important;
    }
}

.and-barang-top:has(.and-dash-search.is-voice-active) {
    align-items: flex-start;
}

.and-dash-search__input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: var(--and-radius-full);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: var(--and-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    box-shadow: var(--and-elev-1);
}

/* Ikon absolute — pastikan teks/placeholder tidak tertimpa */
.and-dash-search > .and-dash-search__input,
.and-dash-search .and-dash-search__field > .and-dash-search__input {
    box-sizing: border-box;
}

.and-dash-search:not(.and-dash-search--ai):not(.and-dash-search--has-voice) > .and-dash-search__input,
.and-dash-search.and-dash-search--smart:not(.and-dash-search--has-voice) > .and-dash-search__input,
.and-dash-search.and-dash-search--vision:not(.and-dash-search--has-voice) > .and-dash-search__input {
    padding-left: 46px;
}

.and-dash-search--ai .and-dash-search__shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: var(--and-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5a00 100%);
    box-shadow: 0 2px 10px -2px rgba(255, 90, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        box-shadow var(--and-nav-ease-out),
        border-color var(--and-nav-ease-out),
        transform var(--and-nav-ease);
}

.and-dash-search--ai .and-dash-search__input {
    flex: 1;
    min-width: 0;
    padding: 14px 8px 14px 18px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.and-dash-search__input::placeholder {
    color: #94a3b8;
}

.and-dash-search--ai .and-dash-search__input::placeholder {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.and-dash-search__input:focus {
    border-color: rgba(255, 90, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1);
}

.and-dash-search--ai .and-dash-search__input:focus {
    outline: none;
    box-shadow: none;
}

.and-dash-search__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #ff5a00;
    box-shadow: none;
    opacity: 0.72;
    transform: scale(0.9);
    transition:
        opacity var(--and-nav-ease-out),
        transform var(--and-nav-ease-out),
        background var(--and-nav-ease),
        margin var(--and-nav-ease-out),
        width var(--and-nav-ease-out),
        height var(--and-nav-ease-out);
}

.and-dash-search__action svg {
    display: block;
}

/* Ask anything â€” tombol mic + voice input */
.and-dash-search__mic {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #ff5a00;
    box-shadow: none;
    opacity: 0.88;
    transform: scale(0.92);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        opacity var(--and-nav-ease-out),
        transform var(--and-nav-ease-out),
        background var(--and-nav-ease),
        box-shadow var(--and-nav-ease),
        width var(--and-nav-ease-out),
        height var(--and-nav-ease-out),
        margin var(--and-nav-ease-out);
}

.and-dash-search__mic .and-voice-ask__icon--stop {
    display: none;
}

.and-dash-search__mic.is-listening {
    opacity: 1;
    transform: scale(1);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
    animation: and-voice-ask-mic-pulse 1.15s ease-in-out infinite;
}

.and-dash-search__mic.is-listening .and-voice-ask__icon--mic {
    display: none;
}

.and-dash-search__mic.is-listening .and-voice-ask__icon--stop {
    display: block;
}

.and-voice-ask__ripples {
    position: absolute;
    inset: -5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.and-dash-search__mic.is-listening .and-voice-ask__ripples {
    opacity: 1;
}

.and-voice-ask__ripples span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    animation: and-voice-ask-ripple 1.35s ease-out infinite;
}

.and-voice-ask__ripples span:nth-child(2) {
    animation-delay: 0.42s;
}

.and-voice-ask__waves {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    transform: translateY(-50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.and-voice-ask__waves.is-active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.and-voice-ask__waves span {
    display: block;
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.92);
    transform-origin: center bottom;
    animation: and-voice-ask-wave 0.9s ease-in-out infinite;
}

.and-voice-ask__waves span:nth-child(1) { animation-delay: 0s; }
.and-voice-ask__waves span:nth-child(2) { animation-delay: 0.12s; }
.and-voice-ask__waves span:nth-child(3) { animation-delay: 0.24s; }
.and-voice-ask__waves span:nth-child(4) { animation-delay: 0.16s; }
.and-voice-ask__waves span:nth-child(5) { animation-delay: 0.08s; }

.and-dash-search--ai.is-voice-active .and-dash-search__input::placeholder {
    color: rgba(255, 255, 255, 0.95);
}

.and-voice-ask__strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 4px 2px;
    padding: 9px 16px;
    border-radius: var(--and-radius-full);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 90, 0, 0.16);
    box-shadow: var(--and-elev-1);
    font-size: 0.75rem;
    font-weight: 700;
    color: #c2410c;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity var(--and-nav-ease-out),
        transform var(--and-nav-ease-out);
}

.and-voice-ask__strip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.and-voice-ask__strip[hidden] {
    display: none !important;
}

.and-voice-ask__strip.is-error {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(255, 255, 255, 0.96);
}

.and-voice-ask__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a00;
    animation: and-voice-ask-dot 1.05s ease-in-out infinite;
}

.and-voice-ask__strip.is-error .and-voice-ask__dot {
    background: #dc2626;
    animation: none;
}

@keyframes and-voice-ask-wave {
    0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
    50% { transform: scaleY(1.35); opacity: 1; }
}

@keyframes and-voice-ask-shell-glow {
    0%, 100% {
        box-shadow:
            0 4px 16px -6px rgba(255, 90, 0, 0.32),
            0 0 0 2px rgba(255, 255, 255, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }
    50% {
        box-shadow:
            0 6px 18px -6px rgba(255, 90, 0, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
}

@keyframes and-voice-ask-mic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes and-voice-ask-ripple {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

@keyframes and-voice-ask-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Ask anything â€” expand full width ala Dynamic Island saat focus */
.and-dash-top {
    position: relative;
    transition: gap 0.58s cubic-bezier(0.34, 1.22, 0.64, 1);
}

.and-dash-top .and-dash-burger,
.and-dash-top .and-page-context-icon,
.and-dash-top .and-dash-bell {
    flex: 0 0 50px;
    transition:
        opacity 0.5s cubic-bezier(0.34, 1.15, 0.64, 1),
        transform 0.56s cubic-bezier(0.34, 1.22, 0.64, 1),
        flex 0.58s cubic-bezier(0.34, 1.22, 0.64, 1),
        max-width 0.58s cubic-bezier(0.34, 1.22, 0.64, 1),
        width 0.58s cubic-bezier(0.34, 1.22, 0.64, 1),
        margin 0.58s cubic-bezier(0.34, 1.22, 0.64, 1);
}

.and-dash-search--ai {
    flex: 1 1 0;
    min-width: 0;
    transition:
        flex 0.58s cubic-bezier(0.34, 1.22, 0.64, 1),
        max-width 0.58s cubic-bezier(0.34, 1.22, 0.64, 1);
}

.and-dash-search--ai::before {
    content: '';
    position: absolute;
    inset: -6px -4px;
    border-radius: var(--and-radius-full);
    background: linear-gradient(135deg, rgba(255, 154, 77, 0.42) 0%, rgba(255, 90, 0, 0.3) 100%);
    opacity: 0;
    filter: blur(12px);
    z-index: 0;
    pointer-events: none;
    transition:
        opacity 0.58s cubic-bezier(0.34, 1.15, 0.64, 1),
        inset 0.58s cubic-bezier(0.34, 1.22, 0.64, 1);
}

.and-dash-top:has(.and-dash-search--ai:focus-within),
.and-dash-top.is-ask-island,
.and-dash-top.is-voice-ask-active {
    gap: 0;
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-burger,
.and-dash-top:has(.and-dash-search--ai:focus-within) .and-page-context-icon,
.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-bell,
.and-dash-top.is-ask-island .and-dash-burger,
.and-dash-top.is-ask-island .and-page-context-icon,
.and-dash-top.is-ask-island .and-dash-bell,
.and-dash-top.is-voice-ask-active .and-dash-burger,
.and-dash-top.is-voice-ask-active .and-page-context-icon,
.and-dash-top.is-voice-ask-active .and-dash-bell {
    opacity: 0;
    transform: scale(0.78);
    flex: 0 0 0;
    max-width: 0;
    width: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.and-dash-top.is-ask-island:not(.is-ask-island--leaving) .and-dash-burger,
.and-dash-top.is-ask-island:not(.is-ask-island--leaving) .and-page-context-icon,
.and-dash-top.is-ask-island:not(.is-ask-island--leaving) .and-dash-bell {
    transition-delay: 0s;
}

.and-dash-top.is-ask-island--leaving .and-dash-burger,
.and-dash-top.is-ask-island--leaving .and-page-context-icon,
.and-dash-top.is-ask-island--leaving .and-dash-bell {
    transition-delay: 0.2s;
    transition-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search--ai,
.and-dash-top.is-ask-island .and-dash-search--ai,
.and-dash-top.is-voice-ask-active .and-dash-search--ai {
    flex: 1 1 100%;
    max-width: 100%;
}

.and-dash-top.is-ask-island:not(.is-ask-island--leaving) .and-dash-search--ai {
    transition-delay: 0.08s;
}

.and-dash-top.is-ask-island--leaving .and-dash-search--ai {
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search--ai::before,
.and-dash-top.is-ask-island .and-dash-search--ai::before,
.and-dash-top.is-voice-ask-active .and-dash-search--ai::before {
    opacity: 1;
    inset: -8px -2px;
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search--ai .and-dash-search__shell,
.and-dash-top.is-ask-island .and-dash-search--ai .and-dash-search__shell,
.and-dash-top.is-voice-ask-active .and-dash-search--ai .and-dash-search__shell {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 16px -6px rgba(255, 90, 0, 0.32),
        0 0 0 2px rgba(255, 255, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    animation: and-ask-island-breathe 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.and-dash-top.is-voice-ask-active .and-dash-search--ai.is-voice-active .and-dash-search__shell,
.and-dash-search--ai.is-voice-active .and-dash-search__shell {
    animation: and-voice-ask-shell-glow 1.6s ease-in-out infinite;
}

.and-dash-top.is-ask-island--leaving .and-dash-search--ai .and-dash-search__shell {
    animation: none;
    transition-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search--ai .and-dash-search__input,
.and-dash-top.is-ask-island .and-dash-search--ai .and-dash-search__input {
    padding: 15px 10px 15px 20px;
}

.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search__action,
.and-dash-top.is-ask-island .and-dash-search__action,
.and-dash-top:has(.and-dash-search--ai:focus-within) .and-dash-search__mic,
.and-dash-top.is-ask-island .and-dash-search__mic,
.and-dash-top.is-voice-ask-active .and-dash-search__mic {
    opacity: 1;
    transform: scale(1);
    width: 36px;
    height: 36px;
    margin-right: 10px;
    background: #fff;
    color: #ff5a00;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.and-dash-top.is-ask-island:not(.is-ask-island--leaving) .and-dash-search__action {
    transition-delay: 0.16s;
}

.and-dash-top.is-ask-island--leaving .and-dash-search__action {
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
}

@keyframes and-ask-island-breathe {

    0%,
    100% {
        box-shadow:
            0 4px 16px -6px rgba(255, 90, 0, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    50% {
        box-shadow:
            0 6px 18px -6px rgba(255, 90, 0, 0.38),
            0 0 0 3px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {

    .and-dash-top,
    .and-dash-top .and-dash-burger,
    .and-dash-top .and-dash-bell,
    .and-dash-search--ai,
    .and-dash-search--ai::before,
    .and-dash-search--ai .and-dash-search__shell,
    .and-dash-search--ai .and-dash-search__input,
    .and-dash-search__action,
    .and-dash-search__mic,
    .and-voice-ask__waves span,
    .and-voice-ask__ripples span,
    .and-voice-ask__dot,
    .and-voice-ask__strip {
        transition: none !important;
        transition-delay: 0s !important;
        animation: none !important;
    }
}

.and-dash-bell {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--and-radius-full);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 90, 0, 0.22);
    color: #ff5a00;
    box-shadow: 0 4px 16px -4px rgba(255, 90, 0, 0.14);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.and-dash-bell svg {
    stroke: #ff5a00;
    fill: none;
}

.and-dash-bell--unread {
    background: rgba(255, 90, 0, 0.14);
    border-color: rgba(255, 90, 0, 0.38);
    box-shadow: 0 4px 18px -4px rgba(255, 90, 0, 0.28);
}

.and-dash-bell--unread svg {
    stroke: #ff5a00;
}

.and-dash-bell:active {
    transform: scale(0.96);
}

.and-dash-bell__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--and-radius-full);
    background: #ff5a00;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 90, 0, 0.45);
}

.and-dash-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.and-dash-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--and-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.06);
}

.and-stats-grid--liquid {
    gap: 14px;
    margin-bottom: 28px;
}

.and-stats-grid--liquid .and-stat-card {
    border-radius: 2.5rem;
    padding: 22px 20px;
    min-height: 148px;
}

.and-stat-card__watermark {
    position: absolute;
    right: -6px;
    bottom: -10px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.14;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
    pointer-events: none;
    color: inherit;
}

.and-stat-card--barang .and-stat-card__watermark {
    color: #6366f1;
}

.and-stat-card--pinjam .and-stat-card__watermark {
    color: #3b82f6;
}

.and-stat-card--requests .and-stat-card__watermark {
    color: #d97706;
}

.and-stat-card--damaged .and-stat-card__watermark {
    color: #e11d48;
}

.and-ai-home-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 28px;
    padding: 28px 20px 24px;
    border-radius: 2.5rem;
    background: linear-gradient(165deg, rgba(255, 140, 66, 0.48) 0%, rgba(255, 90, 0, 0.14) 52%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    outline: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px -16px rgba(255, 90, 0, 0.18);
    color: #9a3412;
}

.and-ai-home-widget__icon-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 90, 0, 0.18);
    color: #ff5a00;
    box-shadow: 0 8px 20px -10px rgba(255, 90, 0, 0.2);
}

.and-ai-home-widget__badge {
    position: absolute;
    top: 0;
    right: -20px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    color: #ff5a00;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.and-ai-home-widget__badge--limit {
    color: #e11d48;
}

.and-ai-home-widget__title {
    margin: 0 0 20px;
    font-size: 1.3125rem;
    font-weight: 800;
    color: #c2410c;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.and-ai-home-widget__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.and-ai-home-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.and-ai-home-widget__btn--primary {
    background: rgba(255, 255, 255, 0.88);
    color: #ff5a00;
    border: 1px solid rgba(255, 90, 0, 0.2);
    box-shadow: 0 8px 18px -8px rgba(255, 90, 0, 0.22);
}

.and-ai-home-widget__btn--ghost {
    background: rgba(255, 90, 0, 0.06);
    color: #c2410c;
    border: 1.5px solid rgba(255, 90, 0, 0.22);
}

.and-ai-home-widget__btn:active {
    transform: scale(0.98);
    opacity: 0.94;
}

.and-nav-drawer__link[data-and-nav-key="quran-surat"] .and-nav-drawer__link-icon {
    color: #d4a574;
}

/* â”€â”€ Home: menu cepat (glass iOS) â”€â”€ */
.and-home-quick__panel {
    padding: 18px 14px 14px;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(28px) saturate(185%);
    -webkit-backdrop-filter: blur(28px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        0 16px 48px -20px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.and-home-quick__head {
    padding: 0 6px 14px;
}

.and-home-quick__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--and-text, #0f172a);
}

.and-home-quick__sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.52);
}

.and-home-quick__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.and-home-quick__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 12px;
    border-radius: 1.35rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        0 8px 24px -14px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.and-home-quick__card:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.55);
}

.and-home-quick__orb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.and-home-quick__card--violet .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(167, 139, 250, 0.14));
    color: #6d28d9;
}

.and-home-quick__card--sky .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.28), rgba(56, 189, 248, 0.14));
    color: #0369a1;
}

.and-home-quick__card--mint .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(52, 211, 153, 0.14));
    color: #047857;
}

.and-home-quick__card--rose .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.26), rgba(251, 113, 133, 0.14));
    color: #be123c;
}

.and-home-quick__card--amber .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.14));
    color: #b45309;
}

.and-home-quick__card--indigo .and-home-quick__orb {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(129, 140, 248, 0.14));
    color: #4338ca;
}

.and-home-quick__plus {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, #334155, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.45);
}

.and-home-quick__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    color: rgba(15, 23, 42, 0.82);
    letter-spacing: -0.01em;
}

/* Home persona: tahfizh / akademik modules */
.and-home-persona-quick {
    margin-bottom: 1rem;
}

.and-home-quick--secondary {
    margin-top: 0.25rem;
}

.and-home-ai-st-row--compact {
    grid-template-columns: 1fr;
}

.and-stat-card__value--text {
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.and-home-akad-modules__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.and-home-akad-mod {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 10px;
    border-radius: 1.15rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.and-home-akad-mod:active {
    transform: scale(0.985);
}

.and-home-akad-mod__orb {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.and-home-akad-mod--sabaq .and-home-akad-mod__orb {
    background: rgba(14, 165, 233, 0.16);
    color: #0369a1;
}

.and-home-akad-mod--sabqi .and-home-akad-mod__orb {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.and-home-akad-mod--manzil .and-home-akad-mod__orb {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.and-home-akad-mod__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-home-akad-mod__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.and-home-akad-mod__sub {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.55);
}

.and-home-akad-mod__chev {
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 300;
    color: rgba(15, 23, 42, 0.35);
    line-height: 1;
}

/* Layanan — panel sama Akses Cepat, grid 2x2 */
.and-home-layanan__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.and-home-layanan__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 1.1rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.66);
    -webkit-tap-highlight-color: transparent;
}

.and-home-layanan__card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.62);
}

.and-home-layanan__orb {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.and-home-layanan__card--mint .and-home-layanan__orb {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.and-home-layanan__card--indigo .and-home-layanan__orb {
    background: rgba(99, 102, 241, 0.16);
    color: #4338ca;
}

.and-home-layanan__card--rose .and-home-layanan__orb {
    background: rgba(244, 63, 94, 0.14);
    color: #be123c;
}

.and-home-layanan__card--amber .and-home-layanan__orb {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.and-home-layanan__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-home-layanan__label {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.and-home-layanan__desc {
    font-size: 0.6875rem;
    color: rgba(15, 23, 42, 0.52);
    line-height: 1.25;
}

.and-main--home-tahfizh .and-thz-quick__card--sky .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--sky .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.28), rgba(56, 189, 248, 0.14));
    color: #0369a1;
}

.and-main--home-tahfizh .and-thz-quick__card--violet .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--violet .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(167, 139, 250, 0.14));
    color: #6d28d9;
}

.and-main--home-tahfizh .and-thz-quick__card--indigo .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--indigo .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(129, 140, 248, 0.14));
    color: #4338ca;
}

.and-main--home-tahfizh .and-thz-quick__card--mint .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--mint .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(52, 211, 153, 0.14));
    color: #047857;
}

.and-main--home-tahfizh .and-thz-quick__card--amber .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--amber .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.14));
    color: #b45309;
}

.and-main--home-tahfizh .and-thz-quick__card--rose .and-thz-quick__orb,
.and-main--home-akademik .and-thz-quick__card--rose .and-thz-quick__orb {
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.26), rgba(251, 113, 133, 0.14));
    color: #be123c;
}

.and-home-quick__grid:has(.and-home-quick__card:nth-child(5)):not(:has(.and-home-quick__card:nth-child(6))) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.and-home-quick__grid:has(.and-home-quick__card:nth-child(5)):not(:has(.and-home-quick__card:nth-child(6))) .and-home-quick__card:nth-child(-n+3) {
    grid-column: span 2;
}

.and-home-quick__grid:has(.and-home-quick__card:nth-child(5)):not(:has(.and-home-quick__card:nth-child(6))) .and-home-quick__card:nth-child(4) {
    grid-column: 2 / span 2;
}

.and-home-quick__grid:has(.and-home-quick__card:nth-child(5)):not(:has(.and-home-quick__card:nth-child(6))) .and-home-quick__card:nth-child(5) {
    grid-column: 4 / span 2;
}

@media (max-width: 360px) {
    .and-home-quick__orb {
        width: 46px;
        height: 46px;
    }

    .and-home-quick__label {
        font-size: 0.66rem;
    }
}

.and-stat-card__head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.and-stats-grid--liquid .and-stat-card__icon {
    display: none;
}

.and-stat-card__badge {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: var(--and-radius-full);
}

.and-stat-card__badge--success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.and-stat-card__badge--muted {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.and-stat-card__badge--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.and-stat-card__badge--danger {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}

.and-stats-grid--liquid .and-stat-card__label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    opacity: 0.65;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.and-stats-grid--liquid .and-stat-card__value {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.and-stat-card__value--danger {
    color: #e11d48;
}

.and-stat-card--requests .and-stat-card__icon {
    --and-icon-bg: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.and-stat-card--damaged .and-stat-card__icon {
    --and-icon-bg: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}

.and-panel {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: 22px 20px;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.and-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.and-panel__title {
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.and-panel__subtitle {
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    opacity: 0.75;
}

.and-panel__menu {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.6);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.and-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 200px;
    padding-top: 8px;
}

.and-chart-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.and-chart-bars__col>span {
    margin-top: 10px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    opacity: 0.6;
}

.and-chart-bars__track {
    width: 100%;
    height: var(--h, 70%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1.25rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.and-chart-bars__fill {
    width: 100%;
    height: var(--f, 60%);
    border-radius: 1.25rem;
    background: linear-gradient(to top, rgba(255, 90, 0, 0.92), rgba(96, 165, 250, 0.72));
}

.and-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--and-radius-full);
    background: rgba(16, 185, 129, 0.1);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #059669;
}

.and-live-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: and-live-pulse 1.5s ease-in-out infinite;
}

@keyframes and-live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.and-live-feed__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.and-live-feed__item:last-child {
    margin-bottom: 0;
}

.and-live-feed__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    font-size: 1.125rem;
    font-weight: 900;
    color: #64748b;
}

.and-live-feed__icon--add {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.and-live-feed__icon--loan {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

.and-live-feed__icon--alert {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.2);
}

.and-barang-outstanding {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.and-asset-row--outstanding .and-asset-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    flex-shrink: 0;
}

.and-live-feed__title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
}

.and-live-feed__sub {
    margin-top: 2px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    opacity: 0.75;
}

.and-panel--home-feed .and-panel__head {
    margin-bottom: 4px;
}

.and-home-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.and-home-feed__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.14s ease;
}

.and-home-feed__item:active {
    transform: scale(0.99);
    background: rgba(255, 255, 255, 0.82);
}

.and-home-feed__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.and-home-feed__icon--add {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.and-home-feed__icon--loan {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

.and-home-feed__icon--alert {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.2);
}

.and-home-feed__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-home-feed__title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-home-feed__sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.and-home-feed__chev {
    flex-shrink: 0;
    color: #94a3b8;
}

.and-home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.and-home-section__hint {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

.and-panel--home-feed .and-panel__head {
    margin-bottom: 18px;
}

.and-panel--home-loans {
    padding-bottom: 18px;
}

.and-panel--home-loans .and-panel__head--compact {
    margin-bottom: 14px;
    align-items: center;
}

.and-home-loans-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.and-home-loans-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    text-decoration: none;
    box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.and-home-loans-action svg {
    display: block;
}

.and-home-loans-action:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.92);
}

.and-home-loans-action--accent {
    background: linear-gradient(145deg, #ff7a1a 0%, #ff5a00 100%);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(255, 90, 0, 0.45);
}

.and-home-loans-action--accent:active {
    background: linear-gradient(145deg, #ff6a0a 0%, #e04e00 100%);
}

.and-panel--home-loans .and-panel__title {
    font-size: 1.25rem;
}

.and-home-loans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.and-home-loan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease;
}

.and-home-loan:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.99);
}

.and-home-loan__icon {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 90, 0, 0.1);
    color: #ea580c;
    flex-shrink: 0;
}

.and-home-loan__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.and-home-loan__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-home-loan__title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-home-loan__sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.and-home-loan__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--and-radius-full);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.and-home-loan__badge--pinjam {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.and-home-loan__badge--parsial {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.and-home-loan__badge--telat {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.and-home-loan__badge--lost {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

/* â”€â”€ Home: BAST widget â”€â”€ */
.and-panel--home-st .and-panel__head {
    align-items: center;
}

.and-panel--home-st .and-panel__title {
    font-size: 1.25rem;
}

.and-home-st-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.and-home-st-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    text-decoration: none;
    box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    font: inherit;
}

.and-home-st-action svg {
    display: block;
}

.and-home-st-action:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.92);
}

.and-home-st-action--camera {
    color: #ff5a00;
}

.and-home-st__card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.and-home-st__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.and-home-st__row:last-child {
    border-bottom: none;
}

.and-home-st__row:active {
    background: rgba(248, 250, 252, 0.85);
}

.and-home-st__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.and-home-st__icon svg {
    width: 20px;
    height: 20px;
}

.and-home-st__icon--peach {
    background: rgba(255, 90, 0, 0.12);
    color: #ea580c;
}

.and-home-st__icon--sky {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.and-home-st__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.and-home-st__title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-home-st__sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-home-st__meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.and-home-st__when {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.and-home-st__status {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.and-home-st__status--ok {
    color: #16a34a;
}

.and-home-st__status--draft {
    color: #d97706;
}

.and-home-st__status--muted {
    color: #64748b;
}

.and-home-empty {
    margin: 0;
    padding: 10px 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Home redesign: command center */
.and-body--home {
    background-color: #6f879d;
    background-image:
        radial-gradient(circle at 14% 0%, rgba(255, 90, 0, 0.12), transparent 34%),
        radial-gradient(circle at 92% 16%, rgba(59, 130, 246, 0.14), transparent 32%),
        linear-gradient(180deg, #9db0c4 0%, #849bb1 46%, #6f879d 100%);
    background-attachment: scroll;

    --and-home-glass-bg: rgba(255, 255, 255, 0.88);
    --and-home-glass-border: rgba(255, 255, 255, 0.52);
    --and-home-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    --and-home-glass-shadow: 0 14px 36px -20px rgba(15, 23, 42, 0.22);
    --and-home-glass-blur: blur(10px) saturate(130%);
    --and-home-glass-nested: rgba(255, 255, 255, 0.92);
    --and-home-glass-nested-border: rgba(148, 163, 184, 0.18);
}

.and-body--home::before,
.and-body--home::after {
    display: none;
}

.and-body--home #and-spa-app,
.and-body--home .and-spa-outlet-wrap,
.and-body--home #and-spa-outlet {
    background: transparent;
}

.and-layout--home {
    flex: 1;
    width: 100%;
    min-height: 100dvh;
    background: transparent;
}

.and-body--home .and-layout--ambient::before {
    display: none;
}

.and-layout--home::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 62%);
    pointer-events: none;
}

.and-layout--home > .and-main {
    position: relative;
    z-index: 1;
    flex: 1;
}

.and-main--dashboard {
    position: relative;
    padding-top: 10px;
}

.and-layout--home .and-main--dashboard {
    background: transparent;
}

.and-layout--home .and-main--dashboard::before {
    display: none;
}

.and-body--home .and-home-hero {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.and-body--home .and-home-notif-slider {
    margin-bottom: 0;
}

.and-body--home .and-main.and-main--dashboard {
    padding-left: 18px;
    padding-right: 18px;
}

/* Mobile home — napas antar section/card agar tidak berdempetan */
body:not(.and-body--desktop-nav).and-body--home .and-main.and-main--dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:not(.and-body--desktop-nav).and-body--home .and-home-hero,
body:not(.and-body--desktop-nav).and-body--home .and-stats-grid--liquid,
body:not(.and-body--desktop-nav).and-body--home .and-home-quick,
body:not(.and-body--desktop-nav).and-body--home .and-panel.and-mb-md,
body:not(.and-body--desktop-nav).and-body--home .and-home-quick.and-mb-md {
    margin-bottom: 0;
}

body:not(.and-body--desktop-nav).and-body--home .and-home-ai-st-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body:not(.and-body--desktop-nav).and-body--home .and-home-ai-st-row > .and-ai-home-widget,
body:not(.and-body--desktop-nav).and-body--home .and-home-ai-st-row > .and-panel--home-st {
    margin-bottom: 0;
}

body:not(.and-body--desktop-nav).and-body--home .and-home-quick__grid {
    gap: 16px;
}

body:not(.and-body--desktop-nav).and-body--home .and-stats-grid--liquid {
    gap: 14px;
    margin-top: 0;
}

.and-home-hero {
    position: relative;
    margin: 0 0 16px;
    padding: 12px 14px 16px;
    border-radius: 20px;
    background: linear-gradient(165deg, #3a2a22 0%, #2f221c 55%, #281c17 100%);
    color: #fff;
    overflow: visible;
    border: 1px solid rgba(255, 236, 210, 0.1);
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.18);
}

.and-home-hero::after {
    display: none;
}

.and-home-hero__mesh {
    display: none;
}

.and-home-hero .and-page-context-icon {
    display: none !important;
}

.and-home-hero .and-dash-top {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    gap: 8px;
}

.and-home-hero .and-home-hero__burger,
.and-home-hero .and-dash-burger,
.and-home-hero .and-dash-bell {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.96);
    color: #c2410c;
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background var(--and-nav-ease), border-color var(--and-nav-ease), transform var(--and-nav-ease);
}

.and-home-hero .and-dash-top:not(.is-ask-island):not(.is-voice-ask-active):not(:has(.and-dash-search--ai:focus-within)) .and-home-hero__burger,
.and-home-hero .and-dash-top:not(.is-ask-island):not(.is-voice-ask-active):not(:has(.and-dash-search--ai:focus-within)) .and-dash-burger,
.and-home-hero .and-dash-top:not(.is-ask-island):not(.is-voice-ask-active):not(:has(.and-dash-search--ai:focus-within)) .and-dash-bell {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.and-home-hero .and-home-hero__burger svg,
.and-home-hero .and-dash-burger svg,
.and-home-hero .and-dash-bell svg {
    stroke: currentColor;
    stroke-width: 2;
    width: 20px;
    height: 20px;
}

.and-home-hero .and-home-hero__burger[aria-expanded="true"],
.and-home-hero .and-dash-burger[aria-expanded="true"] {
    background: #fff7ed;
    border-color: rgba(194, 65, 12, 0.35);
    color: #c2410c;
}

.and-home-hero .and-dash-bell--unread {
    background: #fff7ed;
    border-color: rgba(194, 65, 12, 0.35);
    color: #c2410c;
}

.and-home-hero .and-dash-bell--unread svg {
    stroke: #c2410c;
}

.and-home-hero .and-dash-search--ai .and-dash-search__shell {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.and-home-hero .and-dash-search--ai .and-dash-search__input {
    color: #fff;
    font-weight: 500;
    padding: 12px 8px 12px 16px;
}

.and-home-hero .and-dash-search--ai .and-dash-search__input::placeholder {
    color: rgba(255, 247, 237, 0.62);
    font-weight: 500;
}

.and-home-hero .and-dash-search__mic {
    opacity: 1;
    transform: scale(1);
    width: 32px;
    height: 32px;
    margin-right: 6px;
    background: #ff5a00;
    color: #fff;
    box-shadow: none;
}

.and-home-hero .and-dash-search__mic svg {
    stroke: currentColor;
    width: 16px;
    height: 16px;
}

.and-home-hero .and-dash-search__mic.is-listening {
    background: #fff;
    color: #ff5a00;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.and-home-hero__intro {
    position: relative;
    z-index: 2;
    padding: 0;
}

.and-home-hero__left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-bottom: 2px;
}

.and-home-hero__row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.and-home-hero__notif-col {
    min-width: 0;
}

.and-home-hero__notif-col > .and-home-notif-slider {
    margin: 0;
}

/* Desktop — kiri: profil+chips | kanan: notifikasi */
@media (min-width: 1024px) {
    body.and-body--home .and-home-hero {
        padding: 14px 16px 16px;
    }

    body.and-body--home .and-home-hero__row {
        flex-direction: row;
        align-items: stretch;
        gap: 14px;
    }

    body.and-body--home .and-home-hero__left {
        flex: 0 1 auto;
        max-width: min(360px, 38%);
        gap: 10px;
        justify-content: center;
    }

    body.and-body--home .and-home-hero__notif-col {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
    }

    body.and-body--home .and-home-hero__notif-col > .and-home-notif-slider {
        width: 100%;
        padding: 12px 14px 10px;
        border-radius: 14px;
    }

    body.and-body--home .and-home-hero .and-home-notif-slider__head {
        margin-bottom: 8px;
    }

    body.and-body--home .and-home-hero .and-home-notif-slider__body {
        margin-bottom: 8px;
        gap: 10px;
    }

    body.and-body--home .and-home-hero .and-home-notif-slider__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    body.and-body--home .and-home-hero .and-home-notif-slider__progress-track {
        margin-bottom: 8px;
    }

    body.and-body--home .and-home-hero .and-home-notif-slider__btn {
        padding: 8px 12px;
        font-size: 0.6875rem;
        letter-spacing: 0.04em;
    }
}

.and-home-hero__user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--and-nav-ease);
}

.and-home-hero__user-link:active {
    opacity: 0.88;
}

.and-home-hero__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    overflow: hidden;
}

.and-home-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.and-home-hero__user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-home-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(254, 215, 170, 0.72);
}

.and-home-hero__name {
    display: block;
    font-size: clamp(1.125rem, 4.2vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.and-home-hero__chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 0 4px;
    overflow: visible;
    min-height: 32px;
}

.and-home-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    min-height: 28px;
    line-height: 1.25;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 247, 237, 0.88);
    font-size: 0.6875rem;
    font-weight: 600;
    box-sizing: border-box;
}

.and-home-hero__chip i {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .and-body--home .and-live-badge__dot,
    .and-body--home .and-home-notif-slider--pulse,
    .and-body--home .and-skeleton {
        animation: none !important;
    }
}

.and-home-hero .and-home-notif-slider {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.and-home-hero .and-home-notif-slider__head {
    margin-bottom: 12px;
    min-height: 24px;
}

.and-home-hero .and-home-notif-slider__body {
    margin-bottom: 12px;
}

.and-home-hero .and-home-notif-slider__btn {
    min-height: 40px;
    padding: 10px 12px;
}

.and-home-hero .and-home-notif-slider__time {
    color: rgba(255, 247, 237, 0.55);
    font-size: 0.6875rem;
    font-weight: 500;
}

.and-home-hero .and-home-notif-slider__title {
    color: #fff;
    font-weight: 600;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.and-home-hero .and-home-notif-slider__message {
    color: rgba(255, 247, 237, 0.58);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.and-home-hero .and-home-notif-slider__btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(254, 215, 170, 0.9);
    font-weight: 600;
}

.and-home-hero .and-home-notif-slider .and-live-badge--notif {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(254, 215, 170, 0.95);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    font-weight: 600;
}

.and-home-hero .and-home-notif-slider .and-live-badge--notif .and-live-badge__dot {
    background: #eab308;
    box-shadow: none;
}

.and-home-hero .and-home-notif-slider .and-live-badge__bell {
    color: rgba(254, 215, 170, 0.9);
    stroke: rgba(254, 215, 170, 0.9);
    fill: none;
}

.and-home-hero .and-home-notif-slider__icon,
.and-home-hero .and-home-notif-slider__icon--gold,
.and-home-hero .and-home-notif-slider__icon[class*="and-home-notif-slider__icon--"] {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.and-home-hero .and-home-notif-slider__icon svg {
    color: #fed7aa;
    stroke: #fed7aa;
    fill: none;
    stroke-width: 1.75;
}

.and-home-hero .and-home-notif-slider__count {
    background: #ff5a00;
    color: #fff;
    border: none;
    box-shadow: none;
    font-weight: 700;
}

.and-home-hero .and-home-notif-slider__count[hidden] {
    display: none !important;
}

.and-home-hero .and-dash-bell__badge {
    background: #ff5a00;
    color: #fff;
    border: 1.5px solid #fff;
    box-shadow: none;
}

.and-stats-grid--liquid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.and-body--home .and-stats-grid--liquid {
    gap: 16px;
    margin-top: 6px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.and-body--home .and-stats-grid--liquid .and-stat-card {
    min-height: 152px;
    padding: 20px 18px 18px;
    border-radius: 22px;
    background: var(--and-home-glass-bg);
    border: 1px solid var(--and-home-glass-border);
    box-shadow: var(--and-home-glass-shadow), var(--and-home-glass-inset);
    backdrop-filter: var(--and-home-glass-blur);
    -webkit-backdrop-filter: var(--and-home-glass-blur);
    overflow: hidden;
}

.and-body--home .and-stats-grid--liquid .and-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(255, 90, 0, 0.82), rgba(124, 45, 18, 0.55));
    pointer-events: none;
}

.and-body--home .and-stats-grid--liquid .and-stat-card::before {
    opacity: 0.08;
    pointer-events: none;
}

.and-body--home .and-stats-grid--liquid .and-stat-card__label {
    letter-spacing: 0.12em;
    color: #64748b;
    opacity: 0.88;
}

.and-body--home .and-stats-grid--liquid .and-stat-card__value {
    color: #0f172a;
    font-size: 1.875rem;
}

.and-body--home .and-stats-grid--liquid .and-stat-card__value--danger {
    color: #e11d48;
}

.and-body--home .and-stats-grid--liquid .and-stat-card__watermark {
    opacity: 0.12;
}

.and-body--home .and-stats-grid--liquid .and-stat-card--barang .and-stat-card__watermark {
    color: #6366f1;
}

.and-body--home .and-stats-grid--liquid .and-stat-card--pinjam .and-stat-card__watermark {
    color: #3b82f6;
}

.and-body--home .and-stats-grid--liquid .and-stat-card--requests .and-stat-card__watermark {
    color: #d97706;
}

.and-body--home .and-stats-grid--liquid .and-stat-card--damaged .and-stat-card__watermark {
    color: #e11d48;
}

.and-stats-grid--liquid .and-stat-card {
    min-height: 136px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(100, 116, 139, 0.22);
    box-shadow:
        0 12px 32px -22px rgba(15, 23, 42, 0.34),
        0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.and-stats-grid--liquid .and-stat-card::before {
    content: '';
    position: absolute;
    inset: auto -28px -42px auto;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.07;
    pointer-events: none;
}

.and-stats-grid--liquid .and-stat-card__label {
    letter-spacing: 0.12em;
    color: #64748b;
    opacity: 0.75;
}

.and-stats-grid--liquid .and-stat-card__value {
    font-size: 2rem;
}

.and-body--home .and-home-quick__panel,
.and-body--home .and-panel,
.and-body--home .and-ai-home-widget {
    border-radius: 26px;
    background: var(--and-home-glass-bg);
    border: 1px solid var(--and-home-glass-border);
    box-shadow: var(--and-home-glass-shadow), var(--and-home-glass-inset);
    backdrop-filter: var(--and-home-glass-blur);
    -webkit-backdrop-filter: var(--and-home-glass-blur);
    outline: 0;
}

.and-home-quick__panel,
.and-panel,
.and-ai-home-widget {
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(100, 116, 139, 0.22);
    box-shadow:
        0 12px 34px -24px rgba(15, 23, 42, 0.32),
        0 2px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    outline: 0;
}

.and-home-quick__panel {
    padding: 16px;
}

.and-home-quick__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px 14px;
}

.and-home-quick__title,
.and-panel__title {
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.and-home-quick__sub,
.and-panel__subtitle {
    font-size: 0.75rem;
    font-weight: 650;
}

.and-body--home .and-home-quick__card {
    border-radius: 20px;
    padding: 16px 10px 14px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.and-body--home .and-home-quick__card:active {
    background: rgba(255, 255, 255, 0.52);
}

.and-home-quick__card {
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f8fafc);
    border-color: rgba(148, 163, 184, 0.14);
}

.and-home-quick__orb {
    width: 50px;
    height: 50px;
    border-radius: 17px;
}

.and-body--home .and-ai-home-widget {
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 90, 0, 0.1), transparent 34%),
        var(--and-home-glass-bg);
    color: #0f172a;
}

.and-ai-home-widget {
    position: relative;
    align-items: stretch;
    text-align: left;
    margin-bottom: 18px;
    padding: 18px;
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 90, 0, 0.08), transparent 34%),
        linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    color: #0f172a;
    overflow: hidden;
}

.and-ai-home-widget::after {
    content: '';
    position: absolute;
    right: -52px;
    top: -52px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 90, 0, 0.08);
}

.and-ai-home-widget__icon-wrap,
.and-ai-home-widget__title,
.and-ai-home-widget__actions {
    position: relative;
    z-index: 1;
}

.and-ai-home-widget__icon-wrap {
    align-self: flex-start;
}

.and-ai-home-widget__title {
    color: #0f172a;
    font-size: 1.35rem;
    margin: 14px 0;
}

.and-ai-home-widget__btn--ghost {
    color: #c2410c;
    border-color: rgba(255, 90, 0, 0.16);
    background: rgba(255, 90, 0, 0.07);
}

.and-ai-home-widget__btn--primary {
    box-shadow: 0 12px 26px -16px rgba(255, 90, 0, 0.95);
}

.and-body--home .and-chart-bars__track {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.38);
}

.and-chart-bars {
    height: 160px;
}

.and-chart-bars__track {
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.7);
    border-color: rgba(148, 163, 184, 0.16);
}

.and-chart-bars__fill {
    border-radius: 999px;
    background: linear-gradient(to top, #ff5a00, #fbbf24);
    box-shadow: 0 -8px 20px -10px rgba(255, 90, 0, 0.75);
}

.and-body--home .and-home-feed__item,
.and-body--home .and-home-loan,
.and-body--home .and-home-st__row {
    background: var(--and-home-glass-nested);
    border: 1px solid var(--and-home-glass-nested-border);
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.and-body--home .and-home-st__row {
    border-bottom: none;
    border-radius: 18px;
}

.and-body--home .and-home-st {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Wrapper hanya stack — tiap row sudah card tersendiri */
.and-body--home .and-home-st__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    outline: none;
    overflow: visible;
}

.and-body--home .and-home-st__row:active {
    background: rgba(255, 255, 255, 0.62);
}

.and-body--home .and-home-feed {
    gap: 12px;
}

.and-body--home .and-home-loans {
    gap: 12px;
}

.and-home-feed__item,
.and-home-loan,
.and-home-st__card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.22);
}

.and-home-feed__item,
.and-home-loan {
    border-radius: 18px;
    padding: 13px;
}

.and-home-feed__icon,
.and-home-loan__icon,
.and-home-st__icon {
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.and-body--home .and-home-feed__item:active,
.and-body--home .and-home-loan:active {
    background: rgba(255, 255, 255, 0.62);
}

.and-home-feed__icon,
.and-body--home .and-home-st-action {
    background: var(--and-home-glass-nested);
    border-color: var(--and-home-glass-nested-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.and-home-loans-action,
.and-home-st-action {
    border-radius: 15px;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
}

.and-home-loans-action--accent {
    background: linear-gradient(145deg, #ff7a1a 0%, #ff5a00 100%);
    color: #fff;
}

.and-panel__cta {
    display: block;
    margin-top: 20px;
    padding: 14px;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
}

.and-ai-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.06));
    border-color: rgba(124, 58, 237, 0.2);
}

.and-ai-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.and-ai-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.and-ai-banner__text {
    flex: 1;
}

.and-ai-banner__title {
    font-weight: 700;
    color: var(--and-text-primary);
    margin-bottom: 2px;
}

.and-ai-banner__quota {
    margin-top: 4px;
}

.and-ai-quota-strip {
    max-width: var(--and-content-max);
    margin: 0 auto;
    padding: 0 var(--and-space-md) 8px;
    width: 100%;
}

.and-gemini-quota__line {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--and-text-secondary, #64748b);
}

.and-gemini-quota__hint {
    margin: 6px 0 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--and-text-muted, #94a3b8);
}

.and-gemini-quota__bar {
    margin-top: 6px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.and-gemini-quota__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width .35s ease;
}

.and-gemini-quota--warn .and-gemini-quota__fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.and-gemini-quota--danger .and-gemini-quota__fill,
.and-gemini-quota--danger .and-gemini-quota__line {
    color: #dc2626;
}

.and-gemini-quota--danger .and-gemini-quota__fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.and-gemini-quota--exempt .and-gemini-quota__line {
    color: #7c3aed;
}

.and-gemini-quota--status {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.and-gemini-quota--status.and-gemini-quota--ok { color: #059669; }
.and-gemini-quota--status.and-gemini-quota--warn { color: #d97706; }
.and-gemini-quota--status.and-gemini-quota--danger { color: #dc2626; }
.and-gemini-quota--status.and-gemini-quota--exempt { color: #7c3aed; }
.and-gemini-quota--status.and-gemini-quota--disabled { color: #64748b; }

.and-gemini-quota--banner .and-gemini-quota__line {
    font-size: 0.68rem;
}

.and-gemini-quota--card {
    padding: 2px 0;
}

.and-ps-quota-card__body {
    padding: 14px 16px;
}

.and-panel--home-quota .and-home-quota-card {
    padding: 2px 2px 4px;
}

.and-pg-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 600;
}

.and-pg-alert--ok { background: rgba(34, 197, 94, 0.12); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.2); }
.and-pg-alert--err { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.2); }
.and-pg-alert--info { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.2); }

.and-main--pg-gemini {
    width: 100%;
    margin: 0 auto;
}

.and-pg-topbar__text {
    flex: 1;
    min-width: 0;
}

.and-pg-topbar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}

.and-pg-topbar__sub {
    margin: 4px 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.and-pg-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 20px;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.05)), rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.14);
    box-shadow: 0 20px 40px -12px rgba(124, 58, 237, 0.15);
}

.and-pg-hero__glow {
    position: absolute;
    right: -20px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.and-pg-hero__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 1;
}

.and-pg-hero__body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.and-pg-hero__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}

.and-pg-hero__quota .and-gemini-quota--card {
    padding: 0;
}

.and-pg-hero__quota .and-gemini-quota__line {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.and-panel--pg {
    padding-bottom: 8px;
}

.and-pg-panel-body {
    padding: 4px 4px 8px;
}

.and-pg-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.and-pg-switch-row {
    padding: 12px 8px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 8px;
}

.and-pg-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 8px 4px;
}

@media (max-width: 420px) {
    .and-pg-fields {
        grid-template-columns: 1fr;
    }
}

.and-pg-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.and-pg-input {
    width: 100%;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 700;
}

.and-pg-field__hint {
    margin: 6px 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* Pengaturan PWA — unggah ikon */
.and-pg-field--icon .and-pg-field__label {
    margin-bottom: 10px;
}

.and-layout--pg-pwa .and-pg-upload-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 2px;
}

.and-layout--pg-pwa .and-pg-icon-preview {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, #cbd5e1 70%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px color-mix(in srgb, #0f172a 8%, transparent);
}

.and-layout--pg-pwa .and-pg-icon-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.and-pg-upload-actions {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 4px;
}

.and-pg-btn--upload {
    cursor: pointer;
}

.and-pg-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 8px 8px;
}

.and-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.and-pg-btn:active {
    transform: scale(0.97);
}

.and-pg-btn--primary {
    flex: 1;
    min-width: 140px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.and-pg-btn--ghost {
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Pengaturan akademik — section tabs, menu chips, semester, actions */
.and-layout--pg-akademik {
    --pa-accent: #0f766e;
    --pa-accent-soft: rgba(15, 118, 110, 0.1);
    --pa-accent-mid: rgba(15, 118, 110, 0.18);
    --pa-accent-border: rgba(15, 118, 110, 0.28);
    --pa-surface: #ffffff;
    --pa-muted: #64748b;
    --pa-ink: #0f172a;
    --pa-track: rgba(241, 245, 249, 0.98);
}

.and-layout--pg-akademik .and-pa-tabs {
    margin: 0 0 14px;
    padding: 0;
    min-width: 0;
}

.and-layout--pg-akademik .and-pa-tabs__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 4px;
    border-radius: 16px;
    background: var(--pa-track);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.and-layout--pg-akademik .and-pa-tabs__track::-webkit-scrollbar {
    display: none;
}

.and-layout--pg-akademik .and-pa-tab {
    appearance: none;
    margin: 0;
    border: 0;
    border-radius: 12px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--pa-muted);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.and-layout--pg-akademik .and-pa-tab:hover {
    color: var(--pa-accent);
    background: var(--pa-accent-soft);
}

.and-layout--pg-akademik .and-pa-tab.is-active {
    color: var(--pa-accent);
    background: var(--pa-surface);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 16px -8px rgba(15, 23, 42, 0.18);
    font-weight: 800;
}

.and-layout--pg-akademik .and-pa-tab:active {
    transform: scale(0.98);
}

/* Chip jenjang/JK — selalu tersedia (list.css kadang belum / sudah di-unload) */
.and-layout--pg-akademik #andPaPjRoot .and-barang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 4px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.and-layout--pg-akademik #andPaPjRoot .and-barang-chips::-webkit-scrollbar {
    display: none;
}

.and-layout--pg-akademik #andPaPjRoot .and-barang-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--and-radius-full, 999px);
    border: 1px solid var(--and-border, rgba(148, 163, 184, 0.35));
    background: var(--and-bg-card-alt, #f8fafc);
    color: var(--and-text-secondary, #64748b);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.and-layout--pg-akademik #andPaPjRoot .and-barang-chip.is-active {
    background: var(--and-accent-surface, rgba(37, 99, 235, 0.1));
    border-color: var(--and-accent, #2563eb);
    color: var(--and-accent-light, #1d4ed8);
}

.and-layout--pg-akademik #andPaPjRoot .and-barang-chip:disabled,
.and-layout--pg-akademik #andPaPjRoot .and-barang-chip[aria-disabled="true"] {
    cursor: default;
    opacity: 1;
}

.and-layout--pg-akademik #andPaPjRoot .and-chip-track {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.and-layout--pg-akademik .and-pa-pj-roles {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 14px 0 8px;
}

.and-layout--pg-akademik .and-pa-pj-role {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.and-layout--pg-akademik .and-pa-pj-role__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.and-layout--pg-akademik .and-pa-pj-role__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
}

.and-layout--pg-akademik .and-pa-pj-role__sub {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.and-layout--pg-akademik .and-pa-pj-role__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 36px;
}

.and-layout--pg-akademik .and-pa-pj-empty {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.and-layout--pg-akademik .and-pa-pj-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e3a8a;
    font-size: 0.8125rem;
    font-weight: 700;
}

.and-layout--pg-akademik .and-pa-pj-chip--asrama {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.22);
    color: #115e59;
}

.and-layout--pg-akademik .and-pa-pj-chip__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0.8;
}

.and-layout--pg-akademik .and-pa-pj-chip__rm {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0.7;
}

.and-layout--pg-akademik .and-pa-pj-chip__rm:hover {
    opacity: 1;
}

.and-layout--pg-akademik .and-pa-pj-add {
    flex-shrink: 0;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Modal pilih guru PJ — self-contained (halaman ini tidak load CSS rencana-acara) */
#andPaPjPickerSheet.and-ra-fullsheet {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

#andPaPjPickerSheet.and-ra-fullsheet:not([hidden]) {
    display: flex;
}

#andPaPjPickerSheet .and-ra-fullsheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

#andPaPjPickerSheet.is-open .and-ra-fullsheet__backdrop {
    opacity: 1;
}

#andPaPjPickerSheet .and-ra-fullsheet__panel,
#andPaPjPickerSheet .and-restock-sheet__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(88vh, 720px);
    margin: 0 auto;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #fff;
    box-shadow: 0 -16px 40px -16px rgba(15, 23, 42, 0.28);
    transform: translate3d(0, 110%, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

#andPaPjPickerSheet.is-open .and-ra-fullsheet__panel,
#andPaPjPickerSheet.is-open .and-restock-sheet__panel {
    transform: translate3d(0, 0, 0);
}

#andPaPjPickerSheet .and-ra-picker-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 14px 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
}

#andPaPjPickerSheet .and-ra-picker-search {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.9375rem;
}

#andPaPjPickerSheet .and-ra-picker-list {
    flex: 1;
    overflow: auto;
    padding: 10px 12px calc(16px + var(--and-safe-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

#andPaPjPickerSheet .and-ra-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

#andPaPjPickerSheet .and-ra-picker-item:active {
    background: #f1f5f9;
}

#andPaPjPickerSheet .and-ra-picker-empty {
    margin: 18px 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

body.and-pa-pj-picker-open {
    overflow: hidden;
}

.and-layout--pg-akademik .and-pa-bintang-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
}

.and-layout--pg-akademik .and-pa-bintang-row {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
}

.and-layout--pg-akademik .and-pa-bintang-row__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #f59e0b;
    font-weight: 800;
}

.and-layout--pg-akademik .and-pa-bintang-row__lab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.and-layout--pg-akademik .and-pa-bintang-row__lab .and-pg-input {
    width: 100%;
    max-width: 140px;
}

@media (max-width: 520px) {
    .and-layout--pg-akademik .and-pa-bintang-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .and-layout--pg-akademik .and-pa-bintang-row__lab .and-pg-input {
        max-width: none;
    }
}

.and-layout--pg-akademik .and-pa-menu-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.and-layout--pg-akademik .and-pa-menu-group {
    padding: 12px 12px 14px;
    border-radius: 16px;
    background: var(--pa-track);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.and-layout--pg-akademik .and-pa-menu-group__label {
    margin: 0 0 10px 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pa-muted);
}

.and-layout--pg-akademik .and-pa-menu-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.and-layout--pg-akademik .and-pa-menu-chip {
    appearance: none;
    position: relative;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 14px 8px 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #475569;
    background: var(--pa-surface);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.and-layout--pg-akademik .and-pa-menu-chip::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border-radius: 999px;
    border: 1.5px solid rgba(148, 163, 184, 0.55);
    background: transparent;
    box-sizing: border-box;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.and-layout--pg-akademik .and-pa-menu-chip:hover:not(:disabled) {
    border-color: var(--pa-accent-border);
    color: var(--pa-accent);
    box-shadow: 0 4px 12px -6px rgba(15, 118, 110, 0.35);
}

.and-layout--pg-akademik .and-pa-menu-chip:hover:not(:disabled)::before {
    border-color: var(--pa-accent);
}

.and-layout--pg-akademik .and-pa-menu-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-color: transparent;
    box-shadow: 0 8px 18px -10px rgba(15, 118, 110, 0.55);
}

.and-layout--pg-akademik .and-pa-menu-chip.is-active::before {
    border-color: rgba(255, 255, 255, 0.95);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E")
        center / 10px 10px no-repeat,
        #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.and-layout--pg-akademik .and-pa-menu-chip:active:not(:disabled) {
    transform: scale(0.97);
}

.and-layout--pg-akademik .and-pa-menu-chip:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.and-layout--pg-akademik .and-pa-sem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 14px;
    background: var(--pa-track);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-sizing: border-box;
}

.and-layout--pg-akademik .and-pa-sem__btn {
    appearance: none;
    margin: 0;
    border: 0;
    border-radius: 10px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--pa-muted);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.and-layout--pg-akademik .and-pa-sem__btn.is-active {
    color: var(--pa-accent);
    background: var(--pa-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.and-layout--pg-akademik .and-pa-sem__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.and-layout--pg-akademik .and-pa-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 4px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.and-layout--pg-akademik .and-pa-actions .and-pg-btn {
    flex: 1 1 auto;
    min-width: 132px;
    min-height: 46px;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.875rem;
    font-weight: 800;
}

.and-layout--pg-akademik .and-pa-actions .and-pg-btn--primary {
    flex: 1.2 1 auto;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28);
    border: 0;
}

.and-layout--pg-akademik .and-pa-actions .and-pg-btn--ghost {
    color: #334155;
    background: var(--pa-surface);
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.and-layout--pg-akademik .and-pa-kriteria-add.and-pg-btn--ghost {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--pa-accent);
    background: var(--pa-accent-soft);
    border: 1px solid var(--pa-accent-border);
}

@media (hover: hover) and (pointer: fine) {
    .and-layout--pg-akademik .and-pa-actions .and-pg-btn--ghost:hover {
        background: var(--pa-accent-soft);
        border-color: var(--pa-accent-border);
        color: var(--pa-accent);
    }

    .and-layout--pg-akademik .and-pa-sem__btn:not(.is-active):hover {
        color: var(--pa-accent);
        background: var(--pa-accent-soft);
    }

    .and-layout--pg-akademik .and-pa-kriteria-add.and-pg-btn--ghost:hover {
        background: var(--pa-accent-mid);
    }
}

.and-layout--pg-akademik .and-pg-field__hint {
    margin: 10px 8px 0;
    font-size: 0.8rem;
    color: #64748b;
}

.and-layout--pg-akademik .and-pg-field__hint strong {
    color: #0f172a;
    font-weight: 800;
}

/* Kriteria Sabqi / Manzil */
.and-layout--pg-akademik .and-pa-kriteria-fields {
    grid-template-columns: minmax(180px, 280px);
    align-items: start;
}

.and-layout--pg-akademik .and-pa-kriteria-block {
    margin-top: 8px;
    padding: 12px 8px 4px;
}

.and-layout--pg-akademik .and-pa-kriteria-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.and-layout--pg-akademik .and-pa-kriteria-block__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.and-layout--pg-akademik .and-pa-kriteria-block__sub {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.and-layout--pg-akademik .and-pa-kriteria-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.and-layout--pg-akademik .and-pa-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    gap: 10px 12px;
    align-items: end;
    padding: 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.and-layout--pg-akademik .and-pa-band__range {
    display: flex;
    align-items: end;
    gap: 8px;
    min-width: 0;
}

.and-layout--pg-akademik .and-pa-band__lab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.and-layout--pg-akademik .and-pa-band__lab--label {
    flex: 1;
}

.and-layout--pg-akademik .and-pa-band__sep {
    padding-bottom: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.and-layout--pg-akademik .and-pa-band__remove {
    appearance: none;
    border: 0;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.and-layout--pg-akademik .and-pa-band__remove:hover {
    background: rgba(239, 68, 68, 0.16);
}

.and-layout--pg-akademik .and-pa-band__remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.and-layout--pg-akademik .and-pa-kriteria-add {
    min-width: 0;
    padding-inline: 14px;
}

@media (max-width: 720px) {
    .and-layout--pg-akademik .and-pa-band {
        grid-template-columns: 1fr auto;
    }
    .and-layout--pg-akademik .and-pa-band__range {
        grid-column: 1 / -1;
    }
    .and-layout--pg-akademik .and-pa-band__lab--label {
        grid-column: 1;
    }
}

.and-pg-usage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 4px 8px;
}

.and-pg-usage-empty {
    margin: 0;
    padding: 24px 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.and-pg-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.and-pg-user:last-child {
    border-bottom: 0;
}

.and-pg-user__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
}

.and-pg-user__body {
    flex: 1;
    min-width: 0;
}

.and-pg-user__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.and-pg-user__name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

.and-pg-user__role {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.and-pg-user__sub {
    margin: 2px 0 8px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.and-pg-user__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    overflow: hidden;
    margin-bottom: 8px;
}

.and-pg-user__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.and-pg-user__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.72rem;
    color: #64748b;
}

.and-pg-user__stats em {
    font-style: normal;
    font-weight: 800;
    color: #334155;
}

.and-ai-banner__chev {
    color: var(--and-text-muted);
    flex-shrink: 0;
}

.and-main {
    flex: 1;
    padding: var(--and-space-md);
    padding-bottom: var(--and-space-lg);
}

.and-main--no-pad {
    padding: 0;
}

/* Kegiatan Asrama — penilaian & kesehatan */
.and-ka-panel {
    margin: 0 0 14px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.and-ka-panel__title {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #334155;
}

.and-ka-selected {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9a3412;
}

.and-ka-santri-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.and-ka-santri-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.and-ka-santri-card.is-active {
    border-color: rgba(194, 65, 12, 0.45);
    background: #fff7ed;
}

.and-ka-santri-card__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9a3412;
    background: #ffedd5;
}

.and-ka-santri-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-ka-santri-card__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.and-ka-santri-card__meta {
    font-size: 0.75rem;
    color: #64748b;
}

.and-ka-santri-card__place {
    display: block;
    margin-top: 2px;
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.3;
}

.and-ka-placement-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #f8fafc;
}

.and-ka-placement-summary__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.and-ka-placement-summary__label {
    font-size: 0.6875rem;
    font-weight: 650;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.and-ka-placement-summary__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}

.and-ka-select-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.and-ka-select-row .and-bf-input {
    flex: 1;
    min-width: 0;
}

.and-ka-nilai-chip {
    min-width: 40px;
    justify-content: center;
}

.and-pns-nilai-pick {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.and-pns-nilai-pick__btn {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    padding: 10px 6px;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.and-pns-nilai-pick__letter {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.and-pns-nilai-pick__hint {
    font-size: 0.625rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    color: #64748b;
}

.and-pns-nilai-pick__btn:hover {
    border-color: rgba(100, 116, 139, 0.7);
}

.and-pns-nilai-pick__btn.is-active {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.and-pns-nilai-pick__btn--a.is-active {
    background: rgba(16, 185, 129, 0.16);
    border-color: #34d399;
    color: #047857;
}
.and-pns-nilai-pick__btn--b.is-active {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #0369a1;
}
.and-pns-nilai-pick__btn--c.is-active {
    background: rgba(250, 204, 21, 0.22);
    border-color: #facc15;
    color: #a16207;
}
.and-pns-nilai-pick__btn--d.is-active {
    background: rgba(251, 146, 60, 0.2);
    border-color: #fb923c;
    color: #c2410c;
}
.and-pns-nilai-pick__btn--e.is-active {
    background: rgba(248, 113, 113, 0.2);
    border-color: #f87171;
    color: #b91c1c;
}

.and-pns-nilai-pick__btn.is-active .and-pns-nilai-pick__hint {
    color: inherit;
    opacity: 0.85;
}

@media (max-width: 380px) {
    .and-pns-nilai-pick {
        gap: 6px;
    }
    .and-pns-nilai-pick__btn {
        min-height: 58px;
        padding: 8px 4px;
        border-radius: 12px;
    }
    .and-pns-nilai-pick__letter {
        font-size: 1.25rem;
    }
    .and-pns-nilai-pick__hint {
        font-size: 0.5625rem;
    }
}

.and-ka-date-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.and-ka-date-filter .and-bf-input {
    flex: 1;
    min-width: 0;
}

.and-ka-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.and-kes-penyakit-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.and-kes-penyakit-list {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.and-buku-databantu-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.and-buku-databantu-item__val {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
}

.and-kes-penyakit-name {
    line-height: 1.35;
}

.and-kes-penyakit-ket {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.and-kes-penyakit-off {
    font-style: normal;
    font-weight: 500;
    color: #94a3b8;
}

.and-buku-databantu-item__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.and-buku-databantu-item__btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.and-buku-databantu-item__btn--danger {
    color: #dc2626;
}

#andKesFormSheet .and-kes-form-santri-search,
#andPnsFormSheet .and-kes-form-santri-search {
    margin: 0 0 10px;
}

#andKesFormSheet .and-ka-santri-list,
#andPnsFormSheet .and-ka-santri-list {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 2px;
}

#andKesFormSheet .and-barang-chips,
#andPnsFormSheet .and-barang-chips {
    max-height: 120px;
    overflow-y: auto;
}

.and-kes-bukti-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.and-kes-bukti-item {
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.and-kes-bukti-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.and-kes-detail-penanganan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.and-kes-detail-penanganan__meta {
    font-size: 0.75rem;
    color: #64748b;
}

.and-kes-detail-penanganan__ket {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.4;
}

.and-kes-card--belum {
    border-color: rgba(234, 88, 12, 0.35);
}

.and-kes-card--sudah {
    border-color: rgba(22, 163, 74, 0.3);
}

.and-kes-card__badge {
    display: inline-flex;
    align-items: center;
    margin: 0 14px 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.and-kes-card__badge.is-pending {
    color: #c2410c;
    background: rgba(251, 146, 60, 0.18);
}

.and-kes-card__badge.is-done {
    color: #15803d;
    background: rgba(74, 222, 128, 0.18);
}

.and-pns-card__badge,
.and-pns-nilai-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 14px 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #334155;
    background: rgba(148, 163, 184, 0.2);
}

.and-pns-nilai-badge--a { color: #047857; background: rgba(16, 185, 129, 0.18); }
.and-pns-nilai-badge--b { color: #0369a1; background: rgba(56, 189, 248, 0.2); }
.and-pns-nilai-badge--c { color: #a16207; background: rgba(250, 204, 21, 0.22); }
.and-pns-nilai-badge--d { color: #c2410c; background: rgba(251, 146, 60, 0.2); }
.and-pns-nilai-badge--e { color: #b91c1c; background: rgba(248, 113, 113, 0.2); }

.and-kar-profile__status.and-pns-nilai-badge {
    margin: 8px auto 0;
}

/* Penanganan modal */
.and-kes-penanganan-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.and-kes-penanganan-patient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #f8fafc;
}

.and-kes-penanganan-patient__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.and-kes-penanganan-patient__avatar.is-photo {
    background: #cbd5e1;
}

.and-kes-penanganan-patient__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.and-kes-penanganan-patient__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.and-kes-penanganan-patient__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.and-kes-penanganan-patient__meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
    word-break: break-word;
}

.and-kes-penanganan-section__title {
    margin: 0 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.and-kes-penanganan-section--history {
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.and-kes-penanganan-fields {
    gap: 12px;
}

.and-kes-penanganan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.and-kes-penanganan-empty {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

.and-kes-penanganan-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #fff;
}

.and-kes-penanganan-item__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.and-kes-penanganan-item__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.and-kes-penanganan-item__meta {
    font-size: 0.75rem;
    color: #64748b;
}

.and-kes-penanganan-item__ket {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.4;
}

.and-kes-penanganan-item__bukti {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.and-kes-penanganan-item__bukti img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f1f5f9;
}

.and-kes-penanganan-item__more {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.and-kes-penanganan-item__del {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.and-kes-penanganan-item__del:active {
    background: #fef2f2;
}

#andKesPenangananSheet .and-bf-media-hint {
    margin: 6px 0 0;
}

