/* 01241 · Marketplace Category accordion tree/editor workspace. */
.mp-category-accordion-shell-01241{display:grid;gap:12px;min-width:0}
.mp-category-toolbar-01241{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto auto;gap:8px;align-items:center}
.mp-category-tree--accordion{display:grid;gap:7px;min-width:0}
.mp-category-accordion{position:relative;margin-left:calc(var(--mp-category-depth,0)*18px);border:1px solid var(--st-ui-border,#dfe9e3);border-radius:var(--st-ui-radius,13px);background:var(--st-ui-surface,#fff);transition:border-color .14s,box-shadow .14s,background .14s,opacity .14s;overflow:visible}
.mp-category-accordion.is-open{border-color:color-mix(in srgb,var(--st-ui-accent,#159454) 30%,var(--st-ui-border,#dfe9e3));box-shadow:0 9px 24px rgba(25,83,49,.07)}
.mp-category-accordion.is-orphan{border-style:dashed}
.mp-category-accordion.is-dragging{opacity:.48}
.mp-category-accordion__head{position:relative;display:grid;grid-template-columns:24px 30px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:52px;padding:7px 10px 7px 8px;border-radius:inherit;background:var(--st-ui-surface,#fff);cursor:pointer}
.mp-category-accordion.is-open>.mp-category-accordion__head{border-bottom:1px solid var(--st-ui-border,#e4ece7);border-bottom-left-radius:0;border-bottom-right-radius:0}
.mp-category-drag-handle,.mp-category-drag-placeholder{width:22px;height:30px;display:grid;grid-template-columns:repeat(2,4px);grid-template-rows:repeat(3,4px);place-content:center;gap:3px;border:0;border-radius:8px;background:transparent;padding:0;cursor:grab}
.mp-category-drag-handle:active{cursor:grabbing}.mp-category-drag-handle:hover{background:color-mix(in srgb,var(--st-ui-accent,#159454) 9%,transparent)}
.mp-category-drag-handle i{display:block;width:4px;height:4px;border-radius:50%;background:var(--st-ui-accent,#20a565);box-shadow:0 0 0 1px color-mix(in srgb,var(--st-ui-accent,#20a565) 14%,transparent)}
.mp-category-accordion__toggle{width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--st-ui-border,#dce8e1);border-radius:8px;background:var(--st-ui-surface-2,#f6faf7);color:var(--st-ui-text,#20382a);font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.mp-category-accordion__summary{display:grid;gap:2px;min-width:0}.mp-category-accordion__summary strong{overflow:hidden;color:var(--st-ui-text,#20382a);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.mp-category-accordion__summary small{overflow:hidden;color:var(--st-ui-muted,#819188);font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.mp-category-accordion__body{padding:10px;background:var(--st-ui-surface-2,#f8fbf9);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
.mp-category-accordion__body>.mp-category-editor{margin:0;box-shadow:none}
.mp-category-accordion.is-drop-before>.mp-category-accordion__head::before,.mp-category-accordion.is-drop-after>.mp-category-accordion__head::after{content:"";position:absolute;left:8px;right:8px;height:3px;border-radius:999px;background:#4aa3ff;box-shadow:0 0 0 2px rgba(74,163,255,.12);z-index:5}
.mp-category-accordion.is-drop-before>.mp-category-accordion__head::before{top:-5px}.mp-category-accordion.is-drop-after>.mp-category-accordion__head::after{bottom:-5px}
.mp-category-accordion.is-drop-inside{border-color:#4aa3ff;background:rgba(74,163,255,.06);box-shadow:0 0 0 3px rgba(74,163,255,.12)}
.mp-category-accordion.is-drop-inside>.mp-category-accordion__head{background:rgba(74,163,255,.08)}
@media(max-width:980px){.mp-category-toolbar-01241{grid-template-columns:1fr 1fr}.mp-category-toolbar-01241 .mp-search{grid-column:1/-1}.mp-category-accordion{margin-left:calc(var(--mp-category-depth,0)*12px)}}
@media(max-width:620px){.mp-category-toolbar-01241{grid-template-columns:1fr}.mp-category-toolbar-01241 .mp-search{grid-column:auto}.mp-category-accordion{margin-left:calc(var(--mp-category-depth,0)*8px)}.mp-category-accordion__head{grid-template-columns:22px 28px minmax(0,1fr)}.mp-category-accordion__head>.mp-badge{grid-column:3;justify-self:start}}

/* 01244 · Category row thumbnail + right-side toggle; square media previews. */
.mp-category-accordion__head{grid-template-columns:24px 40px minmax(0,1fr) auto 30px}
.mp-category-accordion__thumb{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--st-ui-border,#dce8e1);border-radius:9px;background:var(--st-ui-surface-2,#f3f8f5);color:var(--st-ui-muted,#819188)}
.mp-category-accordion__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.mp-category-accordion__thumb.is-empty{font-size:15px;font-weight:800}
.mp-category-accordion__toggle--right{justify-self:end}
.mp-category-image-preview{align-items:start}
.mp-category-image-tile{min-height:0!important;height:auto!important;aspect-ratio:1/1}
.mp-category-image-tile img{width:100%!important;height:100%!important;aspect-ratio:1/1;object-fit:cover}
.mp-category-image-spec{grid-column:1/-1;padding:9px 11px;border:1px dashed var(--st-ui-border,#d5e4db);border-radius:10px;background:var(--st-ui-surface-2,#f8fbf9);color:var(--st-ui-muted,#718279);font-size:9px;line-height:1.45;text-align:center}
@media(max-width:620px){.mp-category-accordion__head{grid-template-columns:22px 36px minmax(0,1fr) auto 28px;gap:6px}.mp-category-accordion__thumb{width:34px;height:34px}.mp-category-accordion__head>.mp-badge{grid-column:auto;justify-self:end}}


/* 01246 · Hierarchical save-state dots + inline subcategory create action. */
.mp-category-accordion__head{grid-template-columns:24px 40px minmax(0,1fr) 12px auto 30px}
.mp-category-save-indicator{width:9px;height:9px;border-radius:50%;display:block;justify-self:center;box-shadow:0 0 0 2px color-mix(in srgb,currentColor 13%,transparent);transition:background .14s,color .14s,box-shadow .14s}
.mp-category-save-indicator.is-green{color:#169b5b;background:#22b96d}
.mp-category-save-indicator.is-yellow{color:#c38a12;background:#f2b52f}
.mp-category-save-indicator.is-red{color:#cc3948;background:#e74b5a}
.mp-category-add-child-01246{white-space:nowrap}
.mp-category-editor__head-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:620px){.mp-category-accordion__head{grid-template-columns:22px 36px minmax(0,1fr) 10px auto 28px;gap:6px}.mp-category-save-indicator{width:8px;height:8px}}

/* 01247 · Category branch collapse/expand controls + tree count details. */
.mp-category-tree-card__head-actions-01247{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.mp-category-tree-global-toggle-01247,.mp-category-branch-toggle-01247{appearance:none;display:grid;place-items:center;border:1px solid var(--st-ui-border,#dce8e1);background:var(--st-ui-surface-2,#f6faf7);color:var(--st-ui-text,#20382a);cursor:pointer;transition:border-color .14s,background .14s,color .14s,transform .14s}
.mp-category-tree-global-toggle-01247{width:28px;height:28px;border-radius:8px;font-size:15px;font-weight:900}
.mp-category-tree-global-toggle-01247:hover,.mp-category-branch-toggle-01247:hover{border-color:color-mix(in srgb,var(--st-ui-accent,#159454) 38%,var(--st-ui-border,#dce8e1));background:color-mix(in srgb,var(--st-ui-accent,#159454) 8%,var(--st-ui-surface-2,#f6faf7));color:var(--st-ui-accent,#159454)}
.mp-category-count-badge-01247{cursor:help;user-select:none}
.mp-category-branch-toggle-01247{width:24px;height:24px;border-radius:7px;padding:0;font-size:13px;font-weight:900}
.mp-category-branch-toggle-placeholder-01247{width:24px;height:24px;display:block}
.mp-category-accordion__head{grid-template-columns:24px 24px 40px minmax(0,1fr) 12px auto 30px}
.mp-category-count-help-01247{display:grid;gap:12px;min-width:0}
.mp-category-count-help-01247__list{display:grid;gap:7px}
.mp-category-count-help-01247__list>div,.mp-category-count-help-01247__total{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 11px;border:1px solid rgba(148,163,184,.16);border-radius:10px;background:rgba(15,23,42,.36)}
.mp-category-count-help-01247__list span,.mp-category-count-help-01247__total span{color:#cbd5e1}
.mp-category-count-help-01247__list b,.mp-category-count-help-01247__total b{color:#f8fafc;font-size:13px}
.mp-category-count-help-01247__total{border-color:rgba(125,211,252,.28);background:rgba(14,116,144,.12)}
@media(max-width:620px){.mp-category-accordion__head{grid-template-columns:22px 22px 36px minmax(0,1fr) 10px auto 28px;gap:6px}.mp-category-branch-toggle-01247,.mp-category-branch-toggle-placeholder-01247{width:22px;height:22px}}

/* 01253 · category leaf destination override */
.mp-category-leaf-target-options-01253{display:grid;gap:7px}.mp-category-leaf-target-options-01253 label{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 10px;border:1px solid rgba(148,163,184,.18);border-radius:10px;background:rgba(15,23,42,.04);cursor:pointer;font-size:11px;font-weight:800}.mp-category-leaf-target-options-01253 input{accent-color:#16a34a}.mp-category-leaf-target-options-01253 label:has(input:checked){border-color:rgba(22,163,74,.34);background:rgba(22,163,74,.08)}

/* 01472: category item-role radio group; shared by legacy and accordion editors. */
.mp-category-role-options-01472{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.mp-category-role-option-01472{display:flex;align-items:start;gap:10px;border:1px solid var(--st-ui-border,#d8e7dc);border-radius:12px;padding:11px;background:var(--st-ui-surface,#fff);cursor:pointer;min-height:54px;box-sizing:border-box}
.mp-category-role-option-01472 input{margin:3px 0 0;accent-color:var(--st-ui-accent,#129b62);flex-shrink:0}
.mp-category-role-option-01472 span{display:grid;gap:5px;min-width:0}.mp-category-role-option-01472 strong{font-size:12px;color:var(--st-ui-text,#173020)}
.mp-category-role-option-01472 small{font-size:10px;line-height:1.45;color:var(--st-ui-muted,#647b70)}
.mp-category-role-option-01472:has(input:checked){border-color:var(--st-ui-accent,#159454);background:color-mix(in srgb,var(--st-ui-accent,#159454) 7%,white);box-shadow:0 0 0 1px var(--st-ui-accent,#159454)}
.mp-category-role-option-01472:focus-within{outline:2px solid var(--st-ui-accent,#159454);outline-offset:2px}
@media(max-width:760px){.mp-category-role-options-01472{grid-template-columns:1fr}}

/* 01478: compact title-only type options; full explanations live in the shared movable help window. */
.mp-category-role-option-01472{align-items:center}
.mp-category-role-option-01472 input{margin:0}
.mp-category-role-option-01472 span{display:block}
.mp-category-role-option-01472 strong{display:inline-block;line-height:1.4;overflow-wrap:anywhere}
.mp-category-role-help-01478{cursor:help}
.mp-category-role-help-01478:focus-visible{outline:2px solid var(--st-ui-accent,#159454);outline-offset:3px;border-radius:3px}
.mp-category-role-help-content-01478{display:grid;gap:10px;min-width:0}
.mp-category-role-help-content-01478 p{margin:0;white-space:pre-line;line-height:1.6;overflow-wrap:anywhere}
