.permission-sets { display: flex; flex-direction: column; gap: 14px; }
.ps-server-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.ps-audience { max-width: 260px; margin: 12px 0; }
.ps-assignment { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.ps-assignment p, .ps-assignment [role="status"] { font-size: 13px; line-height: 1.5; }
.ps-assignment-fields { display: grid; gap: 12px; padding: 0; margin: 12px 0; border: 0; min-width: 0; }
.ps-assignment-fields > label { display: flex; flex-direction: column; gap: 6px; }
.ps-assignment-fields select { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink); }
.ps-assignment .ps-combination label { display: flex; gap: 6px; }
.permission-sets .section-head { margin-bottom: 0; }
.ps-notice { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid #b7791f; border-radius: 8px; background: #fffbeb; font-size: 13px; }
.ps-mode, .ps-editor-head, .ps-filters, .ps-footer { display: flex; gap: 12px; align-items: end; }
.ps-mode [aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.ps-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.ps-list { display: flex; flex-direction: column; align-self: start; gap: 8px; max-height: 65vh; overflow: auto; }
.ps-set { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 14px; color: var(--ink); cursor: pointer; font: inherit; }
.ps-set[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 3px 0 var(--ink); }
.ps-set span, .ps-set small, .ps-explanation, .ps-muted { color: var(--muted); font-size: 12px; }
.ps-editor { min-width: 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ps-editor-head label { flex: 1; }
.permission-sets label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.permission-sets input:not([type="checkbox"]), .permission-sets select { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 7px 9px; background: var(--card); color: var(--ink); font: inherit; }
.permission-sets input[readonly] { background: var(--canvas); }
.ps-filters { margin: 14px 0; flex-wrap: wrap; }
.ps-filters label { flex: 1; min-width: 135px; }
.ps-filters label:first-child { flex: 2; }
.ps-table-scroll { overflow: auto; max-height: 57vh; min-height: 280px; scrollbar-gutter: stable; border: 1px solid var(--line); }
.ps-table { width: 100%; min-width: 650px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.ps-table th, .ps-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ps-table thead th { position: sticky; top: 0; z-index: 1; background: var(--canvas); }
.ps-table th:first-child { width: 30%; }
.ps-table tbody th small, .ps-grant small { display: block; color: var(--muted); font-size: 11px; font-weight: normal; margin-bottom: 4px; }
.ps-table select { font-size: 12px; }
.ps-grant + .ps-grant { margin-top: 9px; }
.ps-combination { margin: 0; padding: 12px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 22px; }
.ps-combination legend { font-size: 13px; font-weight: 600; }
.ps-profile-choice { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.ps-profile-choice label { flex: 1; min-width: 180px; }
.ps-profile-choice p { flex: 2; min-width: 220px; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ps-combination label { flex-direction: row; align-items: center; color: var(--ink); }
.ps-guide { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.ps-guide summary { cursor: pointer; color: var(--ink); }
.ps-footer { position: sticky; bottom: 0; z-index: 2; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; }
.ps-error { color: #a12121; }
.ps-help-button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; vertical-align: middle; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: #176fb5; cursor: pointer; font: inherit; font-size: 16px; }
.ps-help-button:hover { background: var(--canvas); }
.ps-help-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; overflow: auto; margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 18px 60px #0003; font-size: 14px; line-height: 1.6; }
.ps-help-dialog::backdrop { background: #0007; }
.ps-help-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ps-help-dialog h3 { margin: 0; font-size: 18px; }
.ps-help-dialog dt { font-weight: 600; margin-top: 14px; }
.ps-help-dialog dd { margin: 3px 0 0; }
.permission-sets :focus-visible { outline: 2px solid #176fb5; outline-offset: 2px; }
@media (max-width: 900px) { .ps-layout { grid-template-columns: 1fr; } .ps-list { flex-direction: row; max-height: 180px; } .ps-set { min-width: 210px; } .ps-footer { flex-wrap: wrap; } }
.ps-project-choices { display: grid; gap: .45rem; max-height: 16rem; overflow: auto; width: 100%; }
.ps-project-choices > label[hidden] { display: none; }
