/* The optional grip (js/app/grip.js, owner feedback 2026-11-23): a quiet grey fist over the empty corner of the sets
   table (above the checks), and its small popup that comes out of it as a drop. Untouched, nothing else moves:
   the button floats over the header row, it never takes a row of its own. */
.t-tracker { position: relative; }
.t-grip-btn {
  position: absolute; z-index: 1; top: -11px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--f-text-3); background: none;
  transition: transform var(--f-dur-1) var(--f-ease), color var(--f-dur-2) var(--f-ease), background-color var(--f-dur-2) var(--f-ease);
}
.t-grip-btn svg { width: 22px; height: 22px; }
.t-grip-btn:hover { color: var(--f-text-2); }
.t-grip-btn:active, .t-grip-btn.is-pressed { transform: scale(0.92); background: var(--f-quiet); }
.t-grip-btn:focus-visible { outline: 2px solid var(--f-text-2); outline-offset: 0; }
.t-grip-btn.is-set { color: var(--f-text-2); }
/* a picked grip: its own icon, still grey, with a tiny ember dot */
.t-grip-btn.is-set::after { content: ""; position: absolute; top: 7px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--f-accent); }

.t-grip { display: flex; flex-direction: column; }
.t-grip > .t-grip__body { display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 8px 6px 6px; gap: 6px; }
.t-grip__search {
  flex: none; display: flex; align-items: center; gap: 8px;
  height: 44px; margin: 0 2px; padding: 0 12px; border-radius: 999px;
  background: var(--f-quiet); color: var(--f-text-3);
}
.t-grip__search svg { width: 18px; height: 18px; flex: none; }
.t-grip .t-grip__search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: none; padding: 0;
  font: 400 16px/1.2 var(--f-font); color: var(--f-text); -webkit-appearance: none; appearance: none;
}
.t-grip__search input::placeholder { color: var(--f-text-3); }
.t-grip__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.t-grip__search:focus-within { color: var(--f-text-2); box-shadow: inset 0 0 0 1px var(--f-stroke); }
.t-grip__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.t-grip__row {
  width: 100%; min-height: 48px; padding: 4px 10px 4px 6px; border-radius: var(--f-r-md);
  display: flex; align-items: center; gap: 10px; text-align: left; color: var(--f-text); font-family: var(--f-font);
}
.t-grip__row:hover, .t-grip__row:active { background: var(--f-neutral-soft); }
.t-grip__row:focus-visible { outline: 2px solid var(--f-text-2); outline-offset: -2px; }
.t-grip__ic { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--f-quiet); color: var(--f-text-2); }
.t-grip__ic svg { width: 20px; height: 20px; }
.t-grip__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.t-grip__name { font-size: 15px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.t-grip__note { font-size: 13px; line-height: 1.3; color: var(--f-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-grip__on { flex: none; width: 20px; height: 20px; color: var(--f-text); }
.t-grip__on svg { width: 20px; height: 20px; display: block; }
.t-grip__row.is-on .t-grip__ic { color: var(--f-text); }

.t-grip__more {
  width: 100%; min-height: 44px; padding: 0 12px 0 14px; margin-top: 2px; border-radius: var(--f-r-md);
  display: flex; align-items: center; justify-content: space-between;
  font: 500 14px/1.2 var(--f-font); color: var(--f-text-2);
  border-top: 1px solid var(--f-sep); border-top-left-radius: 0; border-top-right-radius: 0;
}
.t-grip__more svg { width: 16px; height: 16px; transition: transform var(--f-dur-2) var(--f-ease); }
.t-grip__more.is-open svg { transform: rotate(180deg); }
.t-grip__more:focus-visible { outline: 2px solid var(--f-text-2); outline-offset: -2px; }
.t-grip__none { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--f-text-3); }

@media (prefers-reduced-motion: reduce) {
  .t-grip-btn, .t-grip__more svg { transition: none; }
}
