
/* permissions: one row per permission with a red / grey / green button */
.cp3-head { position: sticky; top: 0; z-index: 2; background: var(--bg-1, var(--bg-2)); padding: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.cp3-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--bright); font-size: 14px; }
.cp3-sum, .cp3-bdg { display: inline-flex; gap: 6px; align-items: center; }
.cp3-sum i, .cp3-bdg i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.cp3-sum i svg, .cp3-bdg i svg { width: 12px; height: 12px; }
.cp3-sum .a, .cp3-bdg .a { color: var(--green); } .cp3-sum .d, .cp3-bdg .d { color: var(--red); }
.cp3-bdg { margin-inline-start: auto; }
.cp3-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.p3 { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 10px; border-radius: 6px; border-inline-start: 3px solid transparent; }
.p3:hover { background: var(--bg-3); }
.p3.st-allow { border-inline-start-color: var(--green); } .p3.st-deny { border-inline-start-color: var(--red); }
.p3 .st { color: var(--bright); font-weight: 600; font-size: 14px; } .p3 .sd { color: var(--muted); font-size: 12px; margin-top: 2px; }
.p3-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.p3-state { font-size: 11.5px; color: var(--muted); min-width: 56px; text-align: end; }
.p3.st-allow .p3-state { color: var(--green); } .p3.st-deny .p3-state { color: var(--red); }
.tri3 { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.t3 { width: 36px; height: 30px; border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .12s, color .12s; }
.t3 + .t3 { border-inline-start: 1px solid var(--border); }
.t3 svg { width: 16px; height: 16px; }
.t3:hover { color: var(--bright); background: var(--bg-4); }
.t3.deny.on { background: var(--red); color: #fff; } .t3.allow.on { background: var(--green); color: var(--on-accent, #fff); } .t3.inh.on { background: var(--bg-4); color: var(--bright); }
.t3.on:hover { filter: brightness(1.08); }
.t3:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }




@media (max-width: 560px) { .p3 { flex-wrap: wrap; } .p3-state { display: none; } }
@media (prefers-reduced-motion: reduce) { .t3 { transition: none; } }
