.target-lift-button {
  display: grid;
  place-items: center;
  min-width: 112px;
  height: var(--control-height);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--button);
  color: var(--text);
  cursor: pointer;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.target-lift-page-panel {
  min-width: 0;
}

.target-lift-modal {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.target-lift-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.target-lift-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--card);
}

.target-lift-header,
.target-lift-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.target-lift-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.target-lift-header strong {
  padding: 6px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.target-lift-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--control);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.target-lift-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.target-lift-tabs,
.target-lift-goals,
.target-lift-options {
  display: grid;
  gap: 8px;
}

.target-lift-tabs,
.target-lift-goals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-lift-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.target-lift-control-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 10px;
}

.target-lift-control-grid > div {
  display: grid;
  gap: 6px;
}

.target-lift-control-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.target-lift-tab,
.target-lift-goal,
.target-lift-option,
.target-lift-limit {
  height: var(--control-height);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--control);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.target-lift-tab.active,
.target-lift-goal.active,
.target-lift-option.active {
  border-color: var(--line);
  background: var(--button);
}

.target-lift-limit.active {
  border-color: var(--line);
  background: var(--button);
}

/* 탐색·저장 — 픽 생성 화면의 [생성][저장]과 같은 배치 */
.target-lift-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 8px;
}

.target-lift-save {
  width: 100%;
  height: var(--action-height);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--control);
  color: var(--text);
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 0.15s ease;
}

.target-lift-save:hover:not(:disabled) {
  border-color: var(--line);
}

.target-lift-search {
  height: var(--action-height);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--button);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.target-lift-search:hover:not(:disabled) {
  border-color: var(--text);
}

.target-lift-search:disabled {
  cursor: progress;
  opacity: 0.6;
}

.target-lift-option:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.target-lift-status {
  padding: 9px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.target-lift-results {
  display: grid;
  gap: 6px;
  max-height: 430px;
  overflow: auto;
}

.target-lift-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 11px;
}

.target-lift-row strong,
.target-lift-lift {
  font-weight: 900;
}

.target-lift-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

/* 번호 표시는 마이페이지 저장 목록과 같은 생김새로 맞춘다 */
.target-lift-number-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.target-lift-ball {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.target-lift-lift {
  justify-self: end;
}

@media (max-width: 580px) {
  .target-lift-tabs,
  .target-lift-goals,
  .target-lift-options,
  .target-lift-control-grid,
  .target-lift-run {
    grid-template-columns: 1fr;
  }

  /* 1열로 눕히면 고정 높이 안에서 번호가 겹친다 — 이름·배율은 윗줄, 번호는 아랫줄 */
  .target-lift-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name lift"
      "body body";
    min-height: 0;
    row-gap: 7px;
  }

  .target-lift-row > strong {
    grid-area: name;
  }

  .target-lift-row > div {
    grid-area: body;
  }

  .target-lift-lift {
    grid-area: lift;
  }
}
