/* 最近浏览原稿内联样式，仅提取弹层作用域；正文布局保持各页原样。 */
        .hg-history-dialog__mask{
            display:none;position:fixed;inset:0;z-index:0;margin:0;padding:0;border:0;
            background:rgba(0,0,0,.65);cursor:pointer;-webkit-tap-highlight-color:transparent
        }
        .hg-history-dialog__panel{position:relative;z-index:1}
        @media (min-width:641px){

            .hg-history-dialog{background:transparent!important}
            .hg-history-dialog.is-open .hg-history-dialog__mask{display:block}
        }

        html.is-history-dialog-open,
        body.is-history-dialog-open{overflow:hidden!important;overscroll-behavior:none!important}
        .hg-history-dialog.is-open,
        .hg-history-dialog__panel,
        .hg-history-dialog__list{overscroll-behavior:none;-webkit-overflow-scrolling:touch}
        .hg-history-dialog__header{margin-bottom:12px}
        .hg-history-dialog__tabs{margin-bottom:12px;gap:16px}
        .hg-history-dialog__list{
            display:grid!important;
            align-items:stretch!important;
            align-content:start!important;
            justify-items:stretch;
            gap:12px;
            grid-auto-rows:max-content!important;
            grid-template-rows:none
        }

        .hg-history-dialog__list:has(> .hg-post-card){grid-template-columns:repeat(2,minmax(0,1fr))!important}
        .hg-history-dialog__list .hg-post-card{align-self:start;background:transparent;border:0}

        .hg-history-dialog__list .hg-post-card__gallery{aspect-ratio:2/1;height:auto!important}
        .hg-history-dialog__list .hg-post-card__body{padding:8px 10px 10px}
        .hg-history-dialog__list .hg-post-card__body h3{font-size:13px;line-height:18px}
        .hg-history-dialog__list .hg-post-card__meta{margin:0 0 4px;font-size:11px}
        .hg-history-dialog__list .hg-drama-card{
            display:flex;flex-direction:column;
            align-self:stretch!important;
            flex:none!important;
            gap:0;height:auto!important;max-height:none!important;min-height:0!important;
            overflow:visible;position:relative;z-index:0;transform:none
        }
        .hg-history-dialog__list .hg-drama-card:hover{transform:none}
        .hg-history-dialog__list .hg-drama-card__cover{flex:0 0 auto!important;height:auto;overflow:hidden;border-radius:inherit}
        .hg-history-dialog__list .hg-drama-card__body{
            display:flex;flex-direction:column;flex:1 1 auto!important;min-height:0;
            padding:6px 8px 6px;overflow:visible
        }
        .hg-history-dialog__list .hg-drama-card__desc{margin-top:4px}

        .hg-history-dialog__list .hg-drama-card__tags{
            flex:0 0 auto;margin-top:4px;padding-top:0;gap:3px 4px
        }

        .hg-history-dialog__list:has(> .hg-history-empty){
            display:flex!important;align-items:center!important;justify-content:center!important;
            align-content:center!important;grid-auto-rows:unset!important;min-height:200px
        }
        .hg-history-empty{
            margin:0;width:100%;box-sizing:border-box;padding:48px 16px;
            color:#888;font-size:14px;line-height:1.5;text-align:center
        }
        @media (max-width:640px){
            .hg-history-dialog__header{padding:12px 16px 8px!important}
            .hg-history-dialog__tabs{padding:0 16px!important;margin-bottom:0}
            .hg-history-dialog__list{
                gap:10px;padding:10px 12px 16px!important;
                align-items:stretch!important;align-content:start!important;
                grid-auto-rows:max-content!important
            }
            .hg-history-dialog__list:has(> .hg-history-empty){
                align-items:center!important;justify-content:center!important;align-content:center!important;
                min-height:0;
            }
            .hg-history-dialog__list .hg-drama-card{align-self:stretch!important;height:auto!important}
            .hg-history-dialog__list .hg-drama-card__body{padding:6px 6px 5px}

            .hg-history-dialog__list .hg-drama-card{--hg-tag-h:18px}
            .hg-history-dialog__list .hg-drama-card__tags{margin-top:4px;gap:2px 4px}
            .hg-history-dialog__list .hg-tag{padding:1px 5px;font-size:10px;line-height:14px}
        }


.hg-history-dialog__list .hg-drama-card__score,.hg-history-dialog__list .hg-drama-card__episode{display:none!important}