.iv-role-controls{box-sizing:border-box;min-width:0;width:100%;font:inherit;color:var(--text,#e8eaf0);background:var(--panel,#171a21);position:relative}
.iv-role-controls[hidden],.iv-role-controls [hidden]{display:none!important}
.iv-role-controls *{box-sizing:border-box}
.iv-role-bar{display:flex;align-items:center;gap:4px;height:44px;min-width:0;box-shadow:inset 0 -1px var(--line,#424e60)}
.iv-role-controls button{font:inherit;font-size:16px;line-height:1.2;min-width:44px;height:44px;min-height:44px;padding:0 10px;flex:0 0 auto;border:1px solid var(--line,#424e60);border-radius:6px;background:var(--panel2,#1f232c);color:inherit;touch-action:manipulation;cursor:pointer}
.iv-role-controls button:disabled{opacity:.48;cursor:default}
.iv-role-controls button:focus-visible,.iv-role-controls input:focus-visible{outline:3px solid #8cc9ff;outline-offset:-3px}
.iv-role-status,.iv-role-preview{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;padding-inline:8px}
.iv-role-preview{color:var(--warn,#f2ca82)}
.iv-role-sheet{position:relative;max-height:min(360px,calc(100dvh - 104px));overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--line,#424e60);scrollbar-gutter:stable}
.iv-role-sheet-header{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--panel,#171a21);padding-block:4px}
.iv-role-hold{margin-block:8px;width:100%}
.iv-role-scopes{display:flex;flex-wrap:wrap;gap:0 12px;margin:0;padding:0 0 8px;border:0;min-width:0}
.iv-role-scopes legend{font-size:14px;color:var(--muted,#aab4c2)}
.iv-role-scope{display:flex;align-items:center;gap:6px;min-height:44px;margin:0;font-size:16px;cursor:pointer}
.iv-role-scope input{width:20px;min-width:20px;height:20px;margin:0;accent-color:var(--accent,#6ea8fe)}
.iv-role-row{padding:10px 0;border-top:1px solid var(--line,#424e60);min-width:0}
.iv-role-row-label{font-size:14px;color:var(--muted,#aab4c2)}
.iv-role-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.5;margin:6px 0 10px;font-size:16px}
.iv-role-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.iv-role-row-actions button{flex:1 1 100px}
.iv-role-empty{font-size:16px;line-height:1.5;color:var(--muted,#aab4c2)}
.iv-role-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.iv-role-controls .iv-role-preview{flex:1 1 0;min-width:44px;text-align:left;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iv-role-pending-raw{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:16px;margin:8px 0}
