.category-section{margin-top:24px;padding-top:18px;border-top:1px solid var(--border,#e2e5df)}
.category-section:first-child{margin-top:0;padding-top:0;border-top:0}
.category-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.island-shell .agent-topbar:has(#categoryTopActions:not(.tab-context-hidden):not(.hidden)){position:sticky;top:0;z-index:40;background:var(--bg,#f7f8f5);box-shadow:0 5px 12px #294c4212}
.category-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.category-inline input,.category-inline select{width:220px;max-width:100%}
#categoryEditor table input:not([type=checkbox]),#categoryEditor table select{min-width:140px;width:100%}
#categoryEditor table input[type=number]{min-width:80px;max-width:110px}
#categoryEditor th,#categoryEditor td{text-align:left}
@media(max-width:700px){.category-inline input,.category-inline select{width:100%}}

.category-memberships{min-width:260px;max-width:500px}.category-memberships summary{cursor:pointer;line-height:1.6}.category-membership-options{margin-top:10px;max-height:300px;overflow:auto;padding:10px;background:var(--bg,#f7f8f5);border:1px solid var(--border,#e2e5df);border-radius:6px}.category-membership-options label{display:flex;align-items:center;gap:8px;margin:6px 0}.category-membership-options input[type=checkbox]{width:16px;min-width:16px;flex-shrink:0}
#categoryEditor [data-category-row]{cursor:grab}#categoryEditor [data-category-row]:active{cursor:grabbing}
#categoryEditor [data-category-name][readonly]{pointer-events:none;user-select:none}
#categoryEditor [data-category-row]:hover [data-category-name][readonly]{background:var(--primary-soft,#e8f2ee)}
#categoryEditor [data-category-name]:not([readonly]){cursor:text}
#categoryEditor [data-category-row]:focus-visible{outline:2px solid var(--primary,#19665d);outline-offset:-2px}
#categoryEditor .category-drag-placeholder{outline:1px dashed var(--primary,#19665d);outline-offset:-1px}
#categoryEditor .category-drag-placeholder td{background:var(--primary-soft,#e8f2ee);color:transparent}
#categoryEditor .category-drag-placeholder td>*{visibility:hidden}
.category-drag-preview{position:fixed;left:0;top:-10000px;table-layout:fixed;pointer-events:none;background:var(--surface,#fff);box-shadow:0 10px 28px #294c4230;border-radius:8px}
.category-drag-preview td{box-sizing:border-box}.category-drag-preview input,.category-drag-preview select{width:100%}
#categoryEditor tr.category-project-disabled td{background:#f0f1ef;color:#69736d}
#categoryEditor tr.category-project-unconfigured td{background:#fff8e8}
.category-project-status{display:inline-block;padding:3px 10px;border-radius:14px;font-weight:600;white-space:nowrap}
.category-project-status.available{background:#dcfce7;color:#166534}.category-project-status.disabled{background:#e3e6e2;color:#566159}.category-project-status.unconfigured{background:#fef3c7;color:#92400e}
.category-filter-picker{position:relative;width:220px;max-width:100%}.category-filter-picker>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:40px;padding:8px 12px;background:var(--panel,#fff);border:1px solid var(--border,#e2e5df);border-radius:6px}.category-filter-picker>summary::-webkit-details-marker{display:none}.category-filter-picker>summary::after{content:'▾';margin-left:12px}.category-filter-picker>summary:focus-visible{outline:2px solid var(--primary,#19665d);outline-offset:2px}
.category-filter-popup{position:absolute;top:calc(100% + 5px);left:0;width:320px;max-width:calc(100vw - 48px);padding:10px;z-index:30;background:var(--panel,#fff);border:1px solid var(--border,#e2e5df);border-radius:8px;box-shadow:0 8px 24px #163b2820}
@media(max-width:700px){.category-filter-picker{width:100%}.category-filter-popup{width:100%}}
.category-filter-options{max-height:280px;overflow:auto}.category-filter-options label{display:flex;align-items:center;gap:9px;padding:7px 5px;cursor:pointer;font-size:13px}.category-filter-options label:hover{background:var(--primary-soft,#e8f2ee);border-radius:5px}.category-filter-options input[type=checkbox]{width:16px;height:16px;min-width:16px;flex-shrink:0;margin:0}.category-filter-picker>summary{overflow:hidden;white-space:nowrap}
