/* Keep the retention separator beside its caption; title-action content must not move it. */
.bonza-shell-page-titlebar > .bz-retention[data-retention-caption] { margin-left: 0 !important; }
@media (max-width: 767px) {
  .bonza-app-shell:has(> .bz-mtitlebar [data-retention-caption]) {
    grid-template-rows: 56px 32px auto minmax(0, 1fr) auto;
  }
}
/* #790: the mobile retention row must not consume the XHS content track. */
@media (max-width: 767px) {
  .bonza-app-shell:has(iframe[data-benzan-xhs-integrated="true"][data-benzan-frame-active="true"]):has(> .bz-mtitlebar) {
    grid-template-rows: 56px 32px auto minmax(0, 1fr);
  }
}
/* Preserve the existing coarse-pointer device notice as its own content row. */
@media (max-width: 760px) and (pointer: coarse) {
  .bonza-app-shell:has(iframe[data-benzan-xhs-integrated="true"][data-benzan-frame-active="true"]):has(> .bz-mtitlebar) {
    grid-template-rows: 56px 32px auto auto minmax(0, 1fr);
  }
}
html:has(.bonza-app-shell[data-content-mode=management]){scrollbar-gutter:stable}
.bonza-app-shell[data-content-mode=document][data-creation-retention=true] .bonza-shell-main{scrollbar-gutter:stable}
.bonza-task-dashboard:has(>.bonza-task-list[aria-busy=true]:empty)>:not(.bonza-task-heading){display:none}
.bonza-task-dashboard:has(>.bonza-task-list[aria-busy=true]:empty)::after{content:"正在读取任务…";display:block;padding:16px 0;border-top:1px solid var(--hair-soft);color:var(--ink3);font-size:13px;line-height:1.6}
