/* Scoped density for customer support grants; existing permission rules stay in JS. */
html .sc-access>.panel-heading{padding:16px 20px}
html .sc-access>.panel-heading h2{font-size:18px;margin:0}
html .sc-access>.panel-heading p{font-size:13px;line-height:1.6;margin:5px 0 0}
html .sc-access .sc-access-form{display:block;padding:0 20px 14px;border:0;container-type:inline-size;container-name:support-access}
html .sc-access .sc-access-fields{border:0;margin:0;padding:0;min-width:0}
html .sc-access .sc-access-member{border:0;border-bottom:1px solid var(--line);margin:0}
html .sc-access .sc-access-member:last-child{border-bottom:0}
html .sc-access .sc-access-member>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:13px 20px;min-height:50px;cursor:pointer;color:var(--ink)}
html .sc-access .sc-access-member>summary::-webkit-details-marker{display:none}
html .sc-access .sc-access-member>summary:hover{background:var(--paper)}
html .sc-access .sc-access-member>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
html .sc-access .sc-access-member>summary>b{font-size:15px;overflow-wrap:anywhere}
.sc-access-chevron{display:inline-block;font-size:22px;line-height:1;color:var(--muted);width:12px;flex-shrink:0}
.sc-access-member[open] .sc-access-chevron{transform:rotate(90deg)}
.sc-access-counts{font-size:12px;color:var(--sr-muted);margin-left:6px}
.sc-access-dirty{font-size:11px;color:#9b610e;border:1px solid #ead6ad;background:#fff8e8;border-radius:5px;padding:1px 6px;white-space:nowrap}
.sc-access-fold-hint{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.sc-access-fold-hint:after{content:'展开'}
.sc-access-member[open] .sc-access-fold-hint:after{content:'收起'}
.sc-access-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sc-access-bulk{display:flex;flex-wrap:wrap;gap:7px}
.sc-access-bulk-group{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--white,#fff)}
.sc-access-bulk-group>span{font-size:13px;color:var(--ink);white-space:nowrap}
.sc-access-bulk-group small{font-size:11px;color:var(--muted);margin-right:3px}
html .sc-access .sc-access-bulk-group button{padding:3px 6px;min-height:28px;font-size:12px;color:var(--green);background:var(--paper);border:1px solid var(--line);border-radius:5px;white-space:nowrap}
html .sc-access .sc-access-bulk-group button:disabled{cursor:default;opacity:.4}
html .sc-access .sc-access-save{font-size:13px;min-height:34px;padding:6px 12px;white-space:nowrap}
html .sc-access .sc-access-bulk-note{font-size:12px;line-height:1.6;color:var(--sr-muted);margin:6px 0 10px}
html .sc-access .sc-create-permission{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;padding:8px 12px;margin:0 0 10px;border-radius:8px}
html .sc-access .sc-create-permission label{font-size:13px;gap:8px;min-height:28px}
html .sc-access .sc-create-permission p{font-size:12px;line-height:1.6;margin:0;color:var(--sr-muted)}
html .sc-access .sc-access-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html .sc-access .sc-access-store{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 6px;padding:8px 10px;margin:0;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--white,#fff)}
html .sc-access .sc-access-store>.sc-store-identity{grid-column:1/-1;gap:8px;min-width:0}
html .sc-access .sc-access-store .support-store-mark{width:24px;height:24px;flex-basis:24px;font-size:10px;border-radius:6px}
html .sc-access .sc-access-store .support-store-copy{min-width:0;flex:1}
html .sc-access .sc-access-store .support-store-copy strong{display:block;font-size:14px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .sc-access .sc-access-store label{font-size:13px;min-height:30px;gap:5px;white-space:nowrap;cursor:pointer}
html .sc-access input[type=checkbox]{width:17px;height:17px;cursor:pointer}
html .sc-access .sc-access-store:focus-within{border-color:var(--green)}
@container support-access (min-width:1200px){html .sc-access .sc-access-store-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container support-access (max-width:590px){html .sc-access .sc-access-store-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){html .sc-access>.panel-heading,html .sc-access .sc-access-form{padding:14px}html .sc-access .sc-create-permission{gap:2px}html .sc-access .sc-access-store{gap:3px 7px;padding:9px 10px}html .sc-access .sc-access-store label{font-size:12px;gap:5px}}
@media(max-width:600px){html .sc-access .sc-access-form{padding-top:0}html .sc-access .sc-access-member>summary{padding:12px 14px;gap:8px;flex-wrap:wrap}.sc-access-counts{font-size:11px;margin-left:0}.sc-access-bulk{width:100%}.sc-access-bulk-group{flex:1;justify-content:space-between}.sc-access-tools{align-items:flex-start}.sc-access-save{margin-left:auto}.sc-access-fold-hint{font-size:11px}}
