@@ -916,6 +916,50 @@ button.user-question-option:hover:not(:disabled),
916916 min-width : 0 ;
917917}
918918
919+ /* Prompt control help; hidden while its menu is open. */
920+
921+ .prompt-chip-tooltip {
922+ position : absolute;
923+ left : 0 ;
924+ bottom : calc (100% + 7px );
925+ z-index : 45 ;
926+ display : block;
927+ width : max-content;
928+ max-width : min (320px , 70vw );
929+ padding : 5px 8px ;
930+ border : 1px solid color-mix (in srgb, var (--title-selected ) 35% , var (--border ));
931+ border-radius : 6px ;
932+ background : color-mix (in srgb, var (--bg-elevated ) 98% , transparent);
933+ box-shadow : var (--shadow-md );
934+ color : var (--text );
935+ font-size : 10px ;
936+ font-weight : 500 ;
937+ line-height : 1.35 ;
938+ white-space : normal;
939+ pointer-events : none;
940+ opacity : 0 ;
941+ visibility : hidden;
942+ transform : translateY (3px );
943+ transition :
944+ opacity 0.08s ease,
945+ transform 0.08s ease,
946+ visibility 0s linear 0.08s ;
947+ }
948+
949+ .prompt-chip .open .prompt-chip-tooltip {
950+ opacity : 0 ;
951+ visibility : hidden;
952+ transform : translateY (3px );
953+ transition : none;
954+ }
955+
956+ .prompt-chip : not (.open ): hover .prompt-chip-tooltip ,
957+ .prompt-chip : not (.open ): focus-within .prompt-chip-tooltip {
958+ opacity : 1 ;
959+ visibility : visible;
960+ transform : translateY (0 );
961+ transition-delay : 0s ;
962+ }
919963.prompt-chip .accent-plan {
920964 --chip-accent : var (--kind-plan );
921965 --chip-border : color-mix (in srgb, var (--kind-plan ) 45% , transparent);
@@ -1033,7 +1077,6 @@ button.user-question-option:hover:not(:disabled),
10331077 transform : translateY (0.5px );
10341078}
10351079
1036- /* Shortcut chip styling lives on global `.shortcut-hint` (base.css). */
10371080
10381081.prompt-chip-menu {
10391082 position : absolute;
0 commit comments