.mobile-shell-brand, .mobile-account-label { display: none; }
@media (max-width: 767px) {
    :root { --shell-header-height: 64px; }
    html[data-theme] .topbar { padding: 0 16px; gap: 12px; display: flex; align-items: center; }
    html[data-theme] .topbar .menu-toggle { width: 40px; height: 40px; min-height: 40px; flex: 0 0 40px; margin: 0; }
    .mobile-shell-brand { display: block; color: var(--theme-text-primary); font: 800 13px/1 'Plus Jakarta Sans',sans-serif; letter-spacing: .055em; }
    html[data-theme] .topbar-right { margin-left: auto; gap: 10px; display: flex; align-items: center; }
    html[data-theme] .theme-toggle { width: 40px; height: 40px; min-height: 40px; }
    html[data-theme] .profile-menu-trigger { min-height: 40px; padding: 3px; border: 0; background: transparent; gap: 0; }
    html[data-theme] .profile-menu .user-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
    html[data-theme] .profile-menu-trigger .user-info, html[data-theme] .profile-menu-caret { display: none; }
    html[data-theme] .sidebar { width: min(280px,calc(100vw - 48px)); min-width: 0; }
    html[data-theme] .page-dashboard .main-content-area { padding: 22px 16px max(24px,env(safe-area-inset-bottom)); }
    html[data-theme] .page-dashboard .page-head { margin: 0 0 20px; align-items: center; gap: 12px; }
    html[data-theme] .page-dashboard .page-head-text { min-width: 0; flex: 1; }
    html[data-theme] .page-dashboard .page-head-title { font-size: 23px; line-height: 1.25; letter-spacing: -.04em; }
    html[data-theme] .page-dashboard .page-head-sub { font-size: 11px; line-height: 1.6; margin-top: 6px; max-width: 235px; }
    html[data-theme] .page-dashboard .page-head-stat { width: auto; min-width: 0; flex: 0 0 auto; padding: 8px 11px; border-radius: 10px; display: flex; align-items: baseline; gap: 6px; box-shadow: none; }
    html[data-theme] .page-dashboard .page-head-stat-value { font-size: 18px; line-height: 1.3; }
    html[data-theme] .page-dashboard .page-head-stat-label { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; margin: 0; }
    .desktop-account-label { display: none; }
    .mobile-account-label { display: inline; }
    html[data-theme] .page-dashboard .toolbar { padding: 0; border: 0 !important; background: transparent; box-shadow: none; border-radius: 0; gap: 10px; margin: 0 0 20px; }
    html[data-theme] .page-dashboard .toolbar .search-wrap { width: 100%; flex-basis: auto; min-width: 0; }
    html[data-theme] .page-dashboard .toolbar .search-wrap .form-input { height: 46px; min-height: 46px; background: var(--theme-bg-primary) !important; border: 1px solid var(--theme-border-color) !important; border-radius: 12px; padding-left: 39px; font-size: 16px; }
    html[data-theme] .page-dashboard .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; margin: 0; }
    html[data-theme] .page-dashboard .toolbar-actions .btn { min-height: 44px; border-radius: 11px; font-size: 12px; padding: 10px 12px; }
    html[data-theme] .page-dashboard .accounts-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    html[data-theme] .page-dashboard .account-card { border-radius: 16px; min-width: 0; }
    html[data-theme] .page-dashboard .account-card-body { padding: 18px 18px 16px; }
    html[data-theme] .page-dashboard .account-card-header { align-items: center; gap: 10px; margin-bottom: 20px; }
    html[data-theme] .page-dashboard .account-identity { gap: 11px; min-width: 0; }
    html[data-theme] .page-dashboard .account-identity > div:last-child { min-width: 0; }
    html[data-theme] .page-dashboard .account-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; font-size: 16px; }
    html[data-theme] .page-dashboard .account-name { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
    html[data-theme] .page-dashboard .account-phone { font-size: 10px; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
    html[data-theme] .page-dashboard .account-card-header .badge { flex-shrink: 0; font-size: 10px; padding: 4px 8px; }
    html[data-theme] .page-dashboard .account-balance { font-size: 30px; margin: 0 0 16px; line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
    html[data-theme] .page-dashboard .account-balance-currency { font-size: 13px; margin-right: 5px; }
    html[data-theme] .page-dashboard .account-meta { padding-top: 13px; gap: 8px; }
    html[data-theme] .page-dashboard .account-meta-row { font-size: 11px; line-height: 1.5; align-items: flex-start; }
    html[data-theme] .page-dashboard .account-meta-row > span { min-width: 0; overflow-wrap: anywhere; }
    html[data-theme] .page-dashboard .account-actions { padding: 12px; gap: 8px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    html[data-theme] .page-dashboard .account-actions .btn { min-height: 44px; padding: 10px 6px !important; min-width: 0; font-size: 11px !important; border-radius: 10px !important; margin: 0; }
    html[data-theme] .page-dashboard .account-actions .btn-account-robot { grid-column: auto; }
    html[data-theme] .page-dashboard .account-actions .btn i { font-size: 13px; }
    html[data-theme] .page-dashboard .empty-state { padding: 40px 16px; }
    html[data-theme] .page-dashboard .token-admin-alert { padding: 12px; gap: 10px; flex-wrap: wrap; }
    #account-modal { padding: 0; align-items: flex-end; }
    #account-modal .account-editor-panel { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); padding: 22px 18px max(18px,env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; overscroll-behavior: contain; }
    #account-modal .account-editor-heading { gap: 10px; margin-bottom: 18px; }
    #account-modal .account-editor-heading-copy p { font-size: 11px; }
    #account-modal .form-input { min-height: 46px; font-size: 16px; }
    #account-modal .grid-2 { grid-template-columns: 1fr; }
    #account-modal .account-editor-footer { bottom: -18px; padding: 12px 0 max(8px,env(safe-area-inset-bottom)) !important; }
    #account-modal .account-editor-footer .btn { min-height: 44px; }
}
@media (max-width: 350px) {
    html[data-theme] .topbar { padding: 0 12px; gap: 10px; }
    .mobile-shell-brand { font-size: 11px; letter-spacing: .03em; }
    html[data-theme] .topbar-right { gap: 6px; }
    html[data-theme] .page-dashboard .main-content-area { padding-right: 12px; padding-left: 12px; }
    html[data-theme] .page-dashboard .page-head-title { font-size: 21px; }
    html[data-theme] .page-dashboard .account-card-body { padding: 16px; }
}

/* Give the dashboard heading and search one clear visual container. */
.dashboard-overview { display: contents; }
.dashboard-heading-icon { display: none; }
@media (max-width: 767px) {
    html[data-theme] .page-dashboard .dashboard-overview {
        display: block;
        position: relative;
        padding: 18px 16px 16px;
        margin-bottom: 18px;
        border: 1px solid var(--theme-border-color);
        border-radius: 20px;
        background: var(--theme-bg-primary);
        box-shadow: 0 6px 20px -16px rgba(0,0,0,.35);
    }
    html[data-theme="dark"] .page-dashboard .dashboard-overview {
        background: radial-gradient(ellipse at 100% 0,rgba(59,130,246,.1),transparent 62%),#142033;
        border-color: #2b3e57;
    }
    html[data-theme="light"] .page-dashboard .dashboard-overview {
        background: radial-gradient(ellipse at 100% 0,rgba(59,130,246,.07),transparent 65%),#fff;
        border-color: #dfe7f2;
    }
    html[data-theme] .page-dashboard .main-content-area { padding-top: 18px; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head { gap: 8px; margin-bottom: 18px; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-title {
        display: flex; align-items: center; gap: 8px;
        font-size: 22px; letter-spacing: -.045em; line-height: 1.3;
    }
    .dashboard-heading-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex: 0 0 22px; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-sub { font-size: 11px; margin-top: 7px; line-height: 1.65; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat {
        padding: 7px 9px; gap: 5px; border-radius: 9px;
        border: 1px solid var(--primary-soft-border) !important;
        background: var(--primary-soft); align-self: flex-start;
    }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat-value { font-size: 16px; line-height: 1.4; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat-label { font-size: 10px; color: var(--primary-text-on-soft); }
    html[data-theme] .page-dashboard .dashboard-overview .toolbar { margin-bottom: 0; gap: 12px; }
    html[data-theme] .page-dashboard .dashboard-overview .search-wrap .form-input {
        height: 46px; min-height: 46px; padding-left: 38px;
        border-radius: 12px; font-size: 16px; letter-spacing: -.025em;
        background: var(--theme-input-bg) !important;
    }
    html[data-theme] .page-dashboard .dashboard-overview .search-wrap .form-input::placeholder { font-size: 12px; letter-spacing: 0; }
    html[data-theme] .page-dashboard .dashboard-overview .search-wrap i { left: 13px; color: var(--theme-text-muted); font-size: 15px; }
    html[data-theme] .page-dashboard .dashboard-overview .toolbar-actions { gap: 8px; grid-template-columns: .8fr 1.2fr; }
    html[data-theme] .page-dashboard .dashboard-overview .toolbar-actions .btn { min-height: 44px; font-size: 12px; border-radius: 11px; }
    html[data-theme] .page-dashboard .dashboard-overview .toolbar-actions #btn-filter { background: transparent !important; }
}
@media (max-width: 350px) {
    html[data-theme] .page-dashboard .dashboard-overview { padding: 16px 12px 12px; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-title { font-size: 20px; gap: 6px; }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-sub { font-size: 10px; }
}
@media (max-width: 767px) {
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-self: center;
        gap: 3px;
        min-width: 56px;
        padding: 9px 12px;
        border-radius: 12px;
        border: 1px solid var(--theme-border-light) !important;
        background: var(--theme-bg-secondary);
    }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat-value {
        font-size: 23px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.04em;
        font-variant-numeric: tabular-nums;
    }
    html[data-theme] .page-dashboard .dashboard-overview .page-head-stat-label {
        color: var(--theme-text-muted);
        font-size: 9px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: .1em;
        text-transform: uppercase;
    }
}

.mutasi-mobile-action-label { display: none; }
.mutasi-empty { max-width: 440px; margin: 0 auto; }
.mutasi-empty-icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: var(--primary-soft); color: var(--primary); font-size: 25px; }
.mutasi-empty h3 { color: var(--theme-text-primary); font-size: 18px; margin: 0 0 9px; font-weight: 700; }
.mutasi-empty p { font-size: 13px; line-height: 1.75; color: var(--theme-text-muted); margin: 0 auto 22px; max-width: 290px; white-space: normal; }
.mutasi-empty .btn { min-height: 44px; }
@media (max-width: 991px) {
    html[data-theme] .page-mutasi .topbar {
        display: grid; grid-template-columns: 40px minmax(0,1fr) auto;
        grid-template-rows: 44px auto; gap: 12px 10px;
        height: auto; min-height: 128px; padding: 12px;
        align-items: center; overflow: visible;
    }
    html[data-theme] .page-mutasi .menu-toggle { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
    html[data-theme] .page-mutasi .topbar-mutasi-context { display: contents; }
    html[data-theme] .page-mutasi .topbar-mutasi-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; grid-column: 2; grid-row: 1; }
    html[data-theme] .page-mutasi .topbar-mutasi-title-row { gap: 8px; display: flex; align-items: center; }
    html[data-theme] .page-mutasi .topbar-mutasi-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; letter-spacing: -.03em; line-height: 1.2; }
    html[data-theme] .page-mutasi .topbar-mutasi-count { font-size: 10px; line-height: 1.3; color: var(--theme-text-muted); }
    html[data-theme] .page-mutasi .mutasi-live-status { font-size: 8px; padding: 3px 5px; gap: 4px; }
    html[data-theme] .page-mutasi .topbar-right { grid-column: 3; grid-row: 1; margin: 0; gap: 8px; }
    html[data-theme] .page-mutasi .topbar-right .user-info,
    html[data-theme] .page-mutasi .topbar-right .profile-menu-caret { display: none; }
    html[data-theme] .page-mutasi .topbar-right .profile-menu-trigger { border: 0; background: transparent; padding: 3px; min-height: 40px; }
    html[data-theme] .page-mutasi .topbar-mutasi-actions {
        grid-column: 1 / -1; grid-row: 2;
        display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px;
        width: 100%; min-width: 0; padding: 0;
        background: transparent; border: 0; border-radius: 0;
    }
    html[data-theme] .page-mutasi .topbar-mutasi-btn {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        width: 100%; min-width: 0; height: 48px; min-height: 48px;
        padding: 6px 2px; gap: 5px; position: relative;
        border: 1px solid var(--theme-border-color); border-radius: 10px;
        background: var(--theme-bg-primary); color: var(--theme-text-secondary);
        box-shadow: none;
    }
    html[data-theme] .page-mutasi .topbar-mutasi-btn i { margin: 0; font-size: 16px; line-height: 1; }
    html[data-theme] .page-mutasi .topbar-mutasi-btn-label { display: none; }
    html[data-theme] .page-mutasi .mutasi-mobile-action-label { display: block; font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: 0; }
    html[data-theme] .page-mutasi .topbar-mutasi-btn.is-filter { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft-border); }
    html[data-theme] .page-mutasi .mutasi-copy-counter { top: 2px; right: 3px; font-size: 8px; min-width: 13px; }
    html[data-theme] .page-mutasi .main-content-area { padding: 20px 14px 28px; }
    html[data-theme] .page-mutasi .mutasi-table-card { border: 0 !important; background: transparent; box-shadow: none; border-radius: 0; margin: 0; }
    html[data-theme] .page-mutasi #mutasi-sheet-hint { display: none !important; }
    html[data-theme] .page-mutasi .mutasi-data-table tr:has(.mutasi-empty),
    html[data-theme] .page-mutasi .mutasi-data-table td:has(.mutasi-empty) { display: block; width: 100%; padding: 0 !important; border: 0; white-space: normal; }
    html[data-theme] .page-mutasi .mutasi-empty {
        max-width: none; padding: 40px 20px !important; margin: 0;
        border: 1px solid var(--theme-border-color); border-radius: 18px;
        background: var(--theme-bg-primary); box-shadow: none;
    }
    html[data-theme] .page-mutasi .mutasi-empty h3 { font-size: 18px; }
    html[data-theme] .page-mutasi .mutasi-empty p { font-size: 12px; max-width: 255px; }
    html[data-theme] .page-mutasi #mutasi-filter-modal { z-index: 500; padding: 12px; }
    html[data-theme] .page-mutasi .mutasi-filter-panel { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (min-width: 601px) and (max-width: 991px) {
    html[data-theme] .page-mutasi .topbar-mutasi-actions { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
}
@media (max-width: 600px) {
    html[data-theme] .page-mutasi .topbar-mutasi-actions { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
    html[data-theme] .page-mutasi #btn-name-correction-report { grid-column: span 2; flex-direction: row; gap: 8px; }
}
