/* Data scope in the composer (single-assistant mode only). */
[data-single] .asst { display: none !important; }
.sg-row { display: flex; align-items: center; gap: 10px; }
.sg-row .modes { flex: none; }
.sg { position: relative; flex: none; padding-left: 10px; border-left: 1.5px solid var(--tdtu-blue-200); }
.sg-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border: 1.5px solid transparent; border-radius: var(--radius-md); background: none; color: var(--v-ink); font-size: 13.5px; font-weight: 600; transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast); }
.sg-btn b { font-weight: 800; }
.sg-btn .ic { width: 16px; height: 16px; }
.sg-btn .caret { width: 13px; height: 13px; transform: rotate(90deg); transition: transform var(--duration-fast); }
.sg-btn:hover, .sg-btn[aria-expanded="true"] { border-color: var(--v-ink); background: var(--v-cream); }
.sg-btn[aria-expanded="true"] .caret { transform: rotate(-90deg); }
.sg-btn.is-narrow { border-color: var(--v-ink); background: var(--v-cream); }
.sg-pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 8; width: 300px; padding: 10px; border: 2px solid var(--v-ink); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 4px 4px 0 var(--primary); }
.sg-pop[hidden] { display: none; }
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 2px 2px 8px; border-bottom: 1.5px solid var(--tdtu-blue-200); }
.sg-head b { font-family: var(--font-heading); font-size: 14px; line-height: 20px; font-weight: 800; color: var(--heading); }
.sg-all { flex: none; height: 28px; padding: 0 10px; white-space: nowrap; border-radius: var(--radius-sm); color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.sg-all:hover:not(:disabled) { background: var(--v-yellow); color: var(--tdtu-blue-800); }
.sg-all[hidden] { display: none; }
.sg-pub { display: grid; padding-bottom: 6px; border-bottom: 1.5px solid var(--tdtu-blue-200); }
.sg-list { display: grid; gap: 2px; padding-top: 6px; }
.sg-sec { margin: 8px 4px 2px; color: var(--accent); font-size: 12px; line-height: 16px; font-weight: 700; }
.sg-item { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 8px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; line-height: 20px; cursor: pointer; }
.sg-item:hover { background: var(--v-cream); }
.sg-item input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--v-ink); }

/* While the list is open the page behind steps back: dimmed, no hover, a click there only closes the list. */
.sg-open::after { content: ''; position: fixed; inset: 0; z-index: 7; background: rgb(14 50 111 / .22); }
.sg-open [data-composer] { position: relative; z-index: 9; }
