.category-browse{display:flex;align-items:center;gap:14px;margin:0 0 20px;flex-wrap:wrap}
.category-browse>strong{font-size:.86rem;white-space:nowrap}
.category-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:1}
.category-tabs a{padding:7px 12px;border:1px solid var(--line,#dce4de);border-radius:7px;color:var(--muted,#66756d);font-size:.85rem}
.category-tabs a:hover,.category-tabs a.selected{border-color:var(--accent,#456c51);background:var(--soft,#eef5ed);color:var(--accent,#456c51)}
.resource-activity{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.forum-indicators{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end;min-height:20px}
.forum-indicators:empty{display:none}
.forum-top{display:inline-block;border-radius:4px;padding:3px 6px;font:700 10px/1.2 system-ui,sans-serif;letter-spacing:.35px;border:1px solid transparent;white-space:nowrap}
.forum-top-1{background:#fff1c5;color:#946000;border-color:#efd389}
.forum-top-2{background:#edf0f4;color:#5b6776;border-color:#ced5de}
.forum-top-3{background:#f9e8de;color:#a45e34;border-color:#e6c4af}
.forum-hot{display:inline-flex;align-items:center;justify-content:center;color:#e75c29}
.forum-hot .icon{width:21px;height:21px;fill:currentColor;stroke:none}
.card-bottom{align-items:flex-end}
.resource-heat-cell{text-align:right;white-space:nowrap}
.resource-heat-cell .forum-indicators{display:flex;margin-top:7px}
.resource-table{min-width:940px}
.resource-table th:first-child{width:30%}
.resource-table th:nth-child(2),.resource-table th:nth-child(3){width:8%}
.resource-table th:nth-child(4),.resource-table th:nth-child(5),.resource-table th:nth-child(6){width:12%}
.resource-table th:nth-child(7),.resource-table th:nth-child(8){width:9%}
.resource-table-trash{min-width:1120px}
.resource-table-trash th:first-child{width:26%}
.resource-table-trash th:nth-child(2),.resource-table-trash th:nth-child(3),.resource-table-trash th:nth-child(8){width:7%}
.resource-table-trash th:nth-child(4),.resource-table-trash th:nth-child(5){width:10%}
.resource-table-trash th:nth-child(6){width:11%}
.resource-table-trash th:nth-child(9){width:13%}
.card-meta>span:last-child{min-width:0;max-width:65%;text-align:right;overflow-wrap:anywhere}
.resource-category-label{font-size:.78rem;color:var(--muted,#66756d);display:block;margin-top:5px}
.category-policy{max-width:780px;margin-bottom:24px}
.category-policy .form-field label{display:flex;align-items:center;gap:12px}
.category-policy .form-field:not(.permission-checkbox) label{flex-direction:column;align-items:flex-start}
.category-policy .form-field:not(.permission-checkbox) label input{width:100%}
.permission-checkbox input[type=checkbox],.category-grant-row input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:var(--accent,#456c51);flex:0 0 auto}
.permission-checkbox label{display:flex;align-items:center;gap:8px}
.category-grant-form{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;padding:16px 0 22px}
.category-grant-form .form-field{margin:0}
.category-grant-form .form-field:first-of-type{min-width:210px}
.category-grant-form .permission-checkbox{align-self:center}
.category-grants{border-top:1px solid var(--line,#dce4de)}
.category-grant-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line,#dce4de)}
.category-grant-row>strong{min-width:160px;flex:1}
.category-grant-row>strong small{display:block;font-weight:400;color:var(--muted,#66756d);margin-top:3px}
.category-grant-row label{display:flex;align-items:center;gap:6px;font-size:.84rem;margin:0;white-space:nowrap}
.category-table td .actions{margin:0;gap:8px}
@media(max-width:700px){.category-grant-row{gap:12px}.category-grant-row>strong{flex-basis:100%}.category-grant-form .form-field:first-of-type{width:100%}.category-browse{gap:10px}.category-browse>.button{margin-left:auto}.category-tabs{order:1;flex-basis:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.category-tabs a{white-space:nowrap}.category-table .actions{flex-direction:column;align-items:stretch}.resource-heat-cell{min-width:75px}}
@media(max-width:700px){.resource-table,.resource-table-trash{min-width:0}.resource-table th:first-child{width:70%}.resource-table th:nth-child(8){width:30%}.resource-table th:nth-child(n+2):nth-child(-n+7),.resource-table td:nth-child(n+2):nth-child(-n+7){display:none}.resource-table-trash th:first-child{width:65%}.resource-table-trash th:nth-child(9){width:35%}.resource-table-trash th:nth-child(8),.resource-table-trash td:nth-child(8){display:none}.resource-table td,.resource-table th{padding:12px 10px}.resource-table .resource-heat-cell{vertical-align:bottom}.resource-table-trash .trash-row-actions{flex-direction:column;align-items:stretch}}

.category-moderator-form{display:flex;align-items:end;gap:1rem;flex-wrap:wrap}.category-moderator-form p{margin:0;flex:1;min-width:200px}.category-moderator-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.category-grant-row label{display:flex;flex-direction:column;align-items:stretch;gap:.35rem}.category-grant-row select{min-width:90px}.category-table small{display:block}.category-table td{vertical-align:middle}

.board-access-form{display:grid;gap:12px}.board-access-row{display:flex;align-items:center;gap:10px;margin:8px 0}.board-access-row input[type=checkbox]{width:auto;flex:none}.board-access-row span{overflow-wrap:anywhere}.board-access-row small{margin-left:8px;color:var(--muted,#69786e)}
