.category-panel{margin-top:22px;border:1px solid #dfe8df;border-radius:12px;background:#fff;overflow:hidden;color:#294535}
.category-history{padding:10px 12px;background:#f6f5ef;border-radius:6px;margin-bottom:12px}.category-history>small{font-size:10px;line-height:1.7;color:#7a735e}.category-history .category-chip{background:#efeee8;border-color:#e2dfd2;color:#736d5a}.category-history .category-chips{margin-bottom:0}
.category-panel>header{padding:20px 20px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.category-panel h2{font-size:14px;margin:0 0 7px}.category-panel header p{font-size:11px;color:#687e6e;line-height:1.7;margin:0}.category-panel header>span{font-size:10px;color:#447b58;background:#edf5ee;padding:5px 8px;border-radius:5px;white-space:nowrap}
.category-tabs{display:flex;padding:0 15px;border-bottom:1px solid #e6ede6;gap:4px}.category-tabs button{flex:1;padding:13px 4px;font-size:12px;color:#6a7f70;border-bottom:2px solid transparent}.category-tabs button[aria-selected=true]{color:#256346;border-color:#397b53;background:#f4f8f3}.category-tabs small{margin-left:5px;background:#edf2ec;border-radius:9px;padding:1px 5px;font-size:9px}
#category-panel-body{padding:17px 20px}.subject-kinds{border:0;padding:0;margin:0 0 12px;min-width:0}.subject-kinds legend{font-size:12px;margin-bottom:11px}.subject-kinds legend small{font-size:10px;color:#748873;margin-left:8px}.subject-kinds>div{display:flex;flex-wrap:wrap;gap:7px}.subject-kind{display:flex;align-items:center;gap:5px;border:1px solid #dee7db;border-radius:6px;padding:7px 8px;font-size:11px;cursor:pointer}.subject-kind.selected{background:#edf5ec;border-color:#7aa888;color:#2f6f48}.subject-kind input,.category-option input{accent-color:#397b53;width:14px;height:14px;flex-shrink:0}.subject-kind.no-subject{border-style:dashed}.subject-kinds p{font-size:10px;color:#788977;line-height:1.7;margin:9px 0 0}
.category-selection{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#6f826c;min-height:26px}.category-clear{font-size:10px;color:#7c6851;text-decoration:underline;text-underline-offset:3px}.category-chips{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 11px}.category-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:5px;font-size:11px;color:#326b47;background:#edf5eb;border:1px solid #dbe8d7}.category-chip button{font-size:15px;line-height:1;width:18px;height:18px;color:#547c5b}.category-search input{width:100%;padding:10px 12px;border:1px solid #dbe5d8;border-radius:7px;font-size:12px;color:#365942;background:#fafcf9;margin:0 0 10px}.category-search input:focus{outline:2px solid #9cbd9e;outline-offset:1px}.category-search input:disabled{background:#f0f3ed;color:#7a8977}
.category-results{max-height:390px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.category-match-count{font-size:10px;color:#768a75;margin:0 0 10px}.category-empty{font-size:12px;color:#738271;line-height:1.9;padding:13px 0;margin:0}.category-group{border:1px solid #e3eae0;border-radius:7px;margin:0 2px 9px 0}.category-group summary{display:flex;align-items:center;gap:8px;padding:11px 12px;font-size:11px;cursor:pointer;background:#f7f9f5;list-style:none}.category-group summary:before{content:'›';font-size:16px;line-height:1;transition:transform .15s}.category-group[open] summary:before{transform:rotate(90deg)}.category-group summary small{margin-left:auto;white-space:nowrap;font-size:10px;color:#7d8e76}.category-options{padding:5px 10px}.category-option{display:flex;align-items:flex-start;gap:8px;padding:9px 1px;font-size:12px;cursor:pointer;line-height:1.6}.category-option+.category-option{border-top:1px solid #f0f3ec}.category-option input{margin-top:3px}.category-option span{min-width:0;overflow-wrap:anywhere}.category-option small{display:block;font-size:10px;color:#798674;line-height:1.7;margin-top:4px}.category-panel footer{border-top:1px solid #e9eee5;padding:12px 20px;font-size:10px;color:#7d8a76;background:#fcfdfb}.category-summary{display:grid;gap:10px;margin-top:15px}.category-summary>div{display:grid;grid-template-columns:45px 1fr;gap:8px;font-size:11px;line-height:1.8}.category-summary b{color:#3c704c}.category-summary span{color:#6b7e65;overflow-wrap:anywhere}
@media(max-width:720px){.category-panel>header{padding:16px}.category-panel header p{font-size:10px}.category-tabs{padding:0 9px;gap:0}.category-tabs button{font-size:11px}.category-tabs small{margin-left:3px}#category-panel-body{padding:14px}.subject-kinds legend small{display:block;margin:5px 0 0}.category-results{max-height:340px}.category-panel footer{padding:11px 14px}}
