/* session-pin-order.css — pinned-session reorder affordances. No animations. */
/* WP-1 D-7 (active-sessions-tree-ia-2026-11-10.html §5 D-7): the grip is no longer a flex column --
   it must not sit between the agent dot and the icon slot, or every pinned row's title would start
   24px right of an unpinned one and the one grid would be a lie. It is an overlay on the row's left
   edge instead, revealed on hover/focus (the row is already position:relative). */
.pin-order-grip {
  position: absolute; left: 0; top: 0; bottom: 0; width: 18px; height: auto; min-width: 0;
  padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--fg-muted); cursor: grab; line-height: 0;
  touch-action: none; /* D-9: the shared primitive owns touch/pen panning, never preventDefault */
  opacity: 0;
}
.session-item:hover .pin-order-grip,
.session-item:focus-within .pin-order-grip,
.pin-order-grip:focus-visible { opacity: 1; }
/* A disabled grip obeys the same reveal (it is an overlay now, so it must never paint an idle row),
   but stays dimmed while it is shown. */
.session-item:hover .pin-order-grip[aria-disabled="true"],
.session-item:focus-within .pin-order-grip[aria-disabled="true"] { opacity: .45; }
.pin-order-grip:hover { color: var(--fg); border-color: var(--border); }
.pin-order-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--fg); }
.pin-order-grip[aria-disabled="true"] { color: var(--fg-dim); cursor: default; }
.pin-order-grip[aria-busy="true"] { cursor: progress; }
.pin-order-grip svg { display: block; fill: currentColor; pointer-events: none; }

.pin-order-panel {
  position: fixed; z-index: 60; /* above the session sidebar */
  min-width: 140px; padding: 4px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-card); color: var(--fg);
  border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.pin-order-panel .pin-order-move {
  min-height: 32px; width: 100%; text-align: left; padding: 4px 8px;
  background: transparent; color: var(--fg); font: inherit; cursor: pointer;
  border: 1px solid transparent; border-radius: 4px;
}
.pin-order-panel .pin-order-move:hover:not(:disabled) { background: var(--border); }
.pin-order-panel .pin-order-move:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.pin-order-panel .pin-order-move:disabled { color: var(--fg-dim); opacity: .5; cursor: default; }

/* The drag marker and the dragging class now live in list-reorder-drag.css
   (.reorder-drop-indicator / .reorder-dragging) — they survive a row re-render because they are
   applied by key, outside the list. */
