#category-order-dialog{max-width:860px}
#category-order-dialog .dialog-header h2{font-size:23px}
#category-order-description{font-size:13px;line-height:1.65;color:#526c5c;margin:0 0 16px}
#category-order-dialog .notice{margin:12px 0}
.category-order-fixed{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf3e6;color:#264e38;border:1px solid #dce6d2;padding:13px 15px;border-radius:10px;font-size:13px}
.category-order-fixed span{font-size:11px}
.category-order-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px}
.category-order-heading h3{margin:0;font-size:15px}
#category-order-count{font-size:12px;color:#597354}
#category-order-help,#category-order-empty,#category-order-conflict-hint{font-size:12px;line-height:1.6;color:#65775c;margin:8px 0 14px}
#category-order-empty{padding:16px;border:1px dashed #cbd8c4;border-radius:10px;background:#f8faf5}
#category-order-conflict-hint{color:#7a5933}
.category-order-list{padding:0;margin:16px 0 0;list-style:none;max-height:450px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.category-order-list:empty{margin:0}
.category-order-list:focus-visible,.category-order-row:focus{outline:2px solid var(--green);outline-offset:-2px}
.category-order-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dce4d4;border-radius:11px;padding:12px;margin:0 0 10px;background:white}
.category-order-position{display:grid;place-items:center;align-self:start;height:28px;width:28px;border-radius:50%;background:#edf3e6;color:var(--green);font-size:12px;font-weight:700}
.category-order-copy{min-width:0;overflow-wrap:anywhere}
.category-order-copy strong{display:block;font-size:13px;line-height:1.45}
.category-order-copy small{display:block;font-size:11px;line-height:1.5;color:#64745d;margin-top:4px}
.category-order-not-visible{display:inline-block;font-size:10px;line-height:1.4;margin-top:6px;padding:3px 7px;border-radius:5px;background:#fff2db;color:#80601e}
.category-order-row-actions{display:grid;grid-template-columns:44px 44px minmax(0,1fr) minmax(0,1fr);gap:7px}
#category-order-dialog .category-order-action{min-height:44px;min-width:44px;padding:8px;font-size:11px;line-height:1.3;white-space:normal}
#category-order-dialog .category-order-action[data-category-up],#category-order-dialog .category-order-action[data-category-down]{font-size:20px}
.category-order-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;background:white;border-top:1px solid var(--line);padding:16px 0 0;margin-top:22px}
.category-order-actions .button{min-height:44px}
@media(max-width:700px){#category-order-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}#category-order-dialog .dialog-header{padding:18px 16px 14px}#category-order-dialog .dialog-header h2{font-size:20px}#category-order-dialog .dialog-body{padding:18px 16px}.category-order-row{grid-template-columns:28px minmax(0,1fr);gap:10px;padding:10px}.category-order-row-actions{grid-column:1/-1}.category-order-list{max-height:400px}.category-order-actions{padding-top:12px}.category-order-actions .button{flex:1;white-space:normal;font-size:12px;padding:10px}}
