/* The export queue: frame rows, empty state, export footer. */
/* frames list */
.flist {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 2px;
  scrollbar-width: thin;
}
.frow {
  position: relative;
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
}
.frow:hover {
  background: var(--panel-2);
}
.frow.here {
  background: var(--accent-soft);
}
.frow .ck {
  position: relative;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
.frow .ck input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  background: var(--panel);
  cursor: pointer;
}
.frow .ck input:checked {
  background: var(--accent);
  box-shadow: none;
}
.frow .ck svg {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  stroke: #fff;
  stroke-width: 3.2;
  opacity: 0;
  pointer-events: none;
}
.frow .ck:has(input:checked) svg {
  opacity: 1;
}
.fthumb {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  height: 42px;
  width: calc(42px * var(--ar, 1));
  max-width: 76px;
  min-width: 30px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.fthumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frow:not(.sel) .fthumb img {
  opacity: 0.35;
}
.frow:not(.sel) .fmeta {
  opacity: 0.6;
}
.fmeta {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.fmeta b {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fmeta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* tag dots: prefixed classes (t-hold…), so a tag named like another component ("frame") can't pick up its styles */
.tg {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.tg.t-hold {
  background: var(--hold);
}
.tg.t-cut {
  background: var(--cut);
}
.tg.t-grab {
  background: var(--accent);
}
.facts {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s;
  background: inherit;
  border-radius: 8px;
}
.frow:hover .facts,
.frow:focus-within .facts {
  opacity: 1;
}
.frow:hover .facts {
  background: var(--panel-2);
}
.frow.here:hover .facts {
  background: var(--accent-soft);
}
@media (hover: none) {
  .facts {
    opacity: 1;
  }
}
.facts button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
}
.facts button:hover {
  background: var(--panel-3);
  color: var(--text);
}
.facts svg.i {
  width: 14px;
  height: 14px;
}
.fempty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 14px 14px;
  text-align: center;
}
.fe-ic {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.fe-ic svg.i {
  width: 20px;
  height: 20px;
}
.fempty b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.fempty p {
  margin: 0;
  max-width: 26ch;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}
.fe-acts {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
}
.fe-acts .btn {
  width: 100%;
  height: 32px;
}
.fe-acts kbd {
  margin-left: 2px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.qfoot {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.qhint {
  margin: 0 2px 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-3);
}
.qfoot {
  position: relative;
}
.qopts {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}
.qfoot > .btn {
  height: 34px;
  width: 100%;
  justify-content: center;
}
#xmenu {
  top: auto;
  bottom: calc(100% - 52px);
  right: 12px;
}
.qopts .selwrap select {
  width: 100%;
}
