/* Reading and navigation improvements for the macro and workflow libraries. */
body.staff-app.staff-v4 .macro-row:focus-visible,body.staff-app.staff-v4 .quick-reply-item:focus-visible,body.staff-app.staff-v4 .workflow-card:focus-visible{outline:2px solid var(--neom-focus);outline-offset:-2px}
body.staff-app.staff-v4 .macro-row{line-height:1.45}
body.staff-app.staff-v4 .quick-reply-item{min-height:72px;line-height:1.45}
body.staff-app.staff-v4 .quick-reply-item small{line-height:1.5}
body.staff-app.staff-v4 #quick-replies-panel .quick-reply-list{overscroll-behavior:contain}
@media(max-width:620px){
 body.staff-app.staff-v4 #quick-replies-panel{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}
 body.staff-app.staff-v4 .quick-reply-item{min-height:72px;padding:10px}
 body.staff-app.staff-v4 .macro-library{gap:10px;padding:14px 12px}
 body.staff-app.staff-v4 .macro-list{overscroll-behavior:contain}
 body.staff-app.staff-v4 .macro-mobile-back{min-height:44px;min-width:44px}
}

/* Search palette: keep focus inside the field and separate result labels. */
body.staff-app.staff-v4 #command-palette .command-input-wrap{border:1px solid var(--neom-border);border-radius:10px;padding:0 8px;gap:10px}
body.staff-app.staff-v4 #command-palette .command-input-wrap:focus-within{border-color:var(--neom-brand);box-shadow:inset 0 0 0 1px var(--neom-brand)}
body.staff-app.staff-v4 #command-palette #command-search:is(:focus,:focus-visible){outline:none;box-shadow:none;border:0;min-width:0}
body.staff-app.staff-v4 #command-palette .command-item{display:flex;gap:12px;min-height:48px;padding:9px 11px;border-radius:9px}
body.staff-app.staff-v4 #command-palette .command-item>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
body.staff-app.staff-v4 #command-palette .command-item strong{font-size:13px;line-height:1.35}
body.staff-app.staff-v4 #command-palette .command-item small{font-size:12px;line-height:1.35}
body.staff-app.staff-v4 #command-palette .command-item>.icon{flex-shrink:0;width:17px;height:17px}
