#rulesPanel{box-sizing:border-box;min-width:0;max-width:100%;padding:8px;color:#202624}
#rulesPanel nav{display:flex;gap:4px;margin:0 0 8px}#rulesPanel nav button{flex:1;min-width:0;padding:6px 3px;font-size:12px}
#rulesPanel nav [aria-pressed=true]{background:#175c53;color:#fff;font-weight:700}
#rulesPanel button,#rulesPanel textarea{font:inherit;box-sizing:border-box;touch-action:manipulation}
#rulesPanel button{border:1px solid #9aa3a0;border-radius:7px;padding:6px 8px;background:#fff;color:#202624;cursor:pointer;font-size:12px;min-height:30px}
#rulesPanel button:focus-visible,#rulesPanel summary:focus-visible{outline:2px solid #267ac2;outline-offset:1px}
#rulesPanel .rules-toolbar{display:flex;justify-content:space-between;gap:6px;margin-bottom:8px}
#rulesPanel .rules-toolbar button{font-size:12px}
#rulesPanel .rules-status{margin:0 0 6px;font-size:12px;overflow-wrap:anywhere}#rulesPanel .rules-status:empty{display:none}
#rulesPanel .rules-scroll{min-width:0;max-width:100%}
#rulesPanel .rules-list{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:3px}
#rulesPanel .rule-item{min-width:0;border-bottom:1px solid #d8ddda;padding:0;margin:0}
#rulesPanel .rule-item>summary{display:flex;box-sizing:border-box;min-width:0;max-width:100%;align-items:center;gap:6px;min-height:30px;padding:5px 3px;cursor:pointer;font-size:13px;font-weight:650;list-style:none}
#rulesPanel .rule-item>summary::-webkit-details-marker{display:none}#rulesPanel .rule-item>summary::before{content:'▸';flex:none;color:#175c53}#rulesPanel .rule-item[open]>summary::before{content:'▾'}
#rulesPanel .rule-item>summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rulesPanel .rule-item[open]>summary span{white-space:normal;overflow-wrap:anywhere}
#rulesPanel .rule-body{box-sizing:border-box;min-width:0;max-width:100%;padding:0 3px 10px 15px}
#rulesPanel .rule-item:not([open])>.rule-body{display:none}
#rulesPanel .rule-updated,#rulesPanel .rule-deleted,#rulesPanel .rule-meta{display:block;color:#56635e;font-size:12px;line-height:1.35;margin:0 0 5px;overflow-wrap:anywhere}
#rulesPanel .rule-full-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:9px 0}
#rulesPanel .rule-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
#rulesPanel .rule-actions button{flex:1 1 110px;font-size:12px}
#rulesPanel .rule-actions button:first-child{background:#175c53;color:#fff}
#rulesPanel .rule-hint,#rulesPanel .rules-empty{font-size:12px;color:#586660;overflow-wrap:anywhere}
#rulesPanel .rule-proposal,#rulesPanel .rule-compose,#rulesPanel .rule-delete-confirm{margin:10px 0;padding:9px;border:1px solid #b8c8bf;border-radius:9px;background:#fff;min-width:0;overflow-wrap:anywhere}
#rulesPanel .rule-proposal h3{font-size:13px;margin:0}
#rulesPanel .rule-compose label{display:grid;gap:6px;font-size:13px}
#rulesPanel .rule-compose textarea{width:100%;min-width:0;max-width:100%;border:1px solid #8b9891;border-radius:7px;padding:8px;font-size:16px;resize:vertical}
#rulesPanel .rule-delete-confirm{border-color:#ad3d3d;font-size:13px}
#rulesPanel.rules-busy .rule-actions{pointer-events:none;opacity:.65}
