/* Parent categories are compact disclosures, shared by admin and visitor. */
.sj-category-group{margin:8px 0;border:1px solid #e2e6ed;border-radius:12px;background:#fff;min-width:0;overflow:hidden}
.sj-category-group>summary{cursor:pointer;padding:13px 12px;color:#294472;font-weight:600;font-size:14px;list-style-position:inside;overflow-wrap:anywhere}
.sj-category-group>summary>span{float:left;font-size:11px;background:#edf2fa;border-radius:6px;padding:2px 6px;font-weight:400}
.sj-category-children{padding:0 8px 8px;min-width:0}.sj-category-children .sb-category-row{margin:0;border-bottom:1px solid #edf0f5;padding:12px 6px}.sj-category-children .sb-category-row:last-child{border-bottom:0}
[data-side-categories] .sj-category-children{display:grid;gap:6px}[data-side-categories] .sj-category-children button{width:100%;text-align:right;white-space:normal;overflow-wrap:anywhere}
.sj-category-children .sb-category-row strong{overflow-wrap:anywhere;font-size:13px}
.sj-category-add{margin-top:14px}.sj-category-add .sb-field{flex:1;min-width:140px}
@media(max-width:600px){.sj-category-group>summary{font-size:13px}.sj-category-children .sb-category-row{gap:10px;flex-wrap:wrap}}

/* Branch navigation lives in the sidebar; keep the catalog itself uncluttered. */
#sb[data-page=visitor] .sb-categories [data-category][aria-pressed=false]{display:none}
