/* Library Manager web page: the Sessions view's tools (duplicate, export, search, the icon picker, selecting many).
   Colours come from app.css's tokens, so light, dark and High Contrast follow it. */

/* the editor's first line: where the session is, and Duplicate */
.caption-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

/* the editor's icon picker: one tile per icon, the chosen one marked */
.icon-picker { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-tile {
  width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 4px; color: var(--text-2); cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast);
}
.icon-tile:hover { background: var(--hover); }
.icon-tile[aria-checked="true"] { background: var(--accent-subtle); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.icon-picker[aria-readonly="true"] .icon-tile { cursor: default; }
.icon-tile img { width: 16px; height: 16px; }
.icon-unknown { font-weight: 600; color: var(--warning); }

@media (forced-colors: active) {
  .icon-tile { border-color: CanvasText; }
  .icon-tile[aria-checked="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
/* choosing many: the bar over the tree, and each row's check box (drawn like app.css's check boxes) */
.selection-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 16px;
  background: var(--accent-subtle); border: 1px solid var(--info-stroke); border-radius: 8px;
}
.selection-bar[hidden] { display: none; }
.row-check {
  width: 18px; height: 18px; flex: none; display: inline-grid; place-content: center;
  background: var(--surface); border: 1px solid var(--control-bottom); border-radius: 4px;
}
.row-check.on, .row-check.implied { background: var(--accent); border-color: var(--accent); }
.row-check.implied { opacity: 0.5; }
.row-check.on::before, .row-check.implied::before {
  content: ""; width: 10px; height: 6px; margin-top: -2px; transform: rotate(-45deg);
  border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent);
}
.row[aria-selected="true"] { background: var(--selected); }

@media (forced-colors: active) {
  .selection-bar { border-color: CanvasText; }
  .row-check { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
  .row-check.on, .row-check.implied { background: Highlight; border-color: Highlight; }
  .row-check.on::before, .row-check.implied::before { border-color: HighlightText; }
  .row[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
/* the Select button while choosing */
#select-sessions[aria-pressed="true"] { background: var(--selected); border-color: var(--accent); }
@media (forced-colors: active) {
  #select-sessions[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}