/* Une recherche et deux menus remplacent les rangees de commandes permanentes. */
#handsView .hand-section-heading { margin-bottom:0; }
#handsView .hand-section-intro { margin:0 0 18px; }
#handsView .hands-control-bar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:start; gap:10px; margin-bottom:18px; }
#handsView .hands-control-bar>input,#handsView .hands-control-bar>button,#handsView .hand-library-options>summary { height:46px; min-height:46px; margin:0; }
#handsView .hands-control-bar>button { white-space:nowrap; }
.hand-options { position:relative; min-width:0; }
.hand-options>summary { display:flex; align-items:center; justify-content:center; gap:7px; list-style:none; cursor:pointer; min-height:40px; padding:10px 14px; border:1px solid #4e3032; border-radius:6px; color:var(--ink); background:#251718; font-size:12px; }
.hand-options>summary::after { content:'⌄'; color:var(--muted); }
.hand-options>summary::-webkit-details-marker { display:none; }
.hand-options[open]>summary { border-color:#92646b; background:#2c1b1e; }
.hand-options-menu { position:absolute; z-index:12; top:calc(100% + 7px); right:0; width:260px; max-width:calc(100vw - 40px); display:grid; gap:4px; padding:7px; background:#211314; border:1px solid #503d3e; border-radius:8px; box-shadow:0 14px 32px #0008; }
.hand-options-menu>button { width:100%; min-height:40px; border:0; border-radius:5px; background:transparent; text-align:left; color:var(--ink); padding:10px 12px; font-size:12px; }
@media(hover:hover){.hand-options-menu>button:hover { background:#2e1c1f; }}
.hand-options-menu>button.delete { color:#ff8992; }
#handsView .hand-filter-panel { padding:18px; margin:0 0 20px; }
#handsView #handFilterPanel .hand-list-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:end; }
#handsView .hand-filter-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; }
#handsView .hand-filter-footer p { margin:0; }
#handsView .card-actions { justify-content:flex-start; gap:10px; }
#handsView .card-actions>.hand-record-options { margin-left:auto; }
#handsView .card-actions>button { min-height:40px; }
@media(max-width:650px){
 #handsView #handFilterPanel .hand-list-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 #handsView #handFilterPanel .hand-list-filters>label:nth-child(2),#handsView #handFilterPanel .hand-unit-field { grid-column:auto; }
 #handsView .hand-filter-panel { padding:14px; }
 #handsView .hands-control-bar { gap:8px; }
 #handsView .hands-control-bar>input { grid-column:1/-1; }
 #handsView .hands-control-bar { grid-template-columns:1fr 1fr; }
 #handsView .hands-control-bar>button,#handsView .hand-library-options>summary { width:100%; }
 #handsView .card-actions { gap:8px; }
 #handsView .card-actions>button,#handsView .hand-record-options>summary { padding:10px 11px; font-size:12px; }
}
@media(max-width:360px){#handsView #handFilterPanel .hand-list-filters{grid-template-columns:minmax(0,1fr);}#handsView .card-actions>.hand-record-options{margin-left:0;}}
